• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.cloud.domains.v1beta1;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 
20 /**
21  *
22  *
23  * <pre>
24  * The Cloud Domains API enables management and configuration of domain names.
25  * </pre>
26  */
27 @javax.annotation.Generated(
28     value = "by gRPC proto compiler",
29     comments = "Source: google/cloud/domains/v1beta1/domains.proto")
30 @io.grpc.stub.annotations.GrpcGenerated
31 public final class DomainsGrpc {
32 
DomainsGrpc()33   private DomainsGrpc() {}
34 
35   public static final String SERVICE_NAME = "google.cloud.domains.v1beta1.Domains";
36 
37   // Static method descriptors that strictly reflect the proto.
38   private static volatile io.grpc.MethodDescriptor<
39           com.google.cloud.domains.v1beta1.SearchDomainsRequest,
40           com.google.cloud.domains.v1beta1.SearchDomainsResponse>
41       getSearchDomainsMethod;
42 
43   @io.grpc.stub.annotations.RpcMethod(
44       fullMethodName = SERVICE_NAME + '/' + "SearchDomains",
45       requestType = com.google.cloud.domains.v1beta1.SearchDomainsRequest.class,
46       responseType = com.google.cloud.domains.v1beta1.SearchDomainsResponse.class,
47       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
48   public static io.grpc.MethodDescriptor<
49           com.google.cloud.domains.v1beta1.SearchDomainsRequest,
50           com.google.cloud.domains.v1beta1.SearchDomainsResponse>
getSearchDomainsMethod()51       getSearchDomainsMethod() {
52     io.grpc.MethodDescriptor<
53             com.google.cloud.domains.v1beta1.SearchDomainsRequest,
54             com.google.cloud.domains.v1beta1.SearchDomainsResponse>
55         getSearchDomainsMethod;
56     if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) {
57       synchronized (DomainsGrpc.class) {
58         if ((getSearchDomainsMethod = DomainsGrpc.getSearchDomainsMethod) == null) {
59           DomainsGrpc.getSearchDomainsMethod =
60               getSearchDomainsMethod =
61                   io.grpc.MethodDescriptor
62                       .<com.google.cloud.domains.v1beta1.SearchDomainsRequest,
63                           com.google.cloud.domains.v1beta1.SearchDomainsResponse>
64                           newBuilder()
65                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
66                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDomains"))
67                       .setSampledToLocalTracing(true)
68                       .setRequestMarshaller(
69                           io.grpc.protobuf.ProtoUtils.marshaller(
70                               com.google.cloud.domains.v1beta1.SearchDomainsRequest
71                                   .getDefaultInstance()))
72                       .setResponseMarshaller(
73                           io.grpc.protobuf.ProtoUtils.marshaller(
74                               com.google.cloud.domains.v1beta1.SearchDomainsResponse
75                                   .getDefaultInstance()))
76                       .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("SearchDomains"))
77                       .build();
78         }
79       }
80     }
81     return getSearchDomainsMethod;
82   }
83 
84   private static volatile io.grpc.MethodDescriptor<
85           com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest,
86           com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
87       getRetrieveRegisterParametersMethod;
88 
89   @io.grpc.stub.annotations.RpcMethod(
90       fullMethodName = SERVICE_NAME + '/' + "RetrieveRegisterParameters",
91       requestType = com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest.class,
92       responseType = com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse.class,
93       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
94   public static io.grpc.MethodDescriptor<
95           com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest,
96           com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
getRetrieveRegisterParametersMethod()97       getRetrieveRegisterParametersMethod() {
98     io.grpc.MethodDescriptor<
99             com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest,
100             com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
101         getRetrieveRegisterParametersMethod;
102     if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod)
103         == null) {
104       synchronized (DomainsGrpc.class) {
105         if ((getRetrieveRegisterParametersMethod = DomainsGrpc.getRetrieveRegisterParametersMethod)
106             == null) {
107           DomainsGrpc.getRetrieveRegisterParametersMethod =
108               getRetrieveRegisterParametersMethod =
109                   io.grpc.MethodDescriptor
110                       .<com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest,
111                           com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
112                           newBuilder()
113                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
114                       .setFullMethodName(
115                           generateFullMethodName(SERVICE_NAME, "RetrieveRegisterParameters"))
116                       .setSampledToLocalTracing(true)
117                       .setRequestMarshaller(
118                           io.grpc.protobuf.ProtoUtils.marshaller(
119                               com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest
120                                   .getDefaultInstance()))
121                       .setResponseMarshaller(
122                           io.grpc.protobuf.ProtoUtils.marshaller(
123                               com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse
124                                   .getDefaultInstance()))
125                       .setSchemaDescriptor(
126                           new DomainsMethodDescriptorSupplier("RetrieveRegisterParameters"))
127                       .build();
128         }
129       }
130     }
131     return getRetrieveRegisterParametersMethod;
132   }
133 
134   private static volatile io.grpc.MethodDescriptor<
135           com.google.cloud.domains.v1beta1.RegisterDomainRequest, com.google.longrunning.Operation>
136       getRegisterDomainMethod;
137 
138   @io.grpc.stub.annotations.RpcMethod(
139       fullMethodName = SERVICE_NAME + '/' + "RegisterDomain",
140       requestType = com.google.cloud.domains.v1beta1.RegisterDomainRequest.class,
141       responseType = com.google.longrunning.Operation.class,
142       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
143   public static io.grpc.MethodDescriptor<
144           com.google.cloud.domains.v1beta1.RegisterDomainRequest, com.google.longrunning.Operation>
getRegisterDomainMethod()145       getRegisterDomainMethod() {
146     io.grpc.MethodDescriptor<
147             com.google.cloud.domains.v1beta1.RegisterDomainRequest,
148             com.google.longrunning.Operation>
149         getRegisterDomainMethod;
150     if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) {
151       synchronized (DomainsGrpc.class) {
152         if ((getRegisterDomainMethod = DomainsGrpc.getRegisterDomainMethod) == null) {
153           DomainsGrpc.getRegisterDomainMethod =
154               getRegisterDomainMethod =
155                   io.grpc.MethodDescriptor
156                       .<com.google.cloud.domains.v1beta1.RegisterDomainRequest,
157                           com.google.longrunning.Operation>
158                           newBuilder()
159                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
160                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterDomain"))
161                       .setSampledToLocalTracing(true)
162                       .setRequestMarshaller(
163                           io.grpc.protobuf.ProtoUtils.marshaller(
164                               com.google.cloud.domains.v1beta1.RegisterDomainRequest
165                                   .getDefaultInstance()))
166                       .setResponseMarshaller(
167                           io.grpc.protobuf.ProtoUtils.marshaller(
168                               com.google.longrunning.Operation.getDefaultInstance()))
169                       .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("RegisterDomain"))
170                       .build();
171         }
172       }
173     }
174     return getRegisterDomainMethod;
175   }
176 
177   private static volatile io.grpc.MethodDescriptor<
178           com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest,
179           com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
180       getRetrieveTransferParametersMethod;
181 
182   @io.grpc.stub.annotations.RpcMethod(
183       fullMethodName = SERVICE_NAME + '/' + "RetrieveTransferParameters",
184       requestType = com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest.class,
185       responseType = com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse.class,
186       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
187   public static io.grpc.MethodDescriptor<
188           com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest,
189           com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
getRetrieveTransferParametersMethod()190       getRetrieveTransferParametersMethod() {
191     io.grpc.MethodDescriptor<
192             com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest,
193             com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
194         getRetrieveTransferParametersMethod;
195     if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod)
196         == null) {
197       synchronized (DomainsGrpc.class) {
198         if ((getRetrieveTransferParametersMethod = DomainsGrpc.getRetrieveTransferParametersMethod)
199             == null) {
200           DomainsGrpc.getRetrieveTransferParametersMethod =
201               getRetrieveTransferParametersMethod =
202                   io.grpc.MethodDescriptor
203                       .<com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest,
204                           com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
205                           newBuilder()
206                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
207                       .setFullMethodName(
208                           generateFullMethodName(SERVICE_NAME, "RetrieveTransferParameters"))
209                       .setSampledToLocalTracing(true)
210                       .setRequestMarshaller(
211                           io.grpc.protobuf.ProtoUtils.marshaller(
212                               com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest
213                                   .getDefaultInstance()))
214                       .setResponseMarshaller(
215                           io.grpc.protobuf.ProtoUtils.marshaller(
216                               com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse
217                                   .getDefaultInstance()))
218                       .setSchemaDescriptor(
219                           new DomainsMethodDescriptorSupplier("RetrieveTransferParameters"))
220                       .build();
221         }
222       }
223     }
224     return getRetrieveTransferParametersMethod;
225   }
226 
227   private static volatile io.grpc.MethodDescriptor<
228           com.google.cloud.domains.v1beta1.TransferDomainRequest, com.google.longrunning.Operation>
229       getTransferDomainMethod;
230 
231   @io.grpc.stub.annotations.RpcMethod(
232       fullMethodName = SERVICE_NAME + '/' + "TransferDomain",
233       requestType = com.google.cloud.domains.v1beta1.TransferDomainRequest.class,
234       responseType = com.google.longrunning.Operation.class,
235       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
236   public static io.grpc.MethodDescriptor<
237           com.google.cloud.domains.v1beta1.TransferDomainRequest, com.google.longrunning.Operation>
getTransferDomainMethod()238       getTransferDomainMethod() {
239     io.grpc.MethodDescriptor<
240             com.google.cloud.domains.v1beta1.TransferDomainRequest,
241             com.google.longrunning.Operation>
242         getTransferDomainMethod;
243     if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) {
244       synchronized (DomainsGrpc.class) {
245         if ((getTransferDomainMethod = DomainsGrpc.getTransferDomainMethod) == null) {
246           DomainsGrpc.getTransferDomainMethod =
247               getTransferDomainMethod =
248                   io.grpc.MethodDescriptor
249                       .<com.google.cloud.domains.v1beta1.TransferDomainRequest,
250                           com.google.longrunning.Operation>
251                           newBuilder()
252                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
253                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TransferDomain"))
254                       .setSampledToLocalTracing(true)
255                       .setRequestMarshaller(
256                           io.grpc.protobuf.ProtoUtils.marshaller(
257                               com.google.cloud.domains.v1beta1.TransferDomainRequest
258                                   .getDefaultInstance()))
259                       .setResponseMarshaller(
260                           io.grpc.protobuf.ProtoUtils.marshaller(
261                               com.google.longrunning.Operation.getDefaultInstance()))
262                       .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("TransferDomain"))
263                       .build();
264         }
265       }
266     }
267     return getTransferDomainMethod;
268   }
269 
270   private static volatile io.grpc.MethodDescriptor<
271           com.google.cloud.domains.v1beta1.ListRegistrationsRequest,
272           com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
273       getListRegistrationsMethod;
274 
275   @io.grpc.stub.annotations.RpcMethod(
276       fullMethodName = SERVICE_NAME + '/' + "ListRegistrations",
277       requestType = com.google.cloud.domains.v1beta1.ListRegistrationsRequest.class,
278       responseType = com.google.cloud.domains.v1beta1.ListRegistrationsResponse.class,
279       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
280   public static io.grpc.MethodDescriptor<
281           com.google.cloud.domains.v1beta1.ListRegistrationsRequest,
282           com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
getListRegistrationsMethod()283       getListRegistrationsMethod() {
284     io.grpc.MethodDescriptor<
285             com.google.cloud.domains.v1beta1.ListRegistrationsRequest,
286             com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
287         getListRegistrationsMethod;
288     if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) {
289       synchronized (DomainsGrpc.class) {
290         if ((getListRegistrationsMethod = DomainsGrpc.getListRegistrationsMethod) == null) {
291           DomainsGrpc.getListRegistrationsMethod =
292               getListRegistrationsMethod =
293                   io.grpc.MethodDescriptor
294                       .<com.google.cloud.domains.v1beta1.ListRegistrationsRequest,
295                           com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
296                           newBuilder()
297                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
298                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRegistrations"))
299                       .setSampledToLocalTracing(true)
300                       .setRequestMarshaller(
301                           io.grpc.protobuf.ProtoUtils.marshaller(
302                               com.google.cloud.domains.v1beta1.ListRegistrationsRequest
303                                   .getDefaultInstance()))
304                       .setResponseMarshaller(
305                           io.grpc.protobuf.ProtoUtils.marshaller(
306                               com.google.cloud.domains.v1beta1.ListRegistrationsResponse
307                                   .getDefaultInstance()))
308                       .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("ListRegistrations"))
309                       .build();
310         }
311       }
312     }
313     return getListRegistrationsMethod;
314   }
315 
316   private static volatile io.grpc.MethodDescriptor<
317           com.google.cloud.domains.v1beta1.GetRegistrationRequest,
318           com.google.cloud.domains.v1beta1.Registration>
319       getGetRegistrationMethod;
320 
321   @io.grpc.stub.annotations.RpcMethod(
322       fullMethodName = SERVICE_NAME + '/' + "GetRegistration",
323       requestType = com.google.cloud.domains.v1beta1.GetRegistrationRequest.class,
324       responseType = com.google.cloud.domains.v1beta1.Registration.class,
325       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
326   public static io.grpc.MethodDescriptor<
327           com.google.cloud.domains.v1beta1.GetRegistrationRequest,
328           com.google.cloud.domains.v1beta1.Registration>
getGetRegistrationMethod()329       getGetRegistrationMethod() {
330     io.grpc.MethodDescriptor<
331             com.google.cloud.domains.v1beta1.GetRegistrationRequest,
332             com.google.cloud.domains.v1beta1.Registration>
333         getGetRegistrationMethod;
334     if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) {
335       synchronized (DomainsGrpc.class) {
336         if ((getGetRegistrationMethod = DomainsGrpc.getGetRegistrationMethod) == null) {
337           DomainsGrpc.getGetRegistrationMethod =
338               getGetRegistrationMethod =
339                   io.grpc.MethodDescriptor
340                       .<com.google.cloud.domains.v1beta1.GetRegistrationRequest,
341                           com.google.cloud.domains.v1beta1.Registration>
342                           newBuilder()
343                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
344                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegistration"))
345                       .setSampledToLocalTracing(true)
346                       .setRequestMarshaller(
347                           io.grpc.protobuf.ProtoUtils.marshaller(
348                               com.google.cloud.domains.v1beta1.GetRegistrationRequest
349                                   .getDefaultInstance()))
350                       .setResponseMarshaller(
351                           io.grpc.protobuf.ProtoUtils.marshaller(
352                               com.google.cloud.domains.v1beta1.Registration.getDefaultInstance()))
353                       .setSchemaDescriptor(new DomainsMethodDescriptorSupplier("GetRegistration"))
354                       .build();
355         }
356       }
357     }
358     return getGetRegistrationMethod;
359   }
360 
361   private static volatile io.grpc.MethodDescriptor<
362           com.google.cloud.domains.v1beta1.UpdateRegistrationRequest,
363           com.google.longrunning.Operation>
364       getUpdateRegistrationMethod;
365 
366   @io.grpc.stub.annotations.RpcMethod(
367       fullMethodName = SERVICE_NAME + '/' + "UpdateRegistration",
368       requestType = com.google.cloud.domains.v1beta1.UpdateRegistrationRequest.class,
369       responseType = com.google.longrunning.Operation.class,
370       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
371   public static io.grpc.MethodDescriptor<
372           com.google.cloud.domains.v1beta1.UpdateRegistrationRequest,
373           com.google.longrunning.Operation>
getUpdateRegistrationMethod()374       getUpdateRegistrationMethod() {
375     io.grpc.MethodDescriptor<
376             com.google.cloud.domains.v1beta1.UpdateRegistrationRequest,
377             com.google.longrunning.Operation>
378         getUpdateRegistrationMethod;
379     if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) {
380       synchronized (DomainsGrpc.class) {
381         if ((getUpdateRegistrationMethod = DomainsGrpc.getUpdateRegistrationMethod) == null) {
382           DomainsGrpc.getUpdateRegistrationMethod =
383               getUpdateRegistrationMethod =
384                   io.grpc.MethodDescriptor
385                       .<com.google.cloud.domains.v1beta1.UpdateRegistrationRequest,
386                           com.google.longrunning.Operation>
387                           newBuilder()
388                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
389                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRegistration"))
390                       .setSampledToLocalTracing(true)
391                       .setRequestMarshaller(
392                           io.grpc.protobuf.ProtoUtils.marshaller(
393                               com.google.cloud.domains.v1beta1.UpdateRegistrationRequest
394                                   .getDefaultInstance()))
395                       .setResponseMarshaller(
396                           io.grpc.protobuf.ProtoUtils.marshaller(
397                               com.google.longrunning.Operation.getDefaultInstance()))
398                       .setSchemaDescriptor(
399                           new DomainsMethodDescriptorSupplier("UpdateRegistration"))
400                       .build();
401         }
402       }
403     }
404     return getUpdateRegistrationMethod;
405   }
406 
407   private static volatile io.grpc.MethodDescriptor<
408           com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest,
409           com.google.longrunning.Operation>
410       getConfigureManagementSettingsMethod;
411 
412   @io.grpc.stub.annotations.RpcMethod(
413       fullMethodName = SERVICE_NAME + '/' + "ConfigureManagementSettings",
414       requestType = com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest.class,
415       responseType = com.google.longrunning.Operation.class,
416       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
417   public static io.grpc.MethodDescriptor<
418           com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest,
419           com.google.longrunning.Operation>
getConfigureManagementSettingsMethod()420       getConfigureManagementSettingsMethod() {
421     io.grpc.MethodDescriptor<
422             com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest,
423             com.google.longrunning.Operation>
424         getConfigureManagementSettingsMethod;
425     if ((getConfigureManagementSettingsMethod = DomainsGrpc.getConfigureManagementSettingsMethod)
426         == null) {
427       synchronized (DomainsGrpc.class) {
428         if ((getConfigureManagementSettingsMethod =
429                 DomainsGrpc.getConfigureManagementSettingsMethod)
430             == null) {
431           DomainsGrpc.getConfigureManagementSettingsMethod =
432               getConfigureManagementSettingsMethod =
433                   io.grpc.MethodDescriptor
434                       .<com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest,
435                           com.google.longrunning.Operation>
436                           newBuilder()
437                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
438                       .setFullMethodName(
439                           generateFullMethodName(SERVICE_NAME, "ConfigureManagementSettings"))
440                       .setSampledToLocalTracing(true)
441                       .setRequestMarshaller(
442                           io.grpc.protobuf.ProtoUtils.marshaller(
443                               com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest
444                                   .getDefaultInstance()))
445                       .setResponseMarshaller(
446                           io.grpc.protobuf.ProtoUtils.marshaller(
447                               com.google.longrunning.Operation.getDefaultInstance()))
448                       .setSchemaDescriptor(
449                           new DomainsMethodDescriptorSupplier("ConfigureManagementSettings"))
450                       .build();
451         }
452       }
453     }
454     return getConfigureManagementSettingsMethod;
455   }
456 
457   private static volatile io.grpc.MethodDescriptor<
458           com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest,
459           com.google.longrunning.Operation>
460       getConfigureDnsSettingsMethod;
461 
462   @io.grpc.stub.annotations.RpcMethod(
463       fullMethodName = SERVICE_NAME + '/' + "ConfigureDnsSettings",
464       requestType = com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest.class,
465       responseType = com.google.longrunning.Operation.class,
466       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
467   public static io.grpc.MethodDescriptor<
468           com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest,
469           com.google.longrunning.Operation>
getConfigureDnsSettingsMethod()470       getConfigureDnsSettingsMethod() {
471     io.grpc.MethodDescriptor<
472             com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest,
473             com.google.longrunning.Operation>
474         getConfigureDnsSettingsMethod;
475     if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) {
476       synchronized (DomainsGrpc.class) {
477         if ((getConfigureDnsSettingsMethod = DomainsGrpc.getConfigureDnsSettingsMethod) == null) {
478           DomainsGrpc.getConfigureDnsSettingsMethod =
479               getConfigureDnsSettingsMethod =
480                   io.grpc.MethodDescriptor
481                       .<com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest,
482                           com.google.longrunning.Operation>
483                           newBuilder()
484                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
485                       .setFullMethodName(
486                           generateFullMethodName(SERVICE_NAME, "ConfigureDnsSettings"))
487                       .setSampledToLocalTracing(true)
488                       .setRequestMarshaller(
489                           io.grpc.protobuf.ProtoUtils.marshaller(
490                               com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest
491                                   .getDefaultInstance()))
492                       .setResponseMarshaller(
493                           io.grpc.protobuf.ProtoUtils.marshaller(
494                               com.google.longrunning.Operation.getDefaultInstance()))
495                       .setSchemaDescriptor(
496                           new DomainsMethodDescriptorSupplier("ConfigureDnsSettings"))
497                       .build();
498         }
499       }
500     }
501     return getConfigureDnsSettingsMethod;
502   }
503 
504   private static volatile io.grpc.MethodDescriptor<
505           com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest,
506           com.google.longrunning.Operation>
507       getConfigureContactSettingsMethod;
508 
509   @io.grpc.stub.annotations.RpcMethod(
510       fullMethodName = SERVICE_NAME + '/' + "ConfigureContactSettings",
511       requestType = com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest.class,
512       responseType = com.google.longrunning.Operation.class,
513       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
514   public static io.grpc.MethodDescriptor<
515           com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest,
516           com.google.longrunning.Operation>
getConfigureContactSettingsMethod()517       getConfigureContactSettingsMethod() {
518     io.grpc.MethodDescriptor<
519             com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest,
520             com.google.longrunning.Operation>
521         getConfigureContactSettingsMethod;
522     if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod)
523         == null) {
524       synchronized (DomainsGrpc.class) {
525         if ((getConfigureContactSettingsMethod = DomainsGrpc.getConfigureContactSettingsMethod)
526             == null) {
527           DomainsGrpc.getConfigureContactSettingsMethod =
528               getConfigureContactSettingsMethod =
529                   io.grpc.MethodDescriptor
530                       .<com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest,
531                           com.google.longrunning.Operation>
532                           newBuilder()
533                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
534                       .setFullMethodName(
535                           generateFullMethodName(SERVICE_NAME, "ConfigureContactSettings"))
536                       .setSampledToLocalTracing(true)
537                       .setRequestMarshaller(
538                           io.grpc.protobuf.ProtoUtils.marshaller(
539                               com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest
540                                   .getDefaultInstance()))
541                       .setResponseMarshaller(
542                           io.grpc.protobuf.ProtoUtils.marshaller(
543                               com.google.longrunning.Operation.getDefaultInstance()))
544                       .setSchemaDescriptor(
545                           new DomainsMethodDescriptorSupplier("ConfigureContactSettings"))
546                       .build();
547         }
548       }
549     }
550     return getConfigureContactSettingsMethod;
551   }
552 
553   private static volatile io.grpc.MethodDescriptor<
554           com.google.cloud.domains.v1beta1.ExportRegistrationRequest,
555           com.google.longrunning.Operation>
556       getExportRegistrationMethod;
557 
558   @io.grpc.stub.annotations.RpcMethod(
559       fullMethodName = SERVICE_NAME + '/' + "ExportRegistration",
560       requestType = com.google.cloud.domains.v1beta1.ExportRegistrationRequest.class,
561       responseType = com.google.longrunning.Operation.class,
562       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
563   public static io.grpc.MethodDescriptor<
564           com.google.cloud.domains.v1beta1.ExportRegistrationRequest,
565           com.google.longrunning.Operation>
getExportRegistrationMethod()566       getExportRegistrationMethod() {
567     io.grpc.MethodDescriptor<
568             com.google.cloud.domains.v1beta1.ExportRegistrationRequest,
569             com.google.longrunning.Operation>
570         getExportRegistrationMethod;
571     if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) {
572       synchronized (DomainsGrpc.class) {
573         if ((getExportRegistrationMethod = DomainsGrpc.getExportRegistrationMethod) == null) {
574           DomainsGrpc.getExportRegistrationMethod =
575               getExportRegistrationMethod =
576                   io.grpc.MethodDescriptor
577                       .<com.google.cloud.domains.v1beta1.ExportRegistrationRequest,
578                           com.google.longrunning.Operation>
579                           newBuilder()
580                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
581                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportRegistration"))
582                       .setSampledToLocalTracing(true)
583                       .setRequestMarshaller(
584                           io.grpc.protobuf.ProtoUtils.marshaller(
585                               com.google.cloud.domains.v1beta1.ExportRegistrationRequest
586                                   .getDefaultInstance()))
587                       .setResponseMarshaller(
588                           io.grpc.protobuf.ProtoUtils.marshaller(
589                               com.google.longrunning.Operation.getDefaultInstance()))
590                       .setSchemaDescriptor(
591                           new DomainsMethodDescriptorSupplier("ExportRegistration"))
592                       .build();
593         }
594       }
595     }
596     return getExportRegistrationMethod;
597   }
598 
599   private static volatile io.grpc.MethodDescriptor<
600           com.google.cloud.domains.v1beta1.DeleteRegistrationRequest,
601           com.google.longrunning.Operation>
602       getDeleteRegistrationMethod;
603 
604   @io.grpc.stub.annotations.RpcMethod(
605       fullMethodName = SERVICE_NAME + '/' + "DeleteRegistration",
606       requestType = com.google.cloud.domains.v1beta1.DeleteRegistrationRequest.class,
607       responseType = com.google.longrunning.Operation.class,
608       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
609   public static io.grpc.MethodDescriptor<
610           com.google.cloud.domains.v1beta1.DeleteRegistrationRequest,
611           com.google.longrunning.Operation>
getDeleteRegistrationMethod()612       getDeleteRegistrationMethod() {
613     io.grpc.MethodDescriptor<
614             com.google.cloud.domains.v1beta1.DeleteRegistrationRequest,
615             com.google.longrunning.Operation>
616         getDeleteRegistrationMethod;
617     if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) {
618       synchronized (DomainsGrpc.class) {
619         if ((getDeleteRegistrationMethod = DomainsGrpc.getDeleteRegistrationMethod) == null) {
620           DomainsGrpc.getDeleteRegistrationMethod =
621               getDeleteRegistrationMethod =
622                   io.grpc.MethodDescriptor
623                       .<com.google.cloud.domains.v1beta1.DeleteRegistrationRequest,
624                           com.google.longrunning.Operation>
625                           newBuilder()
626                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
627                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRegistration"))
628                       .setSampledToLocalTracing(true)
629                       .setRequestMarshaller(
630                           io.grpc.protobuf.ProtoUtils.marshaller(
631                               com.google.cloud.domains.v1beta1.DeleteRegistrationRequest
632                                   .getDefaultInstance()))
633                       .setResponseMarshaller(
634                           io.grpc.protobuf.ProtoUtils.marshaller(
635                               com.google.longrunning.Operation.getDefaultInstance()))
636                       .setSchemaDescriptor(
637                           new DomainsMethodDescriptorSupplier("DeleteRegistration"))
638                       .build();
639         }
640       }
641     }
642     return getDeleteRegistrationMethod;
643   }
644 
645   private static volatile io.grpc.MethodDescriptor<
646           com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest,
647           com.google.cloud.domains.v1beta1.AuthorizationCode>
648       getRetrieveAuthorizationCodeMethod;
649 
650   @io.grpc.stub.annotations.RpcMethod(
651       fullMethodName = SERVICE_NAME + '/' + "RetrieveAuthorizationCode",
652       requestType = com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest.class,
653       responseType = com.google.cloud.domains.v1beta1.AuthorizationCode.class,
654       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
655   public static io.grpc.MethodDescriptor<
656           com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest,
657           com.google.cloud.domains.v1beta1.AuthorizationCode>
getRetrieveAuthorizationCodeMethod()658       getRetrieveAuthorizationCodeMethod() {
659     io.grpc.MethodDescriptor<
660             com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest,
661             com.google.cloud.domains.v1beta1.AuthorizationCode>
662         getRetrieveAuthorizationCodeMethod;
663     if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod)
664         == null) {
665       synchronized (DomainsGrpc.class) {
666         if ((getRetrieveAuthorizationCodeMethod = DomainsGrpc.getRetrieveAuthorizationCodeMethod)
667             == null) {
668           DomainsGrpc.getRetrieveAuthorizationCodeMethod =
669               getRetrieveAuthorizationCodeMethod =
670                   io.grpc.MethodDescriptor
671                       .<com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest,
672                           com.google.cloud.domains.v1beta1.AuthorizationCode>
673                           newBuilder()
674                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
675                       .setFullMethodName(
676                           generateFullMethodName(SERVICE_NAME, "RetrieveAuthorizationCode"))
677                       .setSampledToLocalTracing(true)
678                       .setRequestMarshaller(
679                           io.grpc.protobuf.ProtoUtils.marshaller(
680                               com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest
681                                   .getDefaultInstance()))
682                       .setResponseMarshaller(
683                           io.grpc.protobuf.ProtoUtils.marshaller(
684                               com.google.cloud.domains.v1beta1.AuthorizationCode
685                                   .getDefaultInstance()))
686                       .setSchemaDescriptor(
687                           new DomainsMethodDescriptorSupplier("RetrieveAuthorizationCode"))
688                       .build();
689         }
690       }
691     }
692     return getRetrieveAuthorizationCodeMethod;
693   }
694 
695   private static volatile io.grpc.MethodDescriptor<
696           com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest,
697           com.google.cloud.domains.v1beta1.AuthorizationCode>
698       getResetAuthorizationCodeMethod;
699 
700   @io.grpc.stub.annotations.RpcMethod(
701       fullMethodName = SERVICE_NAME + '/' + "ResetAuthorizationCode",
702       requestType = com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest.class,
703       responseType = com.google.cloud.domains.v1beta1.AuthorizationCode.class,
704       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
705   public static io.grpc.MethodDescriptor<
706           com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest,
707           com.google.cloud.domains.v1beta1.AuthorizationCode>
getResetAuthorizationCodeMethod()708       getResetAuthorizationCodeMethod() {
709     io.grpc.MethodDescriptor<
710             com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest,
711             com.google.cloud.domains.v1beta1.AuthorizationCode>
712         getResetAuthorizationCodeMethod;
713     if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod) == null) {
714       synchronized (DomainsGrpc.class) {
715         if ((getResetAuthorizationCodeMethod = DomainsGrpc.getResetAuthorizationCodeMethod)
716             == null) {
717           DomainsGrpc.getResetAuthorizationCodeMethod =
718               getResetAuthorizationCodeMethod =
719                   io.grpc.MethodDescriptor
720                       .<com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest,
721                           com.google.cloud.domains.v1beta1.AuthorizationCode>
722                           newBuilder()
723                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
724                       .setFullMethodName(
725                           generateFullMethodName(SERVICE_NAME, "ResetAuthorizationCode"))
726                       .setSampledToLocalTracing(true)
727                       .setRequestMarshaller(
728                           io.grpc.protobuf.ProtoUtils.marshaller(
729                               com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest
730                                   .getDefaultInstance()))
731                       .setResponseMarshaller(
732                           io.grpc.protobuf.ProtoUtils.marshaller(
733                               com.google.cloud.domains.v1beta1.AuthorizationCode
734                                   .getDefaultInstance()))
735                       .setSchemaDescriptor(
736                           new DomainsMethodDescriptorSupplier("ResetAuthorizationCode"))
737                       .build();
738         }
739       }
740     }
741     return getResetAuthorizationCodeMethod;
742   }
743 
744   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)745   public static DomainsStub newStub(io.grpc.Channel channel) {
746     io.grpc.stub.AbstractStub.StubFactory<DomainsStub> factory =
747         new io.grpc.stub.AbstractStub.StubFactory<DomainsStub>() {
748           @java.lang.Override
749           public DomainsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
750             return new DomainsStub(channel, callOptions);
751           }
752         };
753     return DomainsStub.newStub(factory, channel);
754   }
755 
756   /**
757    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
758    */
newBlockingStub(io.grpc.Channel channel)759   public static DomainsBlockingStub newBlockingStub(io.grpc.Channel channel) {
760     io.grpc.stub.AbstractStub.StubFactory<DomainsBlockingStub> factory =
761         new io.grpc.stub.AbstractStub.StubFactory<DomainsBlockingStub>() {
762           @java.lang.Override
763           public DomainsBlockingStub newStub(
764               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
765             return new DomainsBlockingStub(channel, callOptions);
766           }
767         };
768     return DomainsBlockingStub.newStub(factory, channel);
769   }
770 
771   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)772   public static DomainsFutureStub newFutureStub(io.grpc.Channel channel) {
773     io.grpc.stub.AbstractStub.StubFactory<DomainsFutureStub> factory =
774         new io.grpc.stub.AbstractStub.StubFactory<DomainsFutureStub>() {
775           @java.lang.Override
776           public DomainsFutureStub newStub(
777               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
778             return new DomainsFutureStub(channel, callOptions);
779           }
780         };
781     return DomainsFutureStub.newStub(factory, channel);
782   }
783 
784   /**
785    *
786    *
787    * <pre>
788    * The Cloud Domains API enables management and configuration of domain names.
789    * </pre>
790    */
791   public interface AsyncService {
792 
793     /**
794      *
795      *
796      * <pre>
797      * Searches for available domain names similar to the provided query.
798      * Availability results from this method are approximate; call
799      * `RetrieveRegisterParameters` on a domain before registering to confirm
800      * availability.
801      * </pre>
802      */
searchDomains( com.google.cloud.domains.v1beta1.SearchDomainsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.SearchDomainsResponse> responseObserver)803     default void searchDomains(
804         com.google.cloud.domains.v1beta1.SearchDomainsRequest request,
805         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.SearchDomainsResponse>
806             responseObserver) {
807       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
808           getSearchDomainsMethod(), responseObserver);
809     }
810 
811     /**
812      *
813      *
814      * <pre>
815      * Gets parameters needed to register a new domain name, including price and
816      * up-to-date availability. Use the returned values to call `RegisterDomain`.
817      * </pre>
818      */
retrieveRegisterParameters( com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> responseObserver)819     default void retrieveRegisterParameters(
820         com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request,
821         io.grpc.stub.StreamObserver<
822                 com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
823             responseObserver) {
824       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
825           getRetrieveRegisterParametersMethod(), responseObserver);
826     }
827 
828     /**
829      *
830      *
831      * <pre>
832      * Registers a new domain name and creates a corresponding `Registration`
833      * resource.
834      * Call `RetrieveRegisterParameters` first to check availability of the domain
835      * name and determine parameters like price that are needed to build a call to
836      * this method.
837      * A successful call creates a `Registration` resource in state
838      * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
839      * minutes, indicating that the domain was successfully registered. If the
840      * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
841      * domain was not registered successfully, and you can safely delete the
842      * resource and retry registration.
843      * </pre>
844      */
registerDomain( com.google.cloud.domains.v1beta1.RegisterDomainRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)845     default void registerDomain(
846         com.google.cloud.domains.v1beta1.RegisterDomainRequest request,
847         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
848       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
849           getRegisterDomainMethod(), responseObserver);
850     }
851 
852     /**
853      *
854      *
855      * <pre>
856      * Gets parameters needed to transfer a domain name from another registrar to
857      * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
858      * Domains is not supported.
859      * Use the returned values to call `TransferDomain`.
860      * </pre>
861      */
retrieveTransferParameters( com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> responseObserver)862     default void retrieveTransferParameters(
863         com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request,
864         io.grpc.stub.StreamObserver<
865                 com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
866             responseObserver) {
867       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
868           getRetrieveTransferParametersMethod(), responseObserver);
869     }
870 
871     /**
872      *
873      *
874      * <pre>
875      * Transfers a domain name from another registrar to Cloud Domains.  For
876      * domains managed by Google Domains, transferring to Cloud Domains is not
877      * supported.
878      * Before calling this method, go to the domain's current registrar to unlock
879      * the domain for transfer and retrieve the domain's transfer authorization
880      * code. Then call `RetrieveTransferParameters` to confirm that the domain is
881      * unlocked and to get values needed to build a call to this method.
882      * A successful call creates a `Registration` resource in state
883      * `TRANSFER_PENDING`. It can take several days to complete the transfer
884      * process. The registrant can often speed up this process by approving the
885      * transfer through the current registrar, either by clicking a link in an
886      * email from the registrar or by visiting the registrar's website.
887      * A few minutes after transfer approval, the resource transitions to state
888      * `ACTIVE`, indicating that the transfer was successful. If the transfer is
889      * rejected or the request expires without being approved, the resource can
890      * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
891      * the resource and retry the transfer.
892      * </pre>
893      */
transferDomain( com.google.cloud.domains.v1beta1.TransferDomainRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)894     default void transferDomain(
895         com.google.cloud.domains.v1beta1.TransferDomainRequest request,
896         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
897       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
898           getTransferDomainMethod(), responseObserver);
899     }
900 
901     /**
902      *
903      *
904      * <pre>
905      * Lists the `Registration` resources in a project.
906      * </pre>
907      */
listRegistrations( com.google.cloud.domains.v1beta1.ListRegistrationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.ListRegistrationsResponse> responseObserver)908     default void listRegistrations(
909         com.google.cloud.domains.v1beta1.ListRegistrationsRequest request,
910         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
911             responseObserver) {
912       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
913           getListRegistrationsMethod(), responseObserver);
914     }
915 
916     /**
917      *
918      *
919      * <pre>
920      * Gets the details of a `Registration` resource.
921      * </pre>
922      */
getRegistration( com.google.cloud.domains.v1beta1.GetRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.Registration> responseObserver)923     default void getRegistration(
924         com.google.cloud.domains.v1beta1.GetRegistrationRequest request,
925         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.Registration>
926             responseObserver) {
927       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
928           getGetRegistrationMethod(), responseObserver);
929     }
930 
931     /**
932      *
933      *
934      * <pre>
935      * Updates select fields of a `Registration` resource, notably `labels`. To
936      * update other fields, use the appropriate custom update method:
937      * * To update management settings, see `ConfigureManagementSettings`
938      * * To update DNS configuration, see `ConfigureDnsSettings`
939      * * To update contact information, see `ConfigureContactSettings`
940      * </pre>
941      */
updateRegistration( com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)942     default void updateRegistration(
943         com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request,
944         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
945       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
946           getUpdateRegistrationMethod(), responseObserver);
947     }
948 
949     /**
950      *
951      *
952      * <pre>
953      * Updates a `Registration`'s management settings.
954      * </pre>
955      */
configureManagementSettings( com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)956     default void configureManagementSettings(
957         com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request,
958         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
959       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
960           getConfigureManagementSettingsMethod(), responseObserver);
961     }
962 
963     /**
964      *
965      *
966      * <pre>
967      * Updates a `Registration`'s DNS settings.
968      * </pre>
969      */
configureDnsSettings( com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)970     default void configureDnsSettings(
971         com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request,
972         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
973       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
974           getConfigureDnsSettingsMethod(), responseObserver);
975     }
976 
977     /**
978      *
979      *
980      * <pre>
981      * Updates a `Registration`'s contact settings. Some changes require
982      * confirmation by the domain's registrant contact .
983      * </pre>
984      */
configureContactSettings( com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)985     default void configureContactSettings(
986         com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request,
987         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
988       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
989           getConfigureContactSettingsMethod(), responseObserver);
990     }
991 
992     /**
993      *
994      *
995      * <pre>
996      * Exports a `Registration` resource, such that it is no longer managed by
997      * Cloud Domains.
998      * When an active domain is successfully exported, you can continue to use the
999      * domain in [Google Domains](https://domains.google/) until it expires. The
1000      * calling user becomes the domain's sole owner in Google Domains, and
1001      * permissions for the domain are subsequently managed there. The domain does
1002      * not renew automatically unless the new owner sets up billing in Google
1003      * Domains.
1004      * </pre>
1005      */
exportRegistration( com.google.cloud.domains.v1beta1.ExportRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1006     default void exportRegistration(
1007         com.google.cloud.domains.v1beta1.ExportRegistrationRequest request,
1008         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1009       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1010           getExportRegistrationMethod(), responseObserver);
1011     }
1012 
1013     /**
1014      *
1015      *
1016      * <pre>
1017      * Deletes a `Registration` resource.
1018      * This method works on any `Registration` resource using [Subscription or
1019      * Commitment billing](/domains/pricing#billing-models), provided that the
1020      * resource was created at least 1 day in the past.
1021      * For `Registration` resources using
1022      * [Monthly billing](/domains/pricing#billing-models), this method works if:
1023      * * `state` is `EXPORTED` with `expire_time` in the past
1024      * * `state` is `REGISTRATION_FAILED`
1025      * * `state` is `TRANSFER_FAILED`
1026      * When an active registration is successfully deleted, you can continue to
1027      * use the domain in [Google Domains](https://domains.google/) until it
1028      * expires. The calling user becomes the domain's sole owner in Google
1029      * Domains, and permissions for the domain are subsequently managed there. The
1030      * domain does not renew automatically unless the new owner sets up billing in
1031      * Google Domains.
1032      * </pre>
1033      */
deleteRegistration( com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1034     default void deleteRegistration(
1035         com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request,
1036         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1037       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1038           getDeleteRegistrationMethod(), responseObserver);
1039     }
1040 
1041     /**
1042      *
1043      *
1044      * <pre>
1045      * Gets the authorization code of the `Registration` for the purpose of
1046      * transferring the domain to another registrar.
1047      * You can call this method only after 60 days have elapsed since the initial
1048      * domain registration.
1049      * </pre>
1050      */
retrieveAuthorizationCode( com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode> responseObserver)1051     default void retrieveAuthorizationCode(
1052         com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request,
1053         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>
1054             responseObserver) {
1055       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1056           getRetrieveAuthorizationCodeMethod(), responseObserver);
1057     }
1058 
1059     /**
1060      *
1061      *
1062      * <pre>
1063      * Resets the authorization code of the `Registration` to a new random string.
1064      * You can call this method only after 60 days have elapsed since the initial
1065      * domain registration.
1066      * </pre>
1067      */
resetAuthorizationCode( com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode> responseObserver)1068     default void resetAuthorizationCode(
1069         com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request,
1070         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>
1071             responseObserver) {
1072       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1073           getResetAuthorizationCodeMethod(), responseObserver);
1074     }
1075   }
1076 
1077   /**
1078    * Base class for the server implementation of the service Domains.
1079    *
1080    * <pre>
1081    * The Cloud Domains API enables management and configuration of domain names.
1082    * </pre>
1083    */
1084   public abstract static class DomainsImplBase implements io.grpc.BindableService, AsyncService {
1085 
1086     @java.lang.Override
bindService()1087     public final io.grpc.ServerServiceDefinition bindService() {
1088       return DomainsGrpc.bindService(this);
1089     }
1090   }
1091 
1092   /**
1093    * A stub to allow clients to do asynchronous rpc calls to service Domains.
1094    *
1095    * <pre>
1096    * The Cloud Domains API enables management and configuration of domain names.
1097    * </pre>
1098    */
1099   public static final class DomainsStub extends io.grpc.stub.AbstractAsyncStub<DomainsStub> {
DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1100     private DomainsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1101       super(channel, callOptions);
1102     }
1103 
1104     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1105     protected DomainsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1106       return new DomainsStub(channel, callOptions);
1107     }
1108 
1109     /**
1110      *
1111      *
1112      * <pre>
1113      * Searches for available domain names similar to the provided query.
1114      * Availability results from this method are approximate; call
1115      * `RetrieveRegisterParameters` on a domain before registering to confirm
1116      * availability.
1117      * </pre>
1118      */
searchDomains( com.google.cloud.domains.v1beta1.SearchDomainsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.SearchDomainsResponse> responseObserver)1119     public void searchDomains(
1120         com.google.cloud.domains.v1beta1.SearchDomainsRequest request,
1121         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.SearchDomainsResponse>
1122             responseObserver) {
1123       io.grpc.stub.ClientCalls.asyncUnaryCall(
1124           getChannel().newCall(getSearchDomainsMethod(), getCallOptions()),
1125           request,
1126           responseObserver);
1127     }
1128 
1129     /**
1130      *
1131      *
1132      * <pre>
1133      * Gets parameters needed to register a new domain name, including price and
1134      * up-to-date availability. Use the returned values to call `RegisterDomain`.
1135      * </pre>
1136      */
retrieveRegisterParameters( com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse> responseObserver)1137     public void retrieveRegisterParameters(
1138         com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request,
1139         io.grpc.stub.StreamObserver<
1140                 com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
1141             responseObserver) {
1142       io.grpc.stub.ClientCalls.asyncUnaryCall(
1143           getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()),
1144           request,
1145           responseObserver);
1146     }
1147 
1148     /**
1149      *
1150      *
1151      * <pre>
1152      * Registers a new domain name and creates a corresponding `Registration`
1153      * resource.
1154      * Call `RetrieveRegisterParameters` first to check availability of the domain
1155      * name and determine parameters like price that are needed to build a call to
1156      * this method.
1157      * A successful call creates a `Registration` resource in state
1158      * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
1159      * minutes, indicating that the domain was successfully registered. If the
1160      * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
1161      * domain was not registered successfully, and you can safely delete the
1162      * resource and retry registration.
1163      * </pre>
1164      */
registerDomain( com.google.cloud.domains.v1beta1.RegisterDomainRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1165     public void registerDomain(
1166         com.google.cloud.domains.v1beta1.RegisterDomainRequest request,
1167         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1168       io.grpc.stub.ClientCalls.asyncUnaryCall(
1169           getChannel().newCall(getRegisterDomainMethod(), getCallOptions()),
1170           request,
1171           responseObserver);
1172     }
1173 
1174     /**
1175      *
1176      *
1177      * <pre>
1178      * Gets parameters needed to transfer a domain name from another registrar to
1179      * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
1180      * Domains is not supported.
1181      * Use the returned values to call `TransferDomain`.
1182      * </pre>
1183      */
retrieveTransferParameters( com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse> responseObserver)1184     public void retrieveTransferParameters(
1185         com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request,
1186         io.grpc.stub.StreamObserver<
1187                 com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
1188             responseObserver) {
1189       io.grpc.stub.ClientCalls.asyncUnaryCall(
1190           getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()),
1191           request,
1192           responseObserver);
1193     }
1194 
1195     /**
1196      *
1197      *
1198      * <pre>
1199      * Transfers a domain name from another registrar to Cloud Domains.  For
1200      * domains managed by Google Domains, transferring to Cloud Domains is not
1201      * supported.
1202      * Before calling this method, go to the domain's current registrar to unlock
1203      * the domain for transfer and retrieve the domain's transfer authorization
1204      * code. Then call `RetrieveTransferParameters` to confirm that the domain is
1205      * unlocked and to get values needed to build a call to this method.
1206      * A successful call creates a `Registration` resource in state
1207      * `TRANSFER_PENDING`. It can take several days to complete the transfer
1208      * process. The registrant can often speed up this process by approving the
1209      * transfer through the current registrar, either by clicking a link in an
1210      * email from the registrar or by visiting the registrar's website.
1211      * A few minutes after transfer approval, the resource transitions to state
1212      * `ACTIVE`, indicating that the transfer was successful. If the transfer is
1213      * rejected or the request expires without being approved, the resource can
1214      * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
1215      * the resource and retry the transfer.
1216      * </pre>
1217      */
transferDomain( com.google.cloud.domains.v1beta1.TransferDomainRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1218     public void transferDomain(
1219         com.google.cloud.domains.v1beta1.TransferDomainRequest request,
1220         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1221       io.grpc.stub.ClientCalls.asyncUnaryCall(
1222           getChannel().newCall(getTransferDomainMethod(), getCallOptions()),
1223           request,
1224           responseObserver);
1225     }
1226 
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * Lists the `Registration` resources in a project.
1232      * </pre>
1233      */
listRegistrations( com.google.cloud.domains.v1beta1.ListRegistrationsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.ListRegistrationsResponse> responseObserver)1234     public void listRegistrations(
1235         com.google.cloud.domains.v1beta1.ListRegistrationsRequest request,
1236         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
1237             responseObserver) {
1238       io.grpc.stub.ClientCalls.asyncUnaryCall(
1239           getChannel().newCall(getListRegistrationsMethod(), getCallOptions()),
1240           request,
1241           responseObserver);
1242     }
1243 
1244     /**
1245      *
1246      *
1247      * <pre>
1248      * Gets the details of a `Registration` resource.
1249      * </pre>
1250      */
getRegistration( com.google.cloud.domains.v1beta1.GetRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.Registration> responseObserver)1251     public void getRegistration(
1252         com.google.cloud.domains.v1beta1.GetRegistrationRequest request,
1253         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.Registration>
1254             responseObserver) {
1255       io.grpc.stub.ClientCalls.asyncUnaryCall(
1256           getChannel().newCall(getGetRegistrationMethod(), getCallOptions()),
1257           request,
1258           responseObserver);
1259     }
1260 
1261     /**
1262      *
1263      *
1264      * <pre>
1265      * Updates select fields of a `Registration` resource, notably `labels`. To
1266      * update other fields, use the appropriate custom update method:
1267      * * To update management settings, see `ConfigureManagementSettings`
1268      * * To update DNS configuration, see `ConfigureDnsSettings`
1269      * * To update contact information, see `ConfigureContactSettings`
1270      * </pre>
1271      */
updateRegistration( com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1272     public void updateRegistration(
1273         com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request,
1274         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1275       io.grpc.stub.ClientCalls.asyncUnaryCall(
1276           getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()),
1277           request,
1278           responseObserver);
1279     }
1280 
1281     /**
1282      *
1283      *
1284      * <pre>
1285      * Updates a `Registration`'s management settings.
1286      * </pre>
1287      */
configureManagementSettings( com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1288     public void configureManagementSettings(
1289         com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request,
1290         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1291       io.grpc.stub.ClientCalls.asyncUnaryCall(
1292           getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()),
1293           request,
1294           responseObserver);
1295     }
1296 
1297     /**
1298      *
1299      *
1300      * <pre>
1301      * Updates a `Registration`'s DNS settings.
1302      * </pre>
1303      */
configureDnsSettings( com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1304     public void configureDnsSettings(
1305         com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request,
1306         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1307       io.grpc.stub.ClientCalls.asyncUnaryCall(
1308           getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()),
1309           request,
1310           responseObserver);
1311     }
1312 
1313     /**
1314      *
1315      *
1316      * <pre>
1317      * Updates a `Registration`'s contact settings. Some changes require
1318      * confirmation by the domain's registrant contact .
1319      * </pre>
1320      */
configureContactSettings( com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1321     public void configureContactSettings(
1322         com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request,
1323         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1324       io.grpc.stub.ClientCalls.asyncUnaryCall(
1325           getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()),
1326           request,
1327           responseObserver);
1328     }
1329 
1330     /**
1331      *
1332      *
1333      * <pre>
1334      * Exports a `Registration` resource, such that it is no longer managed by
1335      * Cloud Domains.
1336      * When an active domain is successfully exported, you can continue to use the
1337      * domain in [Google Domains](https://domains.google/) until it expires. The
1338      * calling user becomes the domain's sole owner in Google Domains, and
1339      * permissions for the domain are subsequently managed there. The domain does
1340      * not renew automatically unless the new owner sets up billing in Google
1341      * Domains.
1342      * </pre>
1343      */
exportRegistration( com.google.cloud.domains.v1beta1.ExportRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1344     public void exportRegistration(
1345         com.google.cloud.domains.v1beta1.ExportRegistrationRequest request,
1346         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1347       io.grpc.stub.ClientCalls.asyncUnaryCall(
1348           getChannel().newCall(getExportRegistrationMethod(), getCallOptions()),
1349           request,
1350           responseObserver);
1351     }
1352 
1353     /**
1354      *
1355      *
1356      * <pre>
1357      * Deletes a `Registration` resource.
1358      * This method works on any `Registration` resource using [Subscription or
1359      * Commitment billing](/domains/pricing#billing-models), provided that the
1360      * resource was created at least 1 day in the past.
1361      * For `Registration` resources using
1362      * [Monthly billing](/domains/pricing#billing-models), this method works if:
1363      * * `state` is `EXPORTED` with `expire_time` in the past
1364      * * `state` is `REGISTRATION_FAILED`
1365      * * `state` is `TRANSFER_FAILED`
1366      * When an active registration is successfully deleted, you can continue to
1367      * use the domain in [Google Domains](https://domains.google/) until it
1368      * expires. The calling user becomes the domain's sole owner in Google
1369      * Domains, and permissions for the domain are subsequently managed there. The
1370      * domain does not renew automatically unless the new owner sets up billing in
1371      * Google Domains.
1372      * </pre>
1373      */
deleteRegistration( com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1374     public void deleteRegistration(
1375         com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request,
1376         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1377       io.grpc.stub.ClientCalls.asyncUnaryCall(
1378           getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()),
1379           request,
1380           responseObserver);
1381     }
1382 
1383     /**
1384      *
1385      *
1386      * <pre>
1387      * Gets the authorization code of the `Registration` for the purpose of
1388      * transferring the domain to another registrar.
1389      * You can call this method only after 60 days have elapsed since the initial
1390      * domain registration.
1391      * </pre>
1392      */
retrieveAuthorizationCode( com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode> responseObserver)1393     public void retrieveAuthorizationCode(
1394         com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request,
1395         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>
1396             responseObserver) {
1397       io.grpc.stub.ClientCalls.asyncUnaryCall(
1398           getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()),
1399           request,
1400           responseObserver);
1401     }
1402 
1403     /**
1404      *
1405      *
1406      * <pre>
1407      * Resets the authorization code of the `Registration` to a new random string.
1408      * You can call this method only after 60 days have elapsed since the initial
1409      * domain registration.
1410      * </pre>
1411      */
resetAuthorizationCode( com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request, io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode> responseObserver)1412     public void resetAuthorizationCode(
1413         com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request,
1414         io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>
1415             responseObserver) {
1416       io.grpc.stub.ClientCalls.asyncUnaryCall(
1417           getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()),
1418           request,
1419           responseObserver);
1420     }
1421   }
1422 
1423   /**
1424    * A stub to allow clients to do synchronous rpc calls to service Domains.
1425    *
1426    * <pre>
1427    * The Cloud Domains API enables management and configuration of domain names.
1428    * </pre>
1429    */
1430   public static final class DomainsBlockingStub
1431       extends io.grpc.stub.AbstractBlockingStub<DomainsBlockingStub> {
DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1432     private DomainsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1433       super(channel, callOptions);
1434     }
1435 
1436     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1437     protected DomainsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1438       return new DomainsBlockingStub(channel, callOptions);
1439     }
1440 
1441     /**
1442      *
1443      *
1444      * <pre>
1445      * Searches for available domain names similar to the provided query.
1446      * Availability results from this method are approximate; call
1447      * `RetrieveRegisterParameters` on a domain before registering to confirm
1448      * availability.
1449      * </pre>
1450      */
searchDomains( com.google.cloud.domains.v1beta1.SearchDomainsRequest request)1451     public com.google.cloud.domains.v1beta1.SearchDomainsResponse searchDomains(
1452         com.google.cloud.domains.v1beta1.SearchDomainsRequest request) {
1453       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1454           getChannel(), getSearchDomainsMethod(), getCallOptions(), request);
1455     }
1456 
1457     /**
1458      *
1459      *
1460      * <pre>
1461      * Gets parameters needed to register a new domain name, including price and
1462      * up-to-date availability. Use the returned values to call `RegisterDomain`.
1463      * </pre>
1464      */
1465     public com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse
retrieveRegisterParameters( com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request)1466         retrieveRegisterParameters(
1467             com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) {
1468       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1469           getChannel(), getRetrieveRegisterParametersMethod(), getCallOptions(), request);
1470     }
1471 
1472     /**
1473      *
1474      *
1475      * <pre>
1476      * Registers a new domain name and creates a corresponding `Registration`
1477      * resource.
1478      * Call `RetrieveRegisterParameters` first to check availability of the domain
1479      * name and determine parameters like price that are needed to build a call to
1480      * this method.
1481      * A successful call creates a `Registration` resource in state
1482      * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
1483      * minutes, indicating that the domain was successfully registered. If the
1484      * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
1485      * domain was not registered successfully, and you can safely delete the
1486      * resource and retry registration.
1487      * </pre>
1488      */
registerDomain( com.google.cloud.domains.v1beta1.RegisterDomainRequest request)1489     public com.google.longrunning.Operation registerDomain(
1490         com.google.cloud.domains.v1beta1.RegisterDomainRequest request) {
1491       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1492           getChannel(), getRegisterDomainMethod(), getCallOptions(), request);
1493     }
1494 
1495     /**
1496      *
1497      *
1498      * <pre>
1499      * Gets parameters needed to transfer a domain name from another registrar to
1500      * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
1501      * Domains is not supported.
1502      * Use the returned values to call `TransferDomain`.
1503      * </pre>
1504      */
1505     public com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse
retrieveTransferParameters( com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request)1506         retrieveTransferParameters(
1507             com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) {
1508       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1509           getChannel(), getRetrieveTransferParametersMethod(), getCallOptions(), request);
1510     }
1511 
1512     /**
1513      *
1514      *
1515      * <pre>
1516      * Transfers a domain name from another registrar to Cloud Domains.  For
1517      * domains managed by Google Domains, transferring to Cloud Domains is not
1518      * supported.
1519      * Before calling this method, go to the domain's current registrar to unlock
1520      * the domain for transfer and retrieve the domain's transfer authorization
1521      * code. Then call `RetrieveTransferParameters` to confirm that the domain is
1522      * unlocked and to get values needed to build a call to this method.
1523      * A successful call creates a `Registration` resource in state
1524      * `TRANSFER_PENDING`. It can take several days to complete the transfer
1525      * process. The registrant can often speed up this process by approving the
1526      * transfer through the current registrar, either by clicking a link in an
1527      * email from the registrar or by visiting the registrar's website.
1528      * A few minutes after transfer approval, the resource transitions to state
1529      * `ACTIVE`, indicating that the transfer was successful. If the transfer is
1530      * rejected or the request expires without being approved, the resource can
1531      * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
1532      * the resource and retry the transfer.
1533      * </pre>
1534      */
transferDomain( com.google.cloud.domains.v1beta1.TransferDomainRequest request)1535     public com.google.longrunning.Operation transferDomain(
1536         com.google.cloud.domains.v1beta1.TransferDomainRequest request) {
1537       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1538           getChannel(), getTransferDomainMethod(), getCallOptions(), request);
1539     }
1540 
1541     /**
1542      *
1543      *
1544      * <pre>
1545      * Lists the `Registration` resources in a project.
1546      * </pre>
1547      */
listRegistrations( com.google.cloud.domains.v1beta1.ListRegistrationsRequest request)1548     public com.google.cloud.domains.v1beta1.ListRegistrationsResponse listRegistrations(
1549         com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) {
1550       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1551           getChannel(), getListRegistrationsMethod(), getCallOptions(), request);
1552     }
1553 
1554     /**
1555      *
1556      *
1557      * <pre>
1558      * Gets the details of a `Registration` resource.
1559      * </pre>
1560      */
getRegistration( com.google.cloud.domains.v1beta1.GetRegistrationRequest request)1561     public com.google.cloud.domains.v1beta1.Registration getRegistration(
1562         com.google.cloud.domains.v1beta1.GetRegistrationRequest request) {
1563       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1564           getChannel(), getGetRegistrationMethod(), getCallOptions(), request);
1565     }
1566 
1567     /**
1568      *
1569      *
1570      * <pre>
1571      * Updates select fields of a `Registration` resource, notably `labels`. To
1572      * update other fields, use the appropriate custom update method:
1573      * * To update management settings, see `ConfigureManagementSettings`
1574      * * To update DNS configuration, see `ConfigureDnsSettings`
1575      * * To update contact information, see `ConfigureContactSettings`
1576      * </pre>
1577      */
updateRegistration( com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request)1578     public com.google.longrunning.Operation updateRegistration(
1579         com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) {
1580       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1581           getChannel(), getUpdateRegistrationMethod(), getCallOptions(), request);
1582     }
1583 
1584     /**
1585      *
1586      *
1587      * <pre>
1588      * Updates a `Registration`'s management settings.
1589      * </pre>
1590      */
configureManagementSettings( com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request)1591     public com.google.longrunning.Operation configureManagementSettings(
1592         com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) {
1593       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1594           getChannel(), getConfigureManagementSettingsMethod(), getCallOptions(), request);
1595     }
1596 
1597     /**
1598      *
1599      *
1600      * <pre>
1601      * Updates a `Registration`'s DNS settings.
1602      * </pre>
1603      */
configureDnsSettings( com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request)1604     public com.google.longrunning.Operation configureDnsSettings(
1605         com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) {
1606       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1607           getChannel(), getConfigureDnsSettingsMethod(), getCallOptions(), request);
1608     }
1609 
1610     /**
1611      *
1612      *
1613      * <pre>
1614      * Updates a `Registration`'s contact settings. Some changes require
1615      * confirmation by the domain's registrant contact .
1616      * </pre>
1617      */
configureContactSettings( com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request)1618     public com.google.longrunning.Operation configureContactSettings(
1619         com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) {
1620       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1621           getChannel(), getConfigureContactSettingsMethod(), getCallOptions(), request);
1622     }
1623 
1624     /**
1625      *
1626      *
1627      * <pre>
1628      * Exports a `Registration` resource, such that it is no longer managed by
1629      * Cloud Domains.
1630      * When an active domain is successfully exported, you can continue to use the
1631      * domain in [Google Domains](https://domains.google/) until it expires. The
1632      * calling user becomes the domain's sole owner in Google Domains, and
1633      * permissions for the domain are subsequently managed there. The domain does
1634      * not renew automatically unless the new owner sets up billing in Google
1635      * Domains.
1636      * </pre>
1637      */
exportRegistration( com.google.cloud.domains.v1beta1.ExportRegistrationRequest request)1638     public com.google.longrunning.Operation exportRegistration(
1639         com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) {
1640       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1641           getChannel(), getExportRegistrationMethod(), getCallOptions(), request);
1642     }
1643 
1644     /**
1645      *
1646      *
1647      * <pre>
1648      * Deletes a `Registration` resource.
1649      * This method works on any `Registration` resource using [Subscription or
1650      * Commitment billing](/domains/pricing#billing-models), provided that the
1651      * resource was created at least 1 day in the past.
1652      * For `Registration` resources using
1653      * [Monthly billing](/domains/pricing#billing-models), this method works if:
1654      * * `state` is `EXPORTED` with `expire_time` in the past
1655      * * `state` is `REGISTRATION_FAILED`
1656      * * `state` is `TRANSFER_FAILED`
1657      * When an active registration is successfully deleted, you can continue to
1658      * use the domain in [Google Domains](https://domains.google/) until it
1659      * expires. The calling user becomes the domain's sole owner in Google
1660      * Domains, and permissions for the domain are subsequently managed there. The
1661      * domain does not renew automatically unless the new owner sets up billing in
1662      * Google Domains.
1663      * </pre>
1664      */
deleteRegistration( com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request)1665     public com.google.longrunning.Operation deleteRegistration(
1666         com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) {
1667       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1668           getChannel(), getDeleteRegistrationMethod(), getCallOptions(), request);
1669     }
1670 
1671     /**
1672      *
1673      *
1674      * <pre>
1675      * Gets the authorization code of the `Registration` for the purpose of
1676      * transferring the domain to another registrar.
1677      * You can call this method only after 60 days have elapsed since the initial
1678      * domain registration.
1679      * </pre>
1680      */
retrieveAuthorizationCode( com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request)1681     public com.google.cloud.domains.v1beta1.AuthorizationCode retrieveAuthorizationCode(
1682         com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) {
1683       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1684           getChannel(), getRetrieveAuthorizationCodeMethod(), getCallOptions(), request);
1685     }
1686 
1687     /**
1688      *
1689      *
1690      * <pre>
1691      * Resets the authorization code of the `Registration` to a new random string.
1692      * You can call this method only after 60 days have elapsed since the initial
1693      * domain registration.
1694      * </pre>
1695      */
resetAuthorizationCode( com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request)1696     public com.google.cloud.domains.v1beta1.AuthorizationCode resetAuthorizationCode(
1697         com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) {
1698       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1699           getChannel(), getResetAuthorizationCodeMethod(), getCallOptions(), request);
1700     }
1701   }
1702 
1703   /**
1704    * A stub to allow clients to do ListenableFuture-style rpc calls to service Domains.
1705    *
1706    * <pre>
1707    * The Cloud Domains API enables management and configuration of domain names.
1708    * </pre>
1709    */
1710   public static final class DomainsFutureStub
1711       extends io.grpc.stub.AbstractFutureStub<DomainsFutureStub> {
DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1712     private DomainsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1713       super(channel, callOptions);
1714     }
1715 
1716     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1717     protected DomainsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1718       return new DomainsFutureStub(channel, callOptions);
1719     }
1720 
1721     /**
1722      *
1723      *
1724      * <pre>
1725      * Searches for available domain names similar to the provided query.
1726      * Availability results from this method are approximate; call
1727      * `RetrieveRegisterParameters` on a domain before registering to confirm
1728      * availability.
1729      * </pre>
1730      */
1731     public com.google.common.util.concurrent.ListenableFuture<
1732             com.google.cloud.domains.v1beta1.SearchDomainsResponse>
searchDomains(com.google.cloud.domains.v1beta1.SearchDomainsRequest request)1733         searchDomains(com.google.cloud.domains.v1beta1.SearchDomainsRequest request) {
1734       return io.grpc.stub.ClientCalls.futureUnaryCall(
1735           getChannel().newCall(getSearchDomainsMethod(), getCallOptions()), request);
1736     }
1737 
1738     /**
1739      *
1740      *
1741      * <pre>
1742      * Gets parameters needed to register a new domain name, including price and
1743      * up-to-date availability. Use the returned values to call `RegisterDomain`.
1744      * </pre>
1745      */
1746     public com.google.common.util.concurrent.ListenableFuture<
1747             com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>
retrieveRegisterParameters( com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request)1748         retrieveRegisterParameters(
1749             com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest request) {
1750       return io.grpc.stub.ClientCalls.futureUnaryCall(
1751           getChannel().newCall(getRetrieveRegisterParametersMethod(), getCallOptions()), request);
1752     }
1753 
1754     /**
1755      *
1756      *
1757      * <pre>
1758      * Registers a new domain name and creates a corresponding `Registration`
1759      * resource.
1760      * Call `RetrieveRegisterParameters` first to check availability of the domain
1761      * name and determine parameters like price that are needed to build a call to
1762      * this method.
1763      * A successful call creates a `Registration` resource in state
1764      * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
1765      * minutes, indicating that the domain was successfully registered. If the
1766      * resource ends up in state `REGISTRATION_FAILED`, it indicates that the
1767      * domain was not registered successfully, and you can safely delete the
1768      * resource and retry registration.
1769      * </pre>
1770      */
1771     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
registerDomain(com.google.cloud.domains.v1beta1.RegisterDomainRequest request)1772         registerDomain(com.google.cloud.domains.v1beta1.RegisterDomainRequest request) {
1773       return io.grpc.stub.ClientCalls.futureUnaryCall(
1774           getChannel().newCall(getRegisterDomainMethod(), getCallOptions()), request);
1775     }
1776 
1777     /**
1778      *
1779      *
1780      * <pre>
1781      * Gets parameters needed to transfer a domain name from another registrar to
1782      * Cloud Domains. For domains managed by Google Domains, transferring to Cloud
1783      * Domains is not supported.
1784      * Use the returned values to call `TransferDomain`.
1785      * </pre>
1786      */
1787     public com.google.common.util.concurrent.ListenableFuture<
1788             com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>
retrieveTransferParameters( com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request)1789         retrieveTransferParameters(
1790             com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest request) {
1791       return io.grpc.stub.ClientCalls.futureUnaryCall(
1792           getChannel().newCall(getRetrieveTransferParametersMethod(), getCallOptions()), request);
1793     }
1794 
1795     /**
1796      *
1797      *
1798      * <pre>
1799      * Transfers a domain name from another registrar to Cloud Domains.  For
1800      * domains managed by Google Domains, transferring to Cloud Domains is not
1801      * supported.
1802      * Before calling this method, go to the domain's current registrar to unlock
1803      * the domain for transfer and retrieve the domain's transfer authorization
1804      * code. Then call `RetrieveTransferParameters` to confirm that the domain is
1805      * unlocked and to get values needed to build a call to this method.
1806      * A successful call creates a `Registration` resource in state
1807      * `TRANSFER_PENDING`. It can take several days to complete the transfer
1808      * process. The registrant can often speed up this process by approving the
1809      * transfer through the current registrar, either by clicking a link in an
1810      * email from the registrar or by visiting the registrar's website.
1811      * A few minutes after transfer approval, the resource transitions to state
1812      * `ACTIVE`, indicating that the transfer was successful. If the transfer is
1813      * rejected or the request expires without being approved, the resource can
1814      * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete
1815      * the resource and retry the transfer.
1816      * </pre>
1817      */
1818     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
transferDomain(com.google.cloud.domains.v1beta1.TransferDomainRequest request)1819         transferDomain(com.google.cloud.domains.v1beta1.TransferDomainRequest request) {
1820       return io.grpc.stub.ClientCalls.futureUnaryCall(
1821           getChannel().newCall(getTransferDomainMethod(), getCallOptions()), request);
1822     }
1823 
1824     /**
1825      *
1826      *
1827      * <pre>
1828      * Lists the `Registration` resources in a project.
1829      * </pre>
1830      */
1831     public com.google.common.util.concurrent.ListenableFuture<
1832             com.google.cloud.domains.v1beta1.ListRegistrationsResponse>
listRegistrations(com.google.cloud.domains.v1beta1.ListRegistrationsRequest request)1833         listRegistrations(com.google.cloud.domains.v1beta1.ListRegistrationsRequest request) {
1834       return io.grpc.stub.ClientCalls.futureUnaryCall(
1835           getChannel().newCall(getListRegistrationsMethod(), getCallOptions()), request);
1836     }
1837 
1838     /**
1839      *
1840      *
1841      * <pre>
1842      * Gets the details of a `Registration` resource.
1843      * </pre>
1844      */
1845     public com.google.common.util.concurrent.ListenableFuture<
1846             com.google.cloud.domains.v1beta1.Registration>
getRegistration(com.google.cloud.domains.v1beta1.GetRegistrationRequest request)1847         getRegistration(com.google.cloud.domains.v1beta1.GetRegistrationRequest request) {
1848       return io.grpc.stub.ClientCalls.futureUnaryCall(
1849           getChannel().newCall(getGetRegistrationMethod(), getCallOptions()), request);
1850     }
1851 
1852     /**
1853      *
1854      *
1855      * <pre>
1856      * Updates select fields of a `Registration` resource, notably `labels`. To
1857      * update other fields, use the appropriate custom update method:
1858      * * To update management settings, see `ConfigureManagementSettings`
1859      * * To update DNS configuration, see `ConfigureDnsSettings`
1860      * * To update contact information, see `ConfigureContactSettings`
1861      * </pre>
1862      */
1863     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
updateRegistration(com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request)1864         updateRegistration(com.google.cloud.domains.v1beta1.UpdateRegistrationRequest request) {
1865       return io.grpc.stub.ClientCalls.futureUnaryCall(
1866           getChannel().newCall(getUpdateRegistrationMethod(), getCallOptions()), request);
1867     }
1868 
1869     /**
1870      *
1871      *
1872      * <pre>
1873      * Updates a `Registration`'s management settings.
1874      * </pre>
1875      */
1876     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
configureManagementSettings( com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request)1877         configureManagementSettings(
1878             com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest request) {
1879       return io.grpc.stub.ClientCalls.futureUnaryCall(
1880           getChannel().newCall(getConfigureManagementSettingsMethod(), getCallOptions()), request);
1881     }
1882 
1883     /**
1884      *
1885      *
1886      * <pre>
1887      * Updates a `Registration`'s DNS settings.
1888      * </pre>
1889      */
1890     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
configureDnsSettings(com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request)1891         configureDnsSettings(com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest request) {
1892       return io.grpc.stub.ClientCalls.futureUnaryCall(
1893           getChannel().newCall(getConfigureDnsSettingsMethod(), getCallOptions()), request);
1894     }
1895 
1896     /**
1897      *
1898      *
1899      * <pre>
1900      * Updates a `Registration`'s contact settings. Some changes require
1901      * confirmation by the domain's registrant contact .
1902      * </pre>
1903      */
1904     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
configureContactSettings( com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request)1905         configureContactSettings(
1906             com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest request) {
1907       return io.grpc.stub.ClientCalls.futureUnaryCall(
1908           getChannel().newCall(getConfigureContactSettingsMethod(), getCallOptions()), request);
1909     }
1910 
1911     /**
1912      *
1913      *
1914      * <pre>
1915      * Exports a `Registration` resource, such that it is no longer managed by
1916      * Cloud Domains.
1917      * When an active domain is successfully exported, you can continue to use the
1918      * domain in [Google Domains](https://domains.google/) until it expires. The
1919      * calling user becomes the domain's sole owner in Google Domains, and
1920      * permissions for the domain are subsequently managed there. The domain does
1921      * not renew automatically unless the new owner sets up billing in Google
1922      * Domains.
1923      * </pre>
1924      */
1925     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
exportRegistration(com.google.cloud.domains.v1beta1.ExportRegistrationRequest request)1926         exportRegistration(com.google.cloud.domains.v1beta1.ExportRegistrationRequest request) {
1927       return io.grpc.stub.ClientCalls.futureUnaryCall(
1928           getChannel().newCall(getExportRegistrationMethod(), getCallOptions()), request);
1929     }
1930 
1931     /**
1932      *
1933      *
1934      * <pre>
1935      * Deletes a `Registration` resource.
1936      * This method works on any `Registration` resource using [Subscription or
1937      * Commitment billing](/domains/pricing#billing-models), provided that the
1938      * resource was created at least 1 day in the past.
1939      * For `Registration` resources using
1940      * [Monthly billing](/domains/pricing#billing-models), this method works if:
1941      * * `state` is `EXPORTED` with `expire_time` in the past
1942      * * `state` is `REGISTRATION_FAILED`
1943      * * `state` is `TRANSFER_FAILED`
1944      * When an active registration is successfully deleted, you can continue to
1945      * use the domain in [Google Domains](https://domains.google/) until it
1946      * expires. The calling user becomes the domain's sole owner in Google
1947      * Domains, and permissions for the domain are subsequently managed there. The
1948      * domain does not renew automatically unless the new owner sets up billing in
1949      * Google Domains.
1950      * </pre>
1951      */
1952     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
deleteRegistration(com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request)1953         deleteRegistration(com.google.cloud.domains.v1beta1.DeleteRegistrationRequest request) {
1954       return io.grpc.stub.ClientCalls.futureUnaryCall(
1955           getChannel().newCall(getDeleteRegistrationMethod(), getCallOptions()), request);
1956     }
1957 
1958     /**
1959      *
1960      *
1961      * <pre>
1962      * Gets the authorization code of the `Registration` for the purpose of
1963      * transferring the domain to another registrar.
1964      * You can call this method only after 60 days have elapsed since the initial
1965      * domain registration.
1966      * </pre>
1967      */
1968     public com.google.common.util.concurrent.ListenableFuture<
1969             com.google.cloud.domains.v1beta1.AuthorizationCode>
retrieveAuthorizationCode( com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request)1970         retrieveAuthorizationCode(
1971             com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest request) {
1972       return io.grpc.stub.ClientCalls.futureUnaryCall(
1973           getChannel().newCall(getRetrieveAuthorizationCodeMethod(), getCallOptions()), request);
1974     }
1975 
1976     /**
1977      *
1978      *
1979      * <pre>
1980      * Resets the authorization code of the `Registration` to a new random string.
1981      * You can call this method only after 60 days have elapsed since the initial
1982      * domain registration.
1983      * </pre>
1984      */
1985     public com.google.common.util.concurrent.ListenableFuture<
1986             com.google.cloud.domains.v1beta1.AuthorizationCode>
resetAuthorizationCode( com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request)1987         resetAuthorizationCode(
1988             com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest request) {
1989       return io.grpc.stub.ClientCalls.futureUnaryCall(
1990           getChannel().newCall(getResetAuthorizationCodeMethod(), getCallOptions()), request);
1991     }
1992   }
1993 
1994   private static final int METHODID_SEARCH_DOMAINS = 0;
1995   private static final int METHODID_RETRIEVE_REGISTER_PARAMETERS = 1;
1996   private static final int METHODID_REGISTER_DOMAIN = 2;
1997   private static final int METHODID_RETRIEVE_TRANSFER_PARAMETERS = 3;
1998   private static final int METHODID_TRANSFER_DOMAIN = 4;
1999   private static final int METHODID_LIST_REGISTRATIONS = 5;
2000   private static final int METHODID_GET_REGISTRATION = 6;
2001   private static final int METHODID_UPDATE_REGISTRATION = 7;
2002   private static final int METHODID_CONFIGURE_MANAGEMENT_SETTINGS = 8;
2003   private static final int METHODID_CONFIGURE_DNS_SETTINGS = 9;
2004   private static final int METHODID_CONFIGURE_CONTACT_SETTINGS = 10;
2005   private static final int METHODID_EXPORT_REGISTRATION = 11;
2006   private static final int METHODID_DELETE_REGISTRATION = 12;
2007   private static final int METHODID_RETRIEVE_AUTHORIZATION_CODE = 13;
2008   private static final int METHODID_RESET_AUTHORIZATION_CODE = 14;
2009 
2010   private static final class MethodHandlers<Req, Resp>
2011       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
2012           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
2013           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
2014           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
2015     private final AsyncService serviceImpl;
2016     private final int methodId;
2017 
MethodHandlers(AsyncService serviceImpl, int methodId)2018     MethodHandlers(AsyncService serviceImpl, int methodId) {
2019       this.serviceImpl = serviceImpl;
2020       this.methodId = methodId;
2021     }
2022 
2023     @java.lang.Override
2024     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)2025     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
2026       switch (methodId) {
2027         case METHODID_SEARCH_DOMAINS:
2028           serviceImpl.searchDomains(
2029               (com.google.cloud.domains.v1beta1.SearchDomainsRequest) request,
2030               (io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.SearchDomainsResponse>)
2031                   responseObserver);
2032           break;
2033         case METHODID_RETRIEVE_REGISTER_PARAMETERS:
2034           serviceImpl.retrieveRegisterParameters(
2035               (com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest) request,
2036               (io.grpc.stub.StreamObserver<
2037                       com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>)
2038                   responseObserver);
2039           break;
2040         case METHODID_REGISTER_DOMAIN:
2041           serviceImpl.registerDomain(
2042               (com.google.cloud.domains.v1beta1.RegisterDomainRequest) request,
2043               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2044           break;
2045         case METHODID_RETRIEVE_TRANSFER_PARAMETERS:
2046           serviceImpl.retrieveTransferParameters(
2047               (com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest) request,
2048               (io.grpc.stub.StreamObserver<
2049                       com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>)
2050                   responseObserver);
2051           break;
2052         case METHODID_TRANSFER_DOMAIN:
2053           serviceImpl.transferDomain(
2054               (com.google.cloud.domains.v1beta1.TransferDomainRequest) request,
2055               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2056           break;
2057         case METHODID_LIST_REGISTRATIONS:
2058           serviceImpl.listRegistrations(
2059               (com.google.cloud.domains.v1beta1.ListRegistrationsRequest) request,
2060               (io.grpc.stub.StreamObserver<
2061                       com.google.cloud.domains.v1beta1.ListRegistrationsResponse>)
2062                   responseObserver);
2063           break;
2064         case METHODID_GET_REGISTRATION:
2065           serviceImpl.getRegistration(
2066               (com.google.cloud.domains.v1beta1.GetRegistrationRequest) request,
2067               (io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.Registration>)
2068                   responseObserver);
2069           break;
2070         case METHODID_UPDATE_REGISTRATION:
2071           serviceImpl.updateRegistration(
2072               (com.google.cloud.domains.v1beta1.UpdateRegistrationRequest) request,
2073               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2074           break;
2075         case METHODID_CONFIGURE_MANAGEMENT_SETTINGS:
2076           serviceImpl.configureManagementSettings(
2077               (com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest) request,
2078               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2079           break;
2080         case METHODID_CONFIGURE_DNS_SETTINGS:
2081           serviceImpl.configureDnsSettings(
2082               (com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest) request,
2083               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2084           break;
2085         case METHODID_CONFIGURE_CONTACT_SETTINGS:
2086           serviceImpl.configureContactSettings(
2087               (com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest) request,
2088               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2089           break;
2090         case METHODID_EXPORT_REGISTRATION:
2091           serviceImpl.exportRegistration(
2092               (com.google.cloud.domains.v1beta1.ExportRegistrationRequest) request,
2093               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2094           break;
2095         case METHODID_DELETE_REGISTRATION:
2096           serviceImpl.deleteRegistration(
2097               (com.google.cloud.domains.v1beta1.DeleteRegistrationRequest) request,
2098               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2099           break;
2100         case METHODID_RETRIEVE_AUTHORIZATION_CODE:
2101           serviceImpl.retrieveAuthorizationCode(
2102               (com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest) request,
2103               (io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>)
2104                   responseObserver);
2105           break;
2106         case METHODID_RESET_AUTHORIZATION_CODE:
2107           serviceImpl.resetAuthorizationCode(
2108               (com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest) request,
2109               (io.grpc.stub.StreamObserver<com.google.cloud.domains.v1beta1.AuthorizationCode>)
2110                   responseObserver);
2111           break;
2112         default:
2113           throw new AssertionError();
2114       }
2115     }
2116 
2117     @java.lang.Override
2118     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)2119     public io.grpc.stub.StreamObserver<Req> invoke(
2120         io.grpc.stub.StreamObserver<Resp> responseObserver) {
2121       switch (methodId) {
2122         default:
2123           throw new AssertionError();
2124       }
2125     }
2126   }
2127 
bindService(AsyncService service)2128   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
2129     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
2130         .addMethod(
2131             getSearchDomainsMethod(),
2132             io.grpc.stub.ServerCalls.asyncUnaryCall(
2133                 new MethodHandlers<
2134                     com.google.cloud.domains.v1beta1.SearchDomainsRequest,
2135                     com.google.cloud.domains.v1beta1.SearchDomainsResponse>(
2136                     service, METHODID_SEARCH_DOMAINS)))
2137         .addMethod(
2138             getRetrieveRegisterParametersMethod(),
2139             io.grpc.stub.ServerCalls.asyncUnaryCall(
2140                 new MethodHandlers<
2141                     com.google.cloud.domains.v1beta1.RetrieveRegisterParametersRequest,
2142                     com.google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse>(
2143                     service, METHODID_RETRIEVE_REGISTER_PARAMETERS)))
2144         .addMethod(
2145             getRegisterDomainMethod(),
2146             io.grpc.stub.ServerCalls.asyncUnaryCall(
2147                 new MethodHandlers<
2148                     com.google.cloud.domains.v1beta1.RegisterDomainRequest,
2149                     com.google.longrunning.Operation>(service, METHODID_REGISTER_DOMAIN)))
2150         .addMethod(
2151             getRetrieveTransferParametersMethod(),
2152             io.grpc.stub.ServerCalls.asyncUnaryCall(
2153                 new MethodHandlers<
2154                     com.google.cloud.domains.v1beta1.RetrieveTransferParametersRequest,
2155                     com.google.cloud.domains.v1beta1.RetrieveTransferParametersResponse>(
2156                     service, METHODID_RETRIEVE_TRANSFER_PARAMETERS)))
2157         .addMethod(
2158             getTransferDomainMethod(),
2159             io.grpc.stub.ServerCalls.asyncUnaryCall(
2160                 new MethodHandlers<
2161                     com.google.cloud.domains.v1beta1.TransferDomainRequest,
2162                     com.google.longrunning.Operation>(service, METHODID_TRANSFER_DOMAIN)))
2163         .addMethod(
2164             getListRegistrationsMethod(),
2165             io.grpc.stub.ServerCalls.asyncUnaryCall(
2166                 new MethodHandlers<
2167                     com.google.cloud.domains.v1beta1.ListRegistrationsRequest,
2168                     com.google.cloud.domains.v1beta1.ListRegistrationsResponse>(
2169                     service, METHODID_LIST_REGISTRATIONS)))
2170         .addMethod(
2171             getGetRegistrationMethod(),
2172             io.grpc.stub.ServerCalls.asyncUnaryCall(
2173                 new MethodHandlers<
2174                     com.google.cloud.domains.v1beta1.GetRegistrationRequest,
2175                     com.google.cloud.domains.v1beta1.Registration>(
2176                     service, METHODID_GET_REGISTRATION)))
2177         .addMethod(
2178             getUpdateRegistrationMethod(),
2179             io.grpc.stub.ServerCalls.asyncUnaryCall(
2180                 new MethodHandlers<
2181                     com.google.cloud.domains.v1beta1.UpdateRegistrationRequest,
2182                     com.google.longrunning.Operation>(service, METHODID_UPDATE_REGISTRATION)))
2183         .addMethod(
2184             getConfigureManagementSettingsMethod(),
2185             io.grpc.stub.ServerCalls.asyncUnaryCall(
2186                 new MethodHandlers<
2187                     com.google.cloud.domains.v1beta1.ConfigureManagementSettingsRequest,
2188                     com.google.longrunning.Operation>(
2189                     service, METHODID_CONFIGURE_MANAGEMENT_SETTINGS)))
2190         .addMethod(
2191             getConfigureDnsSettingsMethod(),
2192             io.grpc.stub.ServerCalls.asyncUnaryCall(
2193                 new MethodHandlers<
2194                     com.google.cloud.domains.v1beta1.ConfigureDnsSettingsRequest,
2195                     com.google.longrunning.Operation>(service, METHODID_CONFIGURE_DNS_SETTINGS)))
2196         .addMethod(
2197             getConfigureContactSettingsMethod(),
2198             io.grpc.stub.ServerCalls.asyncUnaryCall(
2199                 new MethodHandlers<
2200                     com.google.cloud.domains.v1beta1.ConfigureContactSettingsRequest,
2201                     com.google.longrunning.Operation>(
2202                     service, METHODID_CONFIGURE_CONTACT_SETTINGS)))
2203         .addMethod(
2204             getExportRegistrationMethod(),
2205             io.grpc.stub.ServerCalls.asyncUnaryCall(
2206                 new MethodHandlers<
2207                     com.google.cloud.domains.v1beta1.ExportRegistrationRequest,
2208                     com.google.longrunning.Operation>(service, METHODID_EXPORT_REGISTRATION)))
2209         .addMethod(
2210             getDeleteRegistrationMethod(),
2211             io.grpc.stub.ServerCalls.asyncUnaryCall(
2212                 new MethodHandlers<
2213                     com.google.cloud.domains.v1beta1.DeleteRegistrationRequest,
2214                     com.google.longrunning.Operation>(service, METHODID_DELETE_REGISTRATION)))
2215         .addMethod(
2216             getRetrieveAuthorizationCodeMethod(),
2217             io.grpc.stub.ServerCalls.asyncUnaryCall(
2218                 new MethodHandlers<
2219                     com.google.cloud.domains.v1beta1.RetrieveAuthorizationCodeRequest,
2220                     com.google.cloud.domains.v1beta1.AuthorizationCode>(
2221                     service, METHODID_RETRIEVE_AUTHORIZATION_CODE)))
2222         .addMethod(
2223             getResetAuthorizationCodeMethod(),
2224             io.grpc.stub.ServerCalls.asyncUnaryCall(
2225                 new MethodHandlers<
2226                     com.google.cloud.domains.v1beta1.ResetAuthorizationCodeRequest,
2227                     com.google.cloud.domains.v1beta1.AuthorizationCode>(
2228                     service, METHODID_RESET_AUTHORIZATION_CODE)))
2229         .build();
2230   }
2231 
2232   private abstract static class DomainsBaseDescriptorSupplier
2233       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
2234           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DomainsBaseDescriptorSupplier()2235     DomainsBaseDescriptorSupplier() {}
2236 
2237     @java.lang.Override
getFileDescriptor()2238     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
2239       return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor();
2240     }
2241 
2242     @java.lang.Override
getServiceDescriptor()2243     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
2244       return getFileDescriptor().findServiceByName("Domains");
2245     }
2246   }
2247 
2248   private static final class DomainsFileDescriptorSupplier extends DomainsBaseDescriptorSupplier {
DomainsFileDescriptorSupplier()2249     DomainsFileDescriptorSupplier() {}
2250   }
2251 
2252   private static final class DomainsMethodDescriptorSupplier extends DomainsBaseDescriptorSupplier
2253       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
2254     private final String methodName;
2255 
DomainsMethodDescriptorSupplier(String methodName)2256     DomainsMethodDescriptorSupplier(String methodName) {
2257       this.methodName = methodName;
2258     }
2259 
2260     @java.lang.Override
getMethodDescriptor()2261     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
2262       return getServiceDescriptor().findMethodByName(methodName);
2263     }
2264   }
2265 
2266   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
2267 
getServiceDescriptor()2268   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
2269     io.grpc.ServiceDescriptor result = serviceDescriptor;
2270     if (result == null) {
2271       synchronized (DomainsGrpc.class) {
2272         result = serviceDescriptor;
2273         if (result == null) {
2274           serviceDescriptor =
2275               result =
2276                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
2277                       .setSchemaDescriptor(new DomainsFileDescriptorSupplier())
2278                       .addMethod(getSearchDomainsMethod())
2279                       .addMethod(getRetrieveRegisterParametersMethod())
2280                       .addMethod(getRegisterDomainMethod())
2281                       .addMethod(getRetrieveTransferParametersMethod())
2282                       .addMethod(getTransferDomainMethod())
2283                       .addMethod(getListRegistrationsMethod())
2284                       .addMethod(getGetRegistrationMethod())
2285                       .addMethod(getUpdateRegistrationMethod())
2286                       .addMethod(getConfigureManagementSettingsMethod())
2287                       .addMethod(getConfigureDnsSettingsMethod())
2288                       .addMethod(getConfigureContactSettingsMethod())
2289                       .addMethod(getExportRegistrationMethod())
2290                       .addMethod(getDeleteRegistrationMethod())
2291                       .addMethod(getRetrieveAuthorizationCodeMethod())
2292                       .addMethod(getResetAuthorizationCodeMethod())
2293                       .build();
2294         }
2295       }
2296     }
2297     return result;
2298   }
2299 }
2300