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

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

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

        public SuggestConversationSummaryRequest 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<SuggestConversationSummaryRequest.Builder>
      • getConversation

        public String getConversation()
         Required. The conversation to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>`.
         
        string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getConversation in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        The conversation.
      • getConversationBytes

        public com.google.protobuf.ByteString getConversationBytes()
         Required. The conversation to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>`.
         
        string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getConversationBytes in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        The bytes for conversation.
      • setConversation

        public SuggestConversationSummaryRequest.Builder setConversation​(String value)
         Required. The conversation to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>`.
         
        string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The conversation to set.
        Returns:
        This builder for chaining.
      • clearConversation

        public SuggestConversationSummaryRequest.Builder clearConversation()
         Required. The conversation to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>`.
         
        string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setConversationBytes

        public SuggestConversationSummaryRequest.Builder setConversationBytes​(com.google.protobuf.ByteString value)
         Required. The conversation to fetch suggestion for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>`.
         
        string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for conversation to set.
        Returns:
        This builder for chaining.
      • getLatestMessage

        public String getLatestMessage()
         The name of the latest conversation message used as context for
         compiling suggestion. If empty, the latest message of the conversation will
         be used.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLatestMessage in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        The latestMessage.
      • getLatestMessageBytes

        public com.google.protobuf.ByteString getLatestMessageBytes()
         The name of the latest conversation message used as context for
         compiling suggestion. If empty, the latest message of the conversation will
         be used.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getLatestMessageBytes in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        The bytes for latestMessage.
      • setLatestMessage

        public SuggestConversationSummaryRequest.Builder setLatestMessage​(String value)
         The name of the latest conversation message used as context for
         compiling suggestion. If empty, the latest message of the conversation will
         be used.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 3 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The latestMessage to set.
        Returns:
        This builder for chaining.
      • clearLatestMessage

        public SuggestConversationSummaryRequest.Builder clearLatestMessage()
         The name of the latest conversation message used as context for
         compiling suggestion. If empty, the latest message of the conversation will
         be used.
        
         Format: `projects/<Project ID>/locations/<Location
         ID>/conversations/<Conversation ID>/messages/<Message ID>`.
         
        string latest_message = 3 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setLatestMessageBytes

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

        public int getContextSize()
         Max number of messages prior to and including
         [latest_message] to use as context when compiling the
         suggestion. By default 500 and at most 1000.
         
        int32 context_size = 4;
        Specified by:
        getContextSize in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        The contextSize.
      • setContextSize

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

        public SuggestConversationSummaryRequest.Builder clearContextSize()
         Max number of messages prior to and including
         [latest_message] to use as context when compiling the
         suggestion. By default 500 and at most 1000.
         
        int32 context_size = 4;
        Returns:
        This builder for chaining.
      • hasAssistQueryParams

        public boolean hasAssistQueryParams()
         Parameters for a human assist query. Only used for POC/demo purpose.
         
        .google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
        Specified by:
        hasAssistQueryParams in interface SuggestConversationSummaryRequestOrBuilder
        Returns:
        Whether the assistQueryParams field is set.
      • clearAssistQueryParams

        public SuggestConversationSummaryRequest.Builder clearAssistQueryParams()
         Parameters for a human assist query. Only used for POC/demo purpose.
         
        .google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;
      • getAssistQueryParamsBuilder

        public AssistQueryParameters.Builder getAssistQueryParamsBuilder()
         Parameters for a human assist query. Only used for POC/demo purpose.
         
        .google.cloud.dialogflow.v2beta1.AssistQueryParameters assist_query_params = 5;