public interface SearchResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAppliedControls(int index)
The fully qualified resource name of applied
[controls](https://cloud.google.com/retail/docs/serving-control-rules).
|
com.google.protobuf.ByteString |
getAppliedControlsBytes(int index)
The fully qualified resource name of applied
[controls](https://cloud.google.com/retail/docs/serving-control-rules).
|
int |
getAppliedControlsCount()
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).
|
String |
getAttributionToken()
A unique search token.
|
com.google.protobuf.ByteString |
getAttributionTokenBytes()
A unique search token.
|
String |
getCorrectedQuery()
Contains the spell corrected query, if found.
|
com.google.protobuf.ByteString |
getCorrectedQueryBytes()
Contains the spell corrected query, if found.
|
ExperimentInfo |
getExperimentInfo(int index)
Metadata related to A/B testing [Experiment][] associated with this
response.
|
int |
getExperimentInfoCount()
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.
|
ExperimentInfoOrBuilder |
getExperimentInfoOrBuilder(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.Facet |
getFacets(int index)
Results of facets requested by user.
|
int |
getFacetsCount()
Results of facets requested by user.
|
List<SearchResponse.Facet> |
getFacetsList()
Results of facets requested by user.
|
SearchResponse.FacetOrBuilder |
getFacetsOrBuilder(int index)
Results of facets requested by user.
|
List<? extends SearchResponse.FacetOrBuilder> |
getFacetsOrBuilderList()
Results of facets requested by user.
|
SearchRequest.BoostSpec.ConditionBoostSpec |
getInvalidConditionBoostSpecs(int index)
The invalid
[SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs]
that are not applied during serving.
|
int |
getInvalidConditionBoostSpecsCount()
The invalid
[SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.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.v2.SearchRequest.BoostSpec.condition_boost_specs]
that are not applied during serving.
|
SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder |
getInvalidConditionBoostSpecsOrBuilder(int index)
The invalid
[SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.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.v2.SearchRequest.BoostSpec.condition_boost_specs]
that are not applied during serving.
|
String |
getNextPageToken()
A token that can be sent as
[SearchRequest.page_token][google.cloud.retail.v2.SearchRequest.page_token]
to retrieve the next page.
|
com.google.protobuf.ByteString |
getNextPageTokenBytes()
A token that can be sent as
[SearchRequest.page_token][google.cloud.retail.v2.SearchRequest.page_token]
to retrieve the next page.
|
SearchResponse.QueryExpansionInfo |
getQueryExpansionInfo()
Query expansion information for the returned results.
|
SearchResponse.QueryExpansionInfoOrBuilder |
getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
|
String |
getRedirectUri()
The URI of a customer-defined redirect page.
|
com.google.protobuf.ByteString |
getRedirectUriBytes()
The URI of a customer-defined redirect page.
|
SearchResponse.SearchResult |
getResults(int index)
A list of matched items.
|
int |
getResultsCount()
A list of matched items.
|
List<SearchResponse.SearchResult> |
getResultsList()
A list of matched items.
|
SearchResponse.SearchResultOrBuilder |
getResultsOrBuilder(int index)
A list of matched items.
|
List<? extends SearchResponse.SearchResultOrBuilder> |
getResultsOrBuilderList()
A list of matched items.
|
int |
getTotalSize()
The estimated total count of matched items irrespective of pagination.
|
boolean |
hasQueryExpansionInfo()
Query expansion information for the returned results.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<SearchResponse.SearchResult> getResultsList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2.SearchResponse.SearchResult results = 1;SearchResponse.SearchResult getResults(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2.SearchResponse.SearchResult results = 1;int getResultsCount()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2.SearchResponse.SearchResult results = 1;List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2.SearchResponse.SearchResult results = 1;SearchResponse.SearchResultOrBuilder getResultsOrBuilder(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2.SearchResponse.SearchResult results = 1;List<SearchResponse.Facet> getFacetsList()
Results of facets requested by user.
repeated .google.cloud.retail.v2.SearchResponse.Facet facets = 2;SearchResponse.Facet getFacets(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2.SearchResponse.Facet facets = 2;int getFacetsCount()
Results of facets requested by user.
repeated .google.cloud.retail.v2.SearchResponse.Facet facets = 2;List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()
Results of facets requested by user.
repeated .google.cloud.retail.v2.SearchResponse.Facet facets = 2;SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2.SearchResponse.Facet facets = 2;int getTotalSize()
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.retail.v2.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.retail.v2.SearchResponse.total_size] that matches.
int32 total_size = 3;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;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;String getAttributionToken()
A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;com.google.protobuf.ByteString getAttributionTokenBytes()
A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;String getNextPageToken()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;com.google.protobuf.ByteString getNextPageTokenBytes()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;boolean hasQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.retail.v2.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
SearchResponse.QueryExpansionInfo getQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.retail.v2.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
.google.cloud.retail.v2.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
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.v2.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;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.v2.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;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;int getAppliedControlsCount()
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;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;index - The index of the element to return.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;index - The index of the value to return.List<SearchRequest.BoostSpec.ConditionBoostSpec> getInvalidConditionBoostSpecsList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
SearchRequest.BoostSpec.ConditionBoostSpec getInvalidConditionBoostSpecs(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
int getInvalidConditionBoostSpecsCount()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getInvalidConditionBoostSpecsOrBuilderList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getInvalidConditionBoostSpecsOrBuilder(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
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.v2.ExperimentInfo experiment_info = 17;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.v2.ExperimentInfo experiment_info = 17;int getExperimentInfoCount()
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2.ExperimentInfo experiment_info = 17;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.v2.ExperimentInfo experiment_info = 17;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.v2.ExperimentInfo experiment_info = 17;Copyright © 2024 Google LLC. All rights reserved.