Package com.google.cloud.retail.v2beta
Interface SearchResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse,SearchResponse.Builder
public interface SearchResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAppliedControls(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).intgetAppliedControlsCount()The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).List<String>getAppliedControlsList()The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).StringgetAttributionToken()A unique search token.com.google.protobuf.ByteStringgetAttributionTokenBytes()A unique search token.StringgetCorrectedQuery()Contains the spell corrected query, if found.com.google.protobuf.ByteStringgetCorrectedQueryBytes()Contains the spell corrected query, if found.ExperimentInfogetExperimentInfo(int index)Metadata related to A/B testing [Experiment][] associated with this response.intgetExperimentInfoCount()Metadata related to A/B testing [Experiment][] associated with this response.List<ExperimentInfo>getExperimentInfoList()Metadata related to A/B testing [Experiment][] associated with this response.ExperimentInfoOrBuildergetExperimentInfoOrBuilder(int index)Metadata related to A/B testing [Experiment][] associated with this response.List<? extends ExperimentInfoOrBuilder>getExperimentInfoOrBuilderList()Metadata related to A/B testing [Experiment][] associated with this response.SearchResponse.FacetgetFacets(int index)Results of facets requested by user.intgetFacetsCount()Results of facets requested by user.List<SearchResponse.Facet>getFacetsList()Results of facets requested by user.SearchResponse.FacetOrBuildergetFacetsOrBuilder(int index)Results of facets requested by user.List<? extends SearchResponse.FacetOrBuilder>getFacetsOrBuilderList()Results of facets requested by user.SearchRequest.BoostSpec.ConditionBoostSpecgetInvalidConditionBoostSpecs(int index)The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.intgetInvalidConditionBoostSpecsCount()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.List<SearchRequest.BoostSpec.ConditionBoostSpec>getInvalidConditionBoostSpecsList()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.SearchRequest.BoostSpec.ConditionBoostSpecOrBuildergetInvalidConditionBoostSpecsOrBuilder(int index)The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder>getInvalidConditionBoostSpecsOrBuilderList()The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.StringgetNextPageToken()A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.ByteStringgetNextPageTokenBytes()A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page.SearchResponse.QueryExpansionInfogetQueryExpansionInfo()Query expansion information for the returned results.SearchResponse.QueryExpansionInfoOrBuildergetQueryExpansionInfoOrBuilder()Query expansion information for the returned results.StringgetRedirectUri()The URI of a customer-defined redirect page.com.google.protobuf.ByteStringgetRedirectUriBytes()The URI of a customer-defined redirect page.SearchResponse.SearchResultgetResults(int index)A list of matched items.intgetResultsCount()A list of matched items.List<SearchResponse.SearchResult>getResultsList()A list of matched items.SearchResponse.SearchResultOrBuildergetResultsOrBuilder(int index)A list of matched items.List<? extends SearchResponse.SearchResultOrBuilder>getResultsOrBuilderList()A list of matched items.intgetTotalSize()The estimated total count of matched items irrespective of pagination.booleanhasQueryExpansionInfo()Query expansion information for the returned results.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getResultsList
List<SearchResponse.SearchResult> getResultsList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
-
getResults
SearchResponse.SearchResult getResults(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
-
getResultsCount
int getResultsCount()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
-
getResultsOrBuilderList
List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
-
getResultsOrBuilder
SearchResponse.SearchResultOrBuilder getResultsOrBuilder(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
-
getFacetsList
List<SearchResponse.Facet> getFacetsList()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
-
getFacets
SearchResponse.Facet getFacets(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
-
getFacetsCount
int getFacetsCount()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
-
getFacetsOrBuilderList
List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
-
getFacetsOrBuilder
SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
-
getTotalSize
int getTotalSize()
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.retail.v2beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.retail.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.SearchResponse.QueryExpansionInfo query_expansion_info = 7;- Returns:
- The queryExpansionInfo.
-
getQueryExpansionInfoOrBuilder
SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
.google.cloud.retail.v2beta.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.v2beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2beta.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.v2beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;- Returns:
- The bytes for redirectUri.
-
getAppliedControlsList
List<String> 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
String getAppliedControls(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 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.
-
getInvalidConditionBoostSpecsList
List<SearchRequest.BoostSpec.ConditionBoostSpec> getInvalidConditionBoostSpecsList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
-
getInvalidConditionBoostSpecs
SearchRequest.BoostSpec.ConditionBoostSpec getInvalidConditionBoostSpecs(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
-
getInvalidConditionBoostSpecsCount
int getInvalidConditionBoostSpecsCount()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.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.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.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.v2beta.ExperimentInfo experiment_info = 17;
-
getExperimentInfo
ExperimentInfo getExperimentInfo(int index)
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.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.v2beta.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.v2beta.ExperimentInfo experiment_info = 17;
-
getExperimentInfoOrBuilder
ExperimentInfoOrBuilder getExperimentInfoOrBuilder(int index)
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
-
-