- [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#SCHEMA_REPRESENTATION)
- [DocumentMetadata](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#DocumentMetadata)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#DocumentMetadata.SCHEMA_REPRESENTATION)
- [MatcherValue](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#MatcherValue)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#MatcherValue.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#State)

Response message for `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.dataStores.branches/batchGetDocumentsMetadata#google.cloud.discoveryengine.v1alpha.DocumentService.BatchGetDocumentsMetadata` method.

| JSON representation |
|---|
| ``` { "documentsMetadata": [ { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#DocumentMetadata`) } ] } ``` |

| Fields ||
|---|---|
| `documentsMetadata[]` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#DocumentMetadata`)`` The metadata of the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`s. |

## DocumentMetadata

The metadata of a `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`.

| JSON representation |
|---|
| ``` { "matcherValue": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#MatcherValue`) }, "state": enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#State`), "lastRefreshedTime": string, "dataIngestionSource": string } ``` |

| Fields ||
|---|---|
| `matcherValue` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#MatcherValue`)`` The value of the matcher that was used to match the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`. |
| `state` | ``enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/BatchGetDocumentsMetadataResponse#State`)`` The state of the document. |
| `lastRefreshedTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The timestamp of the last time the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document` was last indexed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `dataIngestionSource` | `string` The data ingestion source of the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`. Allowed values are: - `batch`: Data ingested via Batch API, e.g., ImportDocuments. - `streaming` data ingested via Streaming API, e.g., FHIR streaming. |

## MatcherValue

The value of the matcher that was used to match the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "uri": string, "fhirResource": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The value of the matcher that was used to match the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `uri` | `string` If match by URI, the URI of the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`. |
| `fhirResource` | `string` Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhirStore}/fhir/{resourceType}/{fhir_resource_id} |
| End of mutually exclusive fields. ||

## State

The state of the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document`.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Should never be set. |
| `INDEXED` | The `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document` is indexed. |
| `NOT_IN_TARGET_SITE` | The `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document` is not indexed because its URI is not in the `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.siteSearchEngine.targetSites#TargetSite`. |
| `NOT_IN_INDEX` | The `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#Document` is not indexed. |