Class SendMessageConfiguration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder>
org.a2aproject.sdk.grpc.SendMessageConfiguration.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, SendMessageConfigurationOrBuilder
Enclosing class:
SendMessageConfiguration

public static final class SendMessageConfiguration.Builder extends com.google.protobuf.GeneratedMessage.Builder<SendMessageConfiguration.Builder> implements SendMessageConfigurationOrBuilder
 Configuration of a send message request.
 
Protobuf type lf.a2a.v1.SendMessageConfiguration
  • 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<SendMessageConfiguration.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<SendMessageConfiguration.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<SendMessageConfiguration.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SendMessageConfiguration.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<SendMessageConfiguration.Builder>
      Throws:
      IOException
    • getAcceptedOutputModesList

      public com.google.protobuf.ProtocolStringList getAcceptedOutputModesList()
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModesList in interface SendMessageConfigurationOrBuilder
      Returns:
      A list containing the acceptedOutputModes.
    • getAcceptedOutputModesCount

      public int getAcceptedOutputModesCount()
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModesCount in interface SendMessageConfigurationOrBuilder
      Returns:
      The count of acceptedOutputModes.
    • getAcceptedOutputModes

      public String getAcceptedOutputModes(int index)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModes in interface SendMessageConfigurationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The acceptedOutputModes at the given index.
    • getAcceptedOutputModesBytes

      public com.google.protobuf.ByteString getAcceptedOutputModesBytes(int index)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModesBytes in interface SendMessageConfigurationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the acceptedOutputModes at the given index.
    • setAcceptedOutputModes

      public SendMessageConfiguration.Builder setAcceptedOutputModes(int index, String value)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      index - The index to set the value at.
      value - The acceptedOutputModes to set.
      Returns:
      This builder for chaining.
    • addAcceptedOutputModes

      public SendMessageConfiguration.Builder addAcceptedOutputModes(String value)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      value - The acceptedOutputModes to add.
      Returns:
      This builder for chaining.
    • addAllAcceptedOutputModes

      public SendMessageConfiguration.Builder addAllAcceptedOutputModes(Iterable<String> values)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      values - The acceptedOutputModes to add.
      Returns:
      This builder for chaining.
    • clearAcceptedOutputModes

      public SendMessageConfiguration.Builder clearAcceptedOutputModes()
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Returns:
      This builder for chaining.
    • addAcceptedOutputModesBytes

      public SendMessageConfiguration.Builder addAcceptedOutputModesBytes(com.google.protobuf.ByteString value)
       A list of media types the client is prepared to accept for response parts.
       Agents SHOULD use this to tailor their output.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      value - The bytes of the acceptedOutputModes to add.
      Returns:
      This builder for chaining.
    • hasTaskPushNotificationConfig

      public boolean hasTaskPushNotificationConfig()
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
      Specified by:
      hasTaskPushNotificationConfig in interface SendMessageConfigurationOrBuilder
      Returns:
      Whether the taskPushNotificationConfig field is set.
    • getTaskPushNotificationConfig

      public TaskPushNotificationConfig getTaskPushNotificationConfig()
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
      Specified by:
      getTaskPushNotificationConfig in interface SendMessageConfigurationOrBuilder
      Returns:
      The taskPushNotificationConfig.
    • setTaskPushNotificationConfig

      public SendMessageConfiguration.Builder setTaskPushNotificationConfig(TaskPushNotificationConfig value)
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
    • setTaskPushNotificationConfig

      public SendMessageConfiguration.Builder setTaskPushNotificationConfig(TaskPushNotificationConfig.Builder builderForValue)
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
    • mergeTaskPushNotificationConfig

      public SendMessageConfiguration.Builder mergeTaskPushNotificationConfig(TaskPushNotificationConfig value)
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
    • clearTaskPushNotificationConfig

      public SendMessageConfiguration.Builder clearTaskPushNotificationConfig()
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
    • getTaskPushNotificationConfigBuilder

      public TaskPushNotificationConfig.Builder getTaskPushNotificationConfigBuilder()
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
    • getTaskPushNotificationConfigOrBuilder

      public TaskPushNotificationConfigOrBuilder getTaskPushNotificationConfigOrBuilder()
       Configuration for the agent to send push notifications for task updates.
       Task id should be empty when sending this configuration in a `SendMessage` request.
       
      .lf.a2a.v1.TaskPushNotificationConfig task_push_notification_config = 2;
      Specified by:
      getTaskPushNotificationConfigOrBuilder in interface SendMessageConfigurationOrBuilder
    • hasHistoryLength

      public boolean hasHistoryLength()
       The maximum number of most recent messages from the task's history to retrieve in
       the response. An unset value means the client does not impose any limit. A
       value of zero is a request to not include any messages. The server MUST NOT
       return more messages than the provided value, but MAY apply a lower limit.
       
      optional int32 history_length = 3;
      Specified by:
      hasHistoryLength in interface SendMessageConfigurationOrBuilder
      Returns:
      Whether the historyLength field is set.
    • getHistoryLength

      public int getHistoryLength()
       The maximum number of most recent messages from the task's history to retrieve in
       the response. An unset value means the client does not impose any limit. A
       value of zero is a request to not include any messages. The server MUST NOT
       return more messages than the provided value, but MAY apply a lower limit.
       
      optional int32 history_length = 3;
      Specified by:
      getHistoryLength in interface SendMessageConfigurationOrBuilder
      Returns:
      The historyLength.
    • setHistoryLength

      public SendMessageConfiguration.Builder setHistoryLength(int value)
       The maximum number of most recent messages from the task's history to retrieve in
       the response. An unset value means the client does not impose any limit. A
       value of zero is a request to not include any messages. The server MUST NOT
       return more messages than the provided value, but MAY apply a lower limit.
       
      optional int32 history_length = 3;
      Parameters:
      value - The historyLength to set.
      Returns:
      This builder for chaining.
    • clearHistoryLength

      public SendMessageConfiguration.Builder clearHistoryLength()
       The maximum number of most recent messages from the task's history to retrieve in
       the response. An unset value means the client does not impose any limit. A
       value of zero is a request to not include any messages. The server MUST NOT
       return more messages than the provided value, but MAY apply a lower limit.
       
      optional int32 history_length = 3;
      Returns:
      This builder for chaining.
    • getReturnImmediately

      public boolean getReturnImmediately()
       If `true`, the operation returns immediately after creating the task,
       even if processing is still in progress.
       If `false` (default), the operation MUST wait until the task reaches a
       terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted
       (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
       
      bool return_immediately = 4;
      Specified by:
      getReturnImmediately in interface SendMessageConfigurationOrBuilder
      Returns:
      The returnImmediately.
    • setReturnImmediately

      public SendMessageConfiguration.Builder setReturnImmediately(boolean value)
       If `true`, the operation returns immediately after creating the task,
       even if processing is still in progress.
       If `false` (default), the operation MUST wait until the task reaches a
       terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted
       (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
       
      bool return_immediately = 4;
      Parameters:
      value - The returnImmediately to set.
      Returns:
      This builder for chaining.
    • clearReturnImmediately

      public SendMessageConfiguration.Builder clearReturnImmediately()
       If `true`, the operation returns immediately after creating the task,
       even if processing is still in progress.
       If `false` (default), the operation MUST wait until the task reaches a
       terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted
       (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
       
      bool return_immediately = 4;
      Returns:
      This builder for chaining.