public static final class SearchRequest.ConversationalSearchSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.ConversationalSearchSpec.Builder> implements SearchRequest.ConversationalSearchSpecOrBuilder
This field specifies all conversational related parameters addition to
traditional retail search.
Protobuf type google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.ConversationalSearchSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchRequest.ConversationalSearchSpec build()
buildPartial()
public SearchRequest.ConversationalSearchSpec buildPartial()
clear()
public SearchRequest.ConversationalSearchSpec.Builder clear()
Overrides
clearConversationId()
public SearchRequest.ConversationalSearchSpec.Builder clearConversationId()
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side. Use the value from
the previous [ConversationalSearchResult.conversation_id][]. For the
initial request, this should be empty.
string conversation_id = 2;
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.ConversationalSearchSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFollowupConversationRequested()
public SearchRequest.ConversationalSearchSpec.Builder clearFollowupConversationRequested()
This field specifies whether the customer would like to do conversational
search. If this field is set to true, conversational related extra
information will be returned from server side, including follow-up
question, answer options, etc.
bool followup_conversation_requested = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.ConversationalSearchSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUserAnswer()
public SearchRequest.ConversationalSearchSpec.Builder clearUserAnswer()
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
clone()
public SearchRequest.ConversationalSearchSpec.Builder clone()
Overrides
getConversationId()
public String getConversationId()
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side. Use the value from
the previous [ConversationalSearchResult.conversation_id][]. For the
initial request, this should be empty.
string conversation_id = 2;
Returns |
Type |
Description |
String |
The conversationId.
|
getConversationIdBytes()
public ByteString getConversationIdBytes()
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side. Use the value from
the previous [ConversationalSearchResult.conversation_id][]. For the
initial request, this should be empty.
string conversation_id = 2;
Returns |
Type |
Description |
ByteString |
The bytes for conversationId.
|
getDefaultInstanceForType()
public SearchRequest.ConversationalSearchSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFollowupConversationRequested()
public boolean getFollowupConversationRequested()
This field specifies whether the customer would like to do conversational
search. If this field is set to true, conversational related extra
information will be returned from server side, including follow-up
question, answer options, etc.
bool followup_conversation_requested = 1;
Returns |
Type |
Description |
boolean |
The followupConversationRequested.
|
getUserAnswer()
public SearchRequest.ConversationalSearchSpec.UserAnswer getUserAnswer()
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
getUserAnswerBuilder()
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder getUserAnswerBuilder()
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
getUserAnswerOrBuilder()
public SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder getUserAnswerOrBuilder()
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
hasUserAnswer()
public boolean hasUserAnswer()
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
Returns |
Type |
Description |
boolean |
Whether the userAnswer field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchRequest.ConversationalSearchSpec other)
public SearchRequest.ConversationalSearchSpec.Builder mergeFrom(SearchRequest.ConversationalSearchSpec other)
public SearchRequest.ConversationalSearchSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchRequest.ConversationalSearchSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ConversationalSearchSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer value)
public SearchRequest.ConversationalSearchSpec.Builder mergeUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer value)
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
setConversationId(String value)
public SearchRequest.ConversationalSearchSpec.Builder setConversationId(String value)
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side. Use the value from
the previous [ConversationalSearchResult.conversation_id][]. For the
initial request, this should be empty.
string conversation_id = 2;
Parameter |
Name |
Description |
value |
String
The conversationId to set.
|
setConversationIdBytes(ByteString value)
public SearchRequest.ConversationalSearchSpec.Builder setConversationIdBytes(ByteString value)
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side. Use the value from
the previous [ConversationalSearchResult.conversation_id][]. For the
initial request, this should be empty.
string conversation_id = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for conversationId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.ConversationalSearchSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFollowupConversationRequested(boolean value)
public SearchRequest.ConversationalSearchSpec.Builder setFollowupConversationRequested(boolean value)
This field specifies whether the customer would like to do conversational
search. If this field is set to true, conversational related extra
information will be returned from server side, including follow-up
question, answer options, etc.
bool followup_conversation_requested = 1;
Parameter |
Name |
Description |
value |
boolean
The followupConversationRequested to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.ConversationalSearchSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ConversationalSearchSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer value)
public SearchRequest.ConversationalSearchSpec.Builder setUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer value)
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
setUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.Builder builderForValue)
public SearchRequest.ConversationalSearchSpec.Builder setUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.Builder builderForValue)
This field specifies the current user answer during the conversational
search. This can be either user selected from suggested answers or user
input plain text.
.google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;