Class SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer (2.54.0)

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

This field specifies the selected answers during the conversational search.

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

Inheritance

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

Static Fields

PRODUCT_ATTRIBUTE_VALUES_FIELD_NUMBER

public static final int PRODUCT_ATTRIBUTE_VALUES_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER

public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer getDefaultInstance()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

getDescriptor()

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

newBuilder()

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder newBuilder()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

newBuilder(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer prototype)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder newBuilder(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer prototype)
Parameter
Name Description
prototype SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder

parseDelimitedFrom(InputStream input)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer> parser()
Returns
Type Description
Parser<SelectedAnswer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer> getParserForType()
Returns
Type Description
Parser<SelectedAnswer>
Overrides

getProductAttributeValue()

public ProductAttributeValue getProductAttributeValue()

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

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

Returns
Type Description
ProductAttributeValue

The productAttributeValue.

getProductAttributeValueOrBuilder()

public ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder()

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

.google.cloud.retail.v2.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.v2.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
ProductAttributeValue

getProductAttributeValuesCount() (deprecated)

public int getProductAttributeValuesCount()

This field is deprecated and should not be set.

repeated .google.cloud.retail.v2.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.v2.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.v2.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.v2.ProductAttributeValue product_attribute_values = 1 [deprecated = true];

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProductAttributeValue()

public boolean hasProductAttributeValue()

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

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

Returns
Type Description
boolean

Whether the productAttributeValue field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException