public static final class Suggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder> implements SuggestionOrBuilder
Represents a suggestion for a human agent.Protobuf type
google.cloud.dialogflow.v2beta1.SuggestiongetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Suggestion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Suggestion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Suggestion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>public Suggestion.Builder mergeFrom(Suggestion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public Suggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>IOExceptionpublic String getName()
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;getName in interface SuggestionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;getNameBytes in interface SuggestionOrBuilderpublic Suggestion.Builder setName(String value)
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;value - The name to set.public Suggestion.Builder clearName()
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;public Suggestion.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;value - The bytes for name to set.public List<Suggestion.Article> getArticlesList()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;getArticlesList in interface SuggestionOrBuilderpublic int getArticlesCount()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;getArticlesCount in interface SuggestionOrBuilderpublic Suggestion.Article getArticles(int index)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;getArticles in interface SuggestionOrBuilderpublic Suggestion.Builder setArticles(int index, Suggestion.Article value)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder setArticles(int index, Suggestion.Article.Builder builderForValue)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder addArticles(Suggestion.Article value)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder addArticles(int index, Suggestion.Article value)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder addArticles(Suggestion.Article.Builder builderForValue)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder addArticles(int index, Suggestion.Article.Builder builderForValue)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder addAllArticles(Iterable<? extends Suggestion.Article> values)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder clearArticles()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Builder removeArticles(int index)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Article.Builder getArticlesBuilder(int index)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.ArticleOrBuilder getArticlesOrBuilder(int index)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;getArticlesOrBuilder in interface SuggestionOrBuilderpublic List<? extends Suggestion.ArticleOrBuilder> getArticlesOrBuilderList()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;getArticlesOrBuilderList in interface SuggestionOrBuilderpublic Suggestion.Article.Builder addArticlesBuilder()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public Suggestion.Article.Builder addArticlesBuilder(int index)
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public List<Suggestion.Article.Builder> getArticlesBuilderList()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;public List<Suggestion.FaqAnswer> getFaqAnswersList()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;getFaqAnswersList in interface SuggestionOrBuilderpublic int getFaqAnswersCount()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;getFaqAnswersCount in interface SuggestionOrBuilderpublic Suggestion.FaqAnswer getFaqAnswers(int index)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;getFaqAnswers in interface SuggestionOrBuilderpublic Suggestion.Builder setFaqAnswers(int index, Suggestion.FaqAnswer value)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder setFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder addFaqAnswers(Suggestion.FaqAnswer value)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder addFaqAnswers(int index, Suggestion.FaqAnswer value)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder addFaqAnswers(Suggestion.FaqAnswer.Builder builderForValue)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder addFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder addAllFaqAnswers(Iterable<? extends Suggestion.FaqAnswer> values)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder clearFaqAnswers()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.Builder removeFaqAnswers(int index)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.FaqAnswer.Builder getFaqAnswersBuilder(int index)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;getFaqAnswersOrBuilder in interface SuggestionOrBuilderpublic List<? extends Suggestion.FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;getFaqAnswersOrBuilderList in interface SuggestionOrBuilderpublic Suggestion.FaqAnswer.Builder addFaqAnswersBuilder()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public Suggestion.FaqAnswer.Builder addFaqAnswersBuilder(int index)
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public List<Suggestion.FaqAnswer.Builder> getFaqAnswersBuilderList()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;public boolean hasCreateTime()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;hasCreateTime in interface SuggestionOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;getCreateTime in interface SuggestionOrBuilderpublic Suggestion.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;public Suggestion.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;public Suggestion.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;public Suggestion.Builder clearCreateTime()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;getCreateTimeOrBuilder in interface SuggestionOrBuilderpublic String getLatestMessage()
Output only. Latest message used as context to compile this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 7;getLatestMessage in interface SuggestionOrBuilderpublic com.google.protobuf.ByteString getLatestMessageBytes()
Output only. Latest message used as context to compile this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 7;getLatestMessageBytes in interface SuggestionOrBuilderpublic Suggestion.Builder setLatestMessage(String value)
Output only. Latest message used as context to compile this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 7;value - The latestMessage to set.public Suggestion.Builder clearLatestMessage()
Output only. Latest message used as context to compile this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 7;public Suggestion.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
Output only. Latest message used as context to compile this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 7;value - The bytes for latestMessage to set.public final Suggestion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>public final Suggestion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.Builder>Copyright © 2023 Google LLC. All rights reserved.