# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::AttributeTypeAndValue (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.1 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.6 Reference documentation and code samples for the Certificate Authority Service V1 API class Google::Cloud::Security::PrivateCA::V1::AttributeTypeAndValue.

[AttributeTypeAndValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-AttributeTypeAndValue "Google::Cloud::Security::PrivateCA::V1::AttributeTypeAndValue (class)")
specifies an attribute type and value. It can use either a OID or enum value
to specify the attribute type.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #object_id

    def object_id() -> ::Google::Cloud::Security::PrivateCA::V1::ObjectId

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)) --- Object ID for an attribute type of an attribute and value pair.


  Note: The following fields are mutually exclusive: `object_id`, `type`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #object_id=

    def object_id=(value) -> ::Google::Cloud::Security::PrivateCA::V1::ObjectId

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)) --- Object ID for an attribute type of an attribute and value pair.


  Note: The following fields are mutually exclusive: `object_id`, `type`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-ObjectId)) --- Object ID for an attribute type of an attribute and value pair.


  Note: The following fields are mutually exclusive: `object_id`, `type`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #type

    def type() -> ::Google::Cloud::Security::PrivateCA::V1::AttributeType

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-AttributeType)) --- The attribute type of the attribute and value pair.


  Note: The following fields are mutually exclusive: `type`, `object_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #type=

    def type=(value) -> ::Google::Cloud::Security::PrivateCA::V1::AttributeType

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-AttributeType)) --- The attribute type of the attribute and value pair.


  Note: The following fields are mutually exclusive: `type`, `object_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-AttributeType)) --- The attribute type of the attribute and value pair.


  Note: The following fields are mutually exclusive: `type`, `object_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #value

    def value() -> ::String

**Returns**

- (::String) --- The value for the attribute type.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- The value for the attribute type.
**Returns**

- (::String) --- The value for the attribute type.