Service Client: Google::Cloud::Domains::V1alpha2::Domains::DomainsClient
Client stub representing the remote Domains gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to domains.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Domains::V1alpha2::Domains - Compiled Protocol Buffers messages for google/cloud/domains/v1alpha2/domains.proto
SYNOPSIS
use Google::Cloud::Domains::V1alpha2::Domains;
my $msg = Google::Cloud::Domains::V1alpha2::Domains::Registration->new({
name => $name,
domain_name => $domain_name,
create_time => $create_time,
expire_time => $expire_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Domains::V1alpha2::Domains::Registration->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/domains/v1alpha2/domains.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Domains::V1alpha2::Domains::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`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Name of the `Registration` resource, in the format `projects/*/locations/*/registrations/<domain_name>`.
$msg->domain_name()/$msg->domain_name($value)Type:
StringRequired. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The creation timestamp of the `Registration` resource.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The expiration timestamp of the `Registration`.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::Registration::State)Output only. The state of the `Registration`
$msg->issues()/$msg->issues($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::Registration::Issue)Output only. The set of issues with the `Registration` that require attention.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::Registration::LabelsEntry)Set of labels associated with the `Registration`.
$msg->management_settings()/$msg->management_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ManagementSettings)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.
$msg->dns_settings()/$msg->dns_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::DnsSettings)Settings controlling the DNS configuration of the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureDnsSettings` method.
$msg->contact_settings()/$msg->contact_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings)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.
$msg->pending_contact_settings()/$msg->pending_contact_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings)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.
$msg->supported_privacy()/$msg->supported_privacy($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactPrivacy)Output only. Set of options for the `contact_settings.privacy` field that this `Registration` supports.
Enum: Registration::State
STATE_UNSPECIFIED=>0REGISTRATION_PENDING=>1REGISTRATION_FAILED=>2TRANSFER_PENDING=>3TRANSFER_FAILED=>4ACTIVE=>6SUSPENDED=>7EXPORTED=>8
Enum: Registration::Issue
ISSUE_UNSPECIFIED=>0CONTACT_SUPPORT=>1UNVERIFIED_EMAIL=>2
Google::Cloud::Domains::V1alpha2::Domains::ManagementSettings
Defines renewal, billing, and transfer settings for a `Registration`.
Inherits from Protobuf::Message.
Accessors
$msg->renewal_method()/$msg->renewal_method($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ManagementSettings::RenewalMethod)Output only. The renewal method for this `Registration`.
$msg->transfer_lock_state()/$msg->transfer_lock_state($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::TransferLockState)Controls whether the domain can be transferred to another registrar.
Enum: ManagementSettings::RenewalMethod
RENEWAL_METHOD_UNSPECIFIED=>0AUTOMATIC_RENEWAL=>1MANUAL_RENEWAL=>2
Google::Cloud::Domains::V1alpha2::Domains::DnsSettings
Defines the DNS configuration of a `Registration`, including name servers, DNSSEC, and glue records.
Inherits from Protobuf::Message.
Accessors
$msg->custom_dns()/$msg->custom_dns($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::DnsSettings::CustomDns)An arbitrary DNS provider identified by its name servers.
$msg->google_domains_dns()/$msg->google_domains_dns($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::DnsSettings::GoogleDomainsDns)The free DNS zone provided by [Google Domains](https://domains.google/).
$msg->glue_records()/$msg->glue_records($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::DnsSettings::GlueRecord)The list of glue records for this `Registration`. Commonly empty.
Enum: DnsSettings::DsState
DS_STATE_UNSPECIFIED=>0DS_RECORDS_UNPUBLISHED=>1DS_RECORDS_PUBLISHED=>2
Google::Cloud::Domains::V1alpha2::Domains::ContactSettings
Defines the contact information associated with a `Registration`.
[ICANN](https://icann.org/) requires all domain names to have associated contact information. The `registrant_contact` is considered the domain's legal owner, and often the other contacts are identical.
Inherits from Protobuf::Message.
Accessors
$msg->privacy()/$msg->privacy($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactPrivacy)Required. Privacy setting for the contacts associated with the `Registration`.
$msg->registrant_contact()/$msg->registrant_contact($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings::Contact)Required. The registrant contact for the `Registration`.
*Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.*
*Warning: For new `Registration`s, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.*
$msg->admin_contact()/$msg->admin_contact($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings::Contact)Required. The administrative contact for the `Registration`.
$msg->technical_contact()/$msg->technical_contact($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings::Contact)Required. The technical contact for the `Registration`.
Google::Cloud::Domains::V1alpha2::Domains::SearchDomainsRequest
Request for the `SearchDomains` method.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
StringRequired. String used to search for available domain names.
$msg->location()/$msg->location($value)Type:
StringRequired. The location. Must be in the format `projects/*/locations/*`.
Google::Cloud::Domains::V1alpha2::Domains::SearchDomainsResponse
Response for the `SearchDomains` method.
Inherits from Protobuf::Message.
Accessors
$msg->register_parameters()/$msg->register_parameters($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::RegisterParameters)Results of the domain name search.
Google::Cloud::Domains::V1alpha2::Domains::RetrieveRegisterParametersRequest
Request for the `RetrieveRegisterParameters` method.
Inherits from Protobuf::Message.
Accessors
$msg->domain_name()/$msg->domain_name($value)Type:
StringRequired. The domain name. Unicode domain names must be expressed in Punycode format.
$msg->location()/$msg->location($value)Type:
StringRequired. The location. Must be in the format `projects/*/locations/*`.
Google::Cloud::Domains::V1alpha2::Domains::RetrieveRegisterParametersResponse
Response for the `RetrieveRegisterParameters` method.
Inherits from Protobuf::Message.
Accessors
$msg->register_parameters()/$msg->register_parameters($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::RegisterParameters)Parameters to use when calling the `RegisterDomain` method.
Google::Cloud::Domains::V1alpha2::Domains::RegisterDomainRequest
Request for the `RegisterDomain` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the `Registration`. Must be in the format `projects/*/locations/*`.
$msg->registration()/$msg->registration($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::Registration)Required. The complete `Registration` resource to be created.
$msg->domain_notices()/$msg->domain_notices($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::DomainNotice)The list of domain notices that you acknowledge. Call `RetrieveRegisterParameters` to see the notices that need acknowledgement.
$msg->contact_notices()/$msg->contact_notices($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactNotice)The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `registration.contact_settings`.
$msg->yearly_price()/$msg->yearly_price($value)Type:
Message(Google::Type::Money::Money)Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolWhen true, only validation is performed, without actually registering the domain. Follows: https://cloud.google.com/apis/design/design_patterns#request_validation
Google::Cloud::Domains::V1alpha2::Domains::RetrieveTransferParametersRequest
Request for the `RetrieveTransferParameters` method.
Inherits from Protobuf::Message.
Accessors
$msg->domain_name()/$msg->domain_name($value)Type:
StringRequired. The domain name. Unicode domain names must be expressed in Punycode format.
$msg->location()/$msg->location($value)Type:
StringRequired. The location. Must be in the format `projects/*/locations/*`.
Google::Cloud::Domains::V1alpha2::Domains::RetrieveTransferParametersResponse
Response for the `RetrieveTransferParameters` method.
Inherits from Protobuf::Message.
Accessors
$msg->transfer_parameters()/$msg->transfer_parameters($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::TransferParameters)Parameters to use when calling the `TransferDomain` method.
Google::Cloud::Domains::V1alpha2::Domains::TransferDomainRequest
Request for the `TransferDomain` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the `Registration`. Must be in the format `projects/*/locations/*`.
$msg->registration()/$msg->registration($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::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.
$msg->contact_notices()/$msg->contact_notices($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactNotice)The list of contact notices that you acknowledge. The notices needed here depend on the values specified in `registration.contact_settings`.
$msg->yearly_price()/$msg->yearly_price($value)Type:
Message(Google::Type::Money::Money)Required. Acknowledgement of the price to transfer or renew the domain for one year. Call `RetrieveTransferParameters` to obtain the price, which you must acknowledge.
$msg->authorization_code()/$msg->authorization_code($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::AuthorizationCode)The domain's transfer authorization code. You can obtain this from the domain's current registrar.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolValidate the request without actually transferring the domain.
Google::Cloud::Domains::V1alpha2::Domains::ListRegistrationsRequest
Request for the `ListRegistrations` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which to list `Registration`s, specified in the format `projects/*/locations/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringWhen set to the `next_page_token` from a prior response, provides the next page of results.
$msg->filter()/$msg->filter($value)Type:
StringFilter expression to restrict the `Registration`s returned.
The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, a boolean, or an enum value. The comparison operator should be one of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
For example, to filter to a specific domain name, use an expression like `domainName="example.com"`. You can also check for the existence of a field; for example, to find domains using custom DNS settings, use an expression like `dnsSettings.customDns:*`.
You can also create compound filters by combining expressions with the `AND` and `OR` operators. For example, to find domains that are suspended or have specific issues flagged, use an expression like `(state=SUSPENDED) OR (issue:*)`.
Google::Cloud::Domains::V1alpha2::Domains::ListRegistrationsResponse
Response for the `ListRegistrations` method.
Inherits from Protobuf::Message.
Accessors
$msg->registrations()/$msg->registrations($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::Registration)A list of `Registration`s.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringWhen present, there are more results to retrieve. Set `page_token` to this value on a subsequent call to get the next page of results.
Google::Cloud::Domains::V1alpha2::Domains::GetRegistrationRequest
Request for the `GetRegistration` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `Registration` to get, in the format `projects/*/locations/*/registrations/*`.
Google::Cloud::Domains::V1alpha2::Domains::UpdateRegistrationRequest
Request for the `UpdateRegistration` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::Registration)Fields of the `Registration` to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The field mask describing which fields to update as a comma-separated list. For example, if only the labels are being updated, the `update_mask` is `"labels"`.
Google::Cloud::Domains::V1alpha2::Domains::ConfigureManagementSettingsRequest
Request for the `ConfigureManagementSettings` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
StringRequired. The name of the `Registration` whose management settings are being updated, in the format `projects/*/locations/*/registrations/*`.
$msg->management_settings()/$msg->management_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ManagementSettings)Fields of the `ManagementSettings` to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The field mask describing which fields to update as a comma-separated list. For example, if only the transfer lock is being updated, the `update_mask` is `"transfer_lock_state"`.
Google::Cloud::Domains::V1alpha2::Domains::ConfigureDnsSettingsRequest
Request for the `ConfigureDnsSettings` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
StringRequired. The name of the `Registration` whose DNS settings are being updated, in the format `projects/*/locations/*/registrations/*`.
$msg->dns_settings()/$msg->dns_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::DnsSettings)Fields of the `DnsSettings` to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The field mask describing which fields to update as a comma-separated list. For example, if only the name servers are being updated for an existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`.
When changing the DNS provider from one type to another, pass the new provider's field name as part of the field mask. For example, when changing from a Google Domains DNS configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. //
$msg->validate_only()/$msg->validate_only($value)Type:
BoolValidate the request without actually updating the DNS settings.
Google::Cloud::Domains::V1alpha2::Domains::ConfigureContactSettingsRequest
Request for the `ConfigureContactSettings` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
StringRequired. The name of the `Registration` whose contact settings are being updated, in the format `projects/*/locations/*/registrations/*`.
$msg->contact_settings()/$msg->contact_settings($value)Type:
Message(Google::Cloud::Domains::V1alpha2::Domains::ContactSettings)Fields of the `ContactSettings` to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The field mask describing which fields to update as a comma-separated list. For example, if only the registrant contact is being updated, the `update_mask` is `"registrant_contact"`.
$msg->contact_notices()/$msg->contact_notices($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactNotice)The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `contact_settings`.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolValidate the request without actually updating the contact settings.
Google::Cloud::Domains::V1alpha2::Domains::ExportRegistrationRequest
Request for the `ExportRegistration` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `Registration` to export, in the format `projects/*/locations/*/registrations/*`.
Google::Cloud::Domains::V1alpha2::Domains::DeleteRegistrationRequest
Request for the `DeleteRegistration` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `Registration` to delete, in the format `projects/*/locations/*/registrations/*`.
Google::Cloud::Domains::V1alpha2::Domains::RetrieveAuthorizationCodeRequest
Request for the `RetrieveAuthorizationCode` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
StringRequired. The name of the `Registration` whose authorization code is being retrieved, in the format `projects/*/locations/*/registrations/*`.
Google::Cloud::Domains::V1alpha2::Domains::ResetAuthorizationCodeRequest
Request for the `ResetAuthorizationCode` method.
Inherits from Protobuf::Message.
Accessors
$msg->registration()/$msg->registration($value)Type:
StringRequired. The name of the `Registration` whose authorization code is being reset, in the format `projects/*/locations/*/registrations/*`.
Google::Cloud::Domains::V1alpha2::Domains::RegisterParameters
Parameters required to register a new domain.
Inherits from Protobuf::Message.
Accessors
$msg->domain_name()/$msg->domain_name($value)Type:
StringThe domain name. Unicode domain names are expressed in Punycode format.
$msg->availability()/$msg->availability($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::RegisterParameters::Availability)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`.
$msg->supported_privacy()/$msg->supported_privacy($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactPrivacy)Contact privacy options that the domain supports.
$msg->domain_notices()/$msg->domain_notices($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::DomainNotice)Notices about special properties of the domain.
$msg->yearly_price()/$msg->yearly_price($value)Type:
Message(Google::Type::Money::Money)Price to register or renew the domain for one year.
Enum: RegisterParameters::Availability
AVAILABILITY_UNSPECIFIED=>0AVAILABLE=>1UNAVAILABLE=>2UNSUPPORTED=>3UNKNOWN=>4
Google::Cloud::Domains::V1alpha2::Domains::TransferParameters
Parameters required to transfer a domain from another registrar.
Inherits from Protobuf::Message.
Accessors
$msg->domain_name()/$msg->domain_name($value)Type:
StringThe domain name. Unicode domain names are expressed in Punycode format.
$msg->current_registrar()/$msg->current_registrar($value)Type:
StringThe registrar that currently manages the domain.
$msg->name_servers()/$msg->name_servers($value)Type:
StringThe name servers that currently store the configuration of the domain.
$msg->transfer_lock_state()/$msg->transfer_lock_state($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::TransferLockState)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.
$msg->supported_privacy()/$msg->supported_privacy($value)Type:
Enum(Google::Cloud::Domains::V1alpha2::ContactPrivacy)Contact privacy options that the domain supports.
$msg->yearly_price()/$msg->yearly_price($value)Type:
Message(Google::Type::Money::Money)Price to transfer or renew the domain for one year.
Google::Cloud::Domains::V1alpha2::Domains::AuthorizationCode
Defines an authorization code.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
StringThe Authorization Code in ASCII. It can be used to transfer the domain to or from another registrar.
Google::Cloud::Domains::V1alpha2::Domains::OperationMetadata
Represents the metadata of the long-running operation. Output only.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringServer-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
$msg->status_detail()/$msg->status_detail($value)Type:
StringHuman-readable status of the operation, if any.
$msg->api_version()/$msg->api_version($value)Type:
StringAPI version used to start the operation.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Domains::V1alpha2::Domains::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.