Class SuggestSmartRepliesResponse.Builder

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

public static final class SuggestSmartRepliesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SuggestSmartRepliesResponse.Builder> implements SuggestSmartRepliesResponseOrBuilder
 The response message for
 [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].
 
Protobuf type google.cloud.dialogflow.v2.SuggestSmartRepliesResponse
  • 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<SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.Builder>
    • mergeFrom

    • isInitialized

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

      public SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.Builder>
      Throws:
      IOException
    • getSmartReplyAnswersList

      public List<SmartReplyAnswer> getSmartReplyAnswersList()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSmartReplyAnswersList in interface SuggestSmartRepliesResponseOrBuilder
    • getSmartReplyAnswersCount

      public int getSmartReplyAnswersCount()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSmartReplyAnswersCount in interface SuggestSmartRepliesResponseOrBuilder
    • getSmartReplyAnswers

      public SmartReplyAnswer getSmartReplyAnswers(int index)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSmartReplyAnswers in interface SuggestSmartRepliesResponseOrBuilder
    • setSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder setSmartReplyAnswers(int index, SmartReplyAnswer value)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder setSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(SmartReplyAnswer value)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(int index, SmartReplyAnswer value)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(SmartReplyAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder addAllSmartReplyAnswers(Iterable<? extends SmartReplyAnswer> values)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder clearSmartReplyAnswers()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeSmartReplyAnswers

      public SuggestSmartRepliesResponse.Builder removeSmartReplyAnswers(int index)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSmartReplyAnswersBuilder

      public SmartReplyAnswer.Builder getSmartReplyAnswersBuilder(int index)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSmartReplyAnswersOrBuilder

      public SmartReplyAnswerOrBuilder getSmartReplyAnswersOrBuilder(int index)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSmartReplyAnswersOrBuilder in interface SuggestSmartRepliesResponseOrBuilder
    • getSmartReplyAnswersOrBuilderList

      public List<? extends SmartReplyAnswerOrBuilder> getSmartReplyAnswersOrBuilderList()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSmartReplyAnswersOrBuilderList in interface SuggestSmartRepliesResponseOrBuilder
    • addSmartReplyAnswersBuilder

      public SmartReplyAnswer.Builder addSmartReplyAnswersBuilder()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addSmartReplyAnswersBuilder

      public SmartReplyAnswer.Builder addSmartReplyAnswersBuilder(int index)
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSmartReplyAnswersBuilderList

      public List<SmartReplyAnswer.Builder> getSmartReplyAnswersBuilderList()
       Output only. Multiple reply options provided by smart reply service. The
       order is based on the rank of the model prediction.
       The maximum number of the returned replies is set in SmartReplyConfig.
       
      repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLatestMessage

      public String getLatestMessage()
       The name of the latest conversation message used to compile
       suggestion for.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessage in interface SuggestSmartRepliesResponseOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       The name of the latest conversation message used to compile
       suggestion for.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessageBytes in interface SuggestSmartRepliesResponseOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestSmartRepliesResponse.Builder setLatestMessage(String value)
       The name of the latest conversation message used to compile
       suggestion for.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      public SuggestSmartRepliesResponse.Builder clearLatestMessage()
       The name of the latest conversation message used to compile
       suggestion for.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public SuggestSmartRepliesResponse.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       The name of the latest conversation message used to compile
       suggestion for.
      
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for latestMessage to set.
      Returns:
      This builder for chaining.
    • getContextSize

      public int getContextSize()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Specified by:
      getContextSize in interface SuggestSmartRepliesResponseOrBuilder
      Returns:
      The contextSize.
    • setContextSize

      public SuggestSmartRepliesResponse.Builder setContextSize(int value)
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Parameters:
      value - The contextSize to set.
      Returns:
      This builder for chaining.
    • clearContextSize

      public SuggestSmartRepliesResponse.Builder clearContextSize()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message]
       to compile the suggestion. It may be smaller than the
       [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size]
       field in the request if there aren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Returns:
      This builder for chaining.