# Agent Registry V1 API - Class Google::Cloud::AgentRegistry::V1::Service::AgentSpec (v0.1.0)

Reference documentation and code samples for the Agent Registry V1 API class Google::Cloud::AgentRegistry::V1::Service::AgentSpec.

The spec of the agent.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::Google::Protobuf::Struct

**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/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`.

### #content=

    def content=(value) -> ::Google::Protobuf::Struct

**Parameter**

- **value** ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/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`.
**Returns**

- ([::Google::Protobuf::Struct](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/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`.

### #type

    def type() -> ::Google::Cloud::AgentRegistry::V1::Service::AgentSpec::Type

**Returns**

- ([::Google::Cloud::AgentRegistry::V1::Service::AgentSpec::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/Google-Cloud-AgentRegistry-V1-Service-AgentSpec-Type)) --- Required. The type of the agent spec content.

### #type=

    def type=(value) -> ::Google::Cloud::AgentRegistry::V1::Service::AgentSpec::Type

**Parameter**

- **value** ([::Google::Cloud::AgentRegistry::V1::Service::AgentSpec::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/Google-Cloud-AgentRegistry-V1-Service-AgentSpec-Type)) --- Required. The type of the agent spec content.
**Returns**

- ([::Google::Cloud::AgentRegistry::V1::Service::AgentSpec::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-agent_registry-v1/latest/Google-Cloud-AgentRegistry-V1-Service-AgentSpec-Type)) --- Required. The type of the agent spec content.