1.3.0 (latest) 1.2.0 1.1.0 1.0.0

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

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

The \[CreateAttribute\]\[google.cloud.apihub.v1.ApiHub.CreateAttribute\] method's
request.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateAttributeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateAttributeRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateAttributeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateAttributeRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateAttributeRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateAttributeRequest.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.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

### CreateAttributeRequest()

    public CreateAttributeRequest()

### CreateAttributeRequest(CreateAttributeRequest)

    public CreateAttributeRequest(CreateAttributeRequest other)

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

## Properties

### Attribute

    public Attribute Attribute { get; set; }

Required. The attribute to create.

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

### AttributeId

    public string AttributeId { get; set; }

Optional. The ID to use for the attribute, which will become the final
component of the attribute's resource name. This field is optional.

- If provided, the same will be used. The service will throw an error if the specified id is already used by another attribute resource in the API hub.
- If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters
are /\[a-z\]\[A-Z\]\[0-9\]-_/.

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

### Parent

    public string Parent { get; set; }

Required. The parent resource for Attribute.
Format: `projects/{project}/locations/{location}`

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateAttributeRequest.md.txt#Google_Cloud_ApiHub_V1_CreateAttributeRequest_Parent) resource name property.

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