Package com.google.cloud.retail.v2alpha
Class SearchRequest.ConversationalSearchSpec.UserAnswer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.UserAnswer.Builder>
com.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.Builder
- All Implemented Interfaces:
SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchRequest.ConversationalSearchSpec.UserAnswer
public static final class SearchRequest.ConversationalSearchSpec.UserAnswer.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.UserAnswer.Builder>
implements SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder
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.Protobuf type
google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()This field specifies the selected attributes during the conversational search.This field specifies the incremental input text from the user during the conversational search.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis field specifies the selected attributes during the conversational search.This field specifies the selected attributes during the conversational search.This field specifies the selected attributes during the conversational search.This field specifies the incremental input text from the user during the conversational search.com.google.protobuf.ByteStringThis field specifies the incremental input text from the user during the conversational search.booleanThis field specifies the selected attributes during the conversational search.booleanThis field specifies the incremental input text from the user 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 selected attributes during the conversational search.This field specifies the selected attributes during the conversational search.setSelectedAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder builderForValue) This field specifies the selected attributes during the conversational search.setTextAnswer(String value) This field specifies the incremental input text from the user during the conversational search.setTextAnswerBytes(com.google.protobuf.ByteString value) This field specifies the incremental input text from the user 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.UserAnswer.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.UserAnswer.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.UserAnswer.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
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchRequest.ConversationalSearchSpec.UserAnswer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchRequest.ConversationalSearchSpec.UserAnswer.Builder>
-
mergeFrom
public SearchRequest.ConversationalSearchSpec.UserAnswer.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.UserAnswer.Builder>- Throws:
IOException
-
getTypeCase
- Specified by:
getTypeCasein interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder
-
clearType
-
hasTextAnswer
public boolean hasTextAnswer()This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Specified by:
hasTextAnswerin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder- Returns:
- Whether the textAnswer field is set.
-
getTextAnswer
This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Specified by:
getTextAnswerin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder- Returns:
- The textAnswer.
-
getTextAnswerBytes
public com.google.protobuf.ByteString getTextAnswerBytes()This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Specified by:
getTextAnswerBytesin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder- Returns:
- The bytes for textAnswer.
-
setTextAnswer
This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Parameters:
value- The textAnswer to set.- Returns:
- This builder for chaining.
-
clearTextAnswer
This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Returns:
- This builder for chaining.
-
setTextAnswerBytes
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder setTextAnswerBytes(com.google.protobuf.ByteString value) This field specifies the incremental input text from the user during the conversational search.
string text_answer = 1;- Parameters:
value- The bytes for textAnswer to set.- Returns:
- This builder for chaining.
-
hasSelectedAnswer
public boolean hasSelectedAnswer()This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;- Specified by:
hasSelectedAnswerin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder- Returns:
- Whether the selectedAnswer field is set.
-
getSelectedAnswer
This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;- Specified by:
getSelectedAnswerin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder- Returns:
- The selectedAnswer.
-
setSelectedAnswer
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder setSelectedAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer value) This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2; -
setSelectedAnswer
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder setSelectedAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder builderForValue) This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2; -
mergeSelectedAnswer
public SearchRequest.ConversationalSearchSpec.UserAnswer.Builder mergeSelectedAnswer(SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer value) This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2; -
clearSelectedAnswer
This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2; -
getSelectedAnswerBuilder
public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer.Builder getSelectedAnswerBuilder()This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2; -
getSelectedAnswerOrBuilder
public SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswerOrBuilder getSelectedAnswerOrBuilder()This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;- Specified by:
getSelectedAnswerOrBuilderin interfaceSearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder
-