# Google Cloud Discovery Engine V1 Client - Class DocumentMetadata (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DocumentMetadata.

The metadata of a [Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document).

Generated from protobuf message `google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ BatchGetDocumentsMetadataResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ matcher_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue` The value of the matcher that was used to match the [Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document). |
| `↳ state` | `int` The state of the document. |
| `↳ last_refreshed_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The timestamp of the last time the [Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document) was last indexed. |
| `↳ data_ingestion_source` | `string` The data ingestion source of the [Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document). Allowed values are: \* \* `batch`: Data ingested via Batch API, e.g., ImportDocuments. \* \* `streaming` Data ingested via Streaming API, e.g., FHIR streaming. |

### getMatcherValue

The value of the matcher that was used to match the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue|null` |   |

### hasMatcherValue

### clearMatcherValue

### setMatcherValue

The value of the matcher that was used to match the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

The state of the document.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.BatchGetDocumentsMetadataResponse.State). |

### setState

The state of the document.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.BatchGetDocumentsMetadataResponse.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastRefreshedTime

The timestamp of the last time the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document) was last indexed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasLastRefreshedTime

### clearLastRefreshedTime

### setLastRefreshedTime

The timestamp of the last time the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document) was last indexed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataIngestionSource

The data ingestion source of the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document).

Allowed values are:

- `batch`: Data ingested via Batch API, e.g., ImportDocuments.
- `streaming` Data ingested via Streaming API, e.g., FHIR streaming.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDataIngestionSource

The data ingestion source of the
[Document](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document).

Allowed values are:

- `batch`: Data ingested via Batch API, e.g., ImportDocuments.
- `streaming` Data ingested via Streaming API, e.g., FHIR streaming.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |