1.2.0 (latest) 1.1.0 1.0.0

    public sealed class Definition : IMessage<Definition>, IEquatable<Definition>, IDeepCloneable<Definition>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class Definition.

Represents a definition for example schema, request, response definitions
contained in an API version.
A definition is added/updated/deleted in an API version when a new spec is
added or an existing spec is updated/deleted in a version. Currently,
definition will be created only corresponding to OpenAPI spec as parsing is
supported for OpenAPI spec. Also, within OpenAPI spec, only `schema` object
is supported.

## Inheritance

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

## Implements

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

## 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.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### Definition()

    public Definition()

### Definition(Definition)

    public Definition(Definition other)

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

## Properties

### Attributes

    public MapField<string, AttributeValues> Attributes { get; }

Optional. The list of user defined attributes associated with the
definition resource. The key is the attribute name. It will be of the
format: `projects/{project}/locations/{location}/attributes/{attribute}`.
The value is the attribute values associated with the resource.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which the definition was created.

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

### DefinitionName

    public DefinitionName DefinitionName { get; set; }

[DefinitionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DefinitionName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Definition.md.txt#Google_Cloud_ApiHub_V1_Definition_Name) resource name property.

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

### Name

    public string Name { get; set; }

Identifier. The name of the definition.

Format:
`projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`

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

### Schema

    public Schema Schema { get; set; }

Output only. The value of a schema definition.

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

### Spec

    public string Spec { get; set; }

Output only. The name of the spec from where the definition was parsed.
Format is
`projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

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

### SpecAsSpecName

    public SpecName SpecAsSpecName { get; set; }

[SpecName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.SpecName.md.txt)-typed view over the [Spec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Definition.md.txt#Google_Cloud_ApiHub_V1_Definition_Spec) resource name property.

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

### Type

    public Definition.Types.Type Type { get; set; }

Output only. The type of the definition.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time at which the definition was last updated.

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

### ValueCase

    public Definition.ValueOneofCase ValueCase { get; }

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