# Cloud Domains v1 API - Class Registration (2.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/2.4.0/Google.Cloud.Domains.V1.Registration)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/2.3.0/Google.Cloud.Domains.V1.Registration)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/2.2.0/Google.Cloud.Domains.V1.Registration)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/2.1.0/Google.Cloud.Domains.V1.Registration)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/2.0.0/Google.Cloud.Domains.V1.Registration)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/1.0.0/Google.Cloud.Domains.V1.Registration)

    public sealed class Registration : IMessage<Registration>, IEquatable<Registration>, IDeepCloneable<Registration>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Domains v1 API 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`.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Registration

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Registration](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Registration](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Registration](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Domains.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1)

## Assembly

Google.Cloud.Domains.V1.dll

## Constructors

### Registration()

    public Registration()

### Registration(Registration)

    public Registration(Registration other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration` |

## Properties

### ContactSettings

    public ContactSettings ContactSettings { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.ContactSettings` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DnsSettings

    public DnsSettings DnsSettings { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.DnsSettings` |   |

### DomainName

    public string DomainName { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ExpireTime

    public Timestamp ExpireTime { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Issues

    public RepeatedField<Registration.Types.Issue> Issues { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registrationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration.Types.Issue` |   |

### Labels

    public MapField<string, string> Labels { get; }

Set of labels associated with the `Registration`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### ManagementSettings

    public ManagementSettings ManagementSettings { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.ManagementSettings` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PendingContactSettings

    public ContactSettings PendingContactSettings { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.ContactSettings` |   |

### RegistrationName

    public RegistrationName RegistrationName { get; set; }

[RegistrationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.RegistrationName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration#Google_Cloud_Domains_V1_Registration_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.RegistrationName` |   |

### State

    public Registration.Types.State State { get; set; }

Output only. The state of the `Registration`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registrationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.Registration.Types.State` |   |

### SupportedPrivacy

    public RepeatedField<ContactPrivacy> SupportedPrivacy { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Domains.V1/latest/Google.Cloud.Domains.V1.ContactPrivacy` |   |