Class SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder (2.54.0)

public static final class SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder extends GeneratedMessageV3.Builder<SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder> implements SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswerOrBuilder

This field specifies the selected answers during the conversational search.

Protobuf type google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProductAttributeValues(Iterable<? extends ProductAttributeValue> values) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addAllProductAttributeValues(Iterable<? extends ProductAttributeValue> values)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2beta.ProductAttributeValue>
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

addProductAttributeValues(ProductAttributeValue value) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addProductAttributeValues(ProductAttributeValue value)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
value ProductAttributeValue
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

addProductAttributeValues(ProductAttributeValue.Builder builderForValue) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addProductAttributeValues(ProductAttributeValue.Builder builderForValue)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
builderForValue ProductAttributeValue.Builder
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

addProductAttributeValues(int index, ProductAttributeValue value) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addProductAttributeValues(int index, ProductAttributeValue value)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameters
Name Description
index int
value ProductAttributeValue
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

addProductAttributeValues(int index, ProductAttributeValue.Builder builderForValue) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addProductAttributeValues(int index, ProductAttributeValue.Builder builderForValue)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameters
Name Description
index int
builderForValue ProductAttributeValue.Builder
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

addProductAttributeValuesBuilder() (deprecated)

public ProductAttributeValue.Builder addProductAttributeValuesBuilder()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
ProductAttributeValue.Builder

addProductAttributeValuesBuilder(int index) (deprecated)

public ProductAttributeValue.Builder addProductAttributeValuesBuilder(int index)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
ProductAttributeValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

build()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer build()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

buildPartial()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer buildPartial()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

clear()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clear()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

clearProductAttributeValue()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clearProductAttributeValue()

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

clearProductAttributeValues() (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clearProductAttributeValues()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

clone()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder clone()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

getDefaultInstanceForType()

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer getDefaultInstanceForType()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProductAttributeValue()

public ProductAttributeValue getProductAttributeValue()

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Returns
Type Description
ProductAttributeValue

The productAttributeValue.

getProductAttributeValueBuilder()

public ProductAttributeValue.Builder getProductAttributeValueBuilder()

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Returns
Type Description
ProductAttributeValue.Builder

getProductAttributeValueOrBuilder()

public ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder()

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Returns
Type Description
ProductAttributeValueOrBuilder

getProductAttributeValues(int index) (deprecated)

public ProductAttributeValue getProductAttributeValues(int index)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
ProductAttributeValue

getProductAttributeValuesBuilder(int index) (deprecated)

public ProductAttributeValue.Builder getProductAttributeValuesBuilder(int index)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
ProductAttributeValue.Builder

getProductAttributeValuesBuilderList() (deprecated)

public List<ProductAttributeValue.Builder> getProductAttributeValuesBuilderList()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
List<Builder>

getProductAttributeValuesCount() (deprecated)

public int getProductAttributeValuesCount()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
int

getProductAttributeValuesList() (deprecated)

public List<ProductAttributeValue> getProductAttributeValuesList()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
List<ProductAttributeValue>

getProductAttributeValuesOrBuilder(int index) (deprecated)

public ProductAttributeValueOrBuilder getProductAttributeValuesOrBuilder(int index)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
ProductAttributeValueOrBuilder

getProductAttributeValuesOrBuilderList() (deprecated)

public List<? extends ProductAttributeValueOrBuilder> getProductAttributeValuesOrBuilderList()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Returns
Type Description
List<? extends com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder>

hasProductAttributeValue()

public boolean hasProductAttributeValue()

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Returns
Type Description
boolean

Whether the productAttributeValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer other)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder mergeFrom(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer other)
Parameter
Name Description
other SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

mergeProductAttributeValue(ProductAttributeValue value)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder mergeProductAttributeValue(ProductAttributeValue value)

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Parameter
Name Description
value ProductAttributeValue
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

removeProductAttributeValues(int index) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder removeProductAttributeValues(int index)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

setProductAttributeValue(ProductAttributeValue value)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setProductAttributeValue(ProductAttributeValue value)

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Parameter
Name Description
value ProductAttributeValue
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

setProductAttributeValue(ProductAttributeValue.Builder builderForValue)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setProductAttributeValue(ProductAttributeValue.Builder builderForValue)

This field specifies the selected answer which is a attribute key-value.

.google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 2;

Parameter
Name Description
builderForValue ProductAttributeValue.Builder
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

setProductAttributeValues(int index, ProductAttributeValue value) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setProductAttributeValues(int index, ProductAttributeValue value)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameters
Name Description
index int
value ProductAttributeValue
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

setProductAttributeValues(int index, ProductAttributeValue.Builder builderForValue) (deprecated)

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setProductAttributeValues(int index, ProductAttributeValue.Builder builderForValue)

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameters
Name Description
index int
builderForValue ProductAttributeValue.Builder
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

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

public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides