Package com.google.cloud.retail.v2alpha
Interface SearchResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse,SearchResponse.Builder
@Generated
public interface SearchResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAppliedControls(int index) The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).com.google.protobuf.ByteStringgetAppliedControlsBytes(int index) The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).intThe fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).A unique search token.com.google.protobuf.ByteStringA unique search token.This field specifies all related information that is needed on client side for UI rendering of conversational retail search.This field specifies all related information that is needed on client side for UI rendering of conversational retail search.Contains the spell corrected query, if found.com.google.protobuf.ByteStringContains the spell corrected query, if found.getExperimentInfo(int index) Metadata related to A/B testing experiment associated with this response.intMetadata related to A/B testing experiment associated with this response.Metadata related to A/B testing experiment associated with this response.getExperimentInfoOrBuilder(int index) Metadata related to A/B testing experiment associated with this response.List<? extends ExperimentInfoOrBuilder>Metadata related to A/B testing experiment associated with this response.getFacets(int index) Results of facets requested by user.intResults of facets requested by user.Results of facets requested by user.getFacetsOrBuilder(int index) Results of facets requested by user.List<? extends SearchResponse.FacetOrBuilder>Results of facets requested by user.getInvalidConditionBoostSpecs(int index) The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.intThe invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.getInvalidConditionBoostSpecsOrBuilder(int index) The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2alpha.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.ByteStringA token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2alpha.SearchRequest.page_token] to retrieve the next page.Metadata for pin controls which were applicable to the request.Metadata for pin controls which were applicable to the request.Query expansion information for the returned results.Query expansion information for the returned results.The URI of a customer-defined redirect page.com.google.protobuf.ByteStringThe URI of a customer-defined redirect page.getResults(int index) A list of matched items.intA list of matched items.A list of matched items.getResultsOrBuilder(int index) A list of matched items.List<? extends SearchResponse.SearchResultOrBuilder>A list of matched items.This field specifies all related information for tile navigation that will be used in client side.This field specifies all related information for tile navigation that will be used in client side.intThe estimated total count of matched items irrespective of pagination.booleanThis field specifies all related information that is needed on client side for UI rendering of conversational retail search.booleanMetadata for pin controls which were applicable to the request.booleanQuery expansion information for the returned results.booleanThis field specifies all related information for tile navigation that will be used in client side.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getResultsList
List<SearchResponse.SearchResult> getResultsList()A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2alpha.SearchResponse.SearchResult results = 1; -
getResults
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2alpha.SearchResponse.SearchResult results = 1; -
getResultsCount
int getResultsCount()A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2alpha.SearchResponse.SearchResult results = 1; -
getResultsOrBuilderList
List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2alpha.SearchResponse.SearchResult results = 1; -
getResultsOrBuilder
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2alpha.SearchResponse.SearchResult results = 1; -
getFacetsList
List<SearchResponse.Facet> getFacetsList()Results of facets requested by user.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 2; -
getFacets
Results of facets requested by user.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 2; -
getFacetsCount
int getFacetsCount()Results of facets requested by user.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 2; -
getFacetsOrBuilderList
List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()Results of facets requested by user.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 2; -
getFacetsOrBuilder
Results of facets requested by user.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 2; -
getTotalSize
int getTotalSize()The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.retail.v2alpha.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.retail.v2alpha.SearchResponse.total_size] that matches.
int32 total_size = 3;- Returns:
- The totalSize.
-
getCorrectedQuery
String getCorrectedQuery()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 corrected_query = 4;- Returns:
- The correctedQuery.
-
getCorrectedQueryBytes
com.google.protobuf.ByteString getCorrectedQueryBytes()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 corrected_query = 4;- Returns:
- The bytes for correctedQuery.
-
getAttributionToken
String getAttributionToken()A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2alpha.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;- Returns:
- The attributionToken.
-
getAttributionTokenBytes
com.google.protobuf.ByteString getAttributionTokenBytes()A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2alpha.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;- Returns:
- The bytes for attributionToken.
-
getNextPageToken
String getNextPageToken()A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2alpha.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
com.google.protobuf.ByteString getNextPageTokenBytes()A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2alpha.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;- Returns:
- The bytes for nextPageToken.
-
hasQueryExpansionInfo
boolean hasQueryExpansionInfo()Query expansion information for the returned results.
.google.cloud.retail.v2alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 7;- Returns:
- Whether the queryExpansionInfo field is set.
-
getQueryExpansionInfo
SearchResponse.QueryExpansionInfo getQueryExpansionInfo()Query expansion information for the returned results.
.google.cloud.retail.v2alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 7;- Returns:
- The queryExpansionInfo.
-
getQueryExpansionInfoOrBuilder
SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()Query expansion information for the returned results.
.google.cloud.retail.v2alpha.SearchResponse.QueryExpansionInfo query_expansion_info = 7; -
getRedirectUri
String getRedirectUri()The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.retail.v2alpha.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2alpha.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;- Returns:
- The redirectUri.
-
getRedirectUriBytes
com.google.protobuf.ByteString getRedirectUriBytes()The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.retail.v2alpha.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2alpha.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;- Returns:
- The bytes for redirectUri.
-
getAppliedControlsList
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;- Returns:
- A list containing the appliedControls.
-
getAppliedControlsCount
int getAppliedControlsCount()The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;- Returns:
- The count of appliedControls.
-
getAppliedControls
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;- Parameters:
index- The index of the element to return.- Returns:
- The appliedControls at the given index.
-
getAppliedControlsBytes
com.google.protobuf.ByteString getAppliedControlsBytes(int index) The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the appliedControls at the given index.
-
hasPinControlMetadata
boolean hasPinControlMetadata()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.v2alpha.PinControlMetadata pin_control_metadata = 22;- Returns:
- Whether the pinControlMetadata field is set.
-
getPinControlMetadata
PinControlMetadata getPinControlMetadata()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.v2alpha.PinControlMetadata pin_control_metadata = 22;- Returns:
- The pinControlMetadata.
-
getPinControlMetadataOrBuilder
PinControlMetadataOrBuilder getPinControlMetadataOrBuilder()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.v2alpha.PinControlMetadata pin_control_metadata = 22; -
getInvalidConditionBoostSpecsList
List<SearchRequest.BoostSpec.ConditionBoostSpec> getInvalidConditionBoostSpecsList()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14; -
getInvalidConditionBoostSpecs
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14; -
getInvalidConditionBoostSpecsCount
int getInvalidConditionBoostSpecsCount()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14; -
getInvalidConditionBoostSpecsOrBuilderList
List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getInvalidConditionBoostSpecsOrBuilderList()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14; -
getInvalidConditionBoostSpecsOrBuilder
SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getInvalidConditionBoostSpecsOrBuilder(int index) The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2alpha.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2alpha.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14; -
getExperimentInfoList
List<ExperimentInfo> getExperimentInfoList()Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2alpha.ExperimentInfo experiment_info = 17; -
getExperimentInfo
Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2alpha.ExperimentInfo experiment_info = 17; -
getExperimentInfoCount
int getExperimentInfoCount()Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2alpha.ExperimentInfo experiment_info = 17; -
getExperimentInfoOrBuilderList
List<? extends ExperimentInfoOrBuilder> getExperimentInfoOrBuilderList()Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2alpha.ExperimentInfo experiment_info = 17; -
getExperimentInfoOrBuilder
Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2alpha.ExperimentInfo experiment_info = 17; -
hasConversationalSearchResult
boolean hasConversationalSearchResult()This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult conversational_search_result = 18;- Returns:
- Whether the conversationalSearchResult field is set.
-
getConversationalSearchResult
SearchResponse.ConversationalSearchResult getConversationalSearchResult()This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult conversational_search_result = 18;- Returns:
- The conversationalSearchResult.
-
getConversationalSearchResultOrBuilder
SearchResponse.ConversationalSearchResultOrBuilder getConversationalSearchResultOrBuilder()This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult conversational_search_result = 18;
-