Class SendMessageConfiguration

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.grpc.SendMessageConfiguration
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, SendMessageConfigurationOrBuilder

@Generated public final class SendMessageConfiguration extends com.google.protobuf.GeneratedMessage implements SendMessageConfigurationOrBuilder
 Configuration of a send message request.
 
Protobuf type lf.a2a.v1.SendMessageConfiguration
See Also:
  • Field Details

    • ACCEPTED_OUTPUT_MODES_FIELD_NUMBER

      public static final int ACCEPTED_OUTPUT_MODES_FIELD_NUMBER
      See Also:
    • TASK_PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER

      public static final int TASK_PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER
      See Also:
    • HISTORY_LENGTH_FIELD_NUMBER

      public static final int HISTORY_LENGTH_FIELD_NUMBER
      See Also:
    • RETURN_IMMEDIATELY_FIELD_NUMBER

      public static final int RETURN_IMMEDIATELY_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SendMessageConfiguration parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SendMessageConfiguration parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SendMessageConfiguration parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SendMessageConfiguration parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SendMessageConfiguration parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SendMessageConfiguration parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SendMessageConfiguration parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static SendMessageConfiguration.Builder newBuilder()
    • newBuilder

      public static SendMessageConfiguration.Builder newBuilder(SendMessageConfiguration prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SendMessageConfiguration.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SendMessageConfiguration getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SendMessageConfiguration> parser()
    • getParserForType

      public com.google.protobuf.Parser<SendMessageConfiguration> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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