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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder> implements CompleteQueryResponse.CompletionResultOrBuilder
Resource that represents completion results.
Protobuf typegoogle.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
getDefaultInstanceForType
public CompleteQueryResponse.CompletionResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CompleteQueryResponse.CompletionResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CompleteQueryResponse.CompletionResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CompleteQueryResponse.CompletionResult.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
setField
public CompleteQueryResponse.CompletionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
clearField
public CompleteQueryResponse.CompletionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
clearOneof
public CompleteQueryResponse.CompletionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
setRepeatedField
public CompleteQueryResponse.CompletionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
addRepeatedField
public CompleteQueryResponse.CompletionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
mergeFrom
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
public String 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
public CompleteQueryResponse.CompletionResult.Builder setSuggestion(String value)
The suggestion for the query.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
public CompleteQueryResponse.CompletionResult.Builder 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
public boolean containsAttributes(String key)
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 public Map<String,CustomAttribute> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getAttributesMap
public 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;- Specified by:
getAttributesMapin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getAttributesOrDefault
public CustomAttribute getAttributesOrDefault(String key, CustomAttribute defaultValue)
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
public CustomAttribute getAttributesOrThrow(String key)
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
public CompleteQueryResponse.CompletionResult.Builder clearAttributes()
-
removeAttributes
public CompleteQueryResponse.CompletionResult.Builder removeAttributes(String key)
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 public Map<String,CustomAttribute> 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;
-
getFacetsList
public 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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;- Specified by:
getFacetsCountin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getFacets
public SearchResponse.Facet getFacets(int index)
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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
addFacets
public CompleteQueryResponse.CompletionResult.Builder addFacets(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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
clearFacets
public CompleteQueryResponse.CompletionResult.Builder 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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
removeFacets
public CompleteQueryResponse.CompletionResult.Builder removeFacets(int index)
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
getFacetsBuilder
public SearchResponse.Facet.Builder getFacetsBuilder(int index)
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
getFacetsOrBuilder
public SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;- Specified by:
getFacetsOrBuilderin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
getFacetsOrBuilderList
public 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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;- Specified by:
getFacetsOrBuilderListin interfaceCompleteQueryResponse.CompletionResultOrBuilder
-
addFacetsBuilder
public SearchResponse.Facet.Builder 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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
addFacetsBuilder
public SearchResponse.Facet.Builder addFacetsBuilder(int index)
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. Please reach out to the support team if you would like to receive this information.
repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3;
-
getFacetsBuilderList
public List<SearchResponse.Facet.Builder> 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. Please reach out to the support team if you would like to receive this information.
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. Please reach out to the support team if you would like to receive this information.
int32 total_product_count = 4;- Specified by:
getTotalProductCountin interfaceCompleteQueryResponse.CompletionResultOrBuilder- Returns:
- The totalProductCount.
-
setTotalProductCount
public CompleteQueryResponse.CompletionResult.Builder setTotalProductCount(int value)
Total number of products associated with a search with this suggestion. This is an experimental feature for limited customers. Please reach out to the support team if you would like to receive this information.
int32 total_product_count = 4;- Parameters:
value- The totalProductCount to set.- Returns:
- This builder for chaining.
-
clearTotalProductCount
public CompleteQueryResponse.CompletionResult.Builder clearTotalProductCount()
Total number of products associated with a search with this suggestion. This is an experimental feature for limited customers. Please reach out to the support team if you would like to receive this information.
int32 total_product_count = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CompleteQueryResponse.CompletionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
mergeUnknownFields
public final CompleteQueryResponse.CompletionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>
-
-