Class SuggestConversationSummaryRequest.Builder

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

public static final class SuggestConversationSummaryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SuggestConversationSummaryRequest.Builder> implements SuggestConversationSummaryRequestOrBuilder
 The request message for
 [Conversations.SuggestConversationSummary][google.cloud.dialogflow.v2.Conversations.SuggestConversationSummary].
 
Protobuf type google.cloud.dialogflow.v2.SuggestConversationSummaryRequest
  • 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<SuggestConversationSummaryRequest.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<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.GeneratedMessage.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

      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
    • mergeFrom

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

      public SuggestConversationSummaryRequest.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<SuggestConversationSummaryRequest.Builder>
      Throws:
      IOException
    • 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()
       Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessage in interface SuggestConversationSummaryRequestOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessageBytes in interface SuggestConversationSummaryRequestOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestConversationSummaryRequest.Builder setLatestMessage(String value)
       Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      public SuggestConversationSummaryRequest.Builder clearLatestMessage()
       Optional. 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.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public SuggestConversationSummaryRequest.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       Optional. 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.field_behavior) = OPTIONAL, (.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 500 and at most 1000.
       
      int32 context_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContextSize in interface SuggestConversationSummaryRequestOrBuilder
      Returns:
      The contextSize.
    • setContextSize

      public SuggestConversationSummaryRequest.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 500 and at most 1000.
       
      int32 context_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contextSize to set.
      Returns:
      This builder for chaining.
    • clearContextSize

      public SuggestConversationSummaryRequest.Builder clearContextSize()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAssistQueryParams

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

      public AssistQueryParameters getAssistQueryParams()
       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAssistQueryParams in interface SuggestConversationSummaryRequestOrBuilder
      Returns:
      The assistQueryParams.
    • setAssistQueryParams

       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setAssistQueryParams

      public SuggestConversationSummaryRequest.Builder setAssistQueryParams(AssistQueryParameters.Builder builderForValue)
       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAssistQueryParams

       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearAssistQueryParams

      public SuggestConversationSummaryRequest.Builder clearAssistQueryParams()
       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAssistQueryParamsBuilder

      public AssistQueryParameters.Builder getAssistQueryParamsBuilder()
       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAssistQueryParamsOrBuilder

      public AssistQueryParametersOrBuilder getAssistQueryParamsOrBuilder()
       Optional. Parameters for a human assist query. Only used for POC/demo
       purpose.
       
      .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAssistQueryParamsOrBuilder in interface SuggestConversationSummaryRequestOrBuilder