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

Response message for
[CompletionService.CompleteQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CompletionService-Client#Google__Cloud__DiscoveryEngine__V1__CompletionService__Client_complete_query_instance_ "Google::Cloud::DiscoveryEngine::V1::CompletionService::Client#complete_query (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #query_suggestions

    def query_suggestions() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CompleteQueryResponse-QuerySuggestion)\>) --- Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

### #query_suggestions=

    def query_suggestions=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CompleteQueryResponse-QuerySuggestion)\>) --- Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CompleteQueryResponse::QuerySuggestion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CompleteQueryResponse-QuerySuggestion)\>) --- Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

### #tail_match_triggered

    def tail_match_triggered() -> ::Boolean

**Returns**

- (::Boolean) --- True if the returned suggestions are all tail suggestions.

  For tail matching to be triggered, include_tail_suggestions in the request
  must be true and there must be no suggestions that match the full query.

### #tail_match_triggered=

    def tail_match_triggered=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- True if the returned suggestions are all tail suggestions.


  For tail matching to be triggered, include_tail_suggestions in the request
  must be true and there must be no suggestions that match the full query.
**Returns**

- (::Boolean) --- True if the returned suggestions are all tail suggestions.

  For tail matching to be triggered, include_tail_suggestions in the request
  must be true and there must be no suggestions that match the full query.