public static final class SearchRequest.ConversationalSearchSpec extends com.google.protobuf.GeneratedMessageV3 implements SearchRequest.ConversationalSearchSpecOrBuilder
This field specifies all conversational related parameters addition to traditional retail search.Protobuf type
google.cloud.retail.v2.SearchRequest.ConversationalSearchSpec| Modifier and Type | Class and Description |
|---|---|
static class |
SearchRequest.ConversationalSearchSpec.Builder
This field specifies all conversational related parameters addition to
traditional retail search.
|
static class |
SearchRequest.ConversationalSearchSpec.UserAnswer
This field specifies the current user answer during the conversational
search.
|
static interface |
SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONVERSATION_ID_FIELD_NUMBER |
static int |
FOLLOWUP_CONVERSATION_REQUESTED_FIELD_NUMBER |
static int |
USER_ANSWER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getConversationId()
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side.
|
com.google.protobuf.ByteString |
getConversationIdBytes()
This field specifies the conversation id, which maintains the state of
the conversation between client side and server side.
|
static SearchRequest.ConversationalSearchSpec |
getDefaultInstance() |
SearchRequest.ConversationalSearchSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getFollowupConversationRequested()
This field specifies whether the customer would like to do conversational
search.
|
com.google.protobuf.Parser<SearchRequest.ConversationalSearchSpec> |
getParserForType() |
int |
getSerializedSize() |
SearchRequest.ConversationalSearchSpec.UserAnswer |
getUserAnswer()
This field specifies the current user answer during the conversational
search.
|
SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder |
getUserAnswerOrBuilder()
This field specifies the current user answer during the conversational
search.
|
int |
hashCode() |
boolean |
hasUserAnswer()
This field specifies the current user answer during the conversational
search.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchRequest.ConversationalSearchSpec.Builder |
newBuilder() |
static SearchRequest.ConversationalSearchSpec.Builder |
newBuilder(SearchRequest.ConversationalSearchSpec prototype) |
SearchRequest.ConversationalSearchSpec.Builder |
newBuilderForType() |
protected SearchRequest.ConversationalSearchSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchRequest.ConversationalSearchSpec |
parseDelimitedFrom(InputStream input) |
static SearchRequest.ConversationalSearchSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(byte[] data) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(ByteBuffer data) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(com.google.protobuf.ByteString data) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(InputStream input) |
static SearchRequest.ConversationalSearchSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchRequest.ConversationalSearchSpec> |
parser() |
SearchRequest.ConversationalSearchSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FOLLOWUP_CONVERSATION_REQUESTED_FIELD_NUMBER
public static final int CONVERSATION_ID_FIELD_NUMBER
public static final int USER_ANSWER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getFollowupConversationRequested in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic 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;getConversationId in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic 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;getConversationIdBytes in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic 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.v2.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
hasUserAnswer in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic 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.v2.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
getUserAnswer in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic 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.v2.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;
getUserAnswerOrBuilder in interface SearchRequest.ConversationalSearchSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchRequest.ConversationalSearchSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.ConversationalSearchSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.ConversationalSearchSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchRequest.ConversationalSearchSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchRequest.ConversationalSearchSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchRequest.ConversationalSearchSpec.Builder newBuilder()
public static SearchRequest.ConversationalSearchSpec.Builder newBuilder(SearchRequest.ConversationalSearchSpec prototype)
public SearchRequest.ConversationalSearchSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchRequest.ConversationalSearchSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchRequest.ConversationalSearchSpec getDefaultInstance()
public static com.google.protobuf.Parser<SearchRequest.ConversationalSearchSpec> parser()
public com.google.protobuf.Parser<SearchRequest.ConversationalSearchSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchRequest.ConversationalSearchSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.