public static final class Suggestion.Builder extends GeneratedMessageV3.Builder<Suggestion.Builder> implements SuggestionOrBuilder
Represents a suggestion for a human agent.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion
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<Suggestion.Builder>
public Suggestion.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Suggestion build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Suggestion buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Suggestion.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.Builder>
public Suggestion.Builder mergeFrom(Suggestion other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public Suggestion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.Builder>
IOException
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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(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 SuggestionOrBuilder
public int getArticlesCount()
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
getArticlesCount
in interface SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public int getFaqAnswersCount()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
getFaqAnswersCount
in interface SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public Timestamp getCreateTime()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;
getCreateTime
in interface SuggestionOrBuilder
public Suggestion.Builder setCreateTime(Timestamp value)
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;
public Suggestion.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;
public Suggestion.Builder mergeCreateTime(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 Timestamp.Builder getCreateTimeBuilder()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;
getCreateTimeOrBuilder
in interface SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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 SuggestionOrBuilder
public 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(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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.Builder>
public final Suggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.Builder>
Copyright © 2022 Google LLC. All rights reserved.