Class CompleteQueryResponse.AttributeResult.Builder (2.29.0)

public static final class CompleteQueryResponse.AttributeResult.Builder extends GeneratedMessageV3.Builder<CompleteQueryResponse.AttributeResult.Builder> implements CompleteQueryResponse.AttributeResultOrBuilder

Resource that represents attribute results.

Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSuggestions(Iterable<String> values)

public CompleteQueryResponse.AttributeResult.Builder addAllSuggestions(Iterable<String> values)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
valuesIterable<String>

The suggestions to add.

Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CompleteQueryResponse.AttributeResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

addSuggestions(String value)

public CompleteQueryResponse.AttributeResult.Builder addSuggestions(String value)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
valueString

The suggestions to add.

Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

This builder for chaining.

addSuggestionsBytes(ByteString value)

public CompleteQueryResponse.AttributeResult.Builder addSuggestionsBytes(ByteString value)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
valueByteString

The bytes of the suggestions to add.

Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

This builder for chaining.

build()

public CompleteQueryResponse.AttributeResult build()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult

buildPartial()

public CompleteQueryResponse.AttributeResult buildPartial()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult

clear()

public CompleteQueryResponse.AttributeResult.Builder clear()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CompleteQueryResponse.AttributeResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CompleteQueryResponse.AttributeResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

clearSuggestions()

public CompleteQueryResponse.AttributeResult.Builder clearSuggestions()

The list of suggestions for the attribute.

repeated string suggestions = 1;

Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

This builder for chaining.

clone()

public CompleteQueryResponse.AttributeResult.Builder clone()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

getDefaultInstanceForType()

public CompleteQueryResponse.AttributeResult getDefaultInstanceForType()
Returns
TypeDescription
CompleteQueryResponse.AttributeResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSuggestions(int index)

public String getSuggestions(int index)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The suggestions at the given index.

getSuggestionsBytes(int index)

public ByteString getSuggestionsBytes(int index)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the suggestions at the given index.

getSuggestionsCount()

public int getSuggestionsCount()

The list of suggestions for the attribute.

repeated string suggestions = 1;

Returns
TypeDescription
int

The count of suggestions.

getSuggestionsList()

public ProtocolStringList getSuggestionsList()

The list of suggestions for the attribute.

repeated string suggestions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the suggestions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CompleteQueryResponse.AttributeResult other)

public CompleteQueryResponse.AttributeResult.Builder mergeFrom(CompleteQueryResponse.AttributeResult other)
Parameter
NameDescription
otherCompleteQueryResponse.AttributeResult
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CompleteQueryResponse.AttributeResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CompleteQueryResponse.AttributeResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.AttributeResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CompleteQueryResponse.AttributeResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CompleteQueryResponse.AttributeResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides

setSuggestions(int index, String value)

public CompleteQueryResponse.AttributeResult.Builder setSuggestions(int index, String value)

The list of suggestions for the attribute.

repeated string suggestions = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The suggestions to set.

Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.AttributeResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CompleteQueryResponse.AttributeResult.Builder
Overrides