Class AgentInterface (0.9.0)

public final class AgentInterface extends GeneratedMessage 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 google.cloud.ces.v1beta.AgentInterface

Static Fields

PROTOCOL_BINDING_FIELD_NUMBER

public static final int PROTOCOL_BINDING_FIELD_NUMBER
Field Value
Type Description
int

PROTOCOL_VERSION_FIELD_NUMBER

public static final int PROTOCOL_VERSION_FIELD_NUMBER
Field Value
Type Description
int

TENANT_FIELD_NUMBER

public static final int TENANT_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentInterface getDefaultInstance()
Returns
Type Description
AgentInterface

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AgentInterface.Builder newBuilder()
Returns
Type Description
AgentInterface.Builder

newBuilder(AgentInterface prototype)

public static AgentInterface.Builder newBuilder(AgentInterface prototype)
Parameter
Name Description
prototype AgentInterface
Returns
Type Description
AgentInterface.Builder

parseDelimitedFrom(InputStream input)

public static AgentInterface parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AgentInterface parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AgentInterface parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AgentInterface parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AgentInterface parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AgentInterface parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AgentInterface parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentInterface
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AgentInterface> parser()
Returns
Type Description
Parser<AgentInterface>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AgentInterface getDefaultInstanceForType()
Returns
Type Description
AgentInterface

getParserForType()

public Parser<AgentInterface> getParserForType()
Returns
Type Description
Parser<AgentInterface>
Overrides

getProtocolBinding()

public String getProtocolBinding()

Required. 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
Type Description
String

The protocolBinding.

getProtocolBindingBytes()

public ByteString getProtocolBindingBytes()

Required. 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
Type Description
ByteString

The bytes for protocolBinding.

getProtocolVersion()

public String getProtocolVersion()

Required. 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
Type Description
String

The protocolVersion.

getProtocolVersionBytes()

public ByteString getProtocolVersionBytes()

Required. 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
Type Description
ByteString

The bytes for protocolVersion.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTenant()

public String getTenant()

Tenant ID to be used in the request when calling the agent.

string tenant = 3;

Returns
Type Description
String

The tenant.

getTenantBytes()

public ByteString getTenantBytes()

Tenant ID to be used in the request when calling the agent.

string tenant = 3;

Returns
Type Description
ByteString

The bytes for tenant.

getUrl()

public String getUrl()

Required. 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
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Required. 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
Type Description
ByteString

The bytes for url.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AgentInterface.Builder newBuilderForType()
Returns
Type Description
AgentInterface.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentInterface.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentInterface.Builder
Overrides

toBuilder()

public AgentInterface.Builder toBuilder()
Returns
Type Description
AgentInterface.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException