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

Parameters required to transfer a domain from another registrar.

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

## 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. |
| `↳ current_registrar` | `string` The registrar that currently manages the domain. |
| `↳ name_servers` | `string[]` The name servers that currently store the configuration of the domain. |
| `↳ transfer_lock_state` | `int` Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show `UNLOCKED`. To unlock a domain, go to its current registrar. |
| `↳ supported_privacy` | `int[]` Contact privacy options that the domain supports. |
| `↳ yearly_price` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` Price to transfer 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` |   |

### getCurrentRegistrar

The registrar that currently manages the domain.

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

### setCurrentRegistrar

The registrar that currently manages the domain.

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

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

### getNameServers

The name servers that currently store the configuration of the domain.

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

### setNameServers

The name servers that currently store the configuration of the domain.

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

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

### getTransferLockState

Indicates whether the domain is protected by a transfer lock. For a
transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
go to its current registrar.

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

### setTransferLockState

Indicates whether the domain is protected by a transfer lock. For a
transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
go to its current registrar.

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

| **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` |   |

### getYearlyPrice

Price to transfer 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 transfer 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` |   |