1.0.0 (latest) 1.0.0-beta01

    public sealed class Service.Types.AgentSpec : IMessage<Service.Types.AgentSpec>, IEquatable<Service.Types.AgentSpec>, IDeepCloneable<Service.Types.AgentSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Agent Registry v1 API class Service.Types.AgentSpec.

The spec of the agent.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Service.Types.AgentSpec

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.md.txt)[AgentSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.AgentSpec.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.md.txt)[AgentSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.AgentSpec.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.md.txt)[AgentSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.Service.Types.AgentSpec.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AgentRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AgentRegistry.V1/latest/Google.Cloud.AgentRegistry.V1.md.txt)

## Assembly

Google.Cloud.AgentRegistry.V1.dll

## Constructors

### AgentSpec()

    public AgentSpec()

### AgentSpec(AgentSpec)

    public AgentSpec(Service.Types.AgentSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ServiceTypesAgentSpec` |

## Properties

### Content

    public Struct Content { get; set; }

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`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### Type

    public Service.Types.AgentSpec.Types.Type Type { get; set; }

Required. The type of the agent spec content.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceTypesAgentSpecTypesType` |   |