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

Request for the `TransferDomain` method.

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

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

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

### getParent

Required. The parent resource of the `Registration`. Must be in the
format `projects/*/locations/*`.

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

### setParent

Required. The parent resource of the `Registration`. Must be in the
format `projects/*/locations/*`.

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

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

### getRegistration

Required. The complete `Registration` resource to be created.

You can leave `registration.dns_settings` unset to import the
domain's current DNS configuration from its current registrar. Use this
option only if you are sure that the domain's current DNS service
does not cease upon transfer, as is often the case for DNS services
provided for free by the registrar.

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

### hasRegistration

### clearRegistration

### setRegistration

Required. The complete `Registration` resource to be created.

You can leave `registration.dns_settings` unset to import the
domain's current DNS configuration from its current registrar. Use this
option only if you are sure that the domain's current DNS service
does not cease upon transfer, as is often the case for DNS services
provided for free by the registrar.

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

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

### getContactNotices

The list of contact notices that you acknowledge. The notices
needed here depend on the values specified in
`registration.contact_settings`.

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

### setContactNotices

The list of contact notices that you acknowledge. The notices
needed here depend on the values specified in
`registration.contact_settings`.

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

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

### getYearlyPrice

Required. Acknowledgement of the price to transfer or renew the domain for one year.

Call `RetrieveTransferParameters` to obtain the price, which you must
acknowledge.

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

### hasYearlyPrice

### clearYearlyPrice

### setYearlyPrice

Required. Acknowledgement of the price to transfer or renew the domain for one year.

Call `RetrieveTransferParameters` to obtain the price, which you must
acknowledge.

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

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

### getAuthorizationCode

The domain's transfer authorization code. You can obtain this from the
domain's current registrar.

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

### hasAuthorizationCode

### clearAuthorizationCode

### setAuthorizationCode

The domain's transfer authorization code. You can obtain this from the
domain's current registrar.

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

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

### getValidateOnly

Validate the request without actually transferring the domain.

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

### setValidateOnly

Validate the request without actually transferring the domain.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource of the `Registration`. Must be in the format `projects/*/locations/*`. Please see DomainsClient::locationName() for help formatting this field. |
| `registration` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.Registration` Required. The complete `Registration` resource to be created. You can leave `registration.dns_settings` unset to import the domain's current DNS configuration from its current registrar. Use this option only if you are sure that the domain's current DNS service does not cease upon transfer, as is often the case for DNS services provided for free by the registrar. |
| `yearlyPrice` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` Required. Acknowledgement of the price to transfer or renew the domain for one year. Call `RetrieveTransferParameters` to obtain the price, which you must acknowledge. |
| `authorizationCode` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.AuthorizationCode` The domain's transfer authorization code. You can obtain this from the domain's current registrar. |

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