Package com.google.cloud.dialogflow.v2
Class SuggestionResult
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class SuggestionResult extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.dialogflow.v2.SuggestionResult- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuggestionResult.BuilderOne 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 classSuggestionResult.SuggestionResponseCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_FIELD_NUMBERstatic intSUGGEST_ARTICLES_RESPONSE_FIELD_NUMBERstatic intSUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBERstatic intSUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static SuggestionResultgetDefaultInstance()SuggestionResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.rpc.StatusgetError()Error status if the request failed.com.google.rpc.StatusOrBuildergetErrorOrBuilder()Error status if the request failed.com.google.protobuf.Parser<SuggestionResult>getParserForType()intgetSerializedSize()SuggestArticlesResponsegetSuggestArticlesResponse()SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.SuggestArticlesResponseOrBuildergetSuggestArticlesResponseOrBuilder()SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.SuggestFaqAnswersResponsegetSuggestFaqAnswersResponse()SuggestFaqAnswersResponse if request is for FAQ_ANSWER.SuggestFaqAnswersResponseOrBuildergetSuggestFaqAnswersResponseOrBuilder()SuggestFaqAnswersResponse if request is for FAQ_ANSWER.SuggestionResult.SuggestionResponseCasegetSuggestionResponseCase()SuggestSmartRepliesResponsegetSuggestSmartRepliesResponse()SuggestSmartRepliesResponse if request is for SMART_REPLY.SuggestSmartRepliesResponseOrBuildergetSuggestSmartRepliesResponseOrBuilder()SuggestSmartRepliesResponse if request is for SMART_REPLY.booleanhasError()Error status if the request failed.inthashCode()booleanhasSuggestArticlesResponse()SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.booleanhasSuggestFaqAnswersResponse()SuggestFaqAnswersResponse if request is for FAQ_ANSWER.booleanhasSuggestSmartRepliesResponse()SuggestSmartRepliesResponse if request is for SMART_REPLY.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SuggestionResult.BuildernewBuilder()static SuggestionResult.BuildernewBuilder(SuggestionResult prototype)SuggestionResult.BuildernewBuilderForType()protected SuggestionResult.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()SuggestionResult.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSuggestionResponseCase
public SuggestionResult.SuggestionResponseCase 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
public com.google.rpc.Status getError()
Error status if the request failed.
.google.rpc.Status error = 1;- Specified by:
getErrorin interfaceSuggestionResultOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder 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
public SuggestArticlesResponse 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
public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;- Specified by:
getSuggestArticlesResponseOrBuilderin 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
public SuggestFaqAnswersResponse 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
public SuggestFaqAnswersResponseOrBuilder 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
public SuggestSmartRepliesResponse 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
public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;- Specified by:
getSuggestSmartRepliesResponseOrBuilderin interfaceSuggestionResultOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static SuggestionResult parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SuggestionResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SuggestionResult parseDelimitedFrom(InputStream input) throws IOException
- 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
public SuggestionResult.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SuggestionResult.Builder newBuilder()
-
newBuilder
public static SuggestionResult.Builder newBuilder(SuggestionResult prototype)
-
toBuilder
public SuggestionResult.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SuggestionResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SuggestionResult getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SuggestionResult> parser()
-
getParserForType
public com.google.protobuf.Parser<SuggestionResult> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SuggestionResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-