Class Suggestion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
com.google.cloud.dialogflow.v2beta1.Suggestion.Builder
All Implemented Interfaces:
SuggestionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Suggestion

public static final class Suggestion.Builder extends com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder> implements SuggestionOrBuilder
 Represents a suggestion for a human agent.
 
Protobuf type google.cloud.dialogflow.v2beta1.Suggestion
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
    • clear

      public Suggestion.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
    • getDefaultInstanceForType

      public Suggestion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Suggestion build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Suggestion buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Suggestion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>
    • mergeFrom

      public Suggestion.Builder mergeFrom(Suggestion other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
    • mergeFrom

      public Suggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>
      Throws:
      IOException
    • getName

      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;
      Specified by:
      getName in interface SuggestionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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;
      Specified by:
      getNameBytes in interface SuggestionOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      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;
      Returns:
      This builder for chaining.
    • setNameBytes

      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;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getArticlesList

      public List<Suggestion.Article> getArticlesList()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
      Specified by:
      getArticlesList in interface SuggestionOrBuilder
    • getArticlesCount

      public int getArticlesCount()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
      Specified by:
      getArticlesCount in interface SuggestionOrBuilder
    • getArticles

      public Suggestion.Article getArticles(int index)
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
      Specified by:
      getArticles in interface SuggestionOrBuilder
    • setArticles

      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;
    • setArticles

      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;
    • addArticles

      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;
    • addArticles

      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;
    • addArticles

      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;
    • addArticles

      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;
    • addAllArticles

      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;
    • clearArticles

      public Suggestion.Builder clearArticles()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
    • removeArticles

      public Suggestion.Builder removeArticles(int index)
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
    • getArticlesBuilder

      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;
    • getArticlesOrBuilder

      public Suggestion.ArticleOrBuilder getArticlesOrBuilder(int index)
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
      Specified by:
      getArticlesOrBuilder in interface SuggestionOrBuilder
    • getArticlesOrBuilderList

      public List<? extends Suggestion.ArticleOrBuilder> getArticlesOrBuilderList()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
      Specified by:
      getArticlesOrBuilderList in interface SuggestionOrBuilder
    • addArticlesBuilder

      public Suggestion.Article.Builder addArticlesBuilder()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
    • addArticlesBuilder

      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;
    • getArticlesBuilderList

      public List<Suggestion.Article.Builder> getArticlesBuilderList()
       Output only. Articles ordered by score in descending order.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;
    • getFaqAnswersList

      public List<Suggestion.FaqAnswer> getFaqAnswersList()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
      Specified by:
      getFaqAnswersList in interface SuggestionOrBuilder
    • getFaqAnswersCount

      public int getFaqAnswersCount()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
      Specified by:
      getFaqAnswersCount in interface SuggestionOrBuilder
    • getFaqAnswers

      public Suggestion.FaqAnswer getFaqAnswers(int index)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
      Specified by:
      getFaqAnswers in interface SuggestionOrBuilder
    • setFaqAnswers

      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;
    • setFaqAnswers

      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;
    • addFaqAnswers

      public Suggestion.Builder addFaqAnswers(Suggestion.FaqAnswer value)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • addFaqAnswers

      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;
    • addFaqAnswers

      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;
    • addFaqAnswers

      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;
    • addAllFaqAnswers

      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;
    • clearFaqAnswers

      public Suggestion.Builder clearFaqAnswers()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • removeFaqAnswers

      public Suggestion.Builder removeFaqAnswers(int index)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • getFaqAnswersBuilder

      public Suggestion.FaqAnswer.Builder getFaqAnswersBuilder(int index)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • getFaqAnswersOrBuilder

      public Suggestion.FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
      Specified by:
      getFaqAnswersOrBuilder in interface SuggestionOrBuilder
    • getFaqAnswersOrBuilderList

      public List<? extends Suggestion.FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
      Specified by:
      getFaqAnswersOrBuilderList in interface SuggestionOrBuilder
    • addFaqAnswersBuilder

      public Suggestion.FaqAnswer.Builder addFaqAnswersBuilder()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • addFaqAnswersBuilder

      public Suggestion.FaqAnswer.Builder addFaqAnswersBuilder(int index)
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • getFaqAnswersBuilderList

      public List<Suggestion.FaqAnswer.Builder> getFaqAnswersBuilderList()
       Output only. Answers extracted from FAQ documents.
       
      repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      hasCreateTime in interface SuggestionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTime in interface SuggestionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Suggestion.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • setCreateTime

      public Suggestion.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • mergeCreateTime

      public Suggestion.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • clearCreateTime

      public Suggestion.Builder clearCreateTime()
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time the suggestion was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTimeOrBuilder in interface SuggestionOrBuilder
    • getLatestMessage

      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;
      Specified by:
      getLatestMessage in interface SuggestionOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public 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;
      Specified by:
      getLatestMessageBytes in interface SuggestionOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      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;
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      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;
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      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;
      Parameters:
      value - The bytes for latestMessage to set.
      Returns:
      This builder for chaining.