Class SuggestionResult.Builder (4.6.0)

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.v2.SuggestionResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SuggestionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SuggestionResult.Builder
Overrides

build()

public SuggestionResult build()
Returns
TypeDescription
SuggestionResult

buildPartial()

public SuggestionResult buildPartial()
Returns
TypeDescription
SuggestionResult

clear()

public SuggestionResult.Builder clear()
Returns
TypeDescription
SuggestionResult.Builder
Overrides

clearError()

public SuggestionResult.Builder clearError()

Error status if the request failed.

.google.rpc.Status error = 1;

Returns
TypeDescription
SuggestionResult.Builder

clearField(Descriptors.FieldDescriptor field)

public SuggestionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SuggestionResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SuggestionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SuggestionResult.Builder
Overrides

clearSuggestArticlesResponse()

public SuggestionResult.Builder clearSuggestArticlesResponse()

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Returns
TypeDescription
SuggestionResult.Builder

clearSuggestFaqAnswersResponse()

public SuggestionResult.Builder clearSuggestFaqAnswersResponse()

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Returns
TypeDescription
SuggestionResult.Builder

clearSuggestSmartRepliesResponse()

public SuggestionResult.Builder clearSuggestSmartRepliesResponse()

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Returns
TypeDescription
SuggestionResult.Builder

clearSuggestionResponse()

public SuggestionResult.Builder clearSuggestionResponse()
Returns
TypeDescription
SuggestionResult.Builder

clone()

public SuggestionResult.Builder clone()
Returns
TypeDescription
SuggestionResult.Builder
Overrides

getDefaultInstanceForType()

public SuggestionResult getDefaultInstanceForType()
Returns
TypeDescription
SuggestionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

Error status if the request failed.

.google.rpc.Status error = 1;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error status if the request failed.

.google.rpc.Status error = 1;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error status if the request failed.

.google.rpc.Status error = 1;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getSuggestArticlesResponse()

public SuggestArticlesResponse getSuggestArticlesResponse()

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Returns
TypeDescription
SuggestArticlesResponse

The suggestArticlesResponse.

getSuggestArticlesResponseBuilder()

public SuggestArticlesResponse.Builder getSuggestArticlesResponseBuilder()

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Returns
TypeDescription
SuggestArticlesResponse.Builder

getSuggestArticlesResponseOrBuilder()

public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Returns
TypeDescription
SuggestArticlesResponseOrBuilder

getSuggestFaqAnswersResponse()

public SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Returns
TypeDescription
SuggestFaqAnswersResponse

The suggestFaqAnswersResponse.

getSuggestFaqAnswersResponseBuilder()

public SuggestFaqAnswersResponse.Builder getSuggestFaqAnswersResponseBuilder()

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

getSuggestFaqAnswersResponseOrBuilder()

public SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Returns
TypeDescription
SuggestFaqAnswersResponseOrBuilder

getSuggestSmartRepliesResponse()

public SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Returns
TypeDescription
SuggestSmartRepliesResponse

The suggestSmartRepliesResponse.

getSuggestSmartRepliesResponseBuilder()

public SuggestSmartRepliesResponse.Builder getSuggestSmartRepliesResponseBuilder()

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Returns
TypeDescription
SuggestSmartRepliesResponse.Builder

getSuggestSmartRepliesResponseOrBuilder()

public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Returns
TypeDescription
SuggestSmartRepliesResponseOrBuilder

getSuggestionResponseCase()

public SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
Returns
TypeDescription
SuggestionResult.SuggestionResponseCase

hasError()

public boolean hasError()

Error status if the request failed.

.google.rpc.Status error = 1;

Returns
TypeDescription
boolean

Whether the error field is set.

hasSuggestArticlesResponse()

public boolean hasSuggestArticlesResponse()

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Returns
TypeDescription
boolean

Whether the suggestArticlesResponse field is set.

hasSuggestFaqAnswersResponse()

public boolean hasSuggestFaqAnswersResponse()

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Returns
TypeDescription
boolean

Whether the suggestFaqAnswersResponse field is set.

hasSuggestSmartRepliesResponse()

public boolean hasSuggestSmartRepliesResponse()

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Returns
TypeDescription
boolean

Whether the suggestSmartRepliesResponse field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public SuggestionResult.Builder mergeError(Status value)

Error status if the request failed.

.google.rpc.Status error = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
SuggestionResult.Builder

mergeFrom(SuggestionResult other)

public SuggestionResult.Builder mergeFrom(SuggestionResult other)
Parameter
NameDescription
otherSuggestionResult
Returns
TypeDescription
SuggestionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SuggestionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestionResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SuggestionResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SuggestionResult.Builder
Overrides

mergeSuggestArticlesResponse(SuggestArticlesResponse value)

public SuggestionResult.Builder mergeSuggestArticlesResponse(SuggestArticlesResponse value)

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Parameter
NameDescription
valueSuggestArticlesResponse
Returns
TypeDescription
SuggestionResult.Builder

mergeSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)

public SuggestionResult.Builder mergeSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Parameter
NameDescription
valueSuggestFaqAnswersResponse
Returns
TypeDescription
SuggestionResult.Builder

mergeSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)

public SuggestionResult.Builder mergeSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Parameter
NameDescription
valueSuggestSmartRepliesResponse
Returns
TypeDescription
SuggestionResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SuggestionResult.Builder
Overrides

setError(Status value)

public SuggestionResult.Builder setError(Status value)

Error status if the request failed.

.google.rpc.Status error = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
SuggestionResult.Builder

setError(Status.Builder builderForValue)

public SuggestionResult.Builder setError(Status.Builder builderForValue)

Error status if the request failed.

.google.rpc.Status error = 1;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
SuggestionResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SuggestionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SuggestionResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SuggestionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SuggestionResult.Builder
Overrides

setSuggestArticlesResponse(SuggestArticlesResponse value)

public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse value)

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Parameter
NameDescription
valueSuggestArticlesResponse
Returns
TypeDescription
SuggestionResult.Builder

setSuggestArticlesResponse(SuggestArticlesResponse.Builder builderForValue)

public SuggestionResult.Builder setSuggestArticlesResponse(SuggestArticlesResponse.Builder builderForValue)

SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;

Parameter
NameDescription
builderForValueSuggestArticlesResponse.Builder
Returns
TypeDescription
SuggestionResult.Builder

setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)

public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse value)

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Parameter
NameDescription
valueSuggestFaqAnswersResponse
Returns
TypeDescription
SuggestionResult.Builder

setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse.Builder builderForValue)

public SuggestionResult.Builder setSuggestFaqAnswersResponse(SuggestFaqAnswersResponse.Builder builderForValue)

SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;

Parameter
NameDescription
builderForValueSuggestFaqAnswersResponse.Builder
Returns
TypeDescription
SuggestionResult.Builder

setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)

public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse value)

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Parameter
NameDescription
valueSuggestSmartRepliesResponse
Returns
TypeDescription
SuggestionResult.Builder

setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse.Builder builderForValue)

public SuggestionResult.Builder setSuggestSmartRepliesResponse(SuggestSmartRepliesResponse.Builder builderForValue)

SuggestSmartRepliesResponse if request is for SMART_REPLY.

.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;

Parameter
NameDescription
builderForValueSuggestSmartRepliesResponse.Builder
Returns
TypeDescription
SuggestionResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SuggestionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SuggestionResult.Builder
Overrides