# Google Cloud Domains V1 Client - Class Registration (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class Registration.

The `Registration` resource facilitates managing and configuring domain name
registrations.

There are several ways to create a new `Registration` resource:
To create a new `Registration` resource, find a suitable domain name by
calling the `SearchDomains` method with a query to see available domain name
options. After choosing a name, call `RetrieveRegisterParameters` to
ensure availability and obtain information like pricing, which is needed to
build a call to `RegisterDomain`.
Another way to create a new `Registration` is to transfer an existing
domain from another registrar. First, go to the current registrar to unlock
the domain for transfer and retrieve the domain's transfer authorization
code. Then call `RetrieveTransferParameters` to confirm that the domain is
unlocked and to get values needed to build a call to `TransferDomain`.

Generated from protobuf message `google.cloud.domains.v1.Registration`

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

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

### getName

Output only. Name of the `Registration` resource, in the format
`projects/*/locations/*/registrations/<domain_name>`.

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

### setName

Output only. Name of the `Registration` resource, in the format
`projects/*/locations/*/registrations/<domain_name>`.

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

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

### getDomainName

Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.

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

### setDomainName

Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.

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

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

### getCreateTime

Output only. The creation timestamp of the `Registration` resource.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation timestamp of the `Registration` resource.

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

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

### getExpireTime

Output only. The expiration timestamp of the `Registration`.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. The expiration timestamp of the `Registration`.

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

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

### getState

Output only. The state of the `Registration`

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

### setState

Output only. The state of the `Registration`

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

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

### getIssues

Output only. The set of issues with the `Registration` that require attention.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setIssues

Output only. The set of issues with the `Registration` that require attention.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getLabels

Set of labels associated with the `Registration`.

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

### setLabels

Set of labels associated with the `Registration`.

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

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

### getManagementSettings

Settings for management of the `Registration`, including renewal, billing,
and transfer. You cannot update these with the `UpdateRegistration`
method. To update these settings, use the `ConfigureManagementSettings`
method.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ManagementSettings|null` |   |

### hasManagementSettings

### clearManagementSettings

### setManagementSettings

Settings for management of the `Registration`, including renewal, billing,
and transfer. You cannot update these with the `UpdateRegistration`
method. To update these settings, use the `ConfigureManagementSettings`
method.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ManagementSettings` |

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

### getDnsSettings

Settings controlling the DNS configuration of the `Registration`. You
cannot update these with the `UpdateRegistration` method. To update these
settings, use the `ConfigureDnsSettings` method.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings|null` |   |

### hasDnsSettings

### clearDnsSettings

### setDnsSettings

Settings controlling the DNS configuration of the `Registration`. You
cannot update these with the `UpdateRegistration` method. To update these
settings, use the `ConfigureDnsSettings` method.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings` |

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

### getContactSettings

Required. Settings for contact information linked to the `Registration`. You cannot
update these with the `UpdateRegistration` method. To update these
settings, use the `ConfigureContactSettings` method.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings|null` |   |

### hasContactSettings

### clearContactSettings

### setContactSettings

Required. Settings for contact information linked to the `Registration`. You cannot
update these with the `UpdateRegistration` method. To update these
settings, use the `ConfigureContactSettings` method.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings` |

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

### getPendingContactSettings

Output only. Pending contact settings for the `Registration`. Updates to the
`contact_settings` field that change its `registrant_contact` or `privacy`
fields require email confirmation by the `registrant_contact`
before taking effect. This field is set only if there are pending updates
to the `contact_settings` that have not been confirmed. To confirm the
changes, the `registrant_contact` must follow the instructions in the
email they receive.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings|null` |   |

### hasPendingContactSettings

### clearPendingContactSettings

### setPendingContactSettings

Output only. Pending contact settings for the `Registration`. Updates to the
`contact_settings` field that change its `registrant_contact` or `privacy`
fields require email confirmation by the `registrant_contact`
before taking effect. This field is set only if there are pending updates
to the `contact_settings` that have not been confirmed. To confirm the
changes, the `registrant_contact` must follow the instructions in the
email they receive.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings` |

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

### getSupportedPrivacy

Output only. Set of options for the `contact_settings.privacy` field that this
`Registration` supports.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setSupportedPrivacy

Output only. Set of options for the `contact_settings.privacy` field that this
`Registration` supports.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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