Class SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.Builder>
      • getDefaultInstanceForType

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

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

        public SuggestDialogflowAssistsResponse 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<SuggestDialogflowAssistsResponse.Builder>
      • getDialogflowAssistAnswersCount

        public int getDialogflowAssistAnswersCount()
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
        Specified by:
        getDialogflowAssistAnswersCount in interface SuggestDialogflowAssistsResponseOrBuilder
      • setDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers​(int index,
                                                                                   DialogflowAssistAnswer value)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • setDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers​(int index,
                                                                                   DialogflowAssistAnswer.Builder builderForValue)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers​(DialogflowAssistAnswer value)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers​(int index,
                                                                                   DialogflowAssistAnswer value)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers​(DialogflowAssistAnswer.Builder builderForValue)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers​(int index,
                                                                                   DialogflowAssistAnswer.Builder builderForValue)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addAllDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder addAllDialogflowAssistAnswers​(Iterable<? extends DialogflowAssistAnswer> values)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • clearDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder clearDialogflowAssistAnswers()
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • removeDialogflowAssistAnswers

        public SuggestDialogflowAssistsResponse.Builder removeDialogflowAssistAnswers​(int index)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • getDialogflowAssistAnswersBuilder

        public DialogflowAssistAnswer.Builder getDialogflowAssistAnswersBuilder​(int index)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswersBuilder

        public DialogflowAssistAnswer.Builder addDialogflowAssistAnswersBuilder()
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • addDialogflowAssistAnswersBuilder

        public DialogflowAssistAnswer.Builder addDialogflowAssistAnswersBuilder​(int index)
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • getDialogflowAssistAnswersBuilderList

        public List<DialogflowAssistAnswer.Builder> getDialogflowAssistAnswersBuilderList()
         Output only. Multiple reply options provided by Dialogflow assist
         service. The order is based on the rank of the model prediction.
         
        repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;
      • getLatestMessage

        public String getLatestMessage()
         The name of the latest conversation message used to suggest answer.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        Specified by:
        getLatestMessage in interface SuggestDialogflowAssistsResponseOrBuilder
        Returns:
        The latestMessage.
      • getLatestMessageBytes

        public com.google.protobuf.ByteString getLatestMessageBytes()
         The name of the latest conversation message used to suggest answer.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        Specified by:
        getLatestMessageBytes in interface SuggestDialogflowAssistsResponseOrBuilder
        Returns:
        The bytes for latestMessage.
      • setLatestMessage

        public SuggestDialogflowAssistsResponse.Builder setLatestMessage​(String value)
         The name of the latest conversation message used to suggest answer.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        Parameters:
        value - The latestMessage to set.
        Returns:
        This builder for chaining.
      • clearLatestMessage

        public SuggestDialogflowAssistsResponse.Builder clearLatestMessage()
         The name of the latest conversation message used to suggest answer.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        Returns:
        This builder for chaining.
      • setLatestMessageBytes

        public SuggestDialogflowAssistsResponse.Builder setLatestMessageBytes​(com.google.protobuf.ByteString value)
         The name of the latest conversation message used to suggest answer.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 2;
        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.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.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 SuggestDialogflowAssistsResponseOrBuilder
        Returns:
        The contextSize.
      • setContextSize

        public SuggestDialogflowAssistsResponse.Builder setContextSize​(int value)
         Number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.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 SuggestDialogflowAssistsResponse.Builder clearContextSize()
         Number of messages prior to and including
         [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message]
         to compile the suggestion. It may be smaller than the
         [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.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.