1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::Tag.

The key and value for a
[tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #tag_key

    def tag_key() -> ::String

**Returns**

- (::String) --- TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.

### #tag_key=

    def tag_key=(value) -> ::String

**Parameter**

- **value** (::String) --- TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
**Returns**

- (::String) --- TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.

### #tag_key_id

    def tag_key_id() -> ::String

**Returns**

- (::String) --- TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.

### #tag_key_id=

    def tag_key_id=(value) -> ::String

**Parameter**

- **value** (::String) --- TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
**Returns**

- (::String) --- TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.

### #tag_value

    def tag_value() -> ::String

**Returns**

- (::String) --- TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.

### #tag_value=

    def tag_value=(value) -> ::String

**Parameter**

- **value** (::String) --- TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
**Returns**

- (::String) --- TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.

### #tag_value_id

    def tag_value_id() -> ::String

**Returns**

- (::String) --- TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.

### #tag_value_id=

    def tag_value_id=(value) -> ::String

**Parameter**

- **value** (::String) --- TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
**Returns**

- (::String) --- TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.