public static final class DomainsGrpc.DomainsFutureStub extends AbstractFutureStub<DomainsGrpc.DomainsFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Domains.
The Cloud Domains API enables management and configuration of domain names.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractFutureStub >
DomainsGrpc.DomainsFutureStub
Inherited Members
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected DomainsGrpc.DomainsFutureStub build(Channel channel, CallOptions callOptions)
Parameters |
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
configureContactSettings(ConfigureContactSettingsRequest request)
public ListenableFuture<Operation> configureContactSettings(ConfigureContactSettingsRequest request)
Updates a Registration
's contact settings. Some changes require
confirmation by the domain's registrant contact .
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
configureDnsSettings(ConfigureDnsSettingsRequest request)
public ListenableFuture<Operation> configureDnsSettings(ConfigureDnsSettingsRequest request)
Updates a Registration
's DNS settings.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
configureManagementSettings(ConfigureManagementSettingsRequest request)
public ListenableFuture<Operation> configureManagementSettings(ConfigureManagementSettingsRequest request)
Updates a Registration
's management settings.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
deleteRegistration(DeleteRegistrationRequest request)
public ListenableFuture<Operation> deleteRegistration(DeleteRegistrationRequest request)
Deletes a Registration
resource.
This method works on any Registration
resource using Subscription or
Commitment billing, provided that the
resource was created at least 1 day in the past.
For Registration
resources using
Monthly billing, this method works if:
state
is EXPORTED
with expire_time
in the past
state
is REGISTRATION_FAILED
state
is TRANSFER_FAILED
When an active registration is successfully deleted, you can continue to
use the domain in Google Domains until it
expires. The calling user becomes the domain's sole owner in Google
Domains, and permissions for the domain are subsequently managed there. The
domain does not renew automatically unless the new owner sets up billing in
Google Domains.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
exportRegistration(ExportRegistrationRequest request)
public ListenableFuture<Operation> exportRegistration(ExportRegistrationRequest request)
Exports a Registration
resource, such that it is no longer managed by
Cloud Domains.
When an active domain is successfully exported, you can continue to use the
domain in Google Domains until it expires. The
calling user becomes the domain's sole owner in Google Domains, and
permissions for the domain are subsequently managed there. The domain does
not renew automatically unless the new owner sets up billing in Google
Domains.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
getRegistration(GetRegistrationRequest request)
public ListenableFuture<Registration> getRegistration(GetRegistrationRequest request)
Gets the details of a Registration
resource.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Registration> |
|
listRegistrations(ListRegistrationsRequest request)
public ListenableFuture<ListRegistrationsResponse> listRegistrations(ListRegistrationsRequest request)
Lists the Registration
resources in a project.
registerDomain(RegisterDomainRequest request)
public ListenableFuture<Operation> registerDomain(RegisterDomainRequest request)
Registers a new domain name and creates a corresponding Registration
resource.
Call RetrieveRegisterParameters
first to check availability of the domain
name and determine parameters like price that are needed to build a call to
this method.
A successful call creates a Registration
resource in state
REGISTRATION_PENDING
, which resolves to ACTIVE
within 1-2
minutes, indicating that the domain was successfully registered. If the
resource ends up in state REGISTRATION_FAILED
, it indicates that the
domain was not registered successfully, and you can safely delete the
resource and retry registration.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
resetAuthorizationCode(ResetAuthorizationCodeRequest request)
public ListenableFuture<AuthorizationCode> resetAuthorizationCode(ResetAuthorizationCodeRequest request)
Resets the authorization code of the Registration
to a new random string.
You can call this method only after 60 days have elapsed since the initial
domain registration.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<AuthorizationCode> |
|
retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request)
public ListenableFuture<AuthorizationCode> retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request)
Gets the authorization code of the Registration
for the purpose of
transferring the domain to another registrar.
You can call this method only after 60 days have elapsed since the initial
domain registration.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<AuthorizationCode> |
|
retrieveRegisterParameters(RetrieveRegisterParametersRequest request)
public ListenableFuture<RetrieveRegisterParametersResponse> retrieveRegisterParameters(RetrieveRegisterParametersRequest request)
Gets parameters needed to register a new domain name, including price and
up-to-date availability. Use the returned values to call RegisterDomain
.
retrieveTransferParameters(RetrieveTransferParametersRequest request)
public ListenableFuture<RetrieveTransferParametersResponse> retrieveTransferParameters(RetrieveTransferParametersRequest request)
Gets parameters needed to transfer a domain name from another registrar to
Cloud Domains. For domains managed by Google Domains, transferring to Cloud
Domains is not supported.
Use the returned values to call TransferDomain
.
searchDomains(SearchDomainsRequest request)
public ListenableFuture<SearchDomainsResponse> searchDomains(SearchDomainsRequest request)
Searches for available domain names similar to the provided query.
Availability results from this method are approximate; call
RetrieveRegisterParameters
on a domain before registering to confirm
availability.
transferDomain(TransferDomainRequest request)
public ListenableFuture<Operation> transferDomain(TransferDomainRequest request)
Transfers a domain name from another registrar to Cloud Domains. For
domains managed by Google Domains, transferring to Cloud Domains is not
supported.
Before calling this method, go to the domain's 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 this method.
A successful call creates a Registration
resource in state
TRANSFER_PENDING
. It can take several days to complete the transfer
process. The registrant can often speed up this process by approving the
transfer through the current registrar, either by clicking a link in an
email from the registrar or by visiting the registrar's website.
A few minutes after transfer approval, the resource transitions to state
ACTIVE
, indicating that the transfer was successful. If the transfer is
rejected or the request expires without being approved, the resource can
end up in state TRANSFER_FAILED
. If transfer fails, you can safely delete
the resource and retry the transfer.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|
updateRegistration(UpdateRegistrationRequest request)
public ListenableFuture<Operation> updateRegistration(UpdateRegistrationRequest request)
Updates select fields of a Registration
resource, notably labels
. To
update other fields, use the appropriate custom update method:
- To update management settings, see
ConfigureManagementSettings
- To update DNS configuration, see
ConfigureDnsSettings
- To update contact information, see
ConfigureContactSettings
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Operation> |
|