# Google Cloud Parameter Manager V1 Client - Class Parameter (0.5.4)

0.5.4 (latest) 0.5.3 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Parameter Manager V1 Client class Parameter.

Message describing Parameter resource

Generated from protobuf message `google.cloud.parametermanager.v1.Parameter`

## Namespace

Google \\ Cloud \\ ParameterManager \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Identifier. \[Output only\] The resource name of the Parameter in the format
`projects/*/locations/*/parameters/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. \[Output only\] The resource name of the Parameter in the format
`projects/*/locations/*/parameters/*`.

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

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

### getCreateTime

Output only. \[Output only\] Create time stamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. \[Output only\] Create time stamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. \[Output only\] Update time stamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. \[Output only\] Update time stamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Labels as key value pairs

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels as key value pairs

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getFormat

Optional. Specifies the format of a Parameter.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ParameterFormat](https://docs.cloud.google.com/php/docs/reference/cloud-parametermanager/latest/V1.ParameterFormat). |

### setFormat

Optional. Specifies the format of a Parameter.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ParameterFormat](https://docs.cloud.google.com/php/docs/reference/cloud-parametermanager/latest/V1.ParameterFormat). |

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

### getPolicyMember

Output only. \[Output-only\] policy member strings of a Google Cloud
resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.ResourcePolicyMember.html|null` |   |

### hasPolicyMember

### clearPolicyMember

### setPolicyMember

Output only. \[Output-only\] policy member strings of a Google Cloud
resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.ResourcePolicyMember.html` |

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

### getKmsKey

Optional. Customer managed encryption key (CMEK) to use for encrypting the
Parameter Versions. If not set, the default Google-managed encryption key
will be used. Cloud KMS CryptoKeys must reside in the same location as the
Parameter. The expected format is
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKmsKey

### clearKmsKey

### setKmsKey

Optional. Customer managed encryption key (CMEK) to use for encrypting the
Parameter Versions. If not set, the default Google-managed encryption key
will be used. Cloud KMS CryptoKeys must reside in the same location as the
Parameter. The expected format is
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.

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

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