Package com.google.cloud.retail.v2alpha
Class CompleteQueryResponse.CompletionResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
com.google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult.Builder
- All Implemented Interfaces:
CompleteQueryResponse.CompletionResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CompleteQueryResponse.CompletionResult
public static final class CompleteQueryResponse.CompletionResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
implements CompleteQueryResponse.CompletionResultOrBuilder
Resource that represents completion results.Protobuf type
google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllFacets(Iterable<? extends SearchResponse.Facet> values) Facet information for the suggestion term.addFacets(int index, SearchResponse.Facet value) Facet information for the suggestion term.addFacets(int index, SearchResponse.Facet.Builder builderForValue) Facet information for the suggestion term.addFacets(SearchResponse.Facet value) Facet information for the suggestion term.addFacets(SearchResponse.Facet.Builder builderForValue) Facet information for the suggestion term.Facet information for the suggestion term.addFacetsBuilder(int index) Facet information for the suggestion term.build()clear()Facet information for the suggestion term.The suggestion for the query.Total number of products associated with a search with this suggestion.booleancontainsAttributes(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 termstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFacets(int index) Facet information for the suggestion term.getFacetsBuilder(int index) Facet information for the suggestion term.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.Deprecated.The suggestion for the query.com.google.protobuf.ByteStringThe suggestion for the query.intTotal number of products associated with a search with this suggestion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllAttributes(Map<String, CustomAttribute> values) Custom attributes for the suggestion termputAttributes(String key, CustomAttribute value) Custom attributes for the suggestion termCustom attributes for the suggestion termremoveAttributes(String key) Custom attributes for the suggestion termremoveFacets(int index) Facet information for the suggestion term.setFacets(int index, SearchResponse.Facet value) Facet information for the suggestion term.setFacets(int index, SearchResponse.Facet.Builder builderForValue) Facet information for the suggestion term.setSuggestion(String value) The suggestion for the query.setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.setTotalProductCount(int value) Total number of products associated with a search with this suggestion.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
mergeFrom
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(CompleteQueryResponse.CompletionResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
mergeFrom
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>- Throws:
IOException
-
getSuggestion
The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionin interfaceCompleteQueryResponse.CompletionResultOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceCompleteQueryResponse.CompletionResultOrBuilder- Returns:
- The bytes for suggestion.
-
setSuggestion
The suggestion for the query.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
The suggestion for the query.
string suggestion = 1;- Returns:
- This builder for chaining.
-
setSuggestionBytes
public CompleteQueryResponse.CompletionResult.Builder setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.
string suggestion = 1;- Parameters:
value- The bytes for suggestion to set.- Returns:
- This builder for chaining.
-
getAttributesCount
public int getAttributesCount()Description copied from interface:CompleteQueryResponse.CompletionResultOrBuilderCustom 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;- Specified by:
getAttributesCountin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
containsAttributesin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
getAttributesMapin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
getAttributesOrDefaultin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
getAttributesOrThrowin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
clearAttributes
-
removeAttributes
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; -
getMutableAttributes
Deprecated.Use alternate mutation accessors instead. -
putAttributes
public CompleteQueryResponse.CompletionResult.Builder putAttributes(String key, CustomAttribute value) 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; -
putAllAttributes
public CompleteQueryResponse.CompletionResult.Builder putAllAttributes(Map<String, CustomAttribute> values) 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; -
putAttributesBuilderIfAbsent
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
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;- Specified by:
getFacetsListin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getFacetsCount
public 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;- Specified by:
getFacetsCountin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
getFacetsin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
setFacets
public CompleteQueryResponse.CompletionResult.Builder setFacets(int index, SearchResponse.Facet value) 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; -
setFacets
public CompleteQueryResponse.CompletionResult.Builder setFacets(int index, SearchResponse.Facet.Builder builderForValue) 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; -
addFacets
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; -
addFacets
public CompleteQueryResponse.CompletionResult.Builder addFacets(int index, SearchResponse.Facet value) 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; -
addFacets
public CompleteQueryResponse.CompletionResult.Builder addFacets(SearchResponse.Facet.Builder builderForValue) 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; -
addFacets
public CompleteQueryResponse.CompletionResult.Builder addFacets(int index, SearchResponse.Facet.Builder builderForValue) 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; -
addAllFacets
public CompleteQueryResponse.CompletionResult.Builder addAllFacets(Iterable<? extends SearchResponse.Facet> values) 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; -
clearFacets
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; -
removeFacets
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; -
getFacetsBuilder
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;- Specified by:
getFacetsOrBuilderin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
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;- Specified by:
getFacetsOrBuilderListin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
addFacetsBuilder
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; -
addFacetsBuilder
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; -
getFacetsBuilderList
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
public 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;- Specified by:
getTotalProductCountin interfaceCompleteQueryResponse.CompletionResultOrBuilder- Returns:
- The totalProductCount.
-
setTotalProductCount
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;- Parameters:
value- The totalProductCount to set.- Returns:
- This builder for chaining.
-
clearTotalProductCount
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:
- This builder for chaining.
-