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>
- (::Array<::String>) — The fully qualified resource name of applied controls.
#applied_controls=
def applied_controls=(value) -> ::Array<::String>
- value (::Array<::String>) — The fully qualified resource name of applied controls.
- (::Array<::String>) — The fully qualified resource name of applied controls.
#attribution_token
def attribution_token() -> ::String
- (::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
- 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.
- (::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.
#conversational_search_result
def conversational_search_result() -> ::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult
- (::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult) — This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
#conversational_search_result=
def conversational_search_result=(value) -> ::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult
- value (::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult) — This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
- (::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult) — This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
#corrected_query
def corrected_query() -> ::String
- (::String) — Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
#corrected_query=
def corrected_query=(value) -> ::String
- value (::String) — Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
- (::String) — Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
#experiment_info
def experiment_info() -> ::Array<::Google::Cloud::Retail::V2::ExperimentInfo>
- (::Array<::Google::Cloud::Retail::V2::ExperimentInfo>) — Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
#experiment_info=
def experiment_info=(value) -> ::Array<::Google::Cloud::Retail::V2::ExperimentInfo>
- value (::Array<::Google::Cloud::Retail::V2::ExperimentInfo>) — Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
- (::Array<::Google::Cloud::Retail::V2::ExperimentInfo>) — Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
#facets
def facets() -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>
- (::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>) — Results of facets requested by user.
#facets=
def facets=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>
- value (::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>) — Results of facets requested by user.
- (::Array<::Google::Cloud::Retail::V2::SearchResponse::Facet>) — Results of facets requested by user.
#invalid_condition_boost_specs
def invalid_condition_boost_specs() -> ::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>
- (::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>) — The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied during serving.
#invalid_condition_boost_specs=
def invalid_condition_boost_specs=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>
- value (::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>) — The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied during serving.
- (::Array<::Google::Cloud::Retail::V2::SearchRequest::BoostSpec::ConditionBoostSpec>) — The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied during serving.
#next_page_token
def next_page_token() -> ::String
- (::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
- 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.
- (::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.
#pin_control_metadata
def pin_control_metadata() -> ::Google::Cloud::Retail::V2::PinControlMetadata
-
(::Google::Cloud::Retail::V2::PinControlMetadata) — Metadata for pin controls which were applicable to the request.
This contains two map fields, one for all matched pins and one for pins
which were matched but not applied.
The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
#pin_control_metadata=
def pin_control_metadata=(value) -> ::Google::Cloud::Retail::V2::PinControlMetadata
-
value (::Google::Cloud::Retail::V2::PinControlMetadata) — Metadata for pin controls which were applicable to the request.
This contains two map fields, one for all matched pins and one for pins
which were matched but not applied.
The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
-
(::Google::Cloud::Retail::V2::PinControlMetadata) — Metadata for pin controls which were applicable to the request.
This contains two map fields, one for all matched pins and one for pins
which were matched but not applied.
The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
#query_expansion_info
def query_expansion_info() -> ::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo
- (::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo) — Query expansion information for the returned results.
#query_expansion_info=
def query_expansion_info=(value) -> ::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo
- value (::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo) — Query expansion information for the returned results.
- (::Google::Cloud::Retail::V2::SearchResponse::QueryExpansionInfo) — Query expansion information for the returned results.
#redirect_uri
def redirect_uri() -> ::String
- (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only redirect_uri and attribution_token are set in the response.
#redirect_uri=
def redirect_uri=(value) -> ::String
- value (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only redirect_uri and attribution_token are set in the response.
- (::String) — The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only redirect_uri and attribution_token are set in the response.
#results
def results() -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>
- (::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>) — A list of matched items. The order represents the ranking.
#results=
def results=(value) -> ::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>
- value (::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>) — A list of matched items. The order represents the ranking.
- (::Array<::Google::Cloud::Retail::V2::SearchResponse::SearchResult>) — A list of matched items. The order represents the ranking.
#tile_navigation_result
def tile_navigation_result() -> ::Google::Cloud::Retail::V2::SearchResponse::TileNavigationResult
- (::Google::Cloud::Retail::V2::SearchResponse::TileNavigationResult) — This field specifies all related information for tile navigation that will be used in client side.
#tile_navigation_result=
def tile_navigation_result=(value) -> ::Google::Cloud::Retail::V2::SearchResponse::TileNavigationResult
- value (::Google::Cloud::Retail::V2::SearchResponse::TileNavigationResult) — This field specifies all related information for tile navigation that will be used in client side.
- (::Google::Cloud::Retail::V2::SearchResponse::TileNavigationResult) — This field specifies all related information for tile navigation that will be used in client side.
#total_size
def total_size() -> ::Integer
- (::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
- 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.
- (::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.