public static final class ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer extends GeneratedMessage implements ConversationalSearchResponse.FollowupQuestion.SuggestedAnswerOrBuilderSuggested answers to the follow-up question. If it's numerical attribute, only ProductAttributeInterval will be set. If it's textual attribute, only productAttributeValue will be set.
Protobuf type
google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ConversationalSearchResponse.FollowupQuestion.SuggestedAnswerStatic Fields
PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER
public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
newBuilder(ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer prototype)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder newBuilder(ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
parseDelimitedFrom(InputStream input)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer> parser()| Returns | |
|---|---|
| Type | Description |
Parser<SuggestedAnswer> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
getParserForType()
public Parser<ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SuggestedAnswer> |
|
getProductAttributeValue()
public ProductAttributeValue getProductAttributeValue()Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributeValue |
The productAttributeValue. |
getProductAttributeValueOrBuilder()
public ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder()Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributeValueOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasProductAttributeValue()
public boolean hasProductAttributeValue()Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the productAttributeValue field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
toBuilder()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|