# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::RecommendResponse (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::RecommendResponse.

Response message for Recommend method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attribution_token

    def attribution_token() -> ::String

**Returns**

- (::String) --- A unique attribution token. This should be included in the [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

### #attribution_token=

    def attribution_token=(value) -> ::String

**Parameter**

- **value** (::String) --- A unique attribution token. This should be included in the [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
**Returns**

- (::String) --- A unique attribution token. This should be included in the [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

### #missing_ids

    def missing_ids() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.

### #missing_ids=

    def missing_ids=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
**Returns**

- (::Array\<::String\>) --- IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.

### #results

    def results() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendResponse-RecommendationResult)\>) --- A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).

### #results=

    def results=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendResponse-RecommendationResult)\>) --- A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendResponse-RecommendationResult)\>) --- A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- True if [RecommendRequest.validate_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendRequest#Google__Cloud__DiscoveryEngine__V1__RecommendRequest_validate_only_instance_ "Google::Cloud::DiscoveryEngine::V1::RecommendRequest#validate_only (method)") was set.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- True if [RecommendRequest.validate_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendRequest#Google__Cloud__DiscoveryEngine__V1__RecommendRequest_validate_only_instance_ "Google::Cloud::DiscoveryEngine::V1::RecommendRequest#validate_only (method)") was set.
**Returns**

- (::Boolean) --- True if [RecommendRequest.validate_only](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendRequest#Google__Cloud__DiscoveryEngine__V1__RecommendRequest_validate_only_instance_ "Google::Cloud::DiscoveryEngine::V1::RecommendRequest#validate_only (method)") was set.