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

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

The spec of the agent.

Generated from protobuf message google.cloud.agentregistry.v1.Service.AgentSpec

Namespace

Google \ Cloud \ AgentRegistry \ V1 \ Service

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Required. The type of the agent spec content.

↳ content Google\Protobuf\Struct

Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

getType

Required. The type of the agent spec content.

Returns
Type Description
int Enum of type Type.

setType

Required. The type of the agent spec content.

Parameter
Name Description
var int

Enum of type Type.

Returns
Type Description
$this

getContent

Optional. The content of the Agent spec in the JSON format.

This payload is validated against the schema for the specified type. The content size is limited to 10KB.

Returns
Type Description
Google\Protobuf\Struct|null

hasContent

clearContent

setContent

Optional. The content of the Agent spec in the JSON format.

This payload is validated against the schema for the specified type. The content size is limited to 10KB.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this