Package com.google.cloud.retail.v2alpha
Class ConversationalSearchResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.ConversationalSearchResponse
- All Implemented Interfaces:
ConversationalSearchResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ConversationalSearchResponse
extends com.google.protobuf.GeneratedMessage
implements ConversationalSearchResponseOrBuilder
Response message for [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2alpha.ConversationalSearchService.ConversationalSearch] method.Protobuf type
google.cloud.retail.v2alpha.ConversationalSearchResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResponse message for [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2alpha.ConversationalSearchService.ConversationalSearch] method.static final classThis field specifies all related information that is needed on client side for UI rendering of conversational filtering search.static interfacestatic final classThe conversational followup question generated for Intent refinement.static interfacestatic final classThe proposed refined search for intent-refinement/bundled shopping conversation.static interfacestatic enumThe state of the response generation.Nested 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 intstatic final intstatic final intstatic final intstatic 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 TypeMethodDescriptionbooleanThis field specifies all related information that is needed on client side for UI rendering of conversational filtering search.This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.The conversational answer-based text response generated by the Server.com.google.protobuf.ByteStringThe conversational answer-based text response generated by the Server.Conversation UUID.com.google.protobuf.ByteStringConversation UUID.static ConversationalSearchResponsestatic final com.google.protobuf.Descriptors.DescriptorThe conversational followup question generated for Intent refinement.The conversational followup question generated for Intent refinement.com.google.protobuf.Parser<ConversationalSearchResponse>getRefinedSearch(int index) The proposed refined search queries.intThe proposed refined search queries.The proposed refined search queries.getRefinedSearchOrBuilder(int index) The proposed refined search queries.The proposed refined search queries.intgetState()Output only.intOutput only.getUserQueryTypes(int index) The types Retail classifies the search query as.com.google.protobuf.ByteStringgetUserQueryTypesBytes(int index) The types Retail classifies the search query as.intThe types Retail classifies the search query as.com.google.protobuf.ProtocolStringListThe types Retail classifies the search query as.booleanThis field specifies all related information that is needed on client side for UI rendering of conversational filtering search.booleanThe conversational followup question generated for Intent refinement.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ConversationalSearchResponse prototype) protected ConversationalSearchResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ConversationalSearchResponseparseDelimitedFrom(InputStream input) static ConversationalSearchResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConversationalSearchResponseparseFrom(byte[] data) static ConversationalSearchResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConversationalSearchResponseparseFrom(com.google.protobuf.ByteString data) static ConversationalSearchResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConversationalSearchResponseparseFrom(com.google.protobuf.CodedInputStream input) static ConversationalSearchResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConversationalSearchResponseparseFrom(InputStream input) static ConversationalSearchResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConversationalSearchResponseparseFrom(ByteBuffer data) static ConversationalSearchResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConversationalSearchResponse>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
-
USER_QUERY_TYPES_FIELD_NUMBER
public static final int USER_QUERY_TYPES_FIELD_NUMBER- See Also:
-
CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER
public static final int CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER- See Also:
-
FOLLOWUP_QUESTION_FIELD_NUMBER
public static final int FOLLOWUP_QUESTION_FIELD_NUMBER- See Also:
-
CONVERSATION_ID_FIELD_NUMBER
public static final int CONVERSATION_ID_FIELD_NUMBER- See Also:
-
REFINED_SEARCH_FIELD_NUMBER
public static final int REFINED_SEARCH_FIELD_NUMBER- See Also:
-
CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER
public static final int CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_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
-
getUserQueryTypesList
public com.google.protobuf.ProtocolStringList getUserQueryTypesList()The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesListin interfaceConversationalSearchResponseOrBuilder- Returns:
- A list containing the userQueryTypes.
-
getUserQueryTypesCount
public int getUserQueryTypesCount()The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesCountin interfaceConversationalSearchResponseOrBuilder- Returns:
- The count of userQueryTypes.
-
getUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesin interfaceConversationalSearchResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The userQueryTypes at the given index.
-
getUserQueryTypesBytes
public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesBytesin interfaceConversationalSearchResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the userQueryTypes at the given index.
-
getConversationalTextResponse
The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Specified by:
getConversationalTextResponsein interfaceConversationalSearchResponseOrBuilder- Returns:
- The conversationalTextResponse.
-
getConversationalTextResponseBytes
public com.google.protobuf.ByteString getConversationalTextResponseBytes()The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Specified by:
getConversationalTextResponseBytesin interfaceConversationalSearchResponseOrBuilder- Returns:
- The bytes for conversationalTextResponse.
-
hasFollowupQuestion
public boolean hasFollowupQuestion()The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
hasFollowupQuestionin interfaceConversationalSearchResponseOrBuilder- Returns:
- Whether the followupQuestion field is set.
-
getFollowupQuestion
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
getFollowupQuestionin interfaceConversationalSearchResponseOrBuilder- Returns:
- The followupQuestion.
-
getFollowupQuestionOrBuilder
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
getFollowupQuestionOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
getConversationId
Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Specified by:
getConversationIdin interfaceConversationalSearchResponseOrBuilder- Returns:
- The conversationId.
-
getConversationIdBytes
public com.google.protobuf.ByteString getConversationIdBytes()Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Specified by:
getConversationIdBytesin interfaceConversationalSearchResponseOrBuilder- Returns:
- The bytes for conversationId.
-
getRefinedSearchList
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchListin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearchOrBuilderList
public List<? extends ConversationalSearchResponse.RefinedSearchOrBuilder> getRefinedSearchOrBuilderList()The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchOrBuilderListin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearchCount
public int getRefinedSearchCount()The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchCountin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearch
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearchOrBuilder
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
hasConversationalFilteringResult
public boolean hasConversationalFilteringResult()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
hasConversationalFilteringResultin interfaceConversationalSearchResponseOrBuilder- Returns:
- Whether the conversationalFilteringResult field is set.
-
getConversationalFilteringResult
public ConversationalSearchResponse.ConversationalFilteringResult getConversationalFilteringResult()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
getConversationalFilteringResultin interfaceConversationalSearchResponseOrBuilder- Returns:
- The conversationalFilteringResult.
-
getConversationalFilteringResultOrBuilder
public ConversationalSearchResponse.ConversationalFilteringResultOrBuilder getConversationalFilteringResultOrBuilder()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
getConversationalFilteringResultOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
getStateValue
public int getStateValue()Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceConversationalSearchResponseOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceConversationalSearchResponseOrBuilder- Returns:
- The state.
-
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 ConversationalSearchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationalSearchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConversationalSearchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ConversationalSearchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationalSearchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationalSearchResponse 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 ConversationalSearchResponse.Builder newBuilder(ConversationalSearchResponse prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConversationalSearchResponse.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
-