public static final class ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder extends GeneratedMessage.Builder<ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder> 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer build()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
buildPartial()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer buildPartial()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
clear()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder clear()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
clearProductAttributeValue()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder clearProductAttributeValue()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 |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
getDefaultInstanceForType()
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getProductAttributeValueBuilder()
public ProductAttributeValue.Builder getProductAttributeValueBuilder()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.Builder |
|
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 |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer other)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder mergeFrom(ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer other)| Parameter | |
|---|---|
| Name | Description |
other |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
mergeProductAttributeValue(ProductAttributeValue value)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder mergeProductAttributeValue(ProductAttributeValue value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributeValue |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
setProductAttributeValue(ProductAttributeValue value)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder setProductAttributeValue(ProductAttributeValue value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributeValue |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|
setProductAttributeValue(ProductAttributeValue.Builder builderForValue)
public ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder setProductAttributeValue(ProductAttributeValue.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProductAttributeValue.Builder |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.Builder |
|