- 4.58.0 (latest)
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SuggestionResult.BuilderImplements
SuggestionResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
build()
public SuggestionResult build()
Returns | |
---|---|
Type | Description |
SuggestionResult |
buildPartial()
public SuggestionResult buildPartial()
Returns | |
---|---|
Type | Description |
SuggestionResult |
clear()
public SuggestionResult.Builder clear()
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearError()
public SuggestionResult.Builder clearError()
Error status if the request failed.
.google.rpc.Status error = 1;
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public SuggestionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearSuggestArticlesResponse()
public SuggestionResult.Builder clearSuggestArticlesResponse()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearSuggestKnowledgeAssistResponse()
public SuggestionResult.Builder clearSuggestKnowledgeAssistResponse()
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
SuggestionResult.Builder |
clearSuggestionResponse()
public SuggestionResult.Builder clearSuggestionResponse()
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
clone()
public SuggestionResult.Builder clone()
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
getDefaultInstanceForType()
public SuggestionResult getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SuggestionResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getError()
public Status 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.v2.SuggestArticlesResponse suggest_articles_response = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
SuggestArticlesResponse.Builder |
getSuggestArticlesResponseOrBuilder()
public SuggestArticlesResponseOrBuilder getSuggestArticlesResponseOrBuilder()
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
.google.cloud.dialogflow.v2.SuggestArticlesResponse suggest_articles_response = 2;
Returns | |
---|---|
Type | Description |
SuggestArticlesResponseOrBuilder |
getSuggestFaqAnswersResponse()
public SuggestFaqAnswersResponse getSuggestFaqAnswersResponse()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
SuggestFaqAnswersResponse.Builder |
getSuggestFaqAnswersResponseOrBuilder()
public SuggestFaqAnswersResponseOrBuilder getSuggestFaqAnswersResponseOrBuilder()
SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Returns | |
---|---|
Type | Description |
SuggestFaqAnswersResponseOrBuilder |
getSuggestKnowledgeAssistResponse()
public SuggestKnowledgeAssistResponse getSuggestKnowledgeAssistResponse()
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Returns | |
---|---|
Type | Description |
SuggestKnowledgeAssistResponse |
The suggestKnowledgeAssistResponse. |
getSuggestKnowledgeAssistResponseBuilder()
public SuggestKnowledgeAssistResponse.Builder getSuggestKnowledgeAssistResponseBuilder()
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Returns | |
---|---|
Type | Description |
SuggestKnowledgeAssistResponse.Builder |
getSuggestKnowledgeAssistResponseOrBuilder()
public SuggestKnowledgeAssistResponseOrBuilder getSuggestKnowledgeAssistResponseOrBuilder()
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Returns | |
---|---|
Type | Description |
SuggestKnowledgeAssistResponseOrBuilder |
getSuggestSmartRepliesResponse()
public SuggestSmartRepliesResponse getSuggestSmartRepliesResponse()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
SuggestSmartRepliesResponse.Builder |
getSuggestSmartRepliesResponseOrBuilder()
public SuggestSmartRepliesResponseOrBuilder getSuggestSmartRepliesResponseOrBuilder()
SuggestSmartRepliesResponse if request is for SMART_REPLY.
.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse suggest_smart_replies_response = 4;
Returns | |
---|---|
Type | Description |
SuggestSmartRepliesResponseOrBuilder |
getSuggestionResponseCase()
public SuggestionResult.SuggestionResponseCase getSuggestionResponseCase()
Returns | |
---|---|
Type | Description |
SuggestionResult.SuggestionResponseCase |
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.v2.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.v2.SuggestFaqAnswersResponse suggest_faq_answers_response = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the suggestFaqAnswersResponse field is set. |
hasSuggestKnowledgeAssistResponse()
public boolean hasSuggestKnowledgeAssistResponse()
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the suggestKnowledgeAssistResponse 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 | |
---|---|
Type | Description |
boolean |
Whether the suggestSmartRepliesResponse field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
mergeFrom(SuggestionResult other)
public SuggestionResult.Builder mergeFrom(SuggestionResult other)
Parameter | |
---|---|
Name | Description |
other |
SuggestionResult |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SuggestionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SuggestionResult.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
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 | |
---|---|
Name | Description |
value |
SuggestArticlesResponse |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
SuggestFaqAnswersResponse |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
mergeSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse value)
public SuggestionResult.Builder mergeSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse value)
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Parameter | |
---|---|
Name | Description |
value |
SuggestKnowledgeAssistResponse |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
SuggestSmartRepliesResponse |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
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 |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
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 | |
---|---|
Name | Description |
value |
SuggestArticlesResponse |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
SuggestArticlesResponse.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
SuggestFaqAnswersResponse |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
SuggestFaqAnswersResponse.Builder |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
setSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse value)
public SuggestionResult.Builder setSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse value)
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Parameter | |
---|---|
Name | Description |
value |
SuggestKnowledgeAssistResponse |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
setSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse.Builder builderForValue)
public SuggestionResult.Builder setSuggestKnowledgeAssistResponse(SuggestKnowledgeAssistResponse.Builder builderForValue)
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse suggest_knowledge_assist_response = 8;
Parameter | |
---|---|
Name | Description |
builderForValue |
SuggestKnowledgeAssistResponse.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
SuggestSmartRepliesResponse |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
SuggestSmartRepliesResponse.Builder |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SuggestionResult.Builder |