public static final class AgentInterface.Builder extends GeneratedMessage.Builder<AgentInterface.Builder> implements AgentInterfaceOrBuilderDeclares 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AgentInterface.BuilderImplements
AgentInterfaceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AgentInterface build()| Returns | |
|---|---|
| Type | Description |
AgentInterface |
|
buildPartial()
public AgentInterface buildPartial()| Returns | |
|---|---|
| Type | Description |
AgentInterface |
|
clear()
public AgentInterface.Builder clear()| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
|
clearProtocolBinding()
public AgentInterface.Builder clearProtocolBinding() 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 |
AgentInterface.Builder |
This builder for chaining. |
clearProtocolVersion()
public AgentInterface.Builder clearProtocolVersion()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 |
AgentInterface.Builder |
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 | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
clearUrl()
public AgentInterface.Builder clearUrl()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 |
AgentInterface.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AgentInterface getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AgentInterface |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AgentInterface other)
public AgentInterface.Builder mergeFrom(AgentInterface other)| Parameter | |
|---|---|
| Name | Description |
other |
AgentInterface |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AgentInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AgentInterface.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
|
setProtocolBinding(String value)
public AgentInterface.Builder setProtocolBinding(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe protocolBinding to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setProtocolBindingBytes(ByteString value)
public AgentInterface.Builder setProtocolBindingBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for protocolBinding to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setProtocolVersion(String value)
public AgentInterface.Builder setProtocolVersion(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe protocolVersion to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setProtocolVersionBytes(ByteString value)
public AgentInterface.Builder setProtocolVersionBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for protocolVersion to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setTenant(String value)
public AgentInterface.Builder setTenant(String value)Tenant ID to be used in the request when calling the agent.
string tenant = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tenant to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setTenantBytes(ByteString value)
public AgentInterface.Builder setTenantBytes(ByteString value)Tenant ID to be used in the request when calling the agent.
string tenant = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tenant to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setUrl(String value)
public AgentInterface.Builder setUrl(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public AgentInterface.Builder setUrlBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
AgentInterface.Builder |
This builder for chaining. |