Class GenerateStatelessSummaryRequest.Builder

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

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

      public GenerateStatelessSummaryRequest 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 GenerateStatelessSummaryRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public GenerateStatelessSummaryRequest.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<GenerateStatelessSummaryRequest.Builder>
      Throws:
      IOException
    • hasStatelessConversation

      public boolean hasStatelessConversation()
       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStatelessConversation in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      Whether the statelessConversation field is set.
    • getStatelessConversation

      public GenerateStatelessSummaryRequest.MinimalConversation getStatelessConversation()
       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatelessConversation in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      The statelessConversation.
    • setStatelessConversation

       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
    • setStatelessConversation

       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeStatelessConversation

       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearStatelessConversation

      public GenerateStatelessSummaryRequest.Builder clearStatelessConversation()
       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStatelessConversationBuilder

      public GenerateStatelessSummaryRequest.MinimalConversation.Builder getStatelessConversationBuilder()
       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStatelessConversationOrBuilder

      public GenerateStatelessSummaryRequest.MinimalConversationOrBuilder getStatelessConversationOrBuilder()
       Required. The conversation to suggest a summary for.
       
      .google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation stateless_conversation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatelessConversationOrBuilder in interface GenerateStatelessSummaryRequestOrBuilder
    • hasConversationProfile

      public boolean hasConversationProfile()
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConversationProfile in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      Whether the conversationProfile field is set.
    • getConversationProfile

      public ConversationProfile getConversationProfile()
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversationProfile in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      The conversationProfile.
    • setConversationProfile

      public GenerateStatelessSummaryRequest.Builder setConversationProfile(ConversationProfile value)
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
    • setConversationProfile

      public GenerateStatelessSummaryRequest.Builder setConversationProfile(ConversationProfile.Builder builderForValue)
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeConversationProfile

      public GenerateStatelessSummaryRequest.Builder mergeConversationProfile(ConversationProfile value)
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearConversationProfile

      public GenerateStatelessSummaryRequest.Builder clearConversationProfile()
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversationProfileBuilder

      public ConversationProfile.Builder getConversationProfileBuilder()
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversationProfileOrBuilder

      public ConversationProfileOrBuilder getConversationProfileOrBuilder()
       Required. A ConversationProfile containing information required for Summary
       generation.
       Required fields: {language_code, security_settings}
       Optional fields: {agent_assistant_config}
       
      .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversationProfileOrBuilder in interface GenerateStatelessSummaryRequestOrBuilder
    • getLatestMessage

      public String getLatestMessage()
       Optional. The name of the latest conversation message used as context for
       generating a Summary. If empty, the latest message of the conversation will
       be used. The format is specific to the user and the names of the messages
       provided.
       
      string latest_message = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessage in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       Optional. The name of the latest conversation message used as context for
       generating a Summary. If empty, the latest message of the conversation will
       be used. The format is specific to the user and the names of the messages
       provided.
       
      string latest_message = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessageBytes in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public GenerateStatelessSummaryRequest.Builder setLatestMessage(String value)
       Optional. The name of the latest conversation message used as context for
       generating a Summary. If empty, the latest message of the conversation will
       be used. The format is specific to the user and the names of the messages
       provided.
       
      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 GenerateStatelessSummaryRequest.Builder clearLatestMessage()
       Optional. The name of the latest conversation message used as context for
       generating a Summary. If empty, the latest message of the conversation will
       be used. The format is specific to the user and the names of the messages
       provided.
       
      string latest_message = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public GenerateStatelessSummaryRequest.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       Optional. The name of the latest conversation message used as context for
       generating a Summary. If empty, the latest message of the conversation will
       be used. The format is specific to the user and the names of the messages
       provided.
       
      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.
    • getMaxContextSize

      public int getMaxContextSize()
       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 max_context_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxContextSize in interface GenerateStatelessSummaryRequestOrBuilder
      Returns:
      The maxContextSize.
    • setMaxContextSize

      public GenerateStatelessSummaryRequest.Builder setMaxContextSize(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 max_context_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxContextSize to set.
      Returns:
      This builder for chaining.
    • clearMaxContextSize

      public GenerateStatelessSummaryRequest.Builder clearMaxContextSize()
       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 max_context_size = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.