Google Cloud Ces V1 Client - Class AgentInterface (0.3.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class AgentInterface.

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.

Generated from protobuf message google.cloud.ces.v1.AgentInterface

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ url string

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"

↳ protocol_binding string

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.

↳ tenant string

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

↳ protocol_version string

Required. The version of the A2A protocol this interface exposes. Use the latest supported minor version per major version. Examples: "0.3", "1.0"

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"

Returns
Type Description
string

setUrl

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"

Parameter
Name Description
var string
Returns
Type Description
$this

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.

Returns
Type Description
string

setProtocolBinding

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getTenant

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

Returns
Type Description
string

setTenant

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

Parameter
Name Description
var string
Returns
Type Description
$this

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"

Returns
Type Description
string

setProtocolVersion

Required. The version of the A2A protocol this interface exposes.

Use the latest supported minor version per major version. Examples: "0.3", "1.0"

Parameter
Name Description
var string
Returns
Type Description
$this