Package com.google.cloud.retail.v2alpha
Class ConversationalSearchRequest.UserAnswer
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.ConversationalSearchRequest.UserAnswer
- All Implemented Interfaces:
ConversationalSearchRequest.UserAnswerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ConversationalSearchRequest
public static final class ConversationalSearchRequest.UserAnswer
extends com.google.protobuf.GeneratedMessage
implements ConversationalSearchRequest.UserAnswerOrBuilder
This field specifies the current user answer during the conversational filtering search. This can be either user selected from suggested answers or user input plain text.Protobuf type
google.cloud.retail.v2alpha.ConversationalSearchRequest.UserAnswer- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis field specifies the current user answer during the conversational filtering search.static final classThis field specifies the selected answers during the conversational search.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ConversationalSearchRequest.UserAnswer>Optional.Optional.intThis 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.inthashCode()booleanOptional.booleanThis field specifies the incremental input text from the user during the conversational search.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ConversationalSearchRequest.UserAnswer prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConversationalSearchRequest.UserAnswer>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TEXT_ANSWER_FIELD_NUMBER
public static final int TEXT_ANSWER_FIELD_NUMBER- See Also:
-
SELECTED_ANSWER_FIELD_NUMBER
public static final int SELECTED_ANSWER_FIELD_NUMBER- See Also:
-
-
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
-
getTypeCase
- Specified by:
getTypeCasein interfaceConversationalSearchRequest.UserAnswerOrBuilder
-
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 interfaceConversationalSearchRequest.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 interfaceConversationalSearchRequest.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 interfaceConversationalSearchRequest.UserAnswerOrBuilder- Returns:
- The bytes for textAnswer.
-
hasSelectedAnswer
public boolean hasSelectedAnswer()Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2alpha.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSelectedAnswerin interfaceConversationalSearchRequest.UserAnswerOrBuilder- Returns:
- Whether the selectedAnswer field is set.
-
getSelectedAnswer
Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2alpha.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedAnswerin interfaceConversationalSearchRequest.UserAnswerOrBuilder- Returns:
- The selectedAnswer.
-
getSelectedAnswerOrBuilder
Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2alpha.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSelectedAnswerOrBuilderin interfaceConversationalSearchRequest.UserAnswerOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConversationalSearchRequest.UserAnswer parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConversationalSearchRequest.UserAnswer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationalSearchRequest.UserAnswer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static ConversationalSearchRequest.UserAnswer.Builder newBuilder(ConversationalSearchRequest.UserAnswer prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConversationalSearchRequest.UserAnswer.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-