Retail V2 API - Class Google::Cloud::Retail::V2::SearchResponse (v0.7.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SearchResponse.

Response message for SearchService.Search method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#applied_controls

def applied_controls() -> ::Array<::String>
Returns
  • (::Array<::String>) — The fully qualified resource name of applied controls.

#applied_controls=

def applied_controls=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The fully qualified resource name of applied controls.
Returns
  • (::Array<::String>) — The fully qualified resource name of applied controls.

#attribution_token

def attribution_token() -> ::String
Returns
  • (::String) — A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.

#attribution_token=

def attribution_token=(value) -> ::String
Parameter
  • value (::String) — A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.
Returns
  • (::String) — A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.

#corrected_query

def corrected_query() -> ::String
Returns
  • (::String) — If spell correction applies, the corrected query. Otherwise, empty.

#corrected_query=

def corrected_query=(value) -> ::String
Parameter
  • value (::String) — If spell correction applies, the corrected query. Otherwise, empty.
Returns
  • (::String) — If spell correction applies, the corrected query. Otherwise, empty.

#facets

def facets() -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>
Returns

#facets=

def facets=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>
Parameter
Returns

#invalid_condition_boost_specs

def invalid_condition_boost_specs() -> ::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>

#invalid_condition_boost_specs=

def invalid_condition_boost_specs=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>
Parameter

#next_page_token

def next_page_token() -> ::String
Returns
  • (::String) — A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

#next_page_token=

def next_page_token=(value) -> ::String
Parameter
  • value (::String) — A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
Returns
  • (::String) — A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

#query_expansion_info

def query_expansion_info() -> ::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo
Returns

#query_expansion_info=

def query_expansion_info=(value) -> ::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo
Parameter
Returns

#redirect_uri

def redirect_uri() -> ::String
Returns
  • (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search will be performed, and only redirect_uri and attribution_token will be set in the response.

#redirect_uri=

def redirect_uri=(value) -> ::String
Parameter
  • value (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search will be performed, and only redirect_uri and attribution_token will be set in the response.
Returns
  • (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search will be performed, and only redirect_uri and attribution_token will be set in the response.

#results

def results() -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>
Returns

#results=

def results=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>
Parameter
Returns

#total_size

def total_size() -> ::Integer
Returns
  • (::Integer) — The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.

#total_size=

def total_size=(value) -> ::Integer
Parameter
  • value (::Integer) — The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.
Returns
  • (::Integer) — The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.