# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo (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::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo.

Unstructured document information.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #document

    def document() -> ::String

**Returns**

- (::String) --- Document resource name.

### #document=

    def document=(value) -> ::String

**Parameter**

- **value** (::String) --- Document resource name.
**Returns**

- (::String) --- Document resource name.

### #document_contexts

    def document_contexts() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-DocumentContext)\>) --- List of document contexts. The content will be used for Answer Generation. This is supposed to be the main content of the document that can be long and comprehensive.

### #document_contexts=

    def document_contexts=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-DocumentContext)\>) --- List of document contexts. The content will be used for Answer Generation. This is supposed to be the main content of the document that can be long and comprehensive.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-DocumentContext)\>) --- List of document contexts. The content will be used for Answer Generation. This is supposed to be the main content of the document that can be long and comprehensive.

### #extractive_answers

    def extractive_answers() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveAnswer)\>) --- Deprecated: This field is deprecated and will have no effect on the Answer generation. Please use document_contexts and extractive_segments fields. List of extractive answers.

### #extractive_answers=

    def extractive_answers=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveAnswer)\>) --- Deprecated: This field is deprecated and will have no effect on the Answer generation. Please use document_contexts and extractive_segments fields. List of extractive answers.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveAnswer)\>) --- Deprecated: This field is deprecated and will have no effect on the Answer generation. Please use document_contexts and extractive_segments fields. List of extractive answers.

### #extractive_segments

    def extractive_segments() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveSegment)\>) --- List of extractive segments.

### #extractive_segments=

    def extractive_segments=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveSegment)\>) --- List of extractive segments.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-AnswerQueryRequest-SearchSpec-SearchResultList-SearchResult-UnstructuredDocumentInfo-ExtractiveSegment)\>) --- List of extractive segments.

### #title

    def title() -> ::String

**Returns**

- (::String) --- Title.

### #title=

    def title=(value) -> ::String

**Parameter**

- **value** (::String) --- Title.
**Returns**

- (::String) --- Title.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- URI for the document.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- URI for the document.
**Returns**

- (::String) --- URI for the document.