Package com.google.cloud.dialogflow.v2
Class SuggestionResult
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.SuggestionResult
- All Implemented Interfaces:
SuggestionResultOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SuggestionResult
extends com.google.protobuf.GeneratedMessage
implements SuggestionResultOrBuilder
One response of different type of suggestion response which is used in the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].Protobuf type
google.cloud.dialogflow.v2.SuggestionResult- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne response of different type of suggestion response which is used in the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].static 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 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 TypeMethodDescriptionbooleanstatic SuggestionResultstatic final com.google.protobuf.Descriptors.DescriptorgetError()Error status if the request failed.Error status if the request failed.Suggestions generated using generators triggered by customer or agent messages.Suggestions generated using generators triggered by customer or agent messages.com.google.protobuf.Parser<SuggestionResult>intSuggestArticlesResponse if request is for ARTICLE_SUGGESTION.SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.SuggestFaqAnswersResponse if request is for FAQ_ANSWER.SuggestFaqAnswersResponse if request is for FAQ_ANSWER.SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.SuggestSmartRepliesResponse if request is for SMART_REPLY.SuggestSmartRepliesResponse if request is for SMART_REPLY.booleanhasError()Error status if the request failed.booleanSuggestions generated using generators triggered by customer or agent messages.inthashCode()booleanSuggestArticlesResponse if request is for ARTICLE_SUGGESTION.booleanSuggestFaqAnswersResponse if request is for FAQ_ANSWER.booleanSuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.booleanSuggestSmartRepliesResponse if request is for SMART_REPLY.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SuggestionResult.Builderstatic SuggestionResult.BuildernewBuilder(SuggestionResult prototype) protected SuggestionResult.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SuggestionResultparseDelimitedFrom(InputStream input) static SuggestionResultparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SuggestionResultparseFrom(byte[] data) static SuggestionResultparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SuggestionResultparseFrom(com.google.protobuf.ByteString data) static SuggestionResultparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SuggestionResultparseFrom(com.google.protobuf.CodedInputStream input) static SuggestionResultparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SuggestionResultparseFrom(InputStream input) static SuggestionResultparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SuggestionResultparseFrom(ByteBuffer data) static SuggestionResultparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SuggestionResult>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
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER- See Also:
-
SUGGEST_KNOWLEDGE_ASSIST_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_KNOWLEDGE_ASSIST_RESPONSE_FIELD_NUMBER- See Also:
-
SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER- See Also:
-
SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER- See Also:
-
GENERATE_SUGGESTIONS_RESPONSE_FIELD_NUMBER
public static final int GENERATE_SUGGESTIONS_RESPONSE_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
-
getSuggestionResponseCase
- Specified by:
getSuggestionResponseCasein interfaceSuggestionResultOrBuilder
-
hasError
public boolean hasError()Error status if the request failed.
.google.rpc.Status error = 1;- Specified by:
hasErrorin interfaceSuggestionResultOrBuilder- Returns:
- Whether the error field is set.
-
getError
Error status if the request failed.
.google.rpc.Status error = 1;- Specified by:
getErrorin interfaceSuggestionResultOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
Error status if the request failed.
.google.rpc.Status error = 1;- Specified by:
getErrorOrBuilderin interfaceSuggestionResultOrBuilder
-
hasSuggestArticlesResponse
public boolean hasSuggestArticlesResponse()SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;- Specified by:
hasSuggestArticlesResponsein interfaceSuggestionResultOrBuilder- Returns:
- Whether the suggestArticlesResponse field is set.
-
getSuggestArticlesResponse
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;- Specified by:
getSuggestArticlesResponsein interfaceSuggestionResultOrBuilder- Returns:
- The suggestArticlesResponse.
-
getSuggestArticlesResponseOrBuilder
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;- Specified by:
getSuggestArticlesResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
hasSuggestKnowledgeAssistResponse
public boolean hasSuggestKnowledgeAssistResponse()SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;- Specified by:
hasSuggestKnowledgeAssistResponsein interfaceSuggestionResultOrBuilder- Returns:
- Whether the suggestKnowledgeAssistResponse field is set.
-
getSuggestKnowledgeAssistResponse
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;- Specified by:
getSuggestKnowledgeAssistResponsein interfaceSuggestionResultOrBuilder- Returns:
- The suggestKnowledgeAssistResponse.
-
getSuggestKnowledgeAssistResponseOrBuilder
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;- Specified by:
getSuggestKnowledgeAssistResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
hasSuggestFaqAnswersResponse
public boolean hasSuggestFaqAnswersResponse()SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;- Specified by:
hasSuggestFaqAnswersResponsein interfaceSuggestionResultOrBuilder- Returns:
- Whether the suggestFaqAnswersResponse field is set.
-
getSuggestFaqAnswersResponse
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;- Specified by:
getSuggestFaqAnswersResponsein interfaceSuggestionResultOrBuilder- Returns:
- The suggestFaqAnswersResponse.
-
getSuggestFaqAnswersResponseOrBuilder
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;- Specified by:
getSuggestFaqAnswersResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
hasSuggestSmartRepliesResponse
public boolean hasSuggestSmartRepliesResponse()SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;- Specified by:
hasSuggestSmartRepliesResponsein interfaceSuggestionResultOrBuilder- Returns:
- Whether the suggestSmartRepliesResponse field is set.
-
getSuggestSmartRepliesResponse
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;- Specified by:
getSuggestSmartRepliesResponsein interfaceSuggestionResultOrBuilder- Returns:
- The suggestSmartRepliesResponse.
-
getSuggestSmartRepliesResponseOrBuilder
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;- Specified by:
getSuggestSmartRepliesResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
hasGenerateSuggestionsResponse
public boolean hasGenerateSuggestionsResponse()Suggestions generated using generators triggered by customer or agent messages.
.google.cloud.dialogflow.v2.GenerateSuggestionsResponse generate_suggestions_response = 9;- Specified by:
hasGenerateSuggestionsResponsein interfaceSuggestionResultOrBuilder- Returns:
- Whether the generateSuggestionsResponse field is set.
-
getGenerateSuggestionsResponse
Suggestions generated using generators triggered by customer or agent messages.
.google.cloud.dialogflow.v2.GenerateSuggestionsResponse generate_suggestions_response = 9;- Specified by:
getGenerateSuggestionsResponsein interfaceSuggestionResultOrBuilder- Returns:
- The generateSuggestionsResponse.
-
getGenerateSuggestionsResponseOrBuilder
Suggestions generated using generators triggered by customer or agent messages.
.google.cloud.dialogflow.v2.GenerateSuggestionsResponse generate_suggestions_response = 9;- Specified by:
getGenerateSuggestionsResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
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 SuggestionResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SuggestionResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SuggestionResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SuggestionResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SuggestionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SuggestionResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SuggestionResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SuggestionResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SuggestionResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SuggestionResult 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SuggestionResult.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
-