Enum Class TransportProtocol_v0_3

java.lang.Object
java.lang.Enum<TransportProtocol_v0_3>
org.a2aproject.sdk.compat03.spec.TransportProtocol_v0_3
All Implemented Interfaces:
Serializable, Comparable<TransportProtocol_v0_3>, Constable

public enum TransportProtocol_v0_3 extends Enum<TransportProtocol_v0_3>
Supported A2A transport protocols.
  • Enum Constant Details

  • Method Details

    • values

      public static TransportProtocol_v0_3[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransportProtocol_v0_3 valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the string representation of this transport protocol.

      Used for JSON serialization.

      Returns:
      the transport protocol name as a string
    • fromString

      public static TransportProtocol_v0_3 fromString(String transport)
      Parses a string into a TransportProtocol_v0_3 enum constant.

      Used for JSON deserialization.

      Parameters:
      transport - the transport protocol string (e.g., "JSONRPC", "GRPC", "HTTP+JSON")
      Returns:
      the corresponding TransportProtocol enum constant
      Throws:
      IllegalArgumentException - if the transport string is not recognized