Package com.google.cloud.retail.v2alpha
Class CompleteQueryResponse.AttributeResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.AttributeResult.Builder>
com.google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult.Builder
- All Implemented Interfaces:
CompleteQueryResponse.AttributeResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CompleteQueryResponse.AttributeResult
public static final class CompleteQueryResponse.AttributeResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.AttributeResult.Builder>
implements CompleteQueryResponse.AttributeResultOrBuilder
Resource that represents attribute results.Protobuf type
google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllSuggestions(Iterable<String> values) The list of suggestions for the attribute.addSuggestions(String value) The list of suggestions for the attribute.addSuggestionsBytes(com.google.protobuf.ByteString value) The list of suggestions for the attribute.build()clear()The list of suggestions for the attribute.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSuggestions(int index) The list of suggestions for the attribute.com.google.protobuf.ByteStringgetSuggestionsBytes(int index) The list of suggestions for the attribute.intThe list of suggestions for the attribute.com.google.protobuf.ProtocolStringListThe list of suggestions for the attribute.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setSuggestions(int index, String value) The list of suggestions for the attribute.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.AttributeResult.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.AttributeResult.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.AttributeResult.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.AttributeResult.Builder>
-
mergeFrom
public CompleteQueryResponse.AttributeResult.Builder mergeFrom(CompleteQueryResponse.AttributeResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.AttributeResult.Builder>
-
mergeFrom
public CompleteQueryResponse.AttributeResult.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.AttributeResult.Builder>- Throws:
IOException
-
getSuggestionsList
public com.google.protobuf.ProtocolStringList getSuggestionsList()The list of suggestions for the attribute.
repeated string suggestions = 1;- Specified by:
getSuggestionsListin interfaceCompleteQueryResponse.AttributeResultOrBuilder- Returns:
- A list containing the suggestions.
-
getSuggestionsCount
public int getSuggestionsCount()The list of suggestions for the attribute.
repeated string suggestions = 1;- Specified by:
getSuggestionsCountin interfaceCompleteQueryResponse.AttributeResultOrBuilder- Returns:
- The count of suggestions.
-
getSuggestions
The list of suggestions for the attribute.
repeated string suggestions = 1;- Specified by:
getSuggestionsin interfaceCompleteQueryResponse.AttributeResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The suggestions at the given index.
-
getSuggestionsBytes
public com.google.protobuf.ByteString getSuggestionsBytes(int index) The list of suggestions for the attribute.
repeated string suggestions = 1;- Specified by:
getSuggestionsBytesin interfaceCompleteQueryResponse.AttributeResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the suggestions at the given index.
-
setSuggestions
The list of suggestions for the attribute.
repeated string suggestions = 1;- Parameters:
index- The index to set the value at.value- The suggestions to set.- Returns:
- This builder for chaining.
-
addSuggestions
The list of suggestions for the attribute.
repeated string suggestions = 1;- Parameters:
value- The suggestions to add.- Returns:
- This builder for chaining.
-
addAllSuggestions
The list of suggestions for the attribute.
repeated string suggestions = 1;- Parameters:
values- The suggestions to add.- Returns:
- This builder for chaining.
-
clearSuggestions
The list of suggestions for the attribute.
repeated string suggestions = 1;- Returns:
- This builder for chaining.
-
addSuggestionsBytes
public CompleteQueryResponse.AttributeResult.Builder addSuggestionsBytes(com.google.protobuf.ByteString value) The list of suggestions for the attribute.
repeated string suggestions = 1;- Parameters:
value- The bytes of the suggestions to add.- Returns:
- This builder for chaining.
-