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.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 |
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 |
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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SuggestionResult |
getDefaultInstance() |
SuggestionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.rpc.Status |
getError()
Error status if the request failed.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
Error status if the request failed.
|
com.google.protobuf.Parser<SuggestionResult> |
getParserForType() |
int |
getSerializedSize() |
SuggestArticlesResponse |
getSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
|
SuggestArticlesResponseOrBuilder |
getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
|
SuggestFaqAnswersResponse |
getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
|
SuggestFaqAnswersResponseOrBuilder |
getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
|
SuggestionResult.SuggestionResponseCase |
getSuggestionResponseCase() |
SuggestSmartRepliesResponse |
getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
|
SuggestSmartRepliesResponseOrBuilder |
getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasError()
Error status if the request failed.
|
int |
hashCode() |
boolean |
hasSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
|
boolean |
hasSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
|
boolean |
hasSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SuggestionResult.Builder |
newBuilder() |
static SuggestionResult.Builder |
newBuilder(SuggestionResult prototype) |
SuggestionResult.Builder |
newBuilderForType() |
protected SuggestionResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SuggestionResult |
parseDelimitedFrom(InputStream input) |
static SuggestionResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SuggestionResult |
parseFrom(byte[] data) |
static SuggestionResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SuggestionResult |
parseFrom(ByteBuffer data) |
static SuggestionResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SuggestionResult |
parseFrom(com.google.protobuf.ByteString data) |
static SuggestionResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SuggestionResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SuggestionResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SuggestionResult |
parseFrom(InputStream input) |
static SuggestionResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SuggestionResult> |
parser() |
SuggestionResult.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields 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 SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
getSuggestionResponseCase in interface SuggestionResultOrBuilderpublic boolean hasError()
Error status if the request failed.
.google.rpc.Status error = 1;hasError in interface SuggestionResultOrBuilderpublic com.google.rpc.Status getError()
Error status if the request failed.
.google.rpc.Status error = 1;getError in interface SuggestionResultOrBuilderpublic com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Error status if the request failed.
.google.rpc.Status error = 1;getErrorOrBuilder in interface SuggestionResultOrBuilderpublic boolean hasSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
hasSuggestArticlesResponse in interface SuggestionResultOrBuilderpublic SuggestArticlesResponse getSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponse in interface SuggestionResultOrBuilderpublic SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponseOrBuilder in interface SuggestionResultOrBuilderpublic boolean hasSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
hasSuggestFaqAnswersResponse in interface SuggestionResultOrBuilderpublic SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponse in interface SuggestionResultOrBuilderpublic SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponseOrBuilder in interface SuggestionResultOrBuilderpublic boolean hasSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
hasSuggestSmartRepliesResponse in interface SuggestionResultOrBuilderpublic SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponse in interface SuggestionResultOrBuilderpublic SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponseOrBuilder in interface SuggestionResultOrBuilderpublic 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 SuggestionResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SuggestionResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static SuggestionResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SuggestionResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SuggestionResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SuggestionResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SuggestionResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SuggestionResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SuggestionResult.Builder newBuilder()
public static SuggestionResult.Builder newBuilder(SuggestionResult prototype)
public SuggestionResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SuggestionResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SuggestionResult getDefaultInstance()
public static com.google.protobuf.Parser<SuggestionResult> parser()
public com.google.protobuf.Parser<SuggestionResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SuggestionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.