• 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.osconfig.v1;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 
20 /**
21  *
22  *
23  * <pre>
24  * OS Config API
25  * The OS Config service is a server-side component that you can use to
26  * manage package installations and patch jobs for virtual machine instances.
27  * </pre>
28  */
29 @javax.annotation.Generated(
30     value = "by gRPC proto compiler",
31     comments = "Source: google/cloud/osconfig/v1/osconfig_service.proto")
32 @io.grpc.stub.annotations.GrpcGenerated
33 public final class OsConfigServiceGrpc {
34 
OsConfigServiceGrpc()35   private OsConfigServiceGrpc() {}
36 
37   public static final String SERVICE_NAME = "google.cloud.osconfig.v1.OsConfigService";
38 
39   // Static method descriptors that strictly reflect the proto.
40   private static volatile io.grpc.MethodDescriptor<
41           com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest,
42           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
43       getExecutePatchJobMethod;
44 
45   @io.grpc.stub.annotations.RpcMethod(
46       fullMethodName = SERVICE_NAME + '/' + "ExecutePatchJob",
47       requestType = com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest.class,
48       responseType = com.google.cloud.osconfig.v1.PatchJobs.PatchJob.class,
49       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
50   public static io.grpc.MethodDescriptor<
51           com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest,
52           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
getExecutePatchJobMethod()53       getExecutePatchJobMethod() {
54     io.grpc.MethodDescriptor<
55             com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest,
56             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
57         getExecutePatchJobMethod;
58     if ((getExecutePatchJobMethod = OsConfigServiceGrpc.getExecutePatchJobMethod) == null) {
59       synchronized (OsConfigServiceGrpc.class) {
60         if ((getExecutePatchJobMethod = OsConfigServiceGrpc.getExecutePatchJobMethod) == null) {
61           OsConfigServiceGrpc.getExecutePatchJobMethod =
62               getExecutePatchJobMethod =
63                   io.grpc.MethodDescriptor
64                       .<com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest,
65                           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
66                           newBuilder()
67                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
68                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecutePatchJob"))
69                       .setSampledToLocalTracing(true)
70                       .setRequestMarshaller(
71                           io.grpc.protobuf.ProtoUtils.marshaller(
72                               com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest
73                                   .getDefaultInstance()))
74                       .setResponseMarshaller(
75                           io.grpc.protobuf.ProtoUtils.marshaller(
76                               com.google.cloud.osconfig.v1.PatchJobs.PatchJob.getDefaultInstance()))
77                       .setSchemaDescriptor(
78                           new OsConfigServiceMethodDescriptorSupplier("ExecutePatchJob"))
79                       .build();
80         }
81       }
82     }
83     return getExecutePatchJobMethod;
84   }
85 
86   private static volatile io.grpc.MethodDescriptor<
87           com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest,
88           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
89       getGetPatchJobMethod;
90 
91   @io.grpc.stub.annotations.RpcMethod(
92       fullMethodName = SERVICE_NAME + '/' + "GetPatchJob",
93       requestType = com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest.class,
94       responseType = com.google.cloud.osconfig.v1.PatchJobs.PatchJob.class,
95       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
96   public static io.grpc.MethodDescriptor<
97           com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest,
98           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
getGetPatchJobMethod()99       getGetPatchJobMethod() {
100     io.grpc.MethodDescriptor<
101             com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest,
102             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
103         getGetPatchJobMethod;
104     if ((getGetPatchJobMethod = OsConfigServiceGrpc.getGetPatchJobMethod) == null) {
105       synchronized (OsConfigServiceGrpc.class) {
106         if ((getGetPatchJobMethod = OsConfigServiceGrpc.getGetPatchJobMethod) == null) {
107           OsConfigServiceGrpc.getGetPatchJobMethod =
108               getGetPatchJobMethod =
109                   io.grpc.MethodDescriptor
110                       .<com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest,
111                           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
112                           newBuilder()
113                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
114                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPatchJob"))
115                       .setSampledToLocalTracing(true)
116                       .setRequestMarshaller(
117                           io.grpc.protobuf.ProtoUtils.marshaller(
118                               com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest
119                                   .getDefaultInstance()))
120                       .setResponseMarshaller(
121                           io.grpc.protobuf.ProtoUtils.marshaller(
122                               com.google.cloud.osconfig.v1.PatchJobs.PatchJob.getDefaultInstance()))
123                       .setSchemaDescriptor(
124                           new OsConfigServiceMethodDescriptorSupplier("GetPatchJob"))
125                       .build();
126         }
127       }
128     }
129     return getGetPatchJobMethod;
130   }
131 
132   private static volatile io.grpc.MethodDescriptor<
133           com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest,
134           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
135       getCancelPatchJobMethod;
136 
137   @io.grpc.stub.annotations.RpcMethod(
138       fullMethodName = SERVICE_NAME + '/' + "CancelPatchJob",
139       requestType = com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest.class,
140       responseType = com.google.cloud.osconfig.v1.PatchJobs.PatchJob.class,
141       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
142   public static io.grpc.MethodDescriptor<
143           com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest,
144           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
getCancelPatchJobMethod()145       getCancelPatchJobMethod() {
146     io.grpc.MethodDescriptor<
147             com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest,
148             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
149         getCancelPatchJobMethod;
150     if ((getCancelPatchJobMethod = OsConfigServiceGrpc.getCancelPatchJobMethod) == null) {
151       synchronized (OsConfigServiceGrpc.class) {
152         if ((getCancelPatchJobMethod = OsConfigServiceGrpc.getCancelPatchJobMethod) == null) {
153           OsConfigServiceGrpc.getCancelPatchJobMethod =
154               getCancelPatchJobMethod =
155                   io.grpc.MethodDescriptor
156                       .<com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest,
157                           com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
158                           newBuilder()
159                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
160                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelPatchJob"))
161                       .setSampledToLocalTracing(true)
162                       .setRequestMarshaller(
163                           io.grpc.protobuf.ProtoUtils.marshaller(
164                               com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest
165                                   .getDefaultInstance()))
166                       .setResponseMarshaller(
167                           io.grpc.protobuf.ProtoUtils.marshaller(
168                               com.google.cloud.osconfig.v1.PatchJobs.PatchJob.getDefaultInstance()))
169                       .setSchemaDescriptor(
170                           new OsConfigServiceMethodDescriptorSupplier("CancelPatchJob"))
171                       .build();
172         }
173       }
174     }
175     return getCancelPatchJobMethod;
176   }
177 
178   private static volatile io.grpc.MethodDescriptor<
179           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest,
180           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
181       getListPatchJobsMethod;
182 
183   @io.grpc.stub.annotations.RpcMethod(
184       fullMethodName = SERVICE_NAME + '/' + "ListPatchJobs",
185       requestType = com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest.class,
186       responseType = com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse.class,
187       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
188   public static io.grpc.MethodDescriptor<
189           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest,
190           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
getListPatchJobsMethod()191       getListPatchJobsMethod() {
192     io.grpc.MethodDescriptor<
193             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest,
194             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
195         getListPatchJobsMethod;
196     if ((getListPatchJobsMethod = OsConfigServiceGrpc.getListPatchJobsMethod) == null) {
197       synchronized (OsConfigServiceGrpc.class) {
198         if ((getListPatchJobsMethod = OsConfigServiceGrpc.getListPatchJobsMethod) == null) {
199           OsConfigServiceGrpc.getListPatchJobsMethod =
200               getListPatchJobsMethod =
201                   io.grpc.MethodDescriptor
202                       .<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest,
203                           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
204                           newBuilder()
205                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
206                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPatchJobs"))
207                       .setSampledToLocalTracing(true)
208                       .setRequestMarshaller(
209                           io.grpc.protobuf.ProtoUtils.marshaller(
210                               com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest
211                                   .getDefaultInstance()))
212                       .setResponseMarshaller(
213                           io.grpc.protobuf.ProtoUtils.marshaller(
214                               com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse
215                                   .getDefaultInstance()))
216                       .setSchemaDescriptor(
217                           new OsConfigServiceMethodDescriptorSupplier("ListPatchJobs"))
218                       .build();
219         }
220       }
221     }
222     return getListPatchJobsMethod;
223   }
224 
225   private static volatile io.grpc.MethodDescriptor<
226           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest,
227           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
228       getListPatchJobInstanceDetailsMethod;
229 
230   @io.grpc.stub.annotations.RpcMethod(
231       fullMethodName = SERVICE_NAME + '/' + "ListPatchJobInstanceDetails",
232       requestType = com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest.class,
233       responseType =
234           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse.class,
235       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
236   public static io.grpc.MethodDescriptor<
237           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest,
238           com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
getListPatchJobInstanceDetailsMethod()239       getListPatchJobInstanceDetailsMethod() {
240     io.grpc.MethodDescriptor<
241             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest,
242             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
243         getListPatchJobInstanceDetailsMethod;
244     if ((getListPatchJobInstanceDetailsMethod =
245             OsConfigServiceGrpc.getListPatchJobInstanceDetailsMethod)
246         == null) {
247       synchronized (OsConfigServiceGrpc.class) {
248         if ((getListPatchJobInstanceDetailsMethod =
249                 OsConfigServiceGrpc.getListPatchJobInstanceDetailsMethod)
250             == null) {
251           OsConfigServiceGrpc.getListPatchJobInstanceDetailsMethod =
252               getListPatchJobInstanceDetailsMethod =
253                   io.grpc.MethodDescriptor
254                       .<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest,
255                           com.google.cloud.osconfig.v1.PatchJobs
256                               .ListPatchJobInstanceDetailsResponse>
257                           newBuilder()
258                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
259                       .setFullMethodName(
260                           generateFullMethodName(SERVICE_NAME, "ListPatchJobInstanceDetails"))
261                       .setSampledToLocalTracing(true)
262                       .setRequestMarshaller(
263                           io.grpc.protobuf.ProtoUtils.marshaller(
264                               com.google.cloud.osconfig.v1.PatchJobs
265                                   .ListPatchJobInstanceDetailsRequest.getDefaultInstance()))
266                       .setResponseMarshaller(
267                           io.grpc.protobuf.ProtoUtils.marshaller(
268                               com.google.cloud.osconfig.v1.PatchJobs
269                                   .ListPatchJobInstanceDetailsResponse.getDefaultInstance()))
270                       .setSchemaDescriptor(
271                           new OsConfigServiceMethodDescriptorSupplier(
272                               "ListPatchJobInstanceDetails"))
273                       .build();
274         }
275       }
276     }
277     return getListPatchJobInstanceDetailsMethod;
278   }
279 
280   private static volatile io.grpc.MethodDescriptor<
281           com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest,
282           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
283       getCreatePatchDeploymentMethod;
284 
285   @io.grpc.stub.annotations.RpcMethod(
286       fullMethodName = SERVICE_NAME + '/' + "CreatePatchDeployment",
287       requestType =
288           com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest.class,
289       responseType = com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.class,
290       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
291   public static io.grpc.MethodDescriptor<
292           com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest,
293           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getCreatePatchDeploymentMethod()294       getCreatePatchDeploymentMethod() {
295     io.grpc.MethodDescriptor<
296             com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest,
297             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
298         getCreatePatchDeploymentMethod;
299     if ((getCreatePatchDeploymentMethod = OsConfigServiceGrpc.getCreatePatchDeploymentMethod)
300         == null) {
301       synchronized (OsConfigServiceGrpc.class) {
302         if ((getCreatePatchDeploymentMethod = OsConfigServiceGrpc.getCreatePatchDeploymentMethod)
303             == null) {
304           OsConfigServiceGrpc.getCreatePatchDeploymentMethod =
305               getCreatePatchDeploymentMethod =
306                   io.grpc.MethodDescriptor
307                       .<com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest,
308                           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
309                           newBuilder()
310                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
311                       .setFullMethodName(
312                           generateFullMethodName(SERVICE_NAME, "CreatePatchDeployment"))
313                       .setSampledToLocalTracing(true)
314                       .setRequestMarshaller(
315                           io.grpc.protobuf.ProtoUtils.marshaller(
316                               com.google.cloud.osconfig.v1.PatchDeployments
317                                   .CreatePatchDeploymentRequest.getDefaultInstance()))
318                       .setResponseMarshaller(
319                           io.grpc.protobuf.ProtoUtils.marshaller(
320                               com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment
321                                   .getDefaultInstance()))
322                       .setSchemaDescriptor(
323                           new OsConfigServiceMethodDescriptorSupplier("CreatePatchDeployment"))
324                       .build();
325         }
326       }
327     }
328     return getCreatePatchDeploymentMethod;
329   }
330 
331   private static volatile io.grpc.MethodDescriptor<
332           com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest,
333           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
334       getGetPatchDeploymentMethod;
335 
336   @io.grpc.stub.annotations.RpcMethod(
337       fullMethodName = SERVICE_NAME + '/' + "GetPatchDeployment",
338       requestType = com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest.class,
339       responseType = com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.class,
340       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
341   public static io.grpc.MethodDescriptor<
342           com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest,
343           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getGetPatchDeploymentMethod()344       getGetPatchDeploymentMethod() {
345     io.grpc.MethodDescriptor<
346             com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest,
347             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
348         getGetPatchDeploymentMethod;
349     if ((getGetPatchDeploymentMethod = OsConfigServiceGrpc.getGetPatchDeploymentMethod) == null) {
350       synchronized (OsConfigServiceGrpc.class) {
351         if ((getGetPatchDeploymentMethod = OsConfigServiceGrpc.getGetPatchDeploymentMethod)
352             == null) {
353           OsConfigServiceGrpc.getGetPatchDeploymentMethod =
354               getGetPatchDeploymentMethod =
355                   io.grpc.MethodDescriptor
356                       .<com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest,
357                           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
358                           newBuilder()
359                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
360                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPatchDeployment"))
361                       .setSampledToLocalTracing(true)
362                       .setRequestMarshaller(
363                           io.grpc.protobuf.ProtoUtils.marshaller(
364                               com.google.cloud.osconfig.v1.PatchDeployments
365                                   .GetPatchDeploymentRequest.getDefaultInstance()))
366                       .setResponseMarshaller(
367                           io.grpc.protobuf.ProtoUtils.marshaller(
368                               com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment
369                                   .getDefaultInstance()))
370                       .setSchemaDescriptor(
371                           new OsConfigServiceMethodDescriptorSupplier("GetPatchDeployment"))
372                       .build();
373         }
374       }
375     }
376     return getGetPatchDeploymentMethod;
377   }
378 
379   private static volatile io.grpc.MethodDescriptor<
380           com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest,
381           com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
382       getListPatchDeploymentsMethod;
383 
384   @io.grpc.stub.annotations.RpcMethod(
385       fullMethodName = SERVICE_NAME + '/' + "ListPatchDeployments",
386       requestType = com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest.class,
387       responseType =
388           com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse.class,
389       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
390   public static io.grpc.MethodDescriptor<
391           com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest,
392           com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
getListPatchDeploymentsMethod()393       getListPatchDeploymentsMethod() {
394     io.grpc.MethodDescriptor<
395             com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest,
396             com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
397         getListPatchDeploymentsMethod;
398     if ((getListPatchDeploymentsMethod = OsConfigServiceGrpc.getListPatchDeploymentsMethod)
399         == null) {
400       synchronized (OsConfigServiceGrpc.class) {
401         if ((getListPatchDeploymentsMethod = OsConfigServiceGrpc.getListPatchDeploymentsMethod)
402             == null) {
403           OsConfigServiceGrpc.getListPatchDeploymentsMethod =
404               getListPatchDeploymentsMethod =
405                   io.grpc.MethodDescriptor
406                       .<com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest,
407                           com.google.cloud.osconfig.v1.PatchDeployments
408                               .ListPatchDeploymentsResponse>
409                           newBuilder()
410                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
411                       .setFullMethodName(
412                           generateFullMethodName(SERVICE_NAME, "ListPatchDeployments"))
413                       .setSampledToLocalTracing(true)
414                       .setRequestMarshaller(
415                           io.grpc.protobuf.ProtoUtils.marshaller(
416                               com.google.cloud.osconfig.v1.PatchDeployments
417                                   .ListPatchDeploymentsRequest.getDefaultInstance()))
418                       .setResponseMarshaller(
419                           io.grpc.protobuf.ProtoUtils.marshaller(
420                               com.google.cloud.osconfig.v1.PatchDeployments
421                                   .ListPatchDeploymentsResponse.getDefaultInstance()))
422                       .setSchemaDescriptor(
423                           new OsConfigServiceMethodDescriptorSupplier("ListPatchDeployments"))
424                       .build();
425         }
426       }
427     }
428     return getListPatchDeploymentsMethod;
429   }
430 
431   private static volatile io.grpc.MethodDescriptor<
432           com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest,
433           com.google.protobuf.Empty>
434       getDeletePatchDeploymentMethod;
435 
436   @io.grpc.stub.annotations.RpcMethod(
437       fullMethodName = SERVICE_NAME + '/' + "DeletePatchDeployment",
438       requestType =
439           com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest.class,
440       responseType = com.google.protobuf.Empty.class,
441       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
442   public static io.grpc.MethodDescriptor<
443           com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest,
444           com.google.protobuf.Empty>
getDeletePatchDeploymentMethod()445       getDeletePatchDeploymentMethod() {
446     io.grpc.MethodDescriptor<
447             com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest,
448             com.google.protobuf.Empty>
449         getDeletePatchDeploymentMethod;
450     if ((getDeletePatchDeploymentMethod = OsConfigServiceGrpc.getDeletePatchDeploymentMethod)
451         == null) {
452       synchronized (OsConfigServiceGrpc.class) {
453         if ((getDeletePatchDeploymentMethod = OsConfigServiceGrpc.getDeletePatchDeploymentMethod)
454             == null) {
455           OsConfigServiceGrpc.getDeletePatchDeploymentMethod =
456               getDeletePatchDeploymentMethod =
457                   io.grpc.MethodDescriptor
458                       .<com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest,
459                           com.google.protobuf.Empty>
460                           newBuilder()
461                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
462                       .setFullMethodName(
463                           generateFullMethodName(SERVICE_NAME, "DeletePatchDeployment"))
464                       .setSampledToLocalTracing(true)
465                       .setRequestMarshaller(
466                           io.grpc.protobuf.ProtoUtils.marshaller(
467                               com.google.cloud.osconfig.v1.PatchDeployments
468                                   .DeletePatchDeploymentRequest.getDefaultInstance()))
469                       .setResponseMarshaller(
470                           io.grpc.protobuf.ProtoUtils.marshaller(
471                               com.google.protobuf.Empty.getDefaultInstance()))
472                       .setSchemaDescriptor(
473                           new OsConfigServiceMethodDescriptorSupplier("DeletePatchDeployment"))
474                       .build();
475         }
476       }
477     }
478     return getDeletePatchDeploymentMethod;
479   }
480 
481   private static volatile io.grpc.MethodDescriptor<
482           com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest,
483           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
484       getUpdatePatchDeploymentMethod;
485 
486   @io.grpc.stub.annotations.RpcMethod(
487       fullMethodName = SERVICE_NAME + '/' + "UpdatePatchDeployment",
488       requestType =
489           com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest.class,
490       responseType = com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.class,
491       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
492   public static io.grpc.MethodDescriptor<
493           com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest,
494           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getUpdatePatchDeploymentMethod()495       getUpdatePatchDeploymentMethod() {
496     io.grpc.MethodDescriptor<
497             com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest,
498             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
499         getUpdatePatchDeploymentMethod;
500     if ((getUpdatePatchDeploymentMethod = OsConfigServiceGrpc.getUpdatePatchDeploymentMethod)
501         == null) {
502       synchronized (OsConfigServiceGrpc.class) {
503         if ((getUpdatePatchDeploymentMethod = OsConfigServiceGrpc.getUpdatePatchDeploymentMethod)
504             == null) {
505           OsConfigServiceGrpc.getUpdatePatchDeploymentMethod =
506               getUpdatePatchDeploymentMethod =
507                   io.grpc.MethodDescriptor
508                       .<com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest,
509                           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
510                           newBuilder()
511                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
512                       .setFullMethodName(
513                           generateFullMethodName(SERVICE_NAME, "UpdatePatchDeployment"))
514                       .setSampledToLocalTracing(true)
515                       .setRequestMarshaller(
516                           io.grpc.protobuf.ProtoUtils.marshaller(
517                               com.google.cloud.osconfig.v1.PatchDeployments
518                                   .UpdatePatchDeploymentRequest.getDefaultInstance()))
519                       .setResponseMarshaller(
520                           io.grpc.protobuf.ProtoUtils.marshaller(
521                               com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment
522                                   .getDefaultInstance()))
523                       .setSchemaDescriptor(
524                           new OsConfigServiceMethodDescriptorSupplier("UpdatePatchDeployment"))
525                       .build();
526         }
527       }
528     }
529     return getUpdatePatchDeploymentMethod;
530   }
531 
532   private static volatile io.grpc.MethodDescriptor<
533           com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest,
534           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
535       getPausePatchDeploymentMethod;
536 
537   @io.grpc.stub.annotations.RpcMethod(
538       fullMethodName = SERVICE_NAME + '/' + "PausePatchDeployment",
539       requestType = com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest.class,
540       responseType = com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.class,
541       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
542   public static io.grpc.MethodDescriptor<
543           com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest,
544           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getPausePatchDeploymentMethod()545       getPausePatchDeploymentMethod() {
546     io.grpc.MethodDescriptor<
547             com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest,
548             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
549         getPausePatchDeploymentMethod;
550     if ((getPausePatchDeploymentMethod = OsConfigServiceGrpc.getPausePatchDeploymentMethod)
551         == null) {
552       synchronized (OsConfigServiceGrpc.class) {
553         if ((getPausePatchDeploymentMethod = OsConfigServiceGrpc.getPausePatchDeploymentMethod)
554             == null) {
555           OsConfigServiceGrpc.getPausePatchDeploymentMethod =
556               getPausePatchDeploymentMethod =
557                   io.grpc.MethodDescriptor
558                       .<com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest,
559                           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
560                           newBuilder()
561                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
562                       .setFullMethodName(
563                           generateFullMethodName(SERVICE_NAME, "PausePatchDeployment"))
564                       .setSampledToLocalTracing(true)
565                       .setRequestMarshaller(
566                           io.grpc.protobuf.ProtoUtils.marshaller(
567                               com.google.cloud.osconfig.v1.PatchDeployments
568                                   .PausePatchDeploymentRequest.getDefaultInstance()))
569                       .setResponseMarshaller(
570                           io.grpc.protobuf.ProtoUtils.marshaller(
571                               com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment
572                                   .getDefaultInstance()))
573                       .setSchemaDescriptor(
574                           new OsConfigServiceMethodDescriptorSupplier("PausePatchDeployment"))
575                       .build();
576         }
577       }
578     }
579     return getPausePatchDeploymentMethod;
580   }
581 
582   private static volatile io.grpc.MethodDescriptor<
583           com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest,
584           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
585       getResumePatchDeploymentMethod;
586 
587   @io.grpc.stub.annotations.RpcMethod(
588       fullMethodName = SERVICE_NAME + '/' + "ResumePatchDeployment",
589       requestType =
590           com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest.class,
591       responseType = com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.class,
592       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
593   public static io.grpc.MethodDescriptor<
594           com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest,
595           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getResumePatchDeploymentMethod()596       getResumePatchDeploymentMethod() {
597     io.grpc.MethodDescriptor<
598             com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest,
599             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
600         getResumePatchDeploymentMethod;
601     if ((getResumePatchDeploymentMethod = OsConfigServiceGrpc.getResumePatchDeploymentMethod)
602         == null) {
603       synchronized (OsConfigServiceGrpc.class) {
604         if ((getResumePatchDeploymentMethod = OsConfigServiceGrpc.getResumePatchDeploymentMethod)
605             == null) {
606           OsConfigServiceGrpc.getResumePatchDeploymentMethod =
607               getResumePatchDeploymentMethod =
608                   io.grpc.MethodDescriptor
609                       .<com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest,
610                           com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
611                           newBuilder()
612                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
613                       .setFullMethodName(
614                           generateFullMethodName(SERVICE_NAME, "ResumePatchDeployment"))
615                       .setSampledToLocalTracing(true)
616                       .setRequestMarshaller(
617                           io.grpc.protobuf.ProtoUtils.marshaller(
618                               com.google.cloud.osconfig.v1.PatchDeployments
619                                   .ResumePatchDeploymentRequest.getDefaultInstance()))
620                       .setResponseMarshaller(
621                           io.grpc.protobuf.ProtoUtils.marshaller(
622                               com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment
623                                   .getDefaultInstance()))
624                       .setSchemaDescriptor(
625                           new OsConfigServiceMethodDescriptorSupplier("ResumePatchDeployment"))
626                       .build();
627         }
628       }
629     }
630     return getResumePatchDeploymentMethod;
631   }
632 
633   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)634   public static OsConfigServiceStub newStub(io.grpc.Channel channel) {
635     io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceStub> factory =
636         new io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceStub>() {
637           @java.lang.Override
638           public OsConfigServiceStub newStub(
639               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
640             return new OsConfigServiceStub(channel, callOptions);
641           }
642         };
643     return OsConfigServiceStub.newStub(factory, channel);
644   }
645 
646   /**
647    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
648    */
newBlockingStub(io.grpc.Channel channel)649   public static OsConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
650     io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceBlockingStub> factory =
651         new io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceBlockingStub>() {
652           @java.lang.Override
653           public OsConfigServiceBlockingStub newStub(
654               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
655             return new OsConfigServiceBlockingStub(channel, callOptions);
656           }
657         };
658     return OsConfigServiceBlockingStub.newStub(factory, channel);
659   }
660 
661   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)662   public static OsConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) {
663     io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceFutureStub> factory =
664         new io.grpc.stub.AbstractStub.StubFactory<OsConfigServiceFutureStub>() {
665           @java.lang.Override
666           public OsConfigServiceFutureStub newStub(
667               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
668             return new OsConfigServiceFutureStub(channel, callOptions);
669           }
670         };
671     return OsConfigServiceFutureStub.newStub(factory, channel);
672   }
673 
674   /**
675    *
676    *
677    * <pre>
678    * OS Config API
679    * The OS Config service is a server-side component that you can use to
680    * manage package installations and patch jobs for virtual machine instances.
681    * </pre>
682    */
683   public interface AsyncService {
684 
685     /**
686      *
687      *
688      * <pre>
689      * Patch VM instances by creating and running a patch job.
690      * </pre>
691      */
executePatchJob( com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)692     default void executePatchJob(
693         com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request,
694         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
695             responseObserver) {
696       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
697           getExecutePatchJobMethod(), responseObserver);
698     }
699 
700     /**
701      *
702      *
703      * <pre>
704      * Get the patch job. This can be used to track the progress of an
705      * ongoing patch job or review the details of completed jobs.
706      * </pre>
707      */
getPatchJob( com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)708     default void getPatchJob(
709         com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request,
710         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
711             responseObserver) {
712       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
713           getGetPatchJobMethod(), responseObserver);
714     }
715 
716     /**
717      *
718      *
719      * <pre>
720      * Cancel a patch job. The patch job must be active. Canceled patch jobs
721      * cannot be restarted.
722      * </pre>
723      */
cancelPatchJob( com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)724     default void cancelPatchJob(
725         com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request,
726         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
727             responseObserver) {
728       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
729           getCancelPatchJobMethod(), responseObserver);
730     }
731 
732     /**
733      *
734      *
735      * <pre>
736      * Get a list of patch jobs.
737      * </pre>
738      */
listPatchJobs( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse> responseObserver)739     default void listPatchJobs(
740         com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request,
741         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
742             responseObserver) {
743       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
744           getListPatchJobsMethod(), responseObserver);
745     }
746 
747     /**
748      *
749      *
750      * <pre>
751      * Get a list of instance details for a given patch job.
752      * </pre>
753      */
listPatchJobInstanceDetails( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse> responseObserver)754     default void listPatchJobInstanceDetails(
755         com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request,
756         io.grpc.stub.StreamObserver<
757                 com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
758             responseObserver) {
759       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
760           getListPatchJobInstanceDetailsMethod(), responseObserver);
761     }
762 
763     /**
764      *
765      *
766      * <pre>
767      * Create an OS Config patch deployment.
768      * </pre>
769      */
createPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)770     default void createPatchDeployment(
771         com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request,
772         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
773             responseObserver) {
774       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
775           getCreatePatchDeploymentMethod(), responseObserver);
776     }
777 
778     /**
779      *
780      *
781      * <pre>
782      * Get an OS Config patch deployment.
783      * </pre>
784      */
getPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)785     default void getPatchDeployment(
786         com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request,
787         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
788             responseObserver) {
789       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
790           getGetPatchDeploymentMethod(), responseObserver);
791     }
792 
793     /**
794      *
795      *
796      * <pre>
797      * Get a page of OS Config patch deployments.
798      * </pre>
799      */
listPatchDeployments( com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse> responseObserver)800     default void listPatchDeployments(
801         com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request,
802         io.grpc.stub.StreamObserver<
803                 com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
804             responseObserver) {
805       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
806           getListPatchDeploymentsMethod(), responseObserver);
807     }
808 
809     /**
810      *
811      *
812      * <pre>
813      * Delete an OS Config patch deployment.
814      * </pre>
815      */
deletePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)816     default void deletePatchDeployment(
817         com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request,
818         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
819       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
820           getDeletePatchDeploymentMethod(), responseObserver);
821     }
822 
823     /**
824      *
825      *
826      * <pre>
827      * Update an OS Config patch deployment.
828      * </pre>
829      */
updatePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)830     default void updatePatchDeployment(
831         com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request,
832         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
833             responseObserver) {
834       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
835           getUpdatePatchDeploymentMethod(), responseObserver);
836     }
837 
838     /**
839      *
840      *
841      * <pre>
842      * Change state of patch deployment to "PAUSED".
843      * Patch deployment in paused state doesn't generate patch jobs.
844      * </pre>
845      */
pausePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)846     default void pausePatchDeployment(
847         com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request,
848         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
849             responseObserver) {
850       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
851           getPausePatchDeploymentMethod(), responseObserver);
852     }
853 
854     /**
855      *
856      *
857      * <pre>
858      * Change state of patch deployment back to "ACTIVE".
859      * Patch deployment in active state continues to generate patch jobs.
860      * </pre>
861      */
resumePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)862     default void resumePatchDeployment(
863         com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request,
864         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
865             responseObserver) {
866       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
867           getResumePatchDeploymentMethod(), responseObserver);
868     }
869   }
870 
871   /**
872    * Base class for the server implementation of the service OsConfigService.
873    *
874    * <pre>
875    * OS Config API
876    * The OS Config service is a server-side component that you can use to
877    * manage package installations and patch jobs for virtual machine instances.
878    * </pre>
879    */
880   public abstract static class OsConfigServiceImplBase
881       implements io.grpc.BindableService, AsyncService {
882 
883     @java.lang.Override
bindService()884     public final io.grpc.ServerServiceDefinition bindService() {
885       return OsConfigServiceGrpc.bindService(this);
886     }
887   }
888 
889   /**
890    * A stub to allow clients to do asynchronous rpc calls to service OsConfigService.
891    *
892    * <pre>
893    * OS Config API
894    * The OS Config service is a server-side component that you can use to
895    * manage package installations and patch jobs for virtual machine instances.
896    * </pre>
897    */
898   public static final class OsConfigServiceStub
899       extends io.grpc.stub.AbstractAsyncStub<OsConfigServiceStub> {
OsConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)900     private OsConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
901       super(channel, callOptions);
902     }
903 
904     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)905     protected OsConfigServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
906       return new OsConfigServiceStub(channel, callOptions);
907     }
908 
909     /**
910      *
911      *
912      * <pre>
913      * Patch VM instances by creating and running a patch job.
914      * </pre>
915      */
executePatchJob( com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)916     public void executePatchJob(
917         com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request,
918         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
919             responseObserver) {
920       io.grpc.stub.ClientCalls.asyncUnaryCall(
921           getChannel().newCall(getExecutePatchJobMethod(), getCallOptions()),
922           request,
923           responseObserver);
924     }
925 
926     /**
927      *
928      *
929      * <pre>
930      * Get the patch job. This can be used to track the progress of an
931      * ongoing patch job or review the details of completed jobs.
932      * </pre>
933      */
getPatchJob( com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)934     public void getPatchJob(
935         com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request,
936         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
937             responseObserver) {
938       io.grpc.stub.ClientCalls.asyncUnaryCall(
939           getChannel().newCall(getGetPatchJobMethod(), getCallOptions()),
940           request,
941           responseObserver);
942     }
943 
944     /**
945      *
946      *
947      * <pre>
948      * Cancel a patch job. The patch job must be active. Canceled patch jobs
949      * cannot be restarted.
950      * </pre>
951      */
cancelPatchJob( com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob> responseObserver)952     public void cancelPatchJob(
953         com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request,
954         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
955             responseObserver) {
956       io.grpc.stub.ClientCalls.asyncUnaryCall(
957           getChannel().newCall(getCancelPatchJobMethod(), getCallOptions()),
958           request,
959           responseObserver);
960     }
961 
962     /**
963      *
964      *
965      * <pre>
966      * Get a list of patch jobs.
967      * </pre>
968      */
listPatchJobs( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse> responseObserver)969     public void listPatchJobs(
970         com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request,
971         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
972             responseObserver) {
973       io.grpc.stub.ClientCalls.asyncUnaryCall(
974           getChannel().newCall(getListPatchJobsMethod(), getCallOptions()),
975           request,
976           responseObserver);
977     }
978 
979     /**
980      *
981      *
982      * <pre>
983      * Get a list of instance details for a given patch job.
984      * </pre>
985      */
listPatchJobInstanceDetails( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse> responseObserver)986     public void listPatchJobInstanceDetails(
987         com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request,
988         io.grpc.stub.StreamObserver<
989                 com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
990             responseObserver) {
991       io.grpc.stub.ClientCalls.asyncUnaryCall(
992           getChannel().newCall(getListPatchJobInstanceDetailsMethod(), getCallOptions()),
993           request,
994           responseObserver);
995     }
996 
997     /**
998      *
999      *
1000      * <pre>
1001      * Create an OS Config patch deployment.
1002      * </pre>
1003      */
createPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)1004     public void createPatchDeployment(
1005         com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request,
1006         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
1007             responseObserver) {
1008       io.grpc.stub.ClientCalls.asyncUnaryCall(
1009           getChannel().newCall(getCreatePatchDeploymentMethod(), getCallOptions()),
1010           request,
1011           responseObserver);
1012     }
1013 
1014     /**
1015      *
1016      *
1017      * <pre>
1018      * Get an OS Config patch deployment.
1019      * </pre>
1020      */
getPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)1021     public void getPatchDeployment(
1022         com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request,
1023         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
1024             responseObserver) {
1025       io.grpc.stub.ClientCalls.asyncUnaryCall(
1026           getChannel().newCall(getGetPatchDeploymentMethod(), getCallOptions()),
1027           request,
1028           responseObserver);
1029     }
1030 
1031     /**
1032      *
1033      *
1034      * <pre>
1035      * Get a page of OS Config patch deployments.
1036      * </pre>
1037      */
listPatchDeployments( com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse> responseObserver)1038     public void listPatchDeployments(
1039         com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request,
1040         io.grpc.stub.StreamObserver<
1041                 com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
1042             responseObserver) {
1043       io.grpc.stub.ClientCalls.asyncUnaryCall(
1044           getChannel().newCall(getListPatchDeploymentsMethod(), getCallOptions()),
1045           request,
1046           responseObserver);
1047     }
1048 
1049     /**
1050      *
1051      *
1052      * <pre>
1053      * Delete an OS Config patch deployment.
1054      * </pre>
1055      */
deletePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1056     public void deletePatchDeployment(
1057         com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request,
1058         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1059       io.grpc.stub.ClientCalls.asyncUnaryCall(
1060           getChannel().newCall(getDeletePatchDeploymentMethod(), getCallOptions()),
1061           request,
1062           responseObserver);
1063     }
1064 
1065     /**
1066      *
1067      *
1068      * <pre>
1069      * Update an OS Config patch deployment.
1070      * </pre>
1071      */
updatePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)1072     public void updatePatchDeployment(
1073         com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request,
1074         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
1075             responseObserver) {
1076       io.grpc.stub.ClientCalls.asyncUnaryCall(
1077           getChannel().newCall(getUpdatePatchDeploymentMethod(), getCallOptions()),
1078           request,
1079           responseObserver);
1080     }
1081 
1082     /**
1083      *
1084      *
1085      * <pre>
1086      * Change state of patch deployment to "PAUSED".
1087      * Patch deployment in paused state doesn't generate patch jobs.
1088      * </pre>
1089      */
pausePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)1090     public void pausePatchDeployment(
1091         com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request,
1092         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
1093             responseObserver) {
1094       io.grpc.stub.ClientCalls.asyncUnaryCall(
1095           getChannel().newCall(getPausePatchDeploymentMethod(), getCallOptions()),
1096           request,
1097           responseObserver);
1098     }
1099 
1100     /**
1101      *
1102      *
1103      * <pre>
1104      * Change state of patch deployment back to "ACTIVE".
1105      * Patch deployment in active state continues to generate patch jobs.
1106      * </pre>
1107      */
resumePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment> responseObserver)1108     public void resumePatchDeployment(
1109         com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request,
1110         io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
1111             responseObserver) {
1112       io.grpc.stub.ClientCalls.asyncUnaryCall(
1113           getChannel().newCall(getResumePatchDeploymentMethod(), getCallOptions()),
1114           request,
1115           responseObserver);
1116     }
1117   }
1118 
1119   /**
1120    * A stub to allow clients to do synchronous rpc calls to service OsConfigService.
1121    *
1122    * <pre>
1123    * OS Config API
1124    * The OS Config service is a server-side component that you can use to
1125    * manage package installations and patch jobs for virtual machine instances.
1126    * </pre>
1127    */
1128   public static final class OsConfigServiceBlockingStub
1129       extends io.grpc.stub.AbstractBlockingStub<OsConfigServiceBlockingStub> {
OsConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1130     private OsConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1131       super(channel, callOptions);
1132     }
1133 
1134     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1135     protected OsConfigServiceBlockingStub build(
1136         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1137       return new OsConfigServiceBlockingStub(channel, callOptions);
1138     }
1139 
1140     /**
1141      *
1142      *
1143      * <pre>
1144      * Patch VM instances by creating and running a patch job.
1145      * </pre>
1146      */
executePatchJob( com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request)1147     public com.google.cloud.osconfig.v1.PatchJobs.PatchJob executePatchJob(
1148         com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request) {
1149       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1150           getChannel(), getExecutePatchJobMethod(), getCallOptions(), request);
1151     }
1152 
1153     /**
1154      *
1155      *
1156      * <pre>
1157      * Get the patch job. This can be used to track the progress of an
1158      * ongoing patch job or review the details of completed jobs.
1159      * </pre>
1160      */
getPatchJob( com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request)1161     public com.google.cloud.osconfig.v1.PatchJobs.PatchJob getPatchJob(
1162         com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request) {
1163       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1164           getChannel(), getGetPatchJobMethod(), getCallOptions(), request);
1165     }
1166 
1167     /**
1168      *
1169      *
1170      * <pre>
1171      * Cancel a patch job. The patch job must be active. Canceled patch jobs
1172      * cannot be restarted.
1173      * </pre>
1174      */
cancelPatchJob( com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request)1175     public com.google.cloud.osconfig.v1.PatchJobs.PatchJob cancelPatchJob(
1176         com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request) {
1177       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1178           getChannel(), getCancelPatchJobMethod(), getCallOptions(), request);
1179     }
1180 
1181     /**
1182      *
1183      *
1184      * <pre>
1185      * Get a list of patch jobs.
1186      * </pre>
1187      */
listPatchJobs( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request)1188     public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse listPatchJobs(
1189         com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request) {
1190       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1191           getChannel(), getListPatchJobsMethod(), getCallOptions(), request);
1192     }
1193 
1194     /**
1195      *
1196      *
1197      * <pre>
1198      * Get a list of instance details for a given patch job.
1199      * </pre>
1200      */
1201     public com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse
listPatchJobInstanceDetails( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request)1202         listPatchJobInstanceDetails(
1203             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request) {
1204       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1205           getChannel(), getListPatchJobInstanceDetailsMethod(), getCallOptions(), request);
1206     }
1207 
1208     /**
1209      *
1210      *
1211      * <pre>
1212      * Create an OS Config patch deployment.
1213      * </pre>
1214      */
createPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request)1215     public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment createPatchDeployment(
1216         com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request) {
1217       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1218           getChannel(), getCreatePatchDeploymentMethod(), getCallOptions(), request);
1219     }
1220 
1221     /**
1222      *
1223      *
1224      * <pre>
1225      * Get an OS Config patch deployment.
1226      * </pre>
1227      */
getPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request)1228     public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment getPatchDeployment(
1229         com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request) {
1230       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1231           getChannel(), getGetPatchDeploymentMethod(), getCallOptions(), request);
1232     }
1233 
1234     /**
1235      *
1236      *
1237      * <pre>
1238      * Get a page of OS Config patch deployments.
1239      * </pre>
1240      */
1241     public com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse
listPatchDeployments( com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request)1242         listPatchDeployments(
1243             com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request) {
1244       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1245           getChannel(), getListPatchDeploymentsMethod(), getCallOptions(), request);
1246     }
1247 
1248     /**
1249      *
1250      *
1251      * <pre>
1252      * Delete an OS Config patch deployment.
1253      * </pre>
1254      */
deletePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request)1255     public com.google.protobuf.Empty deletePatchDeployment(
1256         com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request) {
1257       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1258           getChannel(), getDeletePatchDeploymentMethod(), getCallOptions(), request);
1259     }
1260 
1261     /**
1262      *
1263      *
1264      * <pre>
1265      * Update an OS Config patch deployment.
1266      * </pre>
1267      */
updatePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request)1268     public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment updatePatchDeployment(
1269         com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request) {
1270       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1271           getChannel(), getUpdatePatchDeploymentMethod(), getCallOptions(), request);
1272     }
1273 
1274     /**
1275      *
1276      *
1277      * <pre>
1278      * Change state of patch deployment to "PAUSED".
1279      * Patch deployment in paused state doesn't generate patch jobs.
1280      * </pre>
1281      */
pausePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request)1282     public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment pausePatchDeployment(
1283         com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request) {
1284       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1285           getChannel(), getPausePatchDeploymentMethod(), getCallOptions(), request);
1286     }
1287 
1288     /**
1289      *
1290      *
1291      * <pre>
1292      * Change state of patch deployment back to "ACTIVE".
1293      * Patch deployment in active state continues to generate patch jobs.
1294      * </pre>
1295      */
resumePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request)1296     public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment resumePatchDeployment(
1297         com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request) {
1298       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1299           getChannel(), getResumePatchDeploymentMethod(), getCallOptions(), request);
1300     }
1301   }
1302 
1303   /**
1304    * A stub to allow clients to do ListenableFuture-style rpc calls to service OsConfigService.
1305    *
1306    * <pre>
1307    * OS Config API
1308    * The OS Config service is a server-side component that you can use to
1309    * manage package installations and patch jobs for virtual machine instances.
1310    * </pre>
1311    */
1312   public static final class OsConfigServiceFutureStub
1313       extends io.grpc.stub.AbstractFutureStub<OsConfigServiceFutureStub> {
OsConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1314     private OsConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1315       super(channel, callOptions);
1316     }
1317 
1318     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1319     protected OsConfigServiceFutureStub build(
1320         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1321       return new OsConfigServiceFutureStub(channel, callOptions);
1322     }
1323 
1324     /**
1325      *
1326      *
1327      * <pre>
1328      * Patch VM instances by creating and running a patch job.
1329      * </pre>
1330      */
1331     public com.google.common.util.concurrent.ListenableFuture<
1332             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
executePatchJob(com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request)1333         executePatchJob(com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest request) {
1334       return io.grpc.stub.ClientCalls.futureUnaryCall(
1335           getChannel().newCall(getExecutePatchJobMethod(), getCallOptions()), request);
1336     }
1337 
1338     /**
1339      *
1340      *
1341      * <pre>
1342      * Get the patch job. This can be used to track the progress of an
1343      * ongoing patch job or review the details of completed jobs.
1344      * </pre>
1345      */
1346     public com.google.common.util.concurrent.ListenableFuture<
1347             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
getPatchJob(com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request)1348         getPatchJob(com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest request) {
1349       return io.grpc.stub.ClientCalls.futureUnaryCall(
1350           getChannel().newCall(getGetPatchJobMethod(), getCallOptions()), request);
1351     }
1352 
1353     /**
1354      *
1355      *
1356      * <pre>
1357      * Cancel a patch job. The patch job must be active. Canceled patch jobs
1358      * cannot be restarted.
1359      * </pre>
1360      */
1361     public com.google.common.util.concurrent.ListenableFuture<
1362             com.google.cloud.osconfig.v1.PatchJobs.PatchJob>
cancelPatchJob(com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request)1363         cancelPatchJob(com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest request) {
1364       return io.grpc.stub.ClientCalls.futureUnaryCall(
1365           getChannel().newCall(getCancelPatchJobMethod(), getCallOptions()), request);
1366     }
1367 
1368     /**
1369      *
1370      *
1371      * <pre>
1372      * Get a list of patch jobs.
1373      * </pre>
1374      */
1375     public com.google.common.util.concurrent.ListenableFuture<
1376             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>
listPatchJobs(com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request)1377         listPatchJobs(com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest request) {
1378       return io.grpc.stub.ClientCalls.futureUnaryCall(
1379           getChannel().newCall(getListPatchJobsMethod(), getCallOptions()), request);
1380     }
1381 
1382     /**
1383      *
1384      *
1385      * <pre>
1386      * Get a list of instance details for a given patch job.
1387      * </pre>
1388      */
1389     public com.google.common.util.concurrent.ListenableFuture<
1390             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>
listPatchJobInstanceDetails( com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request)1391         listPatchJobInstanceDetails(
1392             com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest request) {
1393       return io.grpc.stub.ClientCalls.futureUnaryCall(
1394           getChannel().newCall(getListPatchJobInstanceDetailsMethod(), getCallOptions()), request);
1395     }
1396 
1397     /**
1398      *
1399      *
1400      * <pre>
1401      * Create an OS Config patch deployment.
1402      * </pre>
1403      */
1404     public com.google.common.util.concurrent.ListenableFuture<
1405             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
createPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request)1406         createPatchDeployment(
1407             com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest request) {
1408       return io.grpc.stub.ClientCalls.futureUnaryCall(
1409           getChannel().newCall(getCreatePatchDeploymentMethod(), getCallOptions()), request);
1410     }
1411 
1412     /**
1413      *
1414      *
1415      * <pre>
1416      * Get an OS Config patch deployment.
1417      * </pre>
1418      */
1419     public com.google.common.util.concurrent.ListenableFuture<
1420             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
getPatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request)1421         getPatchDeployment(
1422             com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest request) {
1423       return io.grpc.stub.ClientCalls.futureUnaryCall(
1424           getChannel().newCall(getGetPatchDeploymentMethod(), getCallOptions()), request);
1425     }
1426 
1427     /**
1428      *
1429      *
1430      * <pre>
1431      * Get a page of OS Config patch deployments.
1432      * </pre>
1433      */
1434     public com.google.common.util.concurrent.ListenableFuture<
1435             com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>
listPatchDeployments( com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request)1436         listPatchDeployments(
1437             com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest request) {
1438       return io.grpc.stub.ClientCalls.futureUnaryCall(
1439           getChannel().newCall(getListPatchDeploymentsMethod(), getCallOptions()), request);
1440     }
1441 
1442     /**
1443      *
1444      *
1445      * <pre>
1446      * Delete an OS Config patch deployment.
1447      * </pre>
1448      */
1449     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deletePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request)1450         deletePatchDeployment(
1451             com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest request) {
1452       return io.grpc.stub.ClientCalls.futureUnaryCall(
1453           getChannel().newCall(getDeletePatchDeploymentMethod(), getCallOptions()), request);
1454     }
1455 
1456     /**
1457      *
1458      *
1459      * <pre>
1460      * Update an OS Config patch deployment.
1461      * </pre>
1462      */
1463     public com.google.common.util.concurrent.ListenableFuture<
1464             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
updatePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request)1465         updatePatchDeployment(
1466             com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest request) {
1467       return io.grpc.stub.ClientCalls.futureUnaryCall(
1468           getChannel().newCall(getUpdatePatchDeploymentMethod(), getCallOptions()), request);
1469     }
1470 
1471     /**
1472      *
1473      *
1474      * <pre>
1475      * Change state of patch deployment to "PAUSED".
1476      * Patch deployment in paused state doesn't generate patch jobs.
1477      * </pre>
1478      */
1479     public com.google.common.util.concurrent.ListenableFuture<
1480             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
pausePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request)1481         pausePatchDeployment(
1482             com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest request) {
1483       return io.grpc.stub.ClientCalls.futureUnaryCall(
1484           getChannel().newCall(getPausePatchDeploymentMethod(), getCallOptions()), request);
1485     }
1486 
1487     /**
1488      *
1489      *
1490      * <pre>
1491      * Change state of patch deployment back to "ACTIVE".
1492      * Patch deployment in active state continues to generate patch jobs.
1493      * </pre>
1494      */
1495     public com.google.common.util.concurrent.ListenableFuture<
1496             com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>
resumePatchDeployment( com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request)1497         resumePatchDeployment(
1498             com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest request) {
1499       return io.grpc.stub.ClientCalls.futureUnaryCall(
1500           getChannel().newCall(getResumePatchDeploymentMethod(), getCallOptions()), request);
1501     }
1502   }
1503 
1504   private static final int METHODID_EXECUTE_PATCH_JOB = 0;
1505   private static final int METHODID_GET_PATCH_JOB = 1;
1506   private static final int METHODID_CANCEL_PATCH_JOB = 2;
1507   private static final int METHODID_LIST_PATCH_JOBS = 3;
1508   private static final int METHODID_LIST_PATCH_JOB_INSTANCE_DETAILS = 4;
1509   private static final int METHODID_CREATE_PATCH_DEPLOYMENT = 5;
1510   private static final int METHODID_GET_PATCH_DEPLOYMENT = 6;
1511   private static final int METHODID_LIST_PATCH_DEPLOYMENTS = 7;
1512   private static final int METHODID_DELETE_PATCH_DEPLOYMENT = 8;
1513   private static final int METHODID_UPDATE_PATCH_DEPLOYMENT = 9;
1514   private static final int METHODID_PAUSE_PATCH_DEPLOYMENT = 10;
1515   private static final int METHODID_RESUME_PATCH_DEPLOYMENT = 11;
1516 
1517   private static final class MethodHandlers<Req, Resp>
1518       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
1519           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
1520           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
1521           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
1522     private final AsyncService serviceImpl;
1523     private final int methodId;
1524 
MethodHandlers(AsyncService serviceImpl, int methodId)1525     MethodHandlers(AsyncService serviceImpl, int methodId) {
1526       this.serviceImpl = serviceImpl;
1527       this.methodId = methodId;
1528     }
1529 
1530     @java.lang.Override
1531     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)1532     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
1533       switch (methodId) {
1534         case METHODID_EXECUTE_PATCH_JOB:
1535           serviceImpl.executePatchJob(
1536               (com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest) request,
1537               (io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>)
1538                   responseObserver);
1539           break;
1540         case METHODID_GET_PATCH_JOB:
1541           serviceImpl.getPatchJob(
1542               (com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest) request,
1543               (io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>)
1544                   responseObserver);
1545           break;
1546         case METHODID_CANCEL_PATCH_JOB:
1547           serviceImpl.cancelPatchJob(
1548               (com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest) request,
1549               (io.grpc.stub.StreamObserver<com.google.cloud.osconfig.v1.PatchJobs.PatchJob>)
1550                   responseObserver);
1551           break;
1552         case METHODID_LIST_PATCH_JOBS:
1553           serviceImpl.listPatchJobs(
1554               (com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest) request,
1555               (io.grpc.stub.StreamObserver<
1556                       com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>)
1557                   responseObserver);
1558           break;
1559         case METHODID_LIST_PATCH_JOB_INSTANCE_DETAILS:
1560           serviceImpl.listPatchJobInstanceDetails(
1561               (com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest) request,
1562               (io.grpc.stub.StreamObserver<
1563                       com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>)
1564                   responseObserver);
1565           break;
1566         case METHODID_CREATE_PATCH_DEPLOYMENT:
1567           serviceImpl.createPatchDeployment(
1568               (com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest) request,
1569               (io.grpc.stub.StreamObserver<
1570                       com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>)
1571                   responseObserver);
1572           break;
1573         case METHODID_GET_PATCH_DEPLOYMENT:
1574           serviceImpl.getPatchDeployment(
1575               (com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest) request,
1576               (io.grpc.stub.StreamObserver<
1577                       com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>)
1578                   responseObserver);
1579           break;
1580         case METHODID_LIST_PATCH_DEPLOYMENTS:
1581           serviceImpl.listPatchDeployments(
1582               (com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest) request,
1583               (io.grpc.stub.StreamObserver<
1584                       com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>)
1585                   responseObserver);
1586           break;
1587         case METHODID_DELETE_PATCH_DEPLOYMENT:
1588           serviceImpl.deletePatchDeployment(
1589               (com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest) request,
1590               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
1591           break;
1592         case METHODID_UPDATE_PATCH_DEPLOYMENT:
1593           serviceImpl.updatePatchDeployment(
1594               (com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest) request,
1595               (io.grpc.stub.StreamObserver<
1596                       com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>)
1597                   responseObserver);
1598           break;
1599         case METHODID_PAUSE_PATCH_DEPLOYMENT:
1600           serviceImpl.pausePatchDeployment(
1601               (com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest) request,
1602               (io.grpc.stub.StreamObserver<
1603                       com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>)
1604                   responseObserver);
1605           break;
1606         case METHODID_RESUME_PATCH_DEPLOYMENT:
1607           serviceImpl.resumePatchDeployment(
1608               (com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest) request,
1609               (io.grpc.stub.StreamObserver<
1610                       com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>)
1611                   responseObserver);
1612           break;
1613         default:
1614           throw new AssertionError();
1615       }
1616     }
1617 
1618     @java.lang.Override
1619     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)1620     public io.grpc.stub.StreamObserver<Req> invoke(
1621         io.grpc.stub.StreamObserver<Resp> responseObserver) {
1622       switch (methodId) {
1623         default:
1624           throw new AssertionError();
1625       }
1626     }
1627   }
1628 
bindService(AsyncService service)1629   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
1630     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
1631         .addMethod(
1632             getExecutePatchJobMethod(),
1633             io.grpc.stub.ServerCalls.asyncUnaryCall(
1634                 new MethodHandlers<
1635                     com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest,
1636                     com.google.cloud.osconfig.v1.PatchJobs.PatchJob>(
1637                     service, METHODID_EXECUTE_PATCH_JOB)))
1638         .addMethod(
1639             getGetPatchJobMethod(),
1640             io.grpc.stub.ServerCalls.asyncUnaryCall(
1641                 new MethodHandlers<
1642                     com.google.cloud.osconfig.v1.PatchJobs.GetPatchJobRequest,
1643                     com.google.cloud.osconfig.v1.PatchJobs.PatchJob>(
1644                     service, METHODID_GET_PATCH_JOB)))
1645         .addMethod(
1646             getCancelPatchJobMethod(),
1647             io.grpc.stub.ServerCalls.asyncUnaryCall(
1648                 new MethodHandlers<
1649                     com.google.cloud.osconfig.v1.PatchJobs.CancelPatchJobRequest,
1650                     com.google.cloud.osconfig.v1.PatchJobs.PatchJob>(
1651                     service, METHODID_CANCEL_PATCH_JOB)))
1652         .addMethod(
1653             getListPatchJobsMethod(),
1654             io.grpc.stub.ServerCalls.asyncUnaryCall(
1655                 new MethodHandlers<
1656                     com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsRequest,
1657                     com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobsResponse>(
1658                     service, METHODID_LIST_PATCH_JOBS)))
1659         .addMethod(
1660             getListPatchJobInstanceDetailsMethod(),
1661             io.grpc.stub.ServerCalls.asyncUnaryCall(
1662                 new MethodHandlers<
1663                     com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsRequest,
1664                     com.google.cloud.osconfig.v1.PatchJobs.ListPatchJobInstanceDetailsResponse>(
1665                     service, METHODID_LIST_PATCH_JOB_INSTANCE_DETAILS)))
1666         .addMethod(
1667             getCreatePatchDeploymentMethod(),
1668             io.grpc.stub.ServerCalls.asyncUnaryCall(
1669                 new MethodHandlers<
1670                     com.google.cloud.osconfig.v1.PatchDeployments.CreatePatchDeploymentRequest,
1671                     com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>(
1672                     service, METHODID_CREATE_PATCH_DEPLOYMENT)))
1673         .addMethod(
1674             getGetPatchDeploymentMethod(),
1675             io.grpc.stub.ServerCalls.asyncUnaryCall(
1676                 new MethodHandlers<
1677                     com.google.cloud.osconfig.v1.PatchDeployments.GetPatchDeploymentRequest,
1678                     com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>(
1679                     service, METHODID_GET_PATCH_DEPLOYMENT)))
1680         .addMethod(
1681             getListPatchDeploymentsMethod(),
1682             io.grpc.stub.ServerCalls.asyncUnaryCall(
1683                 new MethodHandlers<
1684                     com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsRequest,
1685                     com.google.cloud.osconfig.v1.PatchDeployments.ListPatchDeploymentsResponse>(
1686                     service, METHODID_LIST_PATCH_DEPLOYMENTS)))
1687         .addMethod(
1688             getDeletePatchDeploymentMethod(),
1689             io.grpc.stub.ServerCalls.asyncUnaryCall(
1690                 new MethodHandlers<
1691                     com.google.cloud.osconfig.v1.PatchDeployments.DeletePatchDeploymentRequest,
1692                     com.google.protobuf.Empty>(service, METHODID_DELETE_PATCH_DEPLOYMENT)))
1693         .addMethod(
1694             getUpdatePatchDeploymentMethod(),
1695             io.grpc.stub.ServerCalls.asyncUnaryCall(
1696                 new MethodHandlers<
1697                     com.google.cloud.osconfig.v1.PatchDeployments.UpdatePatchDeploymentRequest,
1698                     com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>(
1699                     service, METHODID_UPDATE_PATCH_DEPLOYMENT)))
1700         .addMethod(
1701             getPausePatchDeploymentMethod(),
1702             io.grpc.stub.ServerCalls.asyncUnaryCall(
1703                 new MethodHandlers<
1704                     com.google.cloud.osconfig.v1.PatchDeployments.PausePatchDeploymentRequest,
1705                     com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>(
1706                     service, METHODID_PAUSE_PATCH_DEPLOYMENT)))
1707         .addMethod(
1708             getResumePatchDeploymentMethod(),
1709             io.grpc.stub.ServerCalls.asyncUnaryCall(
1710                 new MethodHandlers<
1711                     com.google.cloud.osconfig.v1.PatchDeployments.ResumePatchDeploymentRequest,
1712                     com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment>(
1713                     service, METHODID_RESUME_PATCH_DEPLOYMENT)))
1714         .build();
1715   }
1716 
1717   private abstract static class OsConfigServiceBaseDescriptorSupplier
1718       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
1719           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
OsConfigServiceBaseDescriptorSupplier()1720     OsConfigServiceBaseDescriptorSupplier() {}
1721 
1722     @java.lang.Override
getFileDescriptor()1723     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
1724       return com.google.cloud.osconfig.v1.OsConfigProto.getDescriptor();
1725     }
1726 
1727     @java.lang.Override
getServiceDescriptor()1728     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
1729       return getFileDescriptor().findServiceByName("OsConfigService");
1730     }
1731   }
1732 
1733   private static final class OsConfigServiceFileDescriptorSupplier
1734       extends OsConfigServiceBaseDescriptorSupplier {
OsConfigServiceFileDescriptorSupplier()1735     OsConfigServiceFileDescriptorSupplier() {}
1736   }
1737 
1738   private static final class OsConfigServiceMethodDescriptorSupplier
1739       extends OsConfigServiceBaseDescriptorSupplier
1740       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
1741     private final String methodName;
1742 
OsConfigServiceMethodDescriptorSupplier(String methodName)1743     OsConfigServiceMethodDescriptorSupplier(String methodName) {
1744       this.methodName = methodName;
1745     }
1746 
1747     @java.lang.Override
getMethodDescriptor()1748     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
1749       return getServiceDescriptor().findMethodByName(methodName);
1750     }
1751   }
1752 
1753   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
1754 
getServiceDescriptor()1755   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
1756     io.grpc.ServiceDescriptor result = serviceDescriptor;
1757     if (result == null) {
1758       synchronized (OsConfigServiceGrpc.class) {
1759         result = serviceDescriptor;
1760         if (result == null) {
1761           serviceDescriptor =
1762               result =
1763                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
1764                       .setSchemaDescriptor(new OsConfigServiceFileDescriptorSupplier())
1765                       .addMethod(getExecutePatchJobMethod())
1766                       .addMethod(getGetPatchJobMethod())
1767                       .addMethod(getCancelPatchJobMethod())
1768                       .addMethod(getListPatchJobsMethod())
1769                       .addMethod(getListPatchJobInstanceDetailsMethod())
1770                       .addMethod(getCreatePatchDeploymentMethod())
1771                       .addMethod(getGetPatchDeploymentMethod())
1772                       .addMethod(getListPatchDeploymentsMethod())
1773                       .addMethod(getDeletePatchDeploymentMethod())
1774                       .addMethod(getUpdatePatchDeploymentMethod())
1775                       .addMethod(getPausePatchDeploymentMethod())
1776                       .addMethod(getResumePatchDeploymentMethod())
1777                       .build();
1778         }
1779       }
1780     }
1781     return result;
1782   }
1783 }
1784