# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata.

The metadata of a [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_ingestion_source

    def data_ingestion_source() -> ::String

**Returns**

- (::String) --- The data ingestion source of the
  [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

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

### #data_ingestion_source=

    def data_ingestion_source=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The data ingestion source of the
  [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

  Allowed values are:
  - `batch`: Data ingested via Batch API, e.g., ImportDocuments.
  - `streaming` Data ingested via Streaming API, e.g., FHIR streaming.
**Returns**

- (::String) --- The data ingestion source of the
  [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

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

### #last_refreshed_time

    def last_refreshed_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp of the last time the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") was last indexed.

### #last_refreshed_time=

    def last_refreshed_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp of the last time the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") was last indexed.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp of the last time the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") was last indexed.

### #matcher_value

    def matcher_value() -> ::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-DocumentMetadata-MatcherValue)) --- The value of the matcher that was used to match the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

### #matcher_value=

    def matcher_value=(value) -> ::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-DocumentMetadata-MatcherValue)) --- The value of the matcher that was used to match the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::DocumentMetadata::MatcherValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-DocumentMetadata-MatcherValue)) --- The value of the matcher that was used to match the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)").

### #state

    def state() -> ::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::State

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-State)) --- The state of the document.

### #state=

    def state=(value) -> ::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::State

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-State)) --- The state of the document.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::BatchGetDocumentsMetadataResponse::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-BatchGetDocumentsMetadataResponse-State)) --- The state of the document.