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.compat03.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 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()
       The output modes that the agent is expected to respond with.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModesList in interface SendMessageConfigurationOrBuilder
      Returns:
      A list containing the acceptedOutputModes.
    • getAcceptedOutputModesCount

      public int getAcceptedOutputModesCount()
       The output modes that the agent is expected to respond with.
       
      repeated string accepted_output_modes = 1;
      Specified by:
      getAcceptedOutputModesCount in interface SendMessageConfigurationOrBuilder
      Returns:
      The count of acceptedOutputModes.
    • getAcceptedOutputModes

      public String getAcceptedOutputModes(int index)
       The output modes that the agent is expected to respond with.
       
      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)
       The output modes that the agent is expected to respond with.
       
      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)
       The output modes that the agent is expected to respond with.
       
      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)
       The output modes that the agent is expected to respond with.
       
      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)
       The output modes that the agent is expected to respond with.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      values - The acceptedOutputModes to add.
      Returns:
      This builder for chaining.
    • clearAcceptedOutputModes

      public SendMessageConfiguration.Builder clearAcceptedOutputModes()
       The output modes that the agent is expected to respond with.
       
      repeated string accepted_output_modes = 1;
      Returns:
      This builder for chaining.
    • addAcceptedOutputModesBytes

      public SendMessageConfiguration.Builder addAcceptedOutputModesBytes(com.google.protobuf.ByteString value)
       The output modes that the agent is expected to respond with.
       
      repeated string accepted_output_modes = 1;
      Parameters:
      value - The bytes of the acceptedOutputModes to add.
      Returns:
      This builder for chaining.
    • hasPushNotification

      public boolean hasPushNotification()
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
      Specified by:
      hasPushNotification in interface SendMessageConfigurationOrBuilder
      Returns:
      Whether the pushNotification field is set.
    • getPushNotification

      public PushNotificationConfig getPushNotification()
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
      Specified by:
      getPushNotification in interface SendMessageConfigurationOrBuilder
      Returns:
      The pushNotification.
    • setPushNotification

      public SendMessageConfiguration.Builder setPushNotification(PushNotificationConfig value)
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
    • setPushNotification

      public SendMessageConfiguration.Builder setPushNotification(PushNotificationConfig.Builder builderForValue)
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
    • mergePushNotification

      public SendMessageConfiguration.Builder mergePushNotification(PushNotificationConfig value)
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
    • clearPushNotification

      public SendMessageConfiguration.Builder clearPushNotification()
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
    • getPushNotificationBuilder

      public PushNotificationConfig.Builder getPushNotificationBuilder()
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
    • getPushNotificationOrBuilder

      public PushNotificationConfigOrBuilder getPushNotificationOrBuilder()
       A configuration of a webhook that can be used to receive updates
       
      .a2a.v1.PushNotificationConfig push_notification = 2;
      Specified by:
      getPushNotificationOrBuilder in interface SendMessageConfigurationOrBuilder
    • getHistoryLength

      public int getHistoryLength()
       The maximum number of messages to include in the history. if 0, the
       history will be unlimited.
       
      int32 history_length = 3;
      Specified by:
      getHistoryLength in interface SendMessageConfigurationOrBuilder
      Returns:
      The historyLength.
    • setHistoryLength

      public SendMessageConfiguration.Builder setHistoryLength(int value)
       The maximum number of messages to include in the history. if 0, the
       history will be unlimited.
       
      int32 history_length = 3;
      Parameters:
      value - The historyLength to set.
      Returns:
      This builder for chaining.
    • clearHistoryLength

      public SendMessageConfiguration.Builder clearHistoryLength()
       The maximum number of messages to include in the history. if 0, the
       history will be unlimited.
       
      int32 history_length = 3;
      Returns:
      This builder for chaining.
    • getBlocking

      public boolean getBlocking()
       If true, the message will be blocking until the task is completed. If
       false, the message will be non-blocking and the task will be returned
       immediately. It is the caller's responsibility to check for any task
       updates.
       
      bool blocking = 4;
      Specified by:
      getBlocking in interface SendMessageConfigurationOrBuilder
      Returns:
      The blocking.
    • setBlocking

      public SendMessageConfiguration.Builder setBlocking(boolean value)
       If true, the message will be blocking until the task is completed. If
       false, the message will be non-blocking and the task will be returned
       immediately. It is the caller's responsibility to check for any task
       updates.
       
      bool blocking = 4;
      Parameters:
      value - The blocking to set.
      Returns:
      This builder for chaining.
    • clearBlocking

      public SendMessageConfiguration.Builder clearBlocking()
       If true, the message will be blocking until the task is completed. If
       false, the message will be non-blocking and the task will be returned
       immediately. It is the caller's responsibility to check for any task
       updates.
       
      bool blocking = 4;
      Returns:
      This builder for chaining.