Team Drives-related fields in the Vault API are being replaced. Learn more.

CountArtifactsResponse

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 artifacts. For mail and groups, artifacts refers to messages.

Union field corpus_count_result. Detailed count metrics of different corpus. corpus_count_result can be only one of the following:
mailCountResult

object (MailCountResult)

Count metrics of Mail.

groupsCountResult

object (GroupsCountResult)

Count metrics of Groups.

MailCountResult

Mail 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 data scope is HELD_DATA in the request Query, 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.

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 data scope is HELD_DATA in the request Query, 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.