CountArtifactsResponse
Stay organized with collections
Save and categorize content based on your preferences.
Definition of the response for method matters.count.
JSON representation |
{
"totalCount": string,
// Union field corpus_count_result can be only one of the following:
"mailCountResult": {
object (MailCountResult )
},
"groupsCountResult": {
object (GroupsCountResult )
}
// End of list of possible types for union field corpus_count_result .
} |
Fields |
totalCount |
string (int64 format)
Total count of messages.
|
Union field corpus_count_result . Detailed count metrics for specific services. corpus_count_result can be only one of the following: |
mailCountResult |
object (MailCountResult )
Count metrics for Gmail and classic Hangouts.
|
groupsCountResult |
object (GroupsCountResult )
Count metrics for Groups.
|
MailCountResult
Gmail and classic Hangouts-specific count metrics.
JSON representation |
{
"queriedAccountsCount": string,
"matchingAccountsCount": string,
"nonQueryableAccounts": [
string
],
"accountCountErrors": [
{
object (AccountCountError )
}
],
"accountCounts": [
{
object (AccountCount )
}
]
} |
Fields |
queriedAccountsCount |
string (int64 format)
Total number of accounts involved in this count operation.
|
matchingAccountsCount |
string (int64 format)
Total number of accounts that can be queried and have more than zero messages.
|
nonQueryableAccounts[] |
string
When DataScope is HELD_DATA and when account emails are passed in explicitly, the list of accounts in the request that are not queried because they are not on hold in the matter. For other data scopes, this field is not set.
|
accountCountErrors[] |
object (AccountCountError )
Errors occurred when querying these accounts.
|
accountCounts[] |
object (AccountCount )
Subtotal count per matching account that have more than zero messages.
|
GroupsCountResult
Groups specific count metrics.
JSON representation |
{
"queriedAccountsCount": string,
"matchingAccountsCount": string,
"nonQueryableAccounts": [
string
],
"accountCountErrors": [
{
object (AccountCountError )
}
],
"accountCounts": [
{
object (AccountCount )
}
]
} |
Fields |
queriedAccountsCount |
string (int64 format)
Total number of accounts involved in this count operation.
|
matchingAccountsCount |
string (int64 format)
Total number of accounts that can be queried and have more than zero messages.
|
nonQueryableAccounts[] |
string
When DataScope is HELD_DATA, these accounts in the request are not queried because they are not on hold. For other data scope, this field is not set.
|
accountCountErrors[] |
object (AccountCountError )
Error occurred when querying these accounts.
|
accountCounts[] |
object (AccountCount )
Subtotal count per matching account that have more than zero messages.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-17 UTC.
[null,null,["Last updated 2025-03-17 UTC."],[],[],null,["# CountArtifactsResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MailCountResult](#MailCountResult)\n - [JSON representation](#MailCountResult.SCHEMA_REPRESENTATION)\n- [GroupsCountResult](#GroupsCountResult)\n - [JSON representation](#GroupsCountResult.SCHEMA_REPRESENTATION)\n\nDefinition of the response for method matters.count.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"totalCount\": string, // Union field `corpus_count_result` can be only one of the following: \"mailCountResult\": { object (/workspace/vault/reference/rest/v1/CountArtifactsResponse#MailCountResult) }, \"groupsCountResult\": { object (/workspace/vault/reference/rest/v1/CountArtifactsResponse#GroupsCountResult) } // End of list of possible types for union field `corpus_count_result`. } ``` |\n\n| Fields ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `totalCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total count of messages. |\n| Union field `corpus_count_result`. Detailed count metrics for specific services. `corpus_count_result` can be only one of the following: ||\n| `mailCountResult` | `object (`[MailCountResult](/workspace/vault/reference/rest/v1/CountArtifactsResponse#MailCountResult)`)` Count metrics for Gmail and classic Hangouts. |\n| `groupsCountResult` | `object (`[GroupsCountResult](/workspace/vault/reference/rest/v1/CountArtifactsResponse#GroupsCountResult)`)` Count metrics for Groups. |\n\nMailCountResult\n---------------\n\nGmail and classic Hangouts-specific count metrics.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"queriedAccountsCount\": string, \"matchingAccountsCount\": string, \"nonQueryableAccounts\": [ string ], \"accountCountErrors\": [ { object (/workspace/vault/reference/rest/v1/AccountCountError) } ], \"accountCounts\": [ { object (/workspace/vault/reference/rest/v1/AccountCount) } ] } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `queriedAccountsCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total number of accounts involved in this count operation. |\n| `matchingAccountsCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total number of accounts that can be queried and have more than zero messages. |\n| `nonQueryableAccounts[]` | `string` When **DataScope** is **HELD_DATA** and when account emails are passed in explicitly, the list of accounts in the request that are not queried because they are not on hold in the matter. For other data scopes, this field is not set. |\n| `accountCountErrors[]` | `object (`[AccountCountError](/workspace/vault/reference/rest/v1/AccountCountError)`)` Errors occurred when querying these accounts. |\n| `accountCounts[]` | `object (`[AccountCount](/workspace/vault/reference/rest/v1/AccountCount)`)` Subtotal count per matching account that have more than zero messages. |\n\nGroupsCountResult\n-----------------\n\nGroups specific count metrics.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"queriedAccountsCount\": string, \"matchingAccountsCount\": string, \"nonQueryableAccounts\": [ string ], \"accountCountErrors\": [ { object (/workspace/vault/reference/rest/v1/AccountCountError) } ], \"accountCounts\": [ { object (/workspace/vault/reference/rest/v1/AccountCount) } ] } ``` |\n\n| Fields ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `queriedAccountsCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total number of accounts involved in this count operation. |\n| `matchingAccountsCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total number of accounts that can be queried and have more than zero messages. |\n| `nonQueryableAccounts[]` | `string` When **DataScope** is **HELD_DATA**, these accounts in the request are not queried because they are not on hold. For other data scope, this field is not set. |\n| `accountCountErrors[]` | `object (`[AccountCountError](/workspace/vault/reference/rest/v1/AccountCountError)`)` Error occurred when querying these accounts. |\n| `accountCounts[]` | `object (`[AccountCount](/workspace/vault/reference/rest/v1/AccountCount)`)` Subtotal count per matching account that have more than zero messages. |"]]