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

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

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

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

        public SuggestSmartRepliesRequest.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<SuggestSmartRepliesRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The name of the participant to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface SuggestSmartRepliesRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The name of the participant to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface SuggestSmartRepliesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public SuggestSmartRepliesRequest.Builder setParent​(String value)
         Required. The name of the participant to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public SuggestSmartRepliesRequest.Builder clearParent()
         Required. The name of the participant to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public SuggestSmartRepliesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The name of the participant to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasCurrentTextInput

        public boolean hasCurrentTextInput()
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
        Specified by:
        hasCurrentTextInput in interface SuggestSmartRepliesRequestOrBuilder
        Returns:
        Whether the currentTextInput field is set.
      • getCurrentTextInput

        public TextInput getCurrentTextInput()
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
        Specified by:
        getCurrentTextInput in interface SuggestSmartRepliesRequestOrBuilder
        Returns:
        The currentTextInput.
      • setCurrentTextInput

        public SuggestSmartRepliesRequest.Builder setCurrentTextInput​(TextInput value)
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
      • setCurrentTextInput

        public SuggestSmartRepliesRequest.Builder setCurrentTextInput​(TextInput.Builder builderForValue)
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
      • mergeCurrentTextInput

        public SuggestSmartRepliesRequest.Builder mergeCurrentTextInput​(TextInput value)
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
      • clearCurrentTextInput

        public SuggestSmartRepliesRequest.Builder clearCurrentTextInput()
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
      • getCurrentTextInputBuilder

        public TextInput.Builder getCurrentTextInputBuilder()
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
      • getCurrentTextInputOrBuilder

        public TextInputOrBuilder getCurrentTextInputOrBuilder()
         The current natural language text segment to compile suggestion
         for. This provides a way for user to get follow up smart reply suggestion
         after a smart reply selection, without sending a text message.
         
        .google.cloud.dialogflow.v2beta1.TextInput current_text_input = 4;
        Specified by:
        getCurrentTextInputOrBuilder in interface SuggestSmartRepliesRequestOrBuilder
      • getLatestMessage

        public String getLatestMessage()
         The name of the latest conversation message to compile suggestion
         for. If empty, it will be the latest message of the conversation.
        
         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 SuggestSmartRepliesRequestOrBuilder
        Returns:
        The latestMessage.
      • getLatestMessageBytes

        public com.google.protobuf.ByteString getLatestMessageBytes()
         The name of the latest conversation message to compile suggestion
         for. If empty, it will be the latest message of the conversation.
        
         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 SuggestSmartRepliesRequestOrBuilder
        Returns:
        The bytes for latestMessage.
      • setLatestMessage

        public SuggestSmartRepliesRequest.Builder setLatestMessage​(String value)
         The name of the latest conversation message to compile suggestion
         for. If empty, it will be the latest message of the conversation.
        
         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 SuggestSmartRepliesRequest.Builder clearLatestMessage()
         The name of the latest conversation message to compile suggestion
         for. If empty, it will be the latest message of the conversation.
        
         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 SuggestSmartRepliesRequest.Builder setLatestMessageBytes​(com.google.protobuf.ByteString value)
         The name of the latest conversation message to compile suggestion
         for. If empty, it will be the latest message of the conversation.
        
         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()
         Optional. Max number of messages prior to and including
         [latest_message] to use as context when compiling the
         suggestion. By default 20 and at most 50.
         
        int32 context_size = 3;
        Specified by:
        getContextSize in interface SuggestSmartRepliesRequestOrBuilder
        Returns:
        The contextSize.
      • setContextSize

        public SuggestSmartRepliesRequest.Builder setContextSize​(int value)
         Optional. Max number of messages prior to and including
         [latest_message] to use as context when compiling the
         suggestion. By default 20 and at most 50.
         
        int32 context_size = 3;
        Parameters:
        value - The contextSize to set.
        Returns:
        This builder for chaining.
      • clearContextSize

        public SuggestSmartRepliesRequest.Builder clearContextSize()
         Optional. Max number of messages prior to and including
         [latest_message] to use as context when compiling the
         suggestion. By default 20 and at most 50.
         
        int32 context_size = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

        public final SuggestSmartRepliesRequest.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<SuggestSmartRepliesRequest.Builder>