Class SuggestSmartRepliesResponse.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public SuggestSmartRepliesResponse 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • mergeUnknownFields

        public final SuggestSmartRepliesResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesResponse.Builder>