# Google Cloud Resource Manager V3 Client - Class CreateTagValueRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.8.5 0.7.2 0.6.1 0.5.0 0.4.1 0.3.9 Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class CreateTagValueRequest.

The request message for creating a TagValue.

Generated from protobuf message `google.cloud.resourcemanager.v3.CreateTagValueRequest`

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tag_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagValue` Required. The TagValue to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request. |
| `↳ validate_only` | `bool` Optional. Set as true to perform the validations necessary for creating the resource, but not actually perform the action. |

### getTagValue

Required. The TagValue to be created. Only fields `short_name`,
`description`, and `parent` are considered during the creation request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagValue|null` |   |

### hasTagValue

### clearTagValue

### setTagValue

Required. The TagValue to be created. Only fields `short_name`,
`description`, and `parent` are considered during the creation request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValidateOnly

Optional. Set as true to perform the validations necessary for creating the
resource, but not actually perform the action.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. Set as true to perform the validations necessary for creating the
resource, but not actually perform the action.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tagValue` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagValue` Required. The TagValue to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.CreateTagValueRequest` |   |