Google Cloud Agent Registry V1 Client - Class Protocol (0.2.0)

Reference documentation and code samples for the Google Cloud Agent Registry V1 Client class Protocol.

Represents the protocol of an Agent.

Generated from protobuf message google.cloud.agentregistry.v1.Agent.Protocol

Namespace

Google \ Cloud \ AgentRegistry \ V1 \ Agent

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Output only. The type of the protocol.

↳ protocol_version string

Output only. The version of the protocol, for example, the A2A Agent Card version.

↳ interfaces array<Google\Cloud\AgentRegistry\V1\PBInterface>

Output only. The connection details for the Agent.

getType

Output only. The type of the protocol.

Returns
Type Description
int Enum of type Type.

setType

Output only. The type of the protocol.

Parameter
Name Description
var int

Enum of type Type.

Returns
Type Description
$this

getProtocolVersion

Output only. The version of the protocol, for example, the A2A Agent Card version.

Returns
Type Description
string

setProtocolVersion

Output only. The version of the protocol, for example, the A2A Agent Card version.

Parameter
Name Description
var string
Returns
Type Description
$this

getInterfaces

Output only. The connection details for the Agent.

Returns
Type Description
Google\Protobuf\RepeatedField<Google\Cloud\AgentRegistry\V1\PBInterface>

setInterfaces

Output only. The connection details for the Agent.

Parameter
Name Description
var array<Google\Cloud\AgentRegistry\V1\PBInterface>
Returns
Type Description
$this