public final class SuggestionResult extends GeneratedMessageV3 implements SuggestionResultOrBuilder
One response of different type of suggestion response which is used in the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent].Protobuf type
google.cloud.dialogflow.v2beta1.SuggestionResult
Modifier and Type | Class and Description |
---|---|
static class |
SuggestionResult.Builder
One response of different type of suggestion response which is used in
the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent].
|
static class |
SuggestionResult.SuggestionResponseCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_FIELD_NUMBER |
static int |
SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER |
static int |
SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER |
static int |
SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ERROR_FIELD_NUMBER
public static final int SUGGEST_ARTICLES_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_FAQ_ANSWERS_RESPONSE_FIELD_NUMBER
public static final int SUGGEST_SMART_REPLIES_RESPONSE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
getSuggestionResponseCase
in interface SuggestionResultOrBuilder
public boolean hasError()
Error status if the request failed.
.google.rpc.Status error = 1;
hasError
in interface SuggestionResultOrBuilder
public com.google.rpc.Status getError()
Error status if the request failed.
.google.rpc.Status error = 1;
getError
in interface SuggestionResultOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Error status if the request failed.
.google.rpc.Status error = 1;
getErrorOrBuilder
in interface SuggestionResultOrBuilder
public boolean hasSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
hasSuggestArticlesResponse
in interface SuggestionResultOrBuilder
public SuggestArticlesResponse getSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponse
in interface SuggestionResultOrBuilder
public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponseOrBuilder
in interface SuggestionResultOrBuilder
public boolean hasSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
hasSuggestFaqAnswersResponse
in interface SuggestionResultOrBuilder
public SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponse
in interface SuggestionResultOrBuilder
public SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponseOrBuilder
in interface SuggestionResultOrBuilder
public boolean hasSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
hasSuggestSmartRepliesResponse
in interface SuggestionResultOrBuilder
public SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponse
in interface SuggestionResultOrBuilder
public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponseOrBuilder
in interface SuggestionResultOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SuggestionResult parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SuggestionResult parseFrom(InputStream input) throws IOException
IOException
public static SuggestionResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SuggestionResult parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SuggestionResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SuggestionResult parseFrom(CodedInputStream input) throws IOException
IOException
public static SuggestionResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SuggestionResult.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SuggestionResult.Builder newBuilder()
public static SuggestionResult.Builder newBuilder(SuggestionResult prototype)
public SuggestionResult.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SuggestionResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SuggestionResult getDefaultInstance()
public static Parser<SuggestionResult> parser()
public Parser<SuggestionResult> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SuggestionResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.