Package com.google.cloud.retail.v2alpha
Class SearchRequest.ConversationalSearchSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
com.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.Builder
- All Implemented Interfaces:
SearchRequest.ConversationalSearchSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchRequest.ConversationalSearchSpec
public static final class SearchRequest.ConversationalSearchSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
implements SearchRequest.ConversationalSearchSpecOrBuilder
This field specifies all conversational related parameters addition to traditional retail search.Protobuf type
google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()This field specifies the conversation id, which maintains the state of the conversation between client side and server side.This field specifies whether the customer would like to do conversational search.This field specifies the current user answer during the conversational search.This field specifies the conversation id, which maintains the state of the conversation between client side and server side.com.google.protobuf.ByteStringThis field specifies the conversation id, which maintains the state of the conversation between client side and server side.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanThis field specifies whether the customer would like to do conversational search.This field specifies the current user answer during the conversational search.This field specifies the current user answer during the conversational search.This field specifies the current user answer during the conversational search.booleanThis field specifies the current user answer during the conversational search.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) This field specifies the current user answer during the conversational search.setConversationId(String value) This field specifies the conversation id, which maintains the state of the conversation between client side and server side.setConversationIdBytes(com.google.protobuf.ByteString value) This field specifies the conversation id, which maintains the state of the conversation between client side and server side.setFollowupConversationRequested(boolean value) This field specifies whether the customer would like to do conversational search.This field specifies the current user answer during the conversational search.setUserAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.Builder builderForValue) This field specifies the current user answer during the conversational search.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
-
mergeFrom
public SearchRequest.ConversationalSearchSpec.Builder mergeFrom(SearchRequest.ConversationalSearchSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>
-
mergeFrom
public SearchRequest.ConversationalSearchSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchRequest.ConversationalSearchSpec.Builder>- Throws:
IOException
-
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;- Specified by:
getFollowupConversationRequestedin interfaceSearchRequest.ConversationalSearchSpecOrBuilder- Returns:
- The followupConversationRequested.
-
setFollowupConversationRequested
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;- Parameters:
value- The followupConversationRequested to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getConversationIdin interfaceSearchRequest.ConversationalSearchSpecOrBuilder- Returns:
- The conversationId.
-
getConversationIdBytes
public com.google.protobuf.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;- Specified by:
getConversationIdBytesin interfaceSearchRequest.ConversationalSearchSpecOrBuilder- Returns:
- The bytes for conversationId.
-
setConversationId
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;- Parameters:
value- The conversationId to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setConversationIdBytes
public SearchRequest.ConversationalSearchSpec.Builder setConversationIdBytes(com.google.protobuf.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;- Parameters:
value- The bytes for conversationId to set.- Returns:
- This builder for chaining.
-
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;- Specified by:
hasUserAnswerin interfaceSearchRequest.ConversationalSearchSpecOrBuilder- Returns:
- Whether the userAnswer field is set.
-
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;- Specified by:
getUserAnswerin interfaceSearchRequest.ConversationalSearchSpecOrBuilder- Returns:
- The userAnswer.
-
setUserAnswer
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3; -
setUserAnswer
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3; -
mergeUserAnswer
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3; -
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3; -
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3; -
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.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;- Specified by:
getUserAnswerOrBuilderin interfaceSearchRequest.ConversationalSearchSpecOrBuilder
-