Class SuggestConversationSummaryResponse.Builder

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

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

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

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

      public SuggestConversationSummaryResponse.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<SuggestConversationSummaryResponse.Builder>
      Throws:
      IOException
    • hasSummary

      public boolean hasSummary()
       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
      Specified by:
      hasSummary in interface SuggestConversationSummaryResponseOrBuilder
      Returns:
      Whether the summary field is set.
    • getSummary

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
      Specified by:
      getSummary in interface SuggestConversationSummaryResponseOrBuilder
      Returns:
      The summary.
    • setSummary

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
    • setSummary

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
    • mergeSummary

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
    • clearSummary

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
    • getSummaryBuilder

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
    • getSummaryOrBuilder

       Generated summary.
       
      .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary summary = 1;
      Specified by:
      getSummaryOrBuilder in interface SuggestConversationSummaryResponseOrBuilder
    • getLatestMessage

      public String getLatestMessage()
       The name of the latest conversation message used as context for
       compiling suggestion.
      
       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 SuggestConversationSummaryResponseOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       The name of the latest conversation message used as context for
       compiling suggestion.
      
       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 SuggestConversationSummaryResponseOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SuggestConversationSummaryResponse.Builder setLatestMessage(String value)
       The name of the latest conversation message used as context for
       compiling suggestion.
      
       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 SuggestConversationSummaryResponse.Builder clearLatestMessage()
       The name of the latest conversation message used as context for
       compiling suggestion.
      
       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 SuggestConversationSummaryResponse.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       The name of the latest conversation message used as context for
       compiling suggestion.
      
       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()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
       used to compile the suggestion. It may be smaller than the
       [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
       field in the request if there weren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Specified by:
      getContextSize in interface SuggestConversationSummaryResponseOrBuilder
      Returns:
      The contextSize.
    • setContextSize

      public SuggestConversationSummaryResponse.Builder setContextSize(int value)
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
       used to compile the suggestion. It may be smaller than the
       [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
       field in the request if there weren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Parameters:
      value - The contextSize to set.
      Returns:
      This builder for chaining.
    • clearContextSize

      public SuggestConversationSummaryResponse.Builder clearContextSize()
       Number of messages prior to and including
       [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
       used to compile the suggestion. It may be smaller than the
       [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
       field in the request if there weren't that many messages in the
       conversation.
       
      int32 context_size = 3;
      Returns:
      This builder for chaining.