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 type
google.cloud.retail.v2.CompleteQueryResponse.CompletionResultgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CompleteQueryResponse.CompletionResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse.CompletionResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse.CompletionResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder mergeFrom(CompleteQueryResponse.CompletionResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public CompleteQueryResponse.CompletionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.CompletionResult.Builder>IOExceptionpublic String getSuggestion()
The suggestion for the query.
string suggestion = 1;getSuggestion in interface CompleteQueryResponse.CompletionResultOrBuilderpublic com.google.protobuf.ByteString getSuggestionBytes()
The suggestion for the query.
string suggestion = 1;getSuggestionBytes in interface CompleteQueryResponse.CompletionResultOrBuilderpublic CompleteQueryResponse.CompletionResult.Builder setSuggestion(String value)
The suggestion for the query.
string suggestion = 1;value - The suggestion to set.public CompleteQueryResponse.CompletionResult.Builder clearSuggestion()
The suggestion for the query.
string suggestion = 1;public CompleteQueryResponse.CompletionResult.Builder setSuggestionBytes(com.google.protobuf.ByteString value)
The suggestion for the query.
string suggestion = 1;value - The bytes for suggestion to set.public int getAttributesCount()
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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;getAttributesCount in interface CompleteQueryResponse.CompletionResultOrBuilderpublic 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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;containsAttributes in interface CompleteQueryResponse.CompletionResultOrBuilder@Deprecated public Map<String,CustomAttribute> getAttributes()
getAttributesMap() instead.getAttributes in interface CompleteQueryResponse.CompletionResultOrBuilderpublic 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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;getAttributesMap in interface CompleteQueryResponse.CompletionResultOrBuilderpublic 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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;getAttributesOrDefault in interface CompleteQueryResponse.CompletionResultOrBuilderpublic 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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;getAttributesOrThrow in interface CompleteQueryResponse.CompletionResultOrBuilderpublic CompleteQueryResponse.CompletionResult.Builder clearAttributes()
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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;@Deprecated public Map<String,CustomAttribute> getMutableAttributes()
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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;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.v2.UserEvent.product_details] is imported properly.
map<string, .google.cloud.retail.v2.CustomAttribute> attributes = 2;public final CompleteQueryResponse.CompletionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>public final CompleteQueryResponse.CompletionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder>Copyright © 2023 Google LLC. All rights reserved.