Package com.google.cloud.retail.v2alpha
Interface CompleteQueryResponse.CompletionResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CompleteQueryResponse.CompletionResult,CompleteQueryResponse.CompletionResult.Builder
- Enclosing class:
- CompleteQueryResponse
public static interface CompleteQueryResponse.CompletionResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAttributes(String key) Custom attributes for the suggestion termDeprecated.intCustom attributes for the suggestion termCustom attributes for the suggestion termgetAttributesOrDefault(String key, CustomAttribute defaultValue) Custom attributes for the suggestion termCustom attributes for the suggestion termgetFacets(int index) Facet information for the suggestion term.intFacet information for the suggestion term.Facet information for the suggestion term.getFacetsOrBuilder(int index) Facet information for the suggestion term.List<? extends SearchResponse.FacetOrBuilder>Facet information for the suggestion term.The suggestion for the query.com.google.protobuf.ByteStringThe suggestion for the query.intTotal number of products associated with a search with this suggestion.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
-
getSuggestion
String getSuggestion()The suggestion for the query.
string suggestion = 1;- Returns:
- The suggestion.
-
getSuggestionBytes
com.google.protobuf.ByteString getSuggestionBytes()The suggestion for the query.
string suggestion = 1;- Returns:
- The bytes for suggestion.
-
getAttributesCount
int getAttributesCount()Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2; -
containsAttributes
Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2; -
getAttributes
Deprecated.UsegetAttributesMap()instead. -
getAttributesMap
Map<String,CustomAttribute> getAttributesMap()Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2; -
getAttributesOrDefault
Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2; -
getAttributesOrThrow
Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2; -
getFacetsList
List<SearchResponse.Facet> getFacetsList()Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; -
getFacets
Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; -
getFacetsCount
int getFacetsCount()Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; -
getFacetsOrBuilderList
List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; -
getFacetsOrBuilder
Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; -
getTotalProductCount
int getTotalProductCount()Total number of products associated with a search with this suggestion. This is an experimental feature for limited customers. If you want to receive this product count information, reach out to the Retail support team.
int32 total_product_count = 4;- Returns:
- The totalProductCount.
-