public static final class SuggestionResult.Builder extends GeneratedMessageV3.Builder<SuggestionResult.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SuggestionResult build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SuggestionResult buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SuggestionResult.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder mergeFrom(SuggestionResult other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public SuggestionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SuggestionResult.Builder>
IOException
public SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
getSuggestionResponseCase
in interface SuggestionResultOrBuilder
public SuggestionResult.Builder clearSuggestionResponse()
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 SuggestionResult.Builder setError(com.google.rpc.Status value)
Error status if the request failed.
.google.rpc.Status error = 1;
public SuggestionResult.Builder setError(com.google.rpc.Status.Builder builderForValue)
Error status if the request failed.
.google.rpc.Status error = 1;
public SuggestionResult.Builder mergeError(com.google.rpc.Status value)
Error status if the request failed.
.google.rpc.Status error = 1;
public SuggestionResult.Builder clearError()
Error status if the request failed.
.google.rpc.Status error = 1;
public com.google.rpc.Status.Builder getErrorBuilder()
Error status if the request failed.
.google.rpc.Status error = 1;
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.v2.SuggestArticlesResponse suggest_articles_response = 2;
hasSuggestArticlesResponse
in interface SuggestionResultOrBuilder
public SuggestArticlesResponse getSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponse
in interface SuggestionResultOrBuilder
public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse value)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse.Builder builderForValue)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
public SuggestionResult.Builder mergeSuggestArticlesResponse(SuggestArticlesResponse value)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
public SuggestionResult.Builder clearSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
public SuggestArticlesResponse.Builder getSuggestArticlesResponseBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponseOrBuilder
in interface SuggestionResultOrBuilder
public boolean hasSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
hasSuggestFaqAnswersResponse
in interface SuggestionResultOrBuilder
public SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponse
in interface SuggestionResultOrBuilder
public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse.Builder builderForValue)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
public SuggestionResult.Builder mergeSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
public SuggestionResult.Builder clearSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
public SuggestFaqAnswersResponse.Builder getSuggestFaqAnswersResponseBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
public SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponseOrBuilder
in interface SuggestionResultOrBuilder
public boolean hasSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
hasSuggestSmartRepliesResponse
in interface SuggestionResultOrBuilder
public SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponse
in interface SuggestionResultOrBuilder
public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse.Builder builderForValue)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
public SuggestionResult.Builder mergeSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
public SuggestionResult.Builder clearSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
public SuggestSmartRepliesResponse.Builder getSuggestSmartRepliesResponseBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponseOrBuilder
in interface SuggestionResultOrBuilder
public final SuggestionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
public final SuggestionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SuggestionResult.Builder>
Copyright © 2022 Google LLC. All rights reserved.