# Certificate Authority v1 API - Class AttributeTypeAndValue (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

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

Reference documentation and code samples for the Certificate Authority v1 API class AttributeTypeAndValue.

\[AttributeTypeAndValue\]\[google.cloud.security.privateca.v1.AttributeTypeAndValue\]
specifies an attribute type and value. It can use either a OID or enum value
to specify the attribute type.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Security.PrivateCA.V1.dll

## Constructors

### AttributeTypeAndValue()

    public AttributeTypeAndValue()

### AttributeTypeAndValue(AttributeTypeAndValue)

    public AttributeTypeAndValue(AttributeTypeAndValue other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.AttributeTypeAndValue` |

## Properties

### AttributeTypeCase

    public AttributeTypeAndValue.AttributeTypeOneofCase AttributeTypeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.AttributeTypeAndValuehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.AttributeTypeAndValue.AttributeTypeOneofCase` |   |

### HasType

    public bool HasType { get; }

Gets whether the "type" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ObjectId

    public ObjectId ObjectId { get; set; }

Object ID for an attribute type of an attribute and value pair.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.ObjectId` |   |

### Type

    public AttributeType Type { get; set; }

The attribute type of the attribute and value pair.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.AttributeType` |   |

### Value

    public string Value { get; set; }

The value for the attribute type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |