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
and
Participants.AnalyzeContent,
as well as
HumanAgentAssistantEvent.
Protobuf type google.cloud.dialogflow.v2beta1.SuggestionResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SuggestionResult build()
buildPartial()
public SuggestionResult buildPartial()
clear()
public SuggestionResult.Builder clear()
Overrides
clearError()
public SuggestionResult.Builder clearError()
Error status if the request failed.
.google.rpc.Status error = 1;
clearField(Descriptors.FieldDescriptor field)
public SuggestionResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSuggestArticlesResponse()
public SuggestionResult.Builder clearSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
clearSuggestFaqAnswersResponse()
public SuggestionResult.Builder clearSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
clearSuggestSmartRepliesResponse()
public SuggestionResult.Builder clearSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
clearSuggestionResponse()
public SuggestionResult.Builder clearSuggestionResponse()
clone()
public SuggestionResult.Builder clone()
Overrides
getDefaultInstanceForType()
public SuggestionResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getError()
Error status if the request failed.
.google.rpc.Status error = 1;
Returns |
Type |
Description |
com.google.rpc.Status |
The error.
|
getErrorBuilder()
public Status.Builder getErrorBuilder()
Error status if the request failed.
.google.rpc.Status error = 1;
Returns |
Type |
Description |
com.google.rpc.Status.Builder |
|
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()
Error status if the request failed.
.google.rpc.Status error = 1;
Returns |
Type |
Description |
com.google.rpc.StatusOrBuilder |
|
getSuggestArticlesResponse()
public SuggestArticlesResponse getSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponseBuilder()
public SuggestArticlesResponse.Builder getSuggestArticlesResponseBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestArticlesResponseOrBuilder()
public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
getSuggestFaqAnswersResponse()
public SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponseBuilder()
public SuggestFaqAnswersResponse.Builder getSuggestFaqAnswersResponseBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestFaqAnswersResponseOrBuilder()
public SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
getSuggestSmartRepliesResponse()
public SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponseBuilder()
public SuggestSmartRepliesResponse.Builder getSuggestSmartRepliesResponseBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestSmartRepliesResponseOrBuilder()
public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
getSuggestionResponseCase()
public SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
hasError()
public boolean hasError()
Error status if the request failed.
.google.rpc.Status error = 1;
Returns |
Type |
Description |
boolean |
Whether the error field is set.
|
hasSuggestArticlesResponse()
public boolean hasSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
Returns |
Type |
Description |
boolean |
Whether the suggestArticlesResponse field is set.
|
hasSuggestFaqAnswersResponse()
public boolean hasSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Returns |
Type |
Description |
boolean |
Whether the suggestFaqAnswersResponse field is set.
|
hasSuggestSmartRepliesResponse()
public boolean hasSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
Returns |
Type |
Description |
boolean |
Whether the suggestSmartRepliesResponse field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeError(Status value)
public SuggestionResult.Builder mergeError(Status value)
Error status if the request failed.
.google.rpc.Status error = 1;
Parameter |
Name |
Description |
value |
com.google.rpc.Status
|
mergeFrom(SuggestionResult other)
public SuggestionResult.Builder mergeFrom(SuggestionResult other)
public SuggestionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SuggestionResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSuggestArticlesResponse(SuggestArticlesResponse value)
public SuggestionResult.Builder mergeSuggestArticlesResponse(SuggestArticlesResponse value)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
mergeSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
public SuggestionResult.Builder mergeSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
mergeSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
public SuggestionResult.Builder mergeSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setError(Status value)
public SuggestionResult.Builder setError(Status value)
Error status if the request failed.
.google.rpc.Status error = 1;
Parameter |
Name |
Description |
value |
com.google.rpc.Status
|
setError(Status.Builder builderForValue)
public SuggestionResult.Builder setError(Status.Builder builderForValue)
Error status if the request failed.
.google.rpc.Status error = 1;
Parameter |
Name |
Description |
builderForValue |
com.google.rpc.Status.Builder
|
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSuggestArticlesResponse(SuggestArticlesResponse value)
public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse value)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
setSuggestArticlesResponse(SuggestArticlesResponse.Builder builderForValue)
public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse.Builder builderForValue)
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggest_articles_response = 2;
setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse.Builder builderForValue)
public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse.Builder builderForValue)
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse.Builder builderForValue)
public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse.Builder builderForValue)
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides