Class AgentInterface.Builder

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

public static final class AgentInterface.Builder extends com.google.protobuf.GeneratedMessage.Builder<AgentInterface.Builder> implements AgentInterfaceOrBuilder
 Declares a combination of a target URL, transport and protocol version for interacting with the agent.
 This allows agents to expose the same functionality over multiple protocol binding mechanisms.
 
Protobuf type lf.a2a.v1.AgentInterface
  • 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<AgentInterface.Builder>
    • clear

      public AgentInterface.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<AgentInterface.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<AgentInterface.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AgentInterface.Builder mergeFrom(AgentInterface other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AgentInterface.Builder>
    • mergeFrom

      public AgentInterface.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<AgentInterface.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
       Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrl in interface AgentInterfaceOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
       Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrlBytes in interface AgentInterfaceOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public AgentInterface.Builder setUrl(String value)
       The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
       Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public AgentInterface.Builder clearUrl()
       The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
       Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public AgentInterface.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
       Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getProtocolBinding

      public String getProtocolBinding()
       The protocol binding supported at this URL. This is an open form string, to be
       easily extended for other protocol bindings. The core ones officially
       supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
       
      string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolBinding in interface AgentInterfaceOrBuilder
      Returns:
      The protocolBinding.
    • getProtocolBindingBytes

      public com.google.protobuf.ByteString getProtocolBindingBytes()
       The protocol binding supported at this URL. This is an open form string, to be
       easily extended for other protocol bindings. The core ones officially
       supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
       
      string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolBindingBytes in interface AgentInterfaceOrBuilder
      Returns:
      The bytes for protocolBinding.
    • setProtocolBinding

      public AgentInterface.Builder setProtocolBinding(String value)
       The protocol binding supported at this URL. This is an open form string, to be
       easily extended for other protocol bindings. The core ones officially
       supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
       
      string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The protocolBinding to set.
      Returns:
      This builder for chaining.
    • clearProtocolBinding

      public AgentInterface.Builder clearProtocolBinding()
       The protocol binding supported at this URL. This is an open form string, to be
       easily extended for other protocol bindings. The core ones officially
       supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
       
      string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProtocolBindingBytes

      public AgentInterface.Builder setProtocolBindingBytes(com.google.protobuf.ByteString value)
       The protocol binding supported at this URL. This is an open form string, to be
       easily extended for other protocol bindings. The core ones officially
       supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
       
      string protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for protocolBinding to set.
      Returns:
      This builder for chaining.
    • getTenant

      public String getTenant()
       Tenant ID to be used in the request when calling the agent.
       
      string tenant = 3;
      Specified by:
      getTenant in interface AgentInterfaceOrBuilder
      Returns:
      The tenant.
    • getTenantBytes

      public com.google.protobuf.ByteString getTenantBytes()
       Tenant ID to be used in the request when calling the agent.
       
      string tenant = 3;
      Specified by:
      getTenantBytes in interface AgentInterfaceOrBuilder
      Returns:
      The bytes for tenant.
    • setTenant

      public AgentInterface.Builder setTenant(String value)
       Tenant ID to be used in the request when calling the agent.
       
      string tenant = 3;
      Parameters:
      value - The tenant to set.
      Returns:
      This builder for chaining.
    • clearTenant

      public AgentInterface.Builder clearTenant()
       Tenant ID to be used in the request when calling the agent.
       
      string tenant = 3;
      Returns:
      This builder for chaining.
    • setTenantBytes

      public AgentInterface.Builder setTenantBytes(com.google.protobuf.ByteString value)
       Tenant ID to be used in the request when calling the agent.
       
      string tenant = 3;
      Parameters:
      value - The bytes for tenant to set.
      Returns:
      This builder for chaining.
    • getProtocolVersion

      public String getProtocolVersion()
       The version of the A2A protocol this interface exposes.
       Use the latest supported minor version per major version.
       Examples: "0.3", "1.0"
       
      string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolVersion in interface AgentInterfaceOrBuilder
      Returns:
      The protocolVersion.
    • getProtocolVersionBytes

      public com.google.protobuf.ByteString getProtocolVersionBytes()
       The version of the A2A protocol this interface exposes.
       Use the latest supported minor version per major version.
       Examples: "0.3", "1.0"
       
      string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolVersionBytes in interface AgentInterfaceOrBuilder
      Returns:
      The bytes for protocolVersion.
    • setProtocolVersion

      public AgentInterface.Builder setProtocolVersion(String value)
       The version of the A2A protocol this interface exposes.
       Use the latest supported minor version per major version.
       Examples: "0.3", "1.0"
       
      string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The protocolVersion to set.
      Returns:
      This builder for chaining.
    • clearProtocolVersion

      public AgentInterface.Builder clearProtocolVersion()
       The version of the A2A protocol this interface exposes.
       Use the latest supported minor version per major version.
       Examples: "0.3", "1.0"
       
      string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProtocolVersionBytes

      public AgentInterface.Builder setProtocolVersionBytes(com.google.protobuf.ByteString value)
       The version of the A2A protocol this interface exposes.
       Use the latest supported minor version per major version.
       Examples: "0.3", "1.0"
       
      string protocol_version = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for protocolVersion to set.
      Returns:
      This builder for chaining.