# Google Cloud Domains V1 Client - Class RegisterParameters (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 RegisterParameters.

Parameters required to register a new domain.

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

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ domain_name` | `string` The domain name. Unicode domain names are expressed in Punycode format. |
| `↳ availability` | `int` Indicates whether the domain is available for registration. This value is accurate when obtained by calling `RetrieveRegisterParameters`, but is approximate when obtained by calling `SearchDomains`. |
| `↳ supported_privacy` | `int[]` Contact privacy options that the domain supports. |
| `↳ domain_notices` | `int[]` Notices about special properties of the domain. |
| `↳ yearly_price` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` Price to register or renew the domain for one year. |

### getDomainName

The domain name. Unicode domain names are expressed in Punycode format.

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

### setDomainName

The domain name. Unicode domain names are expressed in Punycode format.

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

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

### getAvailability

Indicates whether the domain is available for registration. This value is
accurate when obtained by calling `RetrieveRegisterParameters`, but is
approximate when obtained by calling `SearchDomains`.

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

### setAvailability

Indicates whether the domain is available for registration. This value is
accurate when obtained by calling `RetrieveRegisterParameters`, but is
approximate when obtained by calling `SearchDomains`.

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

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

### getSupportedPrivacy

Contact privacy options that the domain supports.

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

### setSupportedPrivacy

Contact privacy options that the domain supports.

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

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

### getDomainNotices

Notices about special properties of the domain.

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

### setDomainNotices

Notices about special properties of the domain.

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

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

### getYearlyPrice

Price to register or renew the domain for one year.

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

### hasYearlyPrice

### clearYearlyPrice

### setYearlyPrice

Price to register or renew the domain for one year.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` |

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