com.google.cloud.domains.v1.DomainsGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-domains-v1 Show documentation
Show all versions of grpc-google-cloud-domains-v1 Show documentation
GRPC library for google-cloud-domains
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.domains.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* The Cloud Domains API enables management and configuration of domain names.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/domains/v1/domains.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DomainsGrpc {
private DomainsGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.cloud.domains.v1.Domains";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.SearchDomainsRequest,
com.google.cloud.domains.v1.SearchDomainsResponse>
getSearchDomainsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SearchDomains",
requestType = com.google.cloud.domains.v1.SearchDomainsRequest.class,
responseType = com.google.cloud.domains.v1.SearchDomainsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.SearchDomainsRequest,
com.google.cloud.domains.v1.SearchDomainsResponse>
getSearchDomainsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.SearchDomainsRequest,
com.google.cloud.domains.v1.SearchDomainsResponse>
getSearchDomainsMethod;
if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) {
DomainsGrpc.getSearchDomainsMethod =
getSearchDomainsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDomains"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.SearchDomainsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.SearchDomainsResponse
.getDefaultInstance()))
.setSchemaDescriptor(new DomainsMethodDescriptorSupplier("SearchDomains"))
.build();
}
}
}
return getSearchDomainsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest,
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>
getRetrieveRegisterParametersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RetrieveRegisterParameters",
requestType = com.google.cloud.domains.v1.RetrieveRegisterParametersRequest.class,
responseType = com.google.cloud.domains.v1.RetrieveRegisterParametersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest,
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>
getRetrieveRegisterParametersMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest,
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>
getRetrieveRegisterParametersMethod;
if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod)
== null) {
synchronized (DomainsGrpc.class) {
if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod)
== null) {
DomainsGrpc.getRetrieveRegisterParametersMethod =
getRetrieveRegisterParametersMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "RetrieveRegisterParameters"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("RetrieveRegisterParameters"))
.build();
}
}
}
return getRetrieveRegisterParametersMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation>
getRegisterDomainMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterDomain",
requestType = com.google.cloud.domains.v1.RegisterDomainRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation>
getRegisterDomainMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RegisterDomainRequest, com.google.longrunning.Operation>
getRegisterDomainMethod;
if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) {
DomainsGrpc.getRegisterDomainMethod =
getRegisterDomainMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterDomain"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RegisterDomainRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DomainsMethodDescriptorSupplier("RegisterDomain"))
.build();
}
}
}
return getRegisterDomainMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveTransferParametersRequest,
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>
getRetrieveTransferParametersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RetrieveTransferParameters",
requestType = com.google.cloud.domains.v1.RetrieveTransferParametersRequest.class,
responseType = com.google.cloud.domains.v1.RetrieveTransferParametersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveTransferParametersRequest,
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>
getRetrieveTransferParametersMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveTransferParametersRequest,
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>
getRetrieveTransferParametersMethod;
if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod)
== null) {
synchronized (DomainsGrpc.class) {
if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod)
== null) {
DomainsGrpc.getRetrieveTransferParametersMethod =
getRetrieveTransferParametersMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "RetrieveTransferParameters"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RetrieveTransferParametersRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RetrieveTransferParametersResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("RetrieveTransferParameters"))
.build();
}
}
}
return getRetrieveTransferParametersMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation>
getTransferDomainMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TransferDomain",
requestType = com.google.cloud.domains.v1.TransferDomainRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation>
getTransferDomainMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.TransferDomainRequest, com.google.longrunning.Operation>
getTransferDomainMethod;
if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) {
DomainsGrpc.getTransferDomainMethod =
getTransferDomainMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferDomain"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.TransferDomainRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DomainsMethodDescriptorSupplier("TransferDomain"))
.build();
}
}
}
return getTransferDomainMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ListRegistrationsRequest,
com.google.cloud.domains.v1.ListRegistrationsResponse>
getListRegistrationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListRegistrations",
requestType = com.google.cloud.domains.v1.ListRegistrationsRequest.class,
responseType = com.google.cloud.domains.v1.ListRegistrationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ListRegistrationsRequest,
com.google.cloud.domains.v1.ListRegistrationsResponse>
getListRegistrationsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ListRegistrationsRequest,
com.google.cloud.domains.v1.ListRegistrationsResponse>
getListRegistrationsMethod;
if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) {
DomainsGrpc.getListRegistrationsMethod =
getListRegistrationsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRegistrations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ListRegistrationsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ListRegistrationsResponse
.getDefaultInstance()))
.setSchemaDescriptor(new DomainsMethodDescriptorSupplier("ListRegistrations"))
.build();
}
}
}
return getListRegistrationsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.GetRegistrationRequest,
com.google.cloud.domains.v1.Registration>
getGetRegistrationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetRegistration",
requestType = com.google.cloud.domains.v1.GetRegistrationRequest.class,
responseType = com.google.cloud.domains.v1.Registration.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.GetRegistrationRequest,
com.google.cloud.domains.v1.Registration>
getGetRegistrationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.GetRegistrationRequest,
com.google.cloud.domains.v1.Registration>
getGetRegistrationMethod;
if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) {
DomainsGrpc.getGetRegistrationMethod =
getGetRegistrationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegistration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.GetRegistrationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.Registration.getDefaultInstance()))
.setSchemaDescriptor(new DomainsMethodDescriptorSupplier("GetRegistration"))
.build();
}
}
}
return getGetRegistrationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation>
getUpdateRegistrationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateRegistration",
requestType = com.google.cloud.domains.v1.UpdateRegistrationRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation>
getUpdateRegistrationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.UpdateRegistrationRequest, com.google.longrunning.Operation>
getUpdateRegistrationMethod;
if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) {
DomainsGrpc.getUpdateRegistrationMethod =
getUpdateRegistrationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRegistration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.UpdateRegistrationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("UpdateRegistration"))
.build();
}
}
}
return getUpdateRegistrationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest,
com.google.longrunning.Operation>
getConfigureManagementSettingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigureManagementSettings",
requestType = com.google.cloud.domains.v1.ConfigureManagementSettingsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest,
com.google.longrunning.Operation>
getConfigureManagementSettingsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest,
com.google.longrunning.Operation>
getConfigureManagementSettingsMethod;
if ((getConfigureManagementSettingsMethod = DomainsGrpc.getConfigureManagementSettingsMethod)
== null) {
synchronized (DomainsGrpc.class) {
if ((getConfigureManagementSettingsMethod =
DomainsGrpc.getConfigureManagementSettingsMethod)
== null) {
DomainsGrpc.getConfigureManagementSettingsMethod =
getConfigureManagementSettingsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ConfigureManagementSettings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("ConfigureManagementSettings"))
.build();
}
}
}
return getConfigureManagementSettingsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, com.google.longrunning.Operation>
getConfigureDnsSettingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigureDnsSettings",
requestType = com.google.cloud.domains.v1.ConfigureDnsSettingsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest, com.google.longrunning.Operation>
getConfigureDnsSettingsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest,
com.google.longrunning.Operation>
getConfigureDnsSettingsMethod;
if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) {
DomainsGrpc.getConfigureDnsSettingsMethod =
getConfigureDnsSettingsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ConfigureDnsSettings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("ConfigureDnsSettings"))
.build();
}
}
}
return getConfigureDnsSettingsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureContactSettingsRequest,
com.google.longrunning.Operation>
getConfigureContactSettingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigureContactSettings",
requestType = com.google.cloud.domains.v1.ConfigureContactSettingsRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureContactSettingsRequest,
com.google.longrunning.Operation>
getConfigureContactSettingsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ConfigureContactSettingsRequest,
com.google.longrunning.Operation>
getConfigureContactSettingsMethod;
if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod)
== null) {
synchronized (DomainsGrpc.class) {
if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod)
== null) {
DomainsGrpc.getConfigureContactSettingsMethod =
getConfigureContactSettingsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ConfigureContactSettings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ConfigureContactSettingsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("ConfigureContactSettings"))
.build();
}
}
}
return getConfigureContactSettingsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation>
getExportRegistrationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportRegistration",
requestType = com.google.cloud.domains.v1.ExportRegistrationRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation>
getExportRegistrationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ExportRegistrationRequest, com.google.longrunning.Operation>
getExportRegistrationMethod;
if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) {
DomainsGrpc.getExportRegistrationMethod =
getExportRegistrationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportRegistration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ExportRegistrationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("ExportRegistration"))
.build();
}
}
}
return getExportRegistrationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation>
getDeleteRegistrationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteRegistration",
requestType = com.google.cloud.domains.v1.DeleteRegistrationRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation>
getDeleteRegistrationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.DeleteRegistrationRequest, com.google.longrunning.Operation>
getDeleteRegistrationMethod;
if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) {
DomainsGrpc.getDeleteRegistrationMethod =
getDeleteRegistrationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRegistration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.DeleteRegistrationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("DeleteRegistration"))
.build();
}
}
}
return getDeleteRegistrationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getRetrieveAuthorizationCodeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RetrieveAuthorizationCode",
requestType = com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest.class,
responseType = com.google.cloud.domains.v1.AuthorizationCode.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getRetrieveAuthorizationCodeMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getRetrieveAuthorizationCodeMethod;
if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod)
== null) {
synchronized (DomainsGrpc.class) {
if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod)
== null) {
DomainsGrpc.getRetrieveAuthorizationCodeMethod =
getRetrieveAuthorizationCodeMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "RetrieveAuthorizationCode"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("RetrieveAuthorizationCode"))
.build();
}
}
}
return getRetrieveAuthorizationCodeMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getResetAuthorizationCodeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResetAuthorizationCode",
requestType = com.google.cloud.domains.v1.ResetAuthorizationCodeRequest.class,
responseType = com.google.cloud.domains.v1.AuthorizationCode.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getResetAuthorizationCodeMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>
getResetAuthorizationCodeMethod;
if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) == null) {
synchronized (DomainsGrpc.class) {
if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod)
== null) {
DomainsGrpc.getResetAuthorizationCodeMethod =
getResetAuthorizationCodeMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ResetAuthorizationCode"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.domains.v1.AuthorizationCode.getDefaultInstance()))
.setSchemaDescriptor(
new DomainsMethodDescriptorSupplier("ResetAuthorizationCode"))
.build();
}
}
}
return getResetAuthorizationCodeMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static DomainsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DomainsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsStub(channel, callOptions);
}
};
return DomainsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DomainsBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DomainsBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsBlockingStub(channel, callOptions);
}
};
return DomainsBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static DomainsFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DomainsFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsFutureStub(channel, callOptions);
}
};
return DomainsFutureStub.newStub(factory, channel);
}
/**
*
*
*
* The Cloud Domains API enables management and configuration of domain names.
*
*/
public interface AsyncService {
/**
*
*
*
* 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.
*
*/
default void searchDomains(
com.google.cloud.domains.v1.SearchDomainsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSearchDomainsMethod(), responseObserver);
}
/**
*
*
*
* Gets parameters needed to register a new domain name, including price and
* up-to-date availability. Use the returned values to call `RegisterDomain`.
*
*/
default void retrieveRegisterParameters(
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRetrieveRegisterParametersMethod(), responseObserver);
}
/**
*
*
*
* 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.
*
*/
default void registerDomain(
com.google.cloud.domains.v1.RegisterDomainRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRegisterDomainMethod(), responseObserver);
}
/**
*
*
*
* 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`.
*
*/
default void retrieveTransferParameters(
com.google.cloud.domains.v1.RetrieveTransferParametersRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRetrieveTransferParametersMethod(), responseObserver);
}
/**
*
*
*
* 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.
*
*/
default void transferDomain(
com.google.cloud.domains.v1.TransferDomainRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getTransferDomainMethod(), responseObserver);
}
/**
*
*
*
* Lists the `Registration` resources in a project.
*
*/
default void listRegistrations(
com.google.cloud.domains.v1.ListRegistrationsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListRegistrationsMethod(), responseObserver);
}
/**
*
*
*
* Gets the details of a `Registration` resource.
*
*/
default void getRegistration(
com.google.cloud.domains.v1.GetRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetRegistrationMethod(), responseObserver);
}
/**
*
*
*
* 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`
*
*/
default void updateRegistration(
com.google.cloud.domains.v1.UpdateRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateRegistrationMethod(), responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s management settings.
*
*/
default void configureManagementSettings(
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getConfigureManagementSettingsMethod(), responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s DNS settings.
*
*/
default void configureDnsSettings(
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getConfigureDnsSettingsMethod(), responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s contact settings. Some changes require
* confirmation by the domain's registrant contact .
*
*/
default void configureContactSettings(
com.google.cloud.domains.v1.ConfigureContactSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getConfigureContactSettingsMethod(), responseObserver);
}
/**
*
*
*
* 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](https://domains.google/) 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.
*
*/
default void exportRegistration(
com.google.cloud.domains.v1.ExportRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getExportRegistrationMethod(), responseObserver);
}
/**
*
*
*
* Deletes a `Registration` resource.
* This method works on any `Registration` resource using [Subscription or
* Commitment billing](/domains/pricing#billing-models), provided that the
* resource was created at least 1 day in the past.
* For `Registration` resources using
* [Monthly billing](/domains/pricing#billing-models), 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](https://domains.google/) 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.
*
*/
default void deleteRegistration(
com.google.cloud.domains.v1.DeleteRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteRegistrationMethod(), responseObserver);
}
/**
*
*
*
* 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.
*
*/
default void retrieveAuthorizationCode(
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRetrieveAuthorizationCodeMethod(), responseObserver);
}
/**
*
*
*
* 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.
*
*/
default void resetAuthorizationCode(
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getResetAuthorizationCodeMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Domains.
*
*
* The Cloud Domains API enables management and configuration of domain names.
*
*/
public abstract static class DomainsImplBase implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return DomainsGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Domains.
*
*
* The Cloud Domains API enables management and configuration of domain names.
*
*/
public static final class DomainsStub extends io.grpc.stub.AbstractAsyncStub {
private DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DomainsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsStub(channel, callOptions);
}
/**
*
*
*
* 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.
*
*/
public void searchDomains(
com.google.cloud.domains.v1.SearchDomainsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSearchDomainsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets parameters needed to register a new domain name, including price and
* up-to-date availability. Use the returned values to call `RegisterDomain`.
*
*/
public void retrieveRegisterParameters(
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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.
*
*/
public void registerDomain(
com.google.cloud.domains.v1.RegisterDomainRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRegisterDomainMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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`.
*
*/
public void retrieveTransferParameters(
com.google.cloud.domains.v1.RetrieveTransferParametersRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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.
*
*/
public void transferDomain(
com.google.cloud.domains.v1.TransferDomainRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTransferDomainMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists the `Registration` resources in a project.
*
*/
public void listRegistrations(
com.google.cloud.domains.v1.ListRegistrationsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListRegistrationsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets the details of a `Registration` resource.
*
*/
public void getRegistration(
com.google.cloud.domains.v1.GetRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetRegistrationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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`
*
*/
public void updateRegistration(
com.google.cloud.domains.v1.UpdateRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s management settings.
*
*/
public void configureManagementSettings(
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s DNS settings.
*
*/
public void configureDnsSettings(
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a `Registration`'s contact settings. Some changes require
* confirmation by the domain's registrant contact .
*
*/
public void configureContactSettings(
com.google.cloud.domains.v1.ConfigureContactSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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](https://domains.google/) 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.
*
*/
public void exportRegistration(
com.google.cloud.domains.v1.ExportRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExportRegistrationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a `Registration` resource.
* This method works on any `Registration` resource using [Subscription or
* Commitment billing](/domains/pricing#billing-models), provided that the
* resource was created at least 1 day in the past.
* For `Registration` resources using
* [Monthly billing](/domains/pricing#billing-models), 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](https://domains.google/) 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.
*
*/
public void deleteRegistration(
com.google.cloud.domains.v1.DeleteRegistrationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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.
*
*/
public void retrieveAuthorizationCode(
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* 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.
*
*/
public void resetAuthorizationCode(
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Domains.
*
*
* The Cloud Domains API enables management and configuration of domain names.
*
*/
public static final class DomainsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DomainsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsBlockingStub(channel, callOptions);
}
/**
*
*
*
* 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.
*
*/
public com.google.cloud.domains.v1.SearchDomainsResponse searchDomains(
com.google.cloud.domains.v1.SearchDomainsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSearchDomainsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets parameters needed to register a new domain name, including price and
* up-to-date availability. Use the returned values to call `RegisterDomain`.
*
*/
public com.google.cloud.domains.v1.RetrieveRegisterParametersResponse
retrieveRegisterParameters(
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), 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.
*
*/
public com.google.longrunning.Operation registerDomain(
com.google.cloud.domains.v1.RegisterDomainRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRegisterDomainMethod(), getCallOptions(), 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`.
*
*/
public com.google.cloud.domains.v1.RetrieveTransferParametersResponse
retrieveTransferParameters(
com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), 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.
*
*/
public com.google.longrunning.Operation transferDomain(
com.google.cloud.domains.v1.TransferDomainRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTransferDomainMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists the `Registration` resources in a project.
*
*/
public com.google.cloud.domains.v1.ListRegistrationsResponse listRegistrations(
com.google.cloud.domains.v1.ListRegistrationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListRegistrationsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets the details of a `Registration` resource.
*
*/
public com.google.cloud.domains.v1.Registration getRegistration(
com.google.cloud.domains.v1.GetRegistrationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetRegistrationMethod(), getCallOptions(), 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`
*
*/
public com.google.longrunning.Operation updateRegistration(
com.google.cloud.domains.v1.UpdateRegistrationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a `Registration`'s management settings.
*
*/
public com.google.longrunning.Operation configureManagementSettings(
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a `Registration`'s DNS settings.
*
*/
public com.google.longrunning.Operation configureDnsSettings(
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a `Registration`'s contact settings. Some changes require
* confirmation by the domain's registrant contact .
*
*/
public com.google.longrunning.Operation configureContactSettings(
com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), 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](https://domains.google/) 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.
*
*/
public com.google.longrunning.Operation exportRegistration(
com.google.cloud.domains.v1.ExportRegistrationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExportRegistrationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a `Registration` resource.
* This method works on any `Registration` resource using [Subscription or
* Commitment billing](/domains/pricing#billing-models), provided that the
* resource was created at least 1 day in the past.
* For `Registration` resources using
* [Monthly billing](/domains/pricing#billing-models), 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](https://domains.google/) 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.
*
*/
public com.google.longrunning.Operation deleteRegistration(
com.google.cloud.domains.v1.DeleteRegistrationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteRegistrationMethod(), getCallOptions(), 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.
*
*/
public com.google.cloud.domains.v1.AuthorizationCode retrieveAuthorizationCode(
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), 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.
*
*/
public com.google.cloud.domains.v1.AuthorizationCode resetAuthorizationCode(
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request);
}
}
/**
* 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.
*
*/
public static final class DomainsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DomainsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DomainsFutureStub(channel, callOptions);
}
/**
*
*
*
* 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.SearchDomainsResponse>
searchDomains(com.google.cloud.domains.v1.SearchDomainsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets parameters needed to register a new domain name, including price and
* up-to-date availability. Use the returned values to call `RegisterDomain`.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>
retrieveRegisterParameters(
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture
registerDomain(com.google.cloud.domains.v1.RegisterDomainRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), 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`.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>
retrieveTransferParameters(
com.google.cloud.domains.v1.RetrieveTransferParametersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture
transferDomain(com.google.cloud.domains.v1.TransferDomainRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTransferDomainMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists the `Registration` resources in a project.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.ListRegistrationsResponse>
listRegistrations(com.google.cloud.domains.v1.ListRegistrationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets the details of a `Registration` resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.Registration>
getRegistration(com.google.cloud.domains.v1.GetRegistrationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), 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`
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateRegistration(com.google.cloud.domains.v1.UpdateRegistrationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a `Registration`'s management settings.
*
*/
public com.google.common.util.concurrent.ListenableFuture
configureManagementSettings(
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a `Registration`'s DNS settings.
*
*/
public com.google.common.util.concurrent.ListenableFuture
configureDnsSettings(com.google.cloud.domains.v1.ConfigureDnsSettingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a `Registration`'s contact settings. Some changes require
* confirmation by the domain's registrant contact .
*
*/
public com.google.common.util.concurrent.ListenableFuture
configureContactSettings(
com.google.cloud.domains.v1.ConfigureContactSettingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), 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](https://domains.google/) 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture
exportRegistration(com.google.cloud.domains.v1.ExportRegistrationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a `Registration` resource.
* This method works on any `Registration` resource using [Subscription or
* Commitment billing](/domains/pricing#billing-models), provided that the
* resource was created at least 1 day in the past.
* For `Registration` resources using
* [Monthly billing](/domains/pricing#billing-models), 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](https://domains.google/) 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteRegistration(com.google.cloud.domains.v1.DeleteRegistrationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.AuthorizationCode>
retrieveAuthorizationCode(
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), 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.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.domains.v1.AuthorizationCode>
resetAuthorizationCode(com.google.cloud.domains.v1.ResetAuthorizationCodeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), request);
}
}
private static final int METHODID_SEARCH_DOMAINS = 0;
private static final int METHODID_RETRIEVE_REGISTER_PARAMETERS = 1;
private static final int METHODID_REGISTER_DOMAIN = 2;
private static final int METHODID_RETRIEVE_TRANSFER_PARAMETERS = 3;
private static final int METHODID_TRANSFER_DOMAIN = 4;
private static final int METHODID_LIST_REGISTRATIONS = 5;
private static final int METHODID_GET_REGISTRATION = 6;
private static final int METHODID_UPDATE_REGISTRATION = 7;
private static final int METHODID_CONFIGURE_MANAGEMENT_SETTINGS = 8;
private static final int METHODID_CONFIGURE_DNS_SETTINGS = 9;
private static final int METHODID_CONFIGURE_CONTACT_SETTINGS = 10;
private static final int METHODID_EXPORT_REGISTRATION = 11;
private static final int METHODID_DELETE_REGISTRATION = 12;
private static final int METHODID_RETRIEVE_AUTHORIZATION_CODE = 13;
private static final int METHODID_RESET_AUTHORIZATION_CODE = 14;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_SEARCH_DOMAINS:
serviceImpl.searchDomains(
(com.google.cloud.domains.v1.SearchDomainsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_RETRIEVE_REGISTER_PARAMETERS:
serviceImpl.retrieveRegisterParameters(
(com.google.cloud.domains.v1.RetrieveRegisterParametersRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>)
responseObserver);
break;
case METHODID_REGISTER_DOMAIN:
serviceImpl.registerDomain(
(com.google.cloud.domains.v1.RegisterDomainRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RETRIEVE_TRANSFER_PARAMETERS:
serviceImpl.retrieveTransferParameters(
(com.google.cloud.domains.v1.RetrieveTransferParametersRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>)
responseObserver);
break;
case METHODID_TRANSFER_DOMAIN:
serviceImpl.transferDomain(
(com.google.cloud.domains.v1.TransferDomainRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_REGISTRATIONS:
serviceImpl.listRegistrations(
(com.google.cloud.domains.v1.ListRegistrationsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_REGISTRATION:
serviceImpl.getRegistration(
(com.google.cloud.domains.v1.GetRegistrationRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_UPDATE_REGISTRATION:
serviceImpl.updateRegistration(
(com.google.cloud.domains.v1.UpdateRegistrationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIGURE_MANAGEMENT_SETTINGS:
serviceImpl.configureManagementSettings(
(com.google.cloud.domains.v1.ConfigureManagementSettingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIGURE_DNS_SETTINGS:
serviceImpl.configureDnsSettings(
(com.google.cloud.domains.v1.ConfigureDnsSettingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIGURE_CONTACT_SETTINGS:
serviceImpl.configureContactSettings(
(com.google.cloud.domains.v1.ConfigureContactSettingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXPORT_REGISTRATION:
serviceImpl.exportRegistration(
(com.google.cloud.domains.v1.ExportRegistrationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_REGISTRATION:
serviceImpl.deleteRegistration(
(com.google.cloud.domains.v1.DeleteRegistrationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RETRIEVE_AUTHORIZATION_CODE:
serviceImpl.retrieveAuthorizationCode(
(com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_RESET_AUTHORIZATION_CODE:
serviceImpl.resetAuthorizationCode(
(com.google.cloud.domains.v1.ResetAuthorizationCodeRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getSearchDomainsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.SearchDomainsRequest,
com.google.cloud.domains.v1.SearchDomainsResponse>(
service, METHODID_SEARCH_DOMAINS)))
.addMethod(
getRetrieveRegisterParametersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.RetrieveRegisterParametersRequest,
com.google.cloud.domains.v1.RetrieveRegisterParametersResponse>(
service, METHODID_RETRIEVE_REGISTER_PARAMETERS)))
.addMethod(
getRegisterDomainMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.RegisterDomainRequest,
com.google.longrunning.Operation>(service, METHODID_REGISTER_DOMAIN)))
.addMethod(
getRetrieveTransferParametersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.RetrieveTransferParametersRequest,
com.google.cloud.domains.v1.RetrieveTransferParametersResponse>(
service, METHODID_RETRIEVE_TRANSFER_PARAMETERS)))
.addMethod(
getTransferDomainMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.TransferDomainRequest,
com.google.longrunning.Operation>(service, METHODID_TRANSFER_DOMAIN)))
.addMethod(
getListRegistrationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ListRegistrationsRequest,
com.google.cloud.domains.v1.ListRegistrationsResponse>(
service, METHODID_LIST_REGISTRATIONS)))
.addMethod(
getGetRegistrationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.GetRegistrationRequest,
com.google.cloud.domains.v1.Registration>(service, METHODID_GET_REGISTRATION)))
.addMethod(
getUpdateRegistrationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.UpdateRegistrationRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_REGISTRATION)))
.addMethod(
getConfigureManagementSettingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ConfigureManagementSettingsRequest,
com.google.longrunning.Operation>(
service, METHODID_CONFIGURE_MANAGEMENT_SETTINGS)))
.addMethod(
getConfigureDnsSettingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ConfigureDnsSettingsRequest,
com.google.longrunning.Operation>(service, METHODID_CONFIGURE_DNS_SETTINGS)))
.addMethod(
getConfigureContactSettingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ConfigureContactSettingsRequest,
com.google.longrunning.Operation>(
service, METHODID_CONFIGURE_CONTACT_SETTINGS)))
.addMethod(
getExportRegistrationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ExportRegistrationRequest,
com.google.longrunning.Operation>(service, METHODID_EXPORT_REGISTRATION)))
.addMethod(
getDeleteRegistrationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.DeleteRegistrationRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_REGISTRATION)))
.addMethod(
getRetrieveAuthorizationCodeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.RetrieveAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>(
service, METHODID_RETRIEVE_AUTHORIZATION_CODE)))
.addMethod(
getResetAuthorizationCodeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.domains.v1.ResetAuthorizationCodeRequest,
com.google.cloud.domains.v1.AuthorizationCode>(
service, METHODID_RESET_AUTHORIZATION_CODE)))
.build();
}
private abstract static class DomainsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DomainsBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.domains.v1.DomainsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Domains");
}
}
private static final class DomainsFileDescriptorSupplier extends DomainsBaseDescriptorSupplier {
DomainsFileDescriptorSupplier() {}
}
private static final class DomainsMethodDescriptorSupplier extends DomainsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
DomainsMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (DomainsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DomainsFileDescriptorSupplier())
.addMethod(getSearchDomainsMethod())
.addMethod(getRetrieveRegisterParametersMethod())
.addMethod(getRegisterDomainMethod())
.addMethod(getRetrieveTransferParametersMethod())
.addMethod(getTransferDomainMethod())
.addMethod(getListRegistrationsMethod())
.addMethod(getGetRegistrationMethod())
.addMethod(getUpdateRegistrationMethod())
.addMethod(getConfigureManagementSettingsMethod())
.addMethod(getConfigureDnsSettingsMethod())
.addMethod(getConfigureContactSettingsMethod())
.addMethod(getExportRegistrationMethod())
.addMethod(getDeleteRegistrationMethod())
.addMethod(getRetrieveAuthorizationCodeMethod())
.addMethod(getResetAuthorizationCodeMethod())
.build();
}
}
}
return result;
}
}