• 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 io.grafeas.v1beta1;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20 import static io.grpc.stub.ClientCalls.blockingUnaryCall;
21 import static io.grpc.stub.ClientCalls.futureUnaryCall;
22 import static io.grpc.stub.ServerCalls.asyncUnaryCall;
23 import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
24 
25 /**
26  *
27  *
28  * <pre>
29  * [Grafeas](grafeas.io) API.
30  * Retrieves analysis results of Cloud components such as Docker container
31  * images.
32  * Analysis results are stored as a series of occurrences. An `Occurrence`
33  * contains information about a specific analysis instance on a resource. An
34  * occurrence refers to a `Note`. A note contains details describing the
35  * analysis and is generally stored in a separate project, called a `Provider`.
36  * Multiple occurrences can refer to the same note.
37  * For example, an SSL vulnerability could affect multiple images. In this case,
38  * there would be one note for the vulnerability and an occurrence for each
39  * image with the vulnerability referring to that note.
40  * </pre>
41  */
42 @javax.annotation.Generated(
43     value = "by gRPC proto compiler",
44     comments = "Source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto")
45 public final class GrafeasV1Beta1Grpc {
46 
GrafeasV1Beta1Grpc()47   private GrafeasV1Beta1Grpc() {}
48 
49   public static final String SERVICE_NAME = "grafeas.v1beta1.GrafeasV1Beta1";
50 
51   // Static method descriptors that strictly reflect the proto.
52   private static volatile io.grpc.MethodDescriptor<
53           io.grafeas.v1beta1.GetOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
54       getGetOccurrenceMethod;
55 
56   @io.grpc.stub.annotations.RpcMethod(
57       fullMethodName = SERVICE_NAME + '/' + "GetOccurrence",
58       requestType = io.grafeas.v1beta1.GetOccurrenceRequest.class,
59       responseType = io.grafeas.v1beta1.Occurrence.class,
60       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
61   public static io.grpc.MethodDescriptor<
62           io.grafeas.v1beta1.GetOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
getGetOccurrenceMethod()63       getGetOccurrenceMethod() {
64     io.grpc.MethodDescriptor<io.grafeas.v1beta1.GetOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
65         getGetOccurrenceMethod;
66     if ((getGetOccurrenceMethod = GrafeasV1Beta1Grpc.getGetOccurrenceMethod) == null) {
67       synchronized (GrafeasV1Beta1Grpc.class) {
68         if ((getGetOccurrenceMethod = GrafeasV1Beta1Grpc.getGetOccurrenceMethod) == null) {
69           GrafeasV1Beta1Grpc.getGetOccurrenceMethod =
70               getGetOccurrenceMethod =
71                   io.grpc.MethodDescriptor
72                       .<io.grafeas.v1beta1.GetOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
73                           newBuilder()
74                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
75                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOccurrence"))
76                       .setSampledToLocalTracing(true)
77                       .setRequestMarshaller(
78                           io.grpc.protobuf.ProtoUtils.marshaller(
79                               io.grafeas.v1beta1.GetOccurrenceRequest.getDefaultInstance()))
80                       .setResponseMarshaller(
81                           io.grpc.protobuf.ProtoUtils.marshaller(
82                               io.grafeas.v1beta1.Occurrence.getDefaultInstance()))
83                       .setSchemaDescriptor(
84                           new GrafeasV1Beta1MethodDescriptorSupplier("GetOccurrence"))
85                       .build();
86         }
87       }
88     }
89     return getGetOccurrenceMethod;
90   }
91 
92   private static volatile io.grpc.MethodDescriptor<
93           io.grafeas.v1beta1.ListOccurrencesRequest, io.grafeas.v1beta1.ListOccurrencesResponse>
94       getListOccurrencesMethod;
95 
96   @io.grpc.stub.annotations.RpcMethod(
97       fullMethodName = SERVICE_NAME + '/' + "ListOccurrences",
98       requestType = io.grafeas.v1beta1.ListOccurrencesRequest.class,
99       responseType = io.grafeas.v1beta1.ListOccurrencesResponse.class,
100       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
101   public static io.grpc.MethodDescriptor<
102           io.grafeas.v1beta1.ListOccurrencesRequest, io.grafeas.v1beta1.ListOccurrencesResponse>
getListOccurrencesMethod()103       getListOccurrencesMethod() {
104     io.grpc.MethodDescriptor<
105             io.grafeas.v1beta1.ListOccurrencesRequest, io.grafeas.v1beta1.ListOccurrencesResponse>
106         getListOccurrencesMethod;
107     if ((getListOccurrencesMethod = GrafeasV1Beta1Grpc.getListOccurrencesMethod) == null) {
108       synchronized (GrafeasV1Beta1Grpc.class) {
109         if ((getListOccurrencesMethod = GrafeasV1Beta1Grpc.getListOccurrencesMethod) == null) {
110           GrafeasV1Beta1Grpc.getListOccurrencesMethod =
111               getListOccurrencesMethod =
112                   io.grpc.MethodDescriptor
113                       .<io.grafeas.v1beta1.ListOccurrencesRequest,
114                           io.grafeas.v1beta1.ListOccurrencesResponse>
115                           newBuilder()
116                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
117                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOccurrences"))
118                       .setSampledToLocalTracing(true)
119                       .setRequestMarshaller(
120                           io.grpc.protobuf.ProtoUtils.marshaller(
121                               io.grafeas.v1beta1.ListOccurrencesRequest.getDefaultInstance()))
122                       .setResponseMarshaller(
123                           io.grpc.protobuf.ProtoUtils.marshaller(
124                               io.grafeas.v1beta1.ListOccurrencesResponse.getDefaultInstance()))
125                       .setSchemaDescriptor(
126                           new GrafeasV1Beta1MethodDescriptorSupplier("ListOccurrences"))
127                       .build();
128         }
129       }
130     }
131     return getListOccurrencesMethod;
132   }
133 
134   private static volatile io.grpc.MethodDescriptor<
135           io.grafeas.v1beta1.DeleteOccurrenceRequest, com.google.protobuf.Empty>
136       getDeleteOccurrenceMethod;
137 
138   @io.grpc.stub.annotations.RpcMethod(
139       fullMethodName = SERVICE_NAME + '/' + "DeleteOccurrence",
140       requestType = io.grafeas.v1beta1.DeleteOccurrenceRequest.class,
141       responseType = com.google.protobuf.Empty.class,
142       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
143   public static io.grpc.MethodDescriptor<
144           io.grafeas.v1beta1.DeleteOccurrenceRequest, com.google.protobuf.Empty>
getDeleteOccurrenceMethod()145       getDeleteOccurrenceMethod() {
146     io.grpc.MethodDescriptor<io.grafeas.v1beta1.DeleteOccurrenceRequest, com.google.protobuf.Empty>
147         getDeleteOccurrenceMethod;
148     if ((getDeleteOccurrenceMethod = GrafeasV1Beta1Grpc.getDeleteOccurrenceMethod) == null) {
149       synchronized (GrafeasV1Beta1Grpc.class) {
150         if ((getDeleteOccurrenceMethod = GrafeasV1Beta1Grpc.getDeleteOccurrenceMethod) == null) {
151           GrafeasV1Beta1Grpc.getDeleteOccurrenceMethod =
152               getDeleteOccurrenceMethod =
153                   io.grpc.MethodDescriptor
154                       .<io.grafeas.v1beta1.DeleteOccurrenceRequest, com.google.protobuf.Empty>
155                           newBuilder()
156                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
157                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOccurrence"))
158                       .setSampledToLocalTracing(true)
159                       .setRequestMarshaller(
160                           io.grpc.protobuf.ProtoUtils.marshaller(
161                               io.grafeas.v1beta1.DeleteOccurrenceRequest.getDefaultInstance()))
162                       .setResponseMarshaller(
163                           io.grpc.protobuf.ProtoUtils.marshaller(
164                               com.google.protobuf.Empty.getDefaultInstance()))
165                       .setSchemaDescriptor(
166                           new GrafeasV1Beta1MethodDescriptorSupplier("DeleteOccurrence"))
167                       .build();
168         }
169       }
170     }
171     return getDeleteOccurrenceMethod;
172   }
173 
174   private static volatile io.grpc.MethodDescriptor<
175           io.grafeas.v1beta1.CreateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
176       getCreateOccurrenceMethod;
177 
178   @io.grpc.stub.annotations.RpcMethod(
179       fullMethodName = SERVICE_NAME + '/' + "CreateOccurrence",
180       requestType = io.grafeas.v1beta1.CreateOccurrenceRequest.class,
181       responseType = io.grafeas.v1beta1.Occurrence.class,
182       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
183   public static io.grpc.MethodDescriptor<
184           io.grafeas.v1beta1.CreateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
getCreateOccurrenceMethod()185       getCreateOccurrenceMethod() {
186     io.grpc.MethodDescriptor<
187             io.grafeas.v1beta1.CreateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
188         getCreateOccurrenceMethod;
189     if ((getCreateOccurrenceMethod = GrafeasV1Beta1Grpc.getCreateOccurrenceMethod) == null) {
190       synchronized (GrafeasV1Beta1Grpc.class) {
191         if ((getCreateOccurrenceMethod = GrafeasV1Beta1Grpc.getCreateOccurrenceMethod) == null) {
192           GrafeasV1Beta1Grpc.getCreateOccurrenceMethod =
193               getCreateOccurrenceMethod =
194                   io.grpc.MethodDescriptor
195                       .<io.grafeas.v1beta1.CreateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
196                           newBuilder()
197                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
198                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOccurrence"))
199                       .setSampledToLocalTracing(true)
200                       .setRequestMarshaller(
201                           io.grpc.protobuf.ProtoUtils.marshaller(
202                               io.grafeas.v1beta1.CreateOccurrenceRequest.getDefaultInstance()))
203                       .setResponseMarshaller(
204                           io.grpc.protobuf.ProtoUtils.marshaller(
205                               io.grafeas.v1beta1.Occurrence.getDefaultInstance()))
206                       .setSchemaDescriptor(
207                           new GrafeasV1Beta1MethodDescriptorSupplier("CreateOccurrence"))
208                       .build();
209         }
210       }
211     }
212     return getCreateOccurrenceMethod;
213   }
214 
215   private static volatile io.grpc.MethodDescriptor<
216           io.grafeas.v1beta1.BatchCreateOccurrencesRequest,
217           io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
218       getBatchCreateOccurrencesMethod;
219 
220   @io.grpc.stub.annotations.RpcMethod(
221       fullMethodName = SERVICE_NAME + '/' + "BatchCreateOccurrences",
222       requestType = io.grafeas.v1beta1.BatchCreateOccurrencesRequest.class,
223       responseType = io.grafeas.v1beta1.BatchCreateOccurrencesResponse.class,
224       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
225   public static io.grpc.MethodDescriptor<
226           io.grafeas.v1beta1.BatchCreateOccurrencesRequest,
227           io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
getBatchCreateOccurrencesMethod()228       getBatchCreateOccurrencesMethod() {
229     io.grpc.MethodDescriptor<
230             io.grafeas.v1beta1.BatchCreateOccurrencesRequest,
231             io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
232         getBatchCreateOccurrencesMethod;
233     if ((getBatchCreateOccurrencesMethod = GrafeasV1Beta1Grpc.getBatchCreateOccurrencesMethod)
234         == null) {
235       synchronized (GrafeasV1Beta1Grpc.class) {
236         if ((getBatchCreateOccurrencesMethod = GrafeasV1Beta1Grpc.getBatchCreateOccurrencesMethod)
237             == null) {
238           GrafeasV1Beta1Grpc.getBatchCreateOccurrencesMethod =
239               getBatchCreateOccurrencesMethod =
240                   io.grpc.MethodDescriptor
241                       .<io.grafeas.v1beta1.BatchCreateOccurrencesRequest,
242                           io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
243                           newBuilder()
244                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
245                       .setFullMethodName(
246                           generateFullMethodName(SERVICE_NAME, "BatchCreateOccurrences"))
247                       .setSampledToLocalTracing(true)
248                       .setRequestMarshaller(
249                           io.grpc.protobuf.ProtoUtils.marshaller(
250                               io.grafeas.v1beta1.BatchCreateOccurrencesRequest
251                                   .getDefaultInstance()))
252                       .setResponseMarshaller(
253                           io.grpc.protobuf.ProtoUtils.marshaller(
254                               io.grafeas.v1beta1.BatchCreateOccurrencesResponse
255                                   .getDefaultInstance()))
256                       .setSchemaDescriptor(
257                           new GrafeasV1Beta1MethodDescriptorSupplier("BatchCreateOccurrences"))
258                       .build();
259         }
260       }
261     }
262     return getBatchCreateOccurrencesMethod;
263   }
264 
265   private static volatile io.grpc.MethodDescriptor<
266           io.grafeas.v1beta1.UpdateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
267       getUpdateOccurrenceMethod;
268 
269   @io.grpc.stub.annotations.RpcMethod(
270       fullMethodName = SERVICE_NAME + '/' + "UpdateOccurrence",
271       requestType = io.grafeas.v1beta1.UpdateOccurrenceRequest.class,
272       responseType = io.grafeas.v1beta1.Occurrence.class,
273       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
274   public static io.grpc.MethodDescriptor<
275           io.grafeas.v1beta1.UpdateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
getUpdateOccurrenceMethod()276       getUpdateOccurrenceMethod() {
277     io.grpc.MethodDescriptor<
278             io.grafeas.v1beta1.UpdateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
279         getUpdateOccurrenceMethod;
280     if ((getUpdateOccurrenceMethod = GrafeasV1Beta1Grpc.getUpdateOccurrenceMethod) == null) {
281       synchronized (GrafeasV1Beta1Grpc.class) {
282         if ((getUpdateOccurrenceMethod = GrafeasV1Beta1Grpc.getUpdateOccurrenceMethod) == null) {
283           GrafeasV1Beta1Grpc.getUpdateOccurrenceMethod =
284               getUpdateOccurrenceMethod =
285                   io.grpc.MethodDescriptor
286                       .<io.grafeas.v1beta1.UpdateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>
287                           newBuilder()
288                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
289                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOccurrence"))
290                       .setSampledToLocalTracing(true)
291                       .setRequestMarshaller(
292                           io.grpc.protobuf.ProtoUtils.marshaller(
293                               io.grafeas.v1beta1.UpdateOccurrenceRequest.getDefaultInstance()))
294                       .setResponseMarshaller(
295                           io.grpc.protobuf.ProtoUtils.marshaller(
296                               io.grafeas.v1beta1.Occurrence.getDefaultInstance()))
297                       .setSchemaDescriptor(
298                           new GrafeasV1Beta1MethodDescriptorSupplier("UpdateOccurrence"))
299                       .build();
300         }
301       }
302     }
303     return getUpdateOccurrenceMethod;
304   }
305 
306   private static volatile io.grpc.MethodDescriptor<
307           io.grafeas.v1beta1.GetOccurrenceNoteRequest, io.grafeas.v1beta1.Note>
308       getGetOccurrenceNoteMethod;
309 
310   @io.grpc.stub.annotations.RpcMethod(
311       fullMethodName = SERVICE_NAME + '/' + "GetOccurrenceNote",
312       requestType = io.grafeas.v1beta1.GetOccurrenceNoteRequest.class,
313       responseType = io.grafeas.v1beta1.Note.class,
314       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
315   public static io.grpc.MethodDescriptor<
316           io.grafeas.v1beta1.GetOccurrenceNoteRequest, io.grafeas.v1beta1.Note>
getGetOccurrenceNoteMethod()317       getGetOccurrenceNoteMethod() {
318     io.grpc.MethodDescriptor<io.grafeas.v1beta1.GetOccurrenceNoteRequest, io.grafeas.v1beta1.Note>
319         getGetOccurrenceNoteMethod;
320     if ((getGetOccurrenceNoteMethod = GrafeasV1Beta1Grpc.getGetOccurrenceNoteMethod) == null) {
321       synchronized (GrafeasV1Beta1Grpc.class) {
322         if ((getGetOccurrenceNoteMethod = GrafeasV1Beta1Grpc.getGetOccurrenceNoteMethod) == null) {
323           GrafeasV1Beta1Grpc.getGetOccurrenceNoteMethod =
324               getGetOccurrenceNoteMethod =
325                   io.grpc.MethodDescriptor
326                       .<io.grafeas.v1beta1.GetOccurrenceNoteRequest, io.grafeas.v1beta1.Note>
327                           newBuilder()
328                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
329                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOccurrenceNote"))
330                       .setSampledToLocalTracing(true)
331                       .setRequestMarshaller(
332                           io.grpc.protobuf.ProtoUtils.marshaller(
333                               io.grafeas.v1beta1.GetOccurrenceNoteRequest.getDefaultInstance()))
334                       .setResponseMarshaller(
335                           io.grpc.protobuf.ProtoUtils.marshaller(
336                               io.grafeas.v1beta1.Note.getDefaultInstance()))
337                       .setSchemaDescriptor(
338                           new GrafeasV1Beta1MethodDescriptorSupplier("GetOccurrenceNote"))
339                       .build();
340         }
341       }
342     }
343     return getGetOccurrenceNoteMethod;
344   }
345 
346   private static volatile io.grpc.MethodDescriptor<
347           io.grafeas.v1beta1.GetNoteRequest, io.grafeas.v1beta1.Note>
348       getGetNoteMethod;
349 
350   @io.grpc.stub.annotations.RpcMethod(
351       fullMethodName = SERVICE_NAME + '/' + "GetNote",
352       requestType = io.grafeas.v1beta1.GetNoteRequest.class,
353       responseType = io.grafeas.v1beta1.Note.class,
354       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
355   public static io.grpc.MethodDescriptor<io.grafeas.v1beta1.GetNoteRequest, io.grafeas.v1beta1.Note>
getGetNoteMethod()356       getGetNoteMethod() {
357     io.grpc.MethodDescriptor<io.grafeas.v1beta1.GetNoteRequest, io.grafeas.v1beta1.Note>
358         getGetNoteMethod;
359     if ((getGetNoteMethod = GrafeasV1Beta1Grpc.getGetNoteMethod) == null) {
360       synchronized (GrafeasV1Beta1Grpc.class) {
361         if ((getGetNoteMethod = GrafeasV1Beta1Grpc.getGetNoteMethod) == null) {
362           GrafeasV1Beta1Grpc.getGetNoteMethod =
363               getGetNoteMethod =
364                   io.grpc.MethodDescriptor
365                       .<io.grafeas.v1beta1.GetNoteRequest, io.grafeas.v1beta1.Note>newBuilder()
366                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
367                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNote"))
368                       .setSampledToLocalTracing(true)
369                       .setRequestMarshaller(
370                           io.grpc.protobuf.ProtoUtils.marshaller(
371                               io.grafeas.v1beta1.GetNoteRequest.getDefaultInstance()))
372                       .setResponseMarshaller(
373                           io.grpc.protobuf.ProtoUtils.marshaller(
374                               io.grafeas.v1beta1.Note.getDefaultInstance()))
375                       .setSchemaDescriptor(new GrafeasV1Beta1MethodDescriptorSupplier("GetNote"))
376                       .build();
377         }
378       }
379     }
380     return getGetNoteMethod;
381   }
382 
383   private static volatile io.grpc.MethodDescriptor<
384           io.grafeas.v1beta1.ListNotesRequest, io.grafeas.v1beta1.ListNotesResponse>
385       getListNotesMethod;
386 
387   @io.grpc.stub.annotations.RpcMethod(
388       fullMethodName = SERVICE_NAME + '/' + "ListNotes",
389       requestType = io.grafeas.v1beta1.ListNotesRequest.class,
390       responseType = io.grafeas.v1beta1.ListNotesResponse.class,
391       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
392   public static io.grpc.MethodDescriptor<
393           io.grafeas.v1beta1.ListNotesRequest, io.grafeas.v1beta1.ListNotesResponse>
getListNotesMethod()394       getListNotesMethod() {
395     io.grpc.MethodDescriptor<
396             io.grafeas.v1beta1.ListNotesRequest, io.grafeas.v1beta1.ListNotesResponse>
397         getListNotesMethod;
398     if ((getListNotesMethod = GrafeasV1Beta1Grpc.getListNotesMethod) == null) {
399       synchronized (GrafeasV1Beta1Grpc.class) {
400         if ((getListNotesMethod = GrafeasV1Beta1Grpc.getListNotesMethod) == null) {
401           GrafeasV1Beta1Grpc.getListNotesMethod =
402               getListNotesMethod =
403                   io.grpc.MethodDescriptor
404                       .<io.grafeas.v1beta1.ListNotesRequest, io.grafeas.v1beta1.ListNotesResponse>
405                           newBuilder()
406                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
407                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotes"))
408                       .setSampledToLocalTracing(true)
409                       .setRequestMarshaller(
410                           io.grpc.protobuf.ProtoUtils.marshaller(
411                               io.grafeas.v1beta1.ListNotesRequest.getDefaultInstance()))
412                       .setResponseMarshaller(
413                           io.grpc.protobuf.ProtoUtils.marshaller(
414                               io.grafeas.v1beta1.ListNotesResponse.getDefaultInstance()))
415                       .setSchemaDescriptor(new GrafeasV1Beta1MethodDescriptorSupplier("ListNotes"))
416                       .build();
417         }
418       }
419     }
420     return getListNotesMethod;
421   }
422 
423   private static volatile io.grpc.MethodDescriptor<
424           io.grafeas.v1beta1.DeleteNoteRequest, com.google.protobuf.Empty>
425       getDeleteNoteMethod;
426 
427   @io.grpc.stub.annotations.RpcMethod(
428       fullMethodName = SERVICE_NAME + '/' + "DeleteNote",
429       requestType = io.grafeas.v1beta1.DeleteNoteRequest.class,
430       responseType = com.google.protobuf.Empty.class,
431       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
432   public static io.grpc.MethodDescriptor<
433           io.grafeas.v1beta1.DeleteNoteRequest, com.google.protobuf.Empty>
getDeleteNoteMethod()434       getDeleteNoteMethod() {
435     io.grpc.MethodDescriptor<io.grafeas.v1beta1.DeleteNoteRequest, com.google.protobuf.Empty>
436         getDeleteNoteMethod;
437     if ((getDeleteNoteMethod = GrafeasV1Beta1Grpc.getDeleteNoteMethod) == null) {
438       synchronized (GrafeasV1Beta1Grpc.class) {
439         if ((getDeleteNoteMethod = GrafeasV1Beta1Grpc.getDeleteNoteMethod) == null) {
440           GrafeasV1Beta1Grpc.getDeleteNoteMethod =
441               getDeleteNoteMethod =
442                   io.grpc.MethodDescriptor
443                       .<io.grafeas.v1beta1.DeleteNoteRequest, com.google.protobuf.Empty>newBuilder()
444                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
445                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNote"))
446                       .setSampledToLocalTracing(true)
447                       .setRequestMarshaller(
448                           io.grpc.protobuf.ProtoUtils.marshaller(
449                               io.grafeas.v1beta1.DeleteNoteRequest.getDefaultInstance()))
450                       .setResponseMarshaller(
451                           io.grpc.protobuf.ProtoUtils.marshaller(
452                               com.google.protobuf.Empty.getDefaultInstance()))
453                       .setSchemaDescriptor(new GrafeasV1Beta1MethodDescriptorSupplier("DeleteNote"))
454                       .build();
455         }
456       }
457     }
458     return getDeleteNoteMethod;
459   }
460 
461   private static volatile io.grpc.MethodDescriptor<
462           io.grafeas.v1beta1.CreateNoteRequest, io.grafeas.v1beta1.Note>
463       getCreateNoteMethod;
464 
465   @io.grpc.stub.annotations.RpcMethod(
466       fullMethodName = SERVICE_NAME + '/' + "CreateNote",
467       requestType = io.grafeas.v1beta1.CreateNoteRequest.class,
468       responseType = io.grafeas.v1beta1.Note.class,
469       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
470   public static io.grpc.MethodDescriptor<
471           io.grafeas.v1beta1.CreateNoteRequest, io.grafeas.v1beta1.Note>
getCreateNoteMethod()472       getCreateNoteMethod() {
473     io.grpc.MethodDescriptor<io.grafeas.v1beta1.CreateNoteRequest, io.grafeas.v1beta1.Note>
474         getCreateNoteMethod;
475     if ((getCreateNoteMethod = GrafeasV1Beta1Grpc.getCreateNoteMethod) == null) {
476       synchronized (GrafeasV1Beta1Grpc.class) {
477         if ((getCreateNoteMethod = GrafeasV1Beta1Grpc.getCreateNoteMethod) == null) {
478           GrafeasV1Beta1Grpc.getCreateNoteMethod =
479               getCreateNoteMethod =
480                   io.grpc.MethodDescriptor
481                       .<io.grafeas.v1beta1.CreateNoteRequest, io.grafeas.v1beta1.Note>newBuilder()
482                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
483                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNote"))
484                       .setSampledToLocalTracing(true)
485                       .setRequestMarshaller(
486                           io.grpc.protobuf.ProtoUtils.marshaller(
487                               io.grafeas.v1beta1.CreateNoteRequest.getDefaultInstance()))
488                       .setResponseMarshaller(
489                           io.grpc.protobuf.ProtoUtils.marshaller(
490                               io.grafeas.v1beta1.Note.getDefaultInstance()))
491                       .setSchemaDescriptor(new GrafeasV1Beta1MethodDescriptorSupplier("CreateNote"))
492                       .build();
493         }
494       }
495     }
496     return getCreateNoteMethod;
497   }
498 
499   private static volatile io.grpc.MethodDescriptor<
500           io.grafeas.v1beta1.BatchCreateNotesRequest, io.grafeas.v1beta1.BatchCreateNotesResponse>
501       getBatchCreateNotesMethod;
502 
503   @io.grpc.stub.annotations.RpcMethod(
504       fullMethodName = SERVICE_NAME + '/' + "BatchCreateNotes",
505       requestType = io.grafeas.v1beta1.BatchCreateNotesRequest.class,
506       responseType = io.grafeas.v1beta1.BatchCreateNotesResponse.class,
507       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
508   public static io.grpc.MethodDescriptor<
509           io.grafeas.v1beta1.BatchCreateNotesRequest, io.grafeas.v1beta1.BatchCreateNotesResponse>
getBatchCreateNotesMethod()510       getBatchCreateNotesMethod() {
511     io.grpc.MethodDescriptor<
512             io.grafeas.v1beta1.BatchCreateNotesRequest, io.grafeas.v1beta1.BatchCreateNotesResponse>
513         getBatchCreateNotesMethod;
514     if ((getBatchCreateNotesMethod = GrafeasV1Beta1Grpc.getBatchCreateNotesMethod) == null) {
515       synchronized (GrafeasV1Beta1Grpc.class) {
516         if ((getBatchCreateNotesMethod = GrafeasV1Beta1Grpc.getBatchCreateNotesMethod) == null) {
517           GrafeasV1Beta1Grpc.getBatchCreateNotesMethod =
518               getBatchCreateNotesMethod =
519                   io.grpc.MethodDescriptor
520                       .<io.grafeas.v1beta1.BatchCreateNotesRequest,
521                           io.grafeas.v1beta1.BatchCreateNotesResponse>
522                           newBuilder()
523                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
524                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateNotes"))
525                       .setSampledToLocalTracing(true)
526                       .setRequestMarshaller(
527                           io.grpc.protobuf.ProtoUtils.marshaller(
528                               io.grafeas.v1beta1.BatchCreateNotesRequest.getDefaultInstance()))
529                       .setResponseMarshaller(
530                           io.grpc.protobuf.ProtoUtils.marshaller(
531                               io.grafeas.v1beta1.BatchCreateNotesResponse.getDefaultInstance()))
532                       .setSchemaDescriptor(
533                           new GrafeasV1Beta1MethodDescriptorSupplier("BatchCreateNotes"))
534                       .build();
535         }
536       }
537     }
538     return getBatchCreateNotesMethod;
539   }
540 
541   private static volatile io.grpc.MethodDescriptor<
542           io.grafeas.v1beta1.UpdateNoteRequest, io.grafeas.v1beta1.Note>
543       getUpdateNoteMethod;
544 
545   @io.grpc.stub.annotations.RpcMethod(
546       fullMethodName = SERVICE_NAME + '/' + "UpdateNote",
547       requestType = io.grafeas.v1beta1.UpdateNoteRequest.class,
548       responseType = io.grafeas.v1beta1.Note.class,
549       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
550   public static io.grpc.MethodDescriptor<
551           io.grafeas.v1beta1.UpdateNoteRequest, io.grafeas.v1beta1.Note>
getUpdateNoteMethod()552       getUpdateNoteMethod() {
553     io.grpc.MethodDescriptor<io.grafeas.v1beta1.UpdateNoteRequest, io.grafeas.v1beta1.Note>
554         getUpdateNoteMethod;
555     if ((getUpdateNoteMethod = GrafeasV1Beta1Grpc.getUpdateNoteMethod) == null) {
556       synchronized (GrafeasV1Beta1Grpc.class) {
557         if ((getUpdateNoteMethod = GrafeasV1Beta1Grpc.getUpdateNoteMethod) == null) {
558           GrafeasV1Beta1Grpc.getUpdateNoteMethod =
559               getUpdateNoteMethod =
560                   io.grpc.MethodDescriptor
561                       .<io.grafeas.v1beta1.UpdateNoteRequest, io.grafeas.v1beta1.Note>newBuilder()
562                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
563                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNote"))
564                       .setSampledToLocalTracing(true)
565                       .setRequestMarshaller(
566                           io.grpc.protobuf.ProtoUtils.marshaller(
567                               io.grafeas.v1beta1.UpdateNoteRequest.getDefaultInstance()))
568                       .setResponseMarshaller(
569                           io.grpc.protobuf.ProtoUtils.marshaller(
570                               io.grafeas.v1beta1.Note.getDefaultInstance()))
571                       .setSchemaDescriptor(new GrafeasV1Beta1MethodDescriptorSupplier("UpdateNote"))
572                       .build();
573         }
574       }
575     }
576     return getUpdateNoteMethod;
577   }
578 
579   private static volatile io.grpc.MethodDescriptor<
580           io.grafeas.v1beta1.ListNoteOccurrencesRequest,
581           io.grafeas.v1beta1.ListNoteOccurrencesResponse>
582       getListNoteOccurrencesMethod;
583 
584   @io.grpc.stub.annotations.RpcMethod(
585       fullMethodName = SERVICE_NAME + '/' + "ListNoteOccurrences",
586       requestType = io.grafeas.v1beta1.ListNoteOccurrencesRequest.class,
587       responseType = io.grafeas.v1beta1.ListNoteOccurrencesResponse.class,
588       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
589   public static io.grpc.MethodDescriptor<
590           io.grafeas.v1beta1.ListNoteOccurrencesRequest,
591           io.grafeas.v1beta1.ListNoteOccurrencesResponse>
getListNoteOccurrencesMethod()592       getListNoteOccurrencesMethod() {
593     io.grpc.MethodDescriptor<
594             io.grafeas.v1beta1.ListNoteOccurrencesRequest,
595             io.grafeas.v1beta1.ListNoteOccurrencesResponse>
596         getListNoteOccurrencesMethod;
597     if ((getListNoteOccurrencesMethod = GrafeasV1Beta1Grpc.getListNoteOccurrencesMethod) == null) {
598       synchronized (GrafeasV1Beta1Grpc.class) {
599         if ((getListNoteOccurrencesMethod = GrafeasV1Beta1Grpc.getListNoteOccurrencesMethod)
600             == null) {
601           GrafeasV1Beta1Grpc.getListNoteOccurrencesMethod =
602               getListNoteOccurrencesMethod =
603                   io.grpc.MethodDescriptor
604                       .<io.grafeas.v1beta1.ListNoteOccurrencesRequest,
605                           io.grafeas.v1beta1.ListNoteOccurrencesResponse>
606                           newBuilder()
607                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
608                       .setFullMethodName(
609                           generateFullMethodName(SERVICE_NAME, "ListNoteOccurrences"))
610                       .setSampledToLocalTracing(true)
611                       .setRequestMarshaller(
612                           io.grpc.protobuf.ProtoUtils.marshaller(
613                               io.grafeas.v1beta1.ListNoteOccurrencesRequest.getDefaultInstance()))
614                       .setResponseMarshaller(
615                           io.grpc.protobuf.ProtoUtils.marshaller(
616                               io.grafeas.v1beta1.ListNoteOccurrencesResponse.getDefaultInstance()))
617                       .setSchemaDescriptor(
618                           new GrafeasV1Beta1MethodDescriptorSupplier("ListNoteOccurrences"))
619                       .build();
620         }
621       }
622     }
623     return getListNoteOccurrencesMethod;
624   }
625 
626   private static volatile io.grpc.MethodDescriptor<
627           io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest,
628           io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
629       getGetVulnerabilityOccurrencesSummaryMethod;
630 
631   @io.grpc.stub.annotations.RpcMethod(
632       fullMethodName = SERVICE_NAME + '/' + "GetVulnerabilityOccurrencesSummary",
633       requestType = io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.class,
634       responseType = io.grafeas.v1beta1.VulnerabilityOccurrencesSummary.class,
635       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
636   public static io.grpc.MethodDescriptor<
637           io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest,
638           io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
getGetVulnerabilityOccurrencesSummaryMethod()639       getGetVulnerabilityOccurrencesSummaryMethod() {
640     io.grpc.MethodDescriptor<
641             io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest,
642             io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
643         getGetVulnerabilityOccurrencesSummaryMethod;
644     if ((getGetVulnerabilityOccurrencesSummaryMethod =
645             GrafeasV1Beta1Grpc.getGetVulnerabilityOccurrencesSummaryMethod)
646         == null) {
647       synchronized (GrafeasV1Beta1Grpc.class) {
648         if ((getGetVulnerabilityOccurrencesSummaryMethod =
649                 GrafeasV1Beta1Grpc.getGetVulnerabilityOccurrencesSummaryMethod)
650             == null) {
651           GrafeasV1Beta1Grpc.getGetVulnerabilityOccurrencesSummaryMethod =
652               getGetVulnerabilityOccurrencesSummaryMethod =
653                   io.grpc.MethodDescriptor
654                       .<io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest,
655                           io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
656                           newBuilder()
657                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
658                       .setFullMethodName(
659                           generateFullMethodName(
660                               SERVICE_NAME, "GetVulnerabilityOccurrencesSummary"))
661                       .setSampledToLocalTracing(true)
662                       .setRequestMarshaller(
663                           io.grpc.protobuf.ProtoUtils.marshaller(
664                               io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest
665                                   .getDefaultInstance()))
666                       .setResponseMarshaller(
667                           io.grpc.protobuf.ProtoUtils.marshaller(
668                               io.grafeas.v1beta1.VulnerabilityOccurrencesSummary
669                                   .getDefaultInstance()))
670                       .setSchemaDescriptor(
671                           new GrafeasV1Beta1MethodDescriptorSupplier(
672                               "GetVulnerabilityOccurrencesSummary"))
673                       .build();
674         }
675       }
676     }
677     return getGetVulnerabilityOccurrencesSummaryMethod;
678   }
679 
680   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)681   public static GrafeasV1Beta1Stub newStub(io.grpc.Channel channel) {
682     io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1Stub> factory =
683         new io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1Stub>() {
684           @java.lang.Override
685           public GrafeasV1Beta1Stub newStub(
686               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
687             return new GrafeasV1Beta1Stub(channel, callOptions);
688           }
689         };
690     return GrafeasV1Beta1Stub.newStub(factory, channel);
691   }
692 
693   /**
694    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
695    */
newBlockingStub(io.grpc.Channel channel)696   public static GrafeasV1Beta1BlockingStub newBlockingStub(io.grpc.Channel channel) {
697     io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1BlockingStub> factory =
698         new io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1BlockingStub>() {
699           @java.lang.Override
700           public GrafeasV1Beta1BlockingStub newStub(
701               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
702             return new GrafeasV1Beta1BlockingStub(channel, callOptions);
703           }
704         };
705     return GrafeasV1Beta1BlockingStub.newStub(factory, channel);
706   }
707 
708   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)709   public static GrafeasV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) {
710     io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1FutureStub> factory =
711         new io.grpc.stub.AbstractStub.StubFactory<GrafeasV1Beta1FutureStub>() {
712           @java.lang.Override
713           public GrafeasV1Beta1FutureStub newStub(
714               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
715             return new GrafeasV1Beta1FutureStub(channel, callOptions);
716           }
717         };
718     return GrafeasV1Beta1FutureStub.newStub(factory, channel);
719   }
720 
721   /**
722    *
723    *
724    * <pre>
725    * [Grafeas](grafeas.io) API.
726    * Retrieves analysis results of Cloud components such as Docker container
727    * images.
728    * Analysis results are stored as a series of occurrences. An `Occurrence`
729    * contains information about a specific analysis instance on a resource. An
730    * occurrence refers to a `Note`. A note contains details describing the
731    * analysis and is generally stored in a separate project, called a `Provider`.
732    * Multiple occurrences can refer to the same note.
733    * For example, an SSL vulnerability could affect multiple images. In this case,
734    * there would be one note for the vulnerability and an occurrence for each
735    * image with the vulnerability referring to that note.
736    * </pre>
737    */
738   public abstract static class GrafeasV1Beta1ImplBase implements io.grpc.BindableService {
739 
740     /**
741      *
742      *
743      * <pre>
744      * Gets the specified occurrence.
745      * </pre>
746      */
getOccurrence( io.grafeas.v1beta1.GetOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)747     public void getOccurrence(
748         io.grafeas.v1beta1.GetOccurrenceRequest request,
749         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
750       asyncUnimplementedUnaryCall(getGetOccurrenceMethod(), responseObserver);
751     }
752 
753     /**
754      *
755      *
756      * <pre>
757      * Lists occurrences for the specified project.
758      * </pre>
759      */
listOccurrences( io.grafeas.v1beta1.ListOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListOccurrencesResponse> responseObserver)760     public void listOccurrences(
761         io.grafeas.v1beta1.ListOccurrencesRequest request,
762         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListOccurrencesResponse> responseObserver) {
763       asyncUnimplementedUnaryCall(getListOccurrencesMethod(), responseObserver);
764     }
765 
766     /**
767      *
768      *
769      * <pre>
770      * Deletes the specified occurrence. For example, use this method to delete an
771      * occurrence when the occurrence is no longer applicable for the given
772      * resource.
773      * </pre>
774      */
deleteOccurrence( io.grafeas.v1beta1.DeleteOccurrenceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)775     public void deleteOccurrence(
776         io.grafeas.v1beta1.DeleteOccurrenceRequest request,
777         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
778       asyncUnimplementedUnaryCall(getDeleteOccurrenceMethod(), responseObserver);
779     }
780 
781     /**
782      *
783      *
784      * <pre>
785      * Creates a new occurrence.
786      * </pre>
787      */
createOccurrence( io.grafeas.v1beta1.CreateOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)788     public void createOccurrence(
789         io.grafeas.v1beta1.CreateOccurrenceRequest request,
790         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
791       asyncUnimplementedUnaryCall(getCreateOccurrenceMethod(), responseObserver);
792     }
793 
794     /**
795      *
796      *
797      * <pre>
798      * Creates new occurrences in batch.
799      * </pre>
800      */
batchCreateOccurrences( io.grafeas.v1beta1.BatchCreateOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateOccurrencesResponse> responseObserver)801     public void batchCreateOccurrences(
802         io.grafeas.v1beta1.BatchCreateOccurrencesRequest request,
803         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
804             responseObserver) {
805       asyncUnimplementedUnaryCall(getBatchCreateOccurrencesMethod(), responseObserver);
806     }
807 
808     /**
809      *
810      *
811      * <pre>
812      * Updates the specified occurrence.
813      * </pre>
814      */
updateOccurrence( io.grafeas.v1beta1.UpdateOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)815     public void updateOccurrence(
816         io.grafeas.v1beta1.UpdateOccurrenceRequest request,
817         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
818       asyncUnimplementedUnaryCall(getUpdateOccurrenceMethod(), responseObserver);
819     }
820 
821     /**
822      *
823      *
824      * <pre>
825      * Gets the note attached to the specified occurrence. Consumer projects can
826      * use this method to get a note that belongs to a provider project.
827      * </pre>
828      */
getOccurrenceNote( io.grafeas.v1beta1.GetOccurrenceNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)829     public void getOccurrenceNote(
830         io.grafeas.v1beta1.GetOccurrenceNoteRequest request,
831         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
832       asyncUnimplementedUnaryCall(getGetOccurrenceNoteMethod(), responseObserver);
833     }
834 
835     /**
836      *
837      *
838      * <pre>
839      * Gets the specified note.
840      * </pre>
841      */
getNote( io.grafeas.v1beta1.GetNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)842     public void getNote(
843         io.grafeas.v1beta1.GetNoteRequest request,
844         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
845       asyncUnimplementedUnaryCall(getGetNoteMethod(), responseObserver);
846     }
847 
848     /**
849      *
850      *
851      * <pre>
852      * Lists notes for the specified project.
853      * </pre>
854      */
listNotes( io.grafeas.v1beta1.ListNotesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNotesResponse> responseObserver)855     public void listNotes(
856         io.grafeas.v1beta1.ListNotesRequest request,
857         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNotesResponse> responseObserver) {
858       asyncUnimplementedUnaryCall(getListNotesMethod(), responseObserver);
859     }
860 
861     /**
862      *
863      *
864      * <pre>
865      * Deletes the specified note.
866      * </pre>
867      */
deleteNote( io.grafeas.v1beta1.DeleteNoteRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)868     public void deleteNote(
869         io.grafeas.v1beta1.DeleteNoteRequest request,
870         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
871       asyncUnimplementedUnaryCall(getDeleteNoteMethod(), responseObserver);
872     }
873 
874     /**
875      *
876      *
877      * <pre>
878      * Creates a new note.
879      * </pre>
880      */
createNote( io.grafeas.v1beta1.CreateNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)881     public void createNote(
882         io.grafeas.v1beta1.CreateNoteRequest request,
883         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
884       asyncUnimplementedUnaryCall(getCreateNoteMethod(), responseObserver);
885     }
886 
887     /**
888      *
889      *
890      * <pre>
891      * Creates new notes in batch.
892      * </pre>
893      */
batchCreateNotes( io.grafeas.v1beta1.BatchCreateNotesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateNotesResponse> responseObserver)894     public void batchCreateNotes(
895         io.grafeas.v1beta1.BatchCreateNotesRequest request,
896         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateNotesResponse> responseObserver) {
897       asyncUnimplementedUnaryCall(getBatchCreateNotesMethod(), responseObserver);
898     }
899 
900     /**
901      *
902      *
903      * <pre>
904      * Updates the specified note.
905      * </pre>
906      */
updateNote( io.grafeas.v1beta1.UpdateNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)907     public void updateNote(
908         io.grafeas.v1beta1.UpdateNoteRequest request,
909         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
910       asyncUnimplementedUnaryCall(getUpdateNoteMethod(), responseObserver);
911     }
912 
913     /**
914      *
915      *
916      * <pre>
917      * Lists occurrences referencing the specified note. Provider projects can use
918      * this method to get all occurrences across consumer projects referencing the
919      * specified note.
920      * </pre>
921      */
listNoteOccurrences( io.grafeas.v1beta1.ListNoteOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNoteOccurrencesResponse> responseObserver)922     public void listNoteOccurrences(
923         io.grafeas.v1beta1.ListNoteOccurrencesRequest request,
924         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNoteOccurrencesResponse>
925             responseObserver) {
926       asyncUnimplementedUnaryCall(getListNoteOccurrencesMethod(), responseObserver);
927     }
928 
929     /**
930      *
931      *
932      * <pre>
933      * Gets a summary of the number and severity of occurrences.
934      * </pre>
935      */
getVulnerabilityOccurrencesSummary( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.VulnerabilityOccurrencesSummary> responseObserver)936     public void getVulnerabilityOccurrencesSummary(
937         io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request,
938         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
939             responseObserver) {
940       asyncUnimplementedUnaryCall(getGetVulnerabilityOccurrencesSummaryMethod(), responseObserver);
941     }
942 
943     @java.lang.Override
bindService()944     public final io.grpc.ServerServiceDefinition bindService() {
945       return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
946           .addMethod(
947               getGetOccurrenceMethod(),
948               asyncUnaryCall(
949                   new MethodHandlers<
950                       io.grafeas.v1beta1.GetOccurrenceRequest, io.grafeas.v1beta1.Occurrence>(
951                       this, METHODID_GET_OCCURRENCE)))
952           .addMethod(
953               getListOccurrencesMethod(),
954               asyncUnaryCall(
955                   new MethodHandlers<
956                       io.grafeas.v1beta1.ListOccurrencesRequest,
957                       io.grafeas.v1beta1.ListOccurrencesResponse>(this, METHODID_LIST_OCCURRENCES)))
958           .addMethod(
959               getDeleteOccurrenceMethod(),
960               asyncUnaryCall(
961                   new MethodHandlers<
962                       io.grafeas.v1beta1.DeleteOccurrenceRequest, com.google.protobuf.Empty>(
963                       this, METHODID_DELETE_OCCURRENCE)))
964           .addMethod(
965               getCreateOccurrenceMethod(),
966               asyncUnaryCall(
967                   new MethodHandlers<
968                       io.grafeas.v1beta1.CreateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>(
969                       this, METHODID_CREATE_OCCURRENCE)))
970           .addMethod(
971               getBatchCreateOccurrencesMethod(),
972               asyncUnaryCall(
973                   new MethodHandlers<
974                       io.grafeas.v1beta1.BatchCreateOccurrencesRequest,
975                       io.grafeas.v1beta1.BatchCreateOccurrencesResponse>(
976                       this, METHODID_BATCH_CREATE_OCCURRENCES)))
977           .addMethod(
978               getUpdateOccurrenceMethod(),
979               asyncUnaryCall(
980                   new MethodHandlers<
981                       io.grafeas.v1beta1.UpdateOccurrenceRequest, io.grafeas.v1beta1.Occurrence>(
982                       this, METHODID_UPDATE_OCCURRENCE)))
983           .addMethod(
984               getGetOccurrenceNoteMethod(),
985               asyncUnaryCall(
986                   new MethodHandlers<
987                       io.grafeas.v1beta1.GetOccurrenceNoteRequest, io.grafeas.v1beta1.Note>(
988                       this, METHODID_GET_OCCURRENCE_NOTE)))
989           .addMethod(
990               getGetNoteMethod(),
991               asyncUnaryCall(
992                   new MethodHandlers<io.grafeas.v1beta1.GetNoteRequest, io.grafeas.v1beta1.Note>(
993                       this, METHODID_GET_NOTE)))
994           .addMethod(
995               getListNotesMethod(),
996               asyncUnaryCall(
997                   new MethodHandlers<
998                       io.grafeas.v1beta1.ListNotesRequest, io.grafeas.v1beta1.ListNotesResponse>(
999                       this, METHODID_LIST_NOTES)))
1000           .addMethod(
1001               getDeleteNoteMethod(),
1002               asyncUnaryCall(
1003                   new MethodHandlers<
1004                       io.grafeas.v1beta1.DeleteNoteRequest, com.google.protobuf.Empty>(
1005                       this, METHODID_DELETE_NOTE)))
1006           .addMethod(
1007               getCreateNoteMethod(),
1008               asyncUnaryCall(
1009                   new MethodHandlers<io.grafeas.v1beta1.CreateNoteRequest, io.grafeas.v1beta1.Note>(
1010                       this, METHODID_CREATE_NOTE)))
1011           .addMethod(
1012               getBatchCreateNotesMethod(),
1013               asyncUnaryCall(
1014                   new MethodHandlers<
1015                       io.grafeas.v1beta1.BatchCreateNotesRequest,
1016                       io.grafeas.v1beta1.BatchCreateNotesResponse>(
1017                       this, METHODID_BATCH_CREATE_NOTES)))
1018           .addMethod(
1019               getUpdateNoteMethod(),
1020               asyncUnaryCall(
1021                   new MethodHandlers<io.grafeas.v1beta1.UpdateNoteRequest, io.grafeas.v1beta1.Note>(
1022                       this, METHODID_UPDATE_NOTE)))
1023           .addMethod(
1024               getListNoteOccurrencesMethod(),
1025               asyncUnaryCall(
1026                   new MethodHandlers<
1027                       io.grafeas.v1beta1.ListNoteOccurrencesRequest,
1028                       io.grafeas.v1beta1.ListNoteOccurrencesResponse>(
1029                       this, METHODID_LIST_NOTE_OCCURRENCES)))
1030           .addMethod(
1031               getGetVulnerabilityOccurrencesSummaryMethod(),
1032               asyncUnaryCall(
1033                   new MethodHandlers<
1034                       io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest,
1035                       io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>(
1036                       this, METHODID_GET_VULNERABILITY_OCCURRENCES_SUMMARY)))
1037           .build();
1038     }
1039   }
1040 
1041   /**
1042    *
1043    *
1044    * <pre>
1045    * [Grafeas](grafeas.io) API.
1046    * Retrieves analysis results of Cloud components such as Docker container
1047    * images.
1048    * Analysis results are stored as a series of occurrences. An `Occurrence`
1049    * contains information about a specific analysis instance on a resource. An
1050    * occurrence refers to a `Note`. A note contains details describing the
1051    * analysis and is generally stored in a separate project, called a `Provider`.
1052    * Multiple occurrences can refer to the same note.
1053    * For example, an SSL vulnerability could affect multiple images. In this case,
1054    * there would be one note for the vulnerability and an occurrence for each
1055    * image with the vulnerability referring to that note.
1056    * </pre>
1057    */
1058   public static final class GrafeasV1Beta1Stub
1059       extends io.grpc.stub.AbstractAsyncStub<GrafeasV1Beta1Stub> {
GrafeasV1Beta1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1060     private GrafeasV1Beta1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1061       super(channel, callOptions);
1062     }
1063 
1064     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1065     protected GrafeasV1Beta1Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1066       return new GrafeasV1Beta1Stub(channel, callOptions);
1067     }
1068 
1069     /**
1070      *
1071      *
1072      * <pre>
1073      * Gets the specified occurrence.
1074      * </pre>
1075      */
getOccurrence( io.grafeas.v1beta1.GetOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)1076     public void getOccurrence(
1077         io.grafeas.v1beta1.GetOccurrenceRequest request,
1078         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
1079       asyncUnaryCall(
1080           getChannel().newCall(getGetOccurrenceMethod(), getCallOptions()),
1081           request,
1082           responseObserver);
1083     }
1084 
1085     /**
1086      *
1087      *
1088      * <pre>
1089      * Lists occurrences for the specified project.
1090      * </pre>
1091      */
listOccurrences( io.grafeas.v1beta1.ListOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListOccurrencesResponse> responseObserver)1092     public void listOccurrences(
1093         io.grafeas.v1beta1.ListOccurrencesRequest request,
1094         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListOccurrencesResponse> responseObserver) {
1095       asyncUnaryCall(
1096           getChannel().newCall(getListOccurrencesMethod(), getCallOptions()),
1097           request,
1098           responseObserver);
1099     }
1100 
1101     /**
1102      *
1103      *
1104      * <pre>
1105      * Deletes the specified occurrence. For example, use this method to delete an
1106      * occurrence when the occurrence is no longer applicable for the given
1107      * resource.
1108      * </pre>
1109      */
deleteOccurrence( io.grafeas.v1beta1.DeleteOccurrenceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1110     public void deleteOccurrence(
1111         io.grafeas.v1beta1.DeleteOccurrenceRequest request,
1112         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1113       asyncUnaryCall(
1114           getChannel().newCall(getDeleteOccurrenceMethod(), getCallOptions()),
1115           request,
1116           responseObserver);
1117     }
1118 
1119     /**
1120      *
1121      *
1122      * <pre>
1123      * Creates a new occurrence.
1124      * </pre>
1125      */
createOccurrence( io.grafeas.v1beta1.CreateOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)1126     public void createOccurrence(
1127         io.grafeas.v1beta1.CreateOccurrenceRequest request,
1128         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
1129       asyncUnaryCall(
1130           getChannel().newCall(getCreateOccurrenceMethod(), getCallOptions()),
1131           request,
1132           responseObserver);
1133     }
1134 
1135     /**
1136      *
1137      *
1138      * <pre>
1139      * Creates new occurrences in batch.
1140      * </pre>
1141      */
batchCreateOccurrences( io.grafeas.v1beta1.BatchCreateOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateOccurrencesResponse> responseObserver)1142     public void batchCreateOccurrences(
1143         io.grafeas.v1beta1.BatchCreateOccurrencesRequest request,
1144         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
1145             responseObserver) {
1146       asyncUnaryCall(
1147           getChannel().newCall(getBatchCreateOccurrencesMethod(), getCallOptions()),
1148           request,
1149           responseObserver);
1150     }
1151 
1152     /**
1153      *
1154      *
1155      * <pre>
1156      * Updates the specified occurrence.
1157      * </pre>
1158      */
updateOccurrence( io.grafeas.v1beta1.UpdateOccurrenceRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver)1159     public void updateOccurrence(
1160         io.grafeas.v1beta1.UpdateOccurrenceRequest request,
1161         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence> responseObserver) {
1162       asyncUnaryCall(
1163           getChannel().newCall(getUpdateOccurrenceMethod(), getCallOptions()),
1164           request,
1165           responseObserver);
1166     }
1167 
1168     /**
1169      *
1170      *
1171      * <pre>
1172      * Gets the note attached to the specified occurrence. Consumer projects can
1173      * use this method to get a note that belongs to a provider project.
1174      * </pre>
1175      */
getOccurrenceNote( io.grafeas.v1beta1.GetOccurrenceNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)1176     public void getOccurrenceNote(
1177         io.grafeas.v1beta1.GetOccurrenceNoteRequest request,
1178         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
1179       asyncUnaryCall(
1180           getChannel().newCall(getGetOccurrenceNoteMethod(), getCallOptions()),
1181           request,
1182           responseObserver);
1183     }
1184 
1185     /**
1186      *
1187      *
1188      * <pre>
1189      * Gets the specified note.
1190      * </pre>
1191      */
getNote( io.grafeas.v1beta1.GetNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)1192     public void getNote(
1193         io.grafeas.v1beta1.GetNoteRequest request,
1194         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
1195       asyncUnaryCall(
1196           getChannel().newCall(getGetNoteMethod(), getCallOptions()), request, responseObserver);
1197     }
1198 
1199     /**
1200      *
1201      *
1202      * <pre>
1203      * Lists notes for the specified project.
1204      * </pre>
1205      */
listNotes( io.grafeas.v1beta1.ListNotesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNotesResponse> responseObserver)1206     public void listNotes(
1207         io.grafeas.v1beta1.ListNotesRequest request,
1208         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNotesResponse> responseObserver) {
1209       asyncUnaryCall(
1210           getChannel().newCall(getListNotesMethod(), getCallOptions()), request, responseObserver);
1211     }
1212 
1213     /**
1214      *
1215      *
1216      * <pre>
1217      * Deletes the specified note.
1218      * </pre>
1219      */
deleteNote( io.grafeas.v1beta1.DeleteNoteRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1220     public void deleteNote(
1221         io.grafeas.v1beta1.DeleteNoteRequest request,
1222         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1223       asyncUnaryCall(
1224           getChannel().newCall(getDeleteNoteMethod(), getCallOptions()), request, responseObserver);
1225     }
1226 
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * Creates a new note.
1232      * </pre>
1233      */
createNote( io.grafeas.v1beta1.CreateNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)1234     public void createNote(
1235         io.grafeas.v1beta1.CreateNoteRequest request,
1236         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
1237       asyncUnaryCall(
1238           getChannel().newCall(getCreateNoteMethod(), getCallOptions()), request, responseObserver);
1239     }
1240 
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Creates new notes in batch.
1246      * </pre>
1247      */
batchCreateNotes( io.grafeas.v1beta1.BatchCreateNotesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateNotesResponse> responseObserver)1248     public void batchCreateNotes(
1249         io.grafeas.v1beta1.BatchCreateNotesRequest request,
1250         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateNotesResponse> responseObserver) {
1251       asyncUnaryCall(
1252           getChannel().newCall(getBatchCreateNotesMethod(), getCallOptions()),
1253           request,
1254           responseObserver);
1255     }
1256 
1257     /**
1258      *
1259      *
1260      * <pre>
1261      * Updates the specified note.
1262      * </pre>
1263      */
updateNote( io.grafeas.v1beta1.UpdateNoteRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver)1264     public void updateNote(
1265         io.grafeas.v1beta1.UpdateNoteRequest request,
1266         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note> responseObserver) {
1267       asyncUnaryCall(
1268           getChannel().newCall(getUpdateNoteMethod(), getCallOptions()), request, responseObserver);
1269     }
1270 
1271     /**
1272      *
1273      *
1274      * <pre>
1275      * Lists occurrences referencing the specified note. Provider projects can use
1276      * this method to get all occurrences across consumer projects referencing the
1277      * specified note.
1278      * </pre>
1279      */
listNoteOccurrences( io.grafeas.v1beta1.ListNoteOccurrencesRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNoteOccurrencesResponse> responseObserver)1280     public void listNoteOccurrences(
1281         io.grafeas.v1beta1.ListNoteOccurrencesRequest request,
1282         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNoteOccurrencesResponse>
1283             responseObserver) {
1284       asyncUnaryCall(
1285           getChannel().newCall(getListNoteOccurrencesMethod(), getCallOptions()),
1286           request,
1287           responseObserver);
1288     }
1289 
1290     /**
1291      *
1292      *
1293      * <pre>
1294      * Gets a summary of the number and severity of occurrences.
1295      * </pre>
1296      */
getVulnerabilityOccurrencesSummary( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request, io.grpc.stub.StreamObserver<io.grafeas.v1beta1.VulnerabilityOccurrencesSummary> responseObserver)1297     public void getVulnerabilityOccurrencesSummary(
1298         io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request,
1299         io.grpc.stub.StreamObserver<io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
1300             responseObserver) {
1301       asyncUnaryCall(
1302           getChannel().newCall(getGetVulnerabilityOccurrencesSummaryMethod(), getCallOptions()),
1303           request,
1304           responseObserver);
1305     }
1306   }
1307 
1308   /**
1309    *
1310    *
1311    * <pre>
1312    * [Grafeas](grafeas.io) API.
1313    * Retrieves analysis results of Cloud components such as Docker container
1314    * images.
1315    * Analysis results are stored as a series of occurrences. An `Occurrence`
1316    * contains information about a specific analysis instance on a resource. An
1317    * occurrence refers to a `Note`. A note contains details describing the
1318    * analysis and is generally stored in a separate project, called a `Provider`.
1319    * Multiple occurrences can refer to the same note.
1320    * For example, an SSL vulnerability could affect multiple images. In this case,
1321    * there would be one note for the vulnerability and an occurrence for each
1322    * image with the vulnerability referring to that note.
1323    * </pre>
1324    */
1325   public static final class GrafeasV1Beta1BlockingStub
1326       extends io.grpc.stub.AbstractBlockingStub<GrafeasV1Beta1BlockingStub> {
GrafeasV1Beta1BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1327     private GrafeasV1Beta1BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1328       super(channel, callOptions);
1329     }
1330 
1331     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1332     protected GrafeasV1Beta1BlockingStub build(
1333         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1334       return new GrafeasV1Beta1BlockingStub(channel, callOptions);
1335     }
1336 
1337     /**
1338      *
1339      *
1340      * <pre>
1341      * Gets the specified occurrence.
1342      * </pre>
1343      */
getOccurrence( io.grafeas.v1beta1.GetOccurrenceRequest request)1344     public io.grafeas.v1beta1.Occurrence getOccurrence(
1345         io.grafeas.v1beta1.GetOccurrenceRequest request) {
1346       return blockingUnaryCall(getChannel(), getGetOccurrenceMethod(), getCallOptions(), request);
1347     }
1348 
1349     /**
1350      *
1351      *
1352      * <pre>
1353      * Lists occurrences for the specified project.
1354      * </pre>
1355      */
listOccurrences( io.grafeas.v1beta1.ListOccurrencesRequest request)1356     public io.grafeas.v1beta1.ListOccurrencesResponse listOccurrences(
1357         io.grafeas.v1beta1.ListOccurrencesRequest request) {
1358       return blockingUnaryCall(getChannel(), getListOccurrencesMethod(), getCallOptions(), request);
1359     }
1360 
1361     /**
1362      *
1363      *
1364      * <pre>
1365      * Deletes the specified occurrence. For example, use this method to delete an
1366      * occurrence when the occurrence is no longer applicable for the given
1367      * resource.
1368      * </pre>
1369      */
deleteOccurrence( io.grafeas.v1beta1.DeleteOccurrenceRequest request)1370     public com.google.protobuf.Empty deleteOccurrence(
1371         io.grafeas.v1beta1.DeleteOccurrenceRequest request) {
1372       return blockingUnaryCall(
1373           getChannel(), getDeleteOccurrenceMethod(), getCallOptions(), request);
1374     }
1375 
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * Creates a new occurrence.
1381      * </pre>
1382      */
createOccurrence( io.grafeas.v1beta1.CreateOccurrenceRequest request)1383     public io.grafeas.v1beta1.Occurrence createOccurrence(
1384         io.grafeas.v1beta1.CreateOccurrenceRequest request) {
1385       return blockingUnaryCall(
1386           getChannel(), getCreateOccurrenceMethod(), getCallOptions(), request);
1387     }
1388 
1389     /**
1390      *
1391      *
1392      * <pre>
1393      * Creates new occurrences in batch.
1394      * </pre>
1395      */
batchCreateOccurrences( io.grafeas.v1beta1.BatchCreateOccurrencesRequest request)1396     public io.grafeas.v1beta1.BatchCreateOccurrencesResponse batchCreateOccurrences(
1397         io.grafeas.v1beta1.BatchCreateOccurrencesRequest request) {
1398       return blockingUnaryCall(
1399           getChannel(), getBatchCreateOccurrencesMethod(), getCallOptions(), request);
1400     }
1401 
1402     /**
1403      *
1404      *
1405      * <pre>
1406      * Updates the specified occurrence.
1407      * </pre>
1408      */
updateOccurrence( io.grafeas.v1beta1.UpdateOccurrenceRequest request)1409     public io.grafeas.v1beta1.Occurrence updateOccurrence(
1410         io.grafeas.v1beta1.UpdateOccurrenceRequest request) {
1411       return blockingUnaryCall(
1412           getChannel(), getUpdateOccurrenceMethod(), getCallOptions(), request);
1413     }
1414 
1415     /**
1416      *
1417      *
1418      * <pre>
1419      * Gets the note attached to the specified occurrence. Consumer projects can
1420      * use this method to get a note that belongs to a provider project.
1421      * </pre>
1422      */
getOccurrenceNote( io.grafeas.v1beta1.GetOccurrenceNoteRequest request)1423     public io.grafeas.v1beta1.Note getOccurrenceNote(
1424         io.grafeas.v1beta1.GetOccurrenceNoteRequest request) {
1425       return blockingUnaryCall(
1426           getChannel(), getGetOccurrenceNoteMethod(), getCallOptions(), request);
1427     }
1428 
1429     /**
1430      *
1431      *
1432      * <pre>
1433      * Gets the specified note.
1434      * </pre>
1435      */
getNote(io.grafeas.v1beta1.GetNoteRequest request)1436     public io.grafeas.v1beta1.Note getNote(io.grafeas.v1beta1.GetNoteRequest request) {
1437       return blockingUnaryCall(getChannel(), getGetNoteMethod(), getCallOptions(), request);
1438     }
1439 
1440     /**
1441      *
1442      *
1443      * <pre>
1444      * Lists notes for the specified project.
1445      * </pre>
1446      */
listNotes( io.grafeas.v1beta1.ListNotesRequest request)1447     public io.grafeas.v1beta1.ListNotesResponse listNotes(
1448         io.grafeas.v1beta1.ListNotesRequest request) {
1449       return blockingUnaryCall(getChannel(), getListNotesMethod(), getCallOptions(), request);
1450     }
1451 
1452     /**
1453      *
1454      *
1455      * <pre>
1456      * Deletes the specified note.
1457      * </pre>
1458      */
deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request)1459     public com.google.protobuf.Empty deleteNote(io.grafeas.v1beta1.DeleteNoteRequest request) {
1460       return blockingUnaryCall(getChannel(), getDeleteNoteMethod(), getCallOptions(), request);
1461     }
1462 
1463     /**
1464      *
1465      *
1466      * <pre>
1467      * Creates a new note.
1468      * </pre>
1469      */
createNote(io.grafeas.v1beta1.CreateNoteRequest request)1470     public io.grafeas.v1beta1.Note createNote(io.grafeas.v1beta1.CreateNoteRequest request) {
1471       return blockingUnaryCall(getChannel(), getCreateNoteMethod(), getCallOptions(), request);
1472     }
1473 
1474     /**
1475      *
1476      *
1477      * <pre>
1478      * Creates new notes in batch.
1479      * </pre>
1480      */
batchCreateNotes( io.grafeas.v1beta1.BatchCreateNotesRequest request)1481     public io.grafeas.v1beta1.BatchCreateNotesResponse batchCreateNotes(
1482         io.grafeas.v1beta1.BatchCreateNotesRequest request) {
1483       return blockingUnaryCall(
1484           getChannel(), getBatchCreateNotesMethod(), getCallOptions(), request);
1485     }
1486 
1487     /**
1488      *
1489      *
1490      * <pre>
1491      * Updates the specified note.
1492      * </pre>
1493      */
updateNote(io.grafeas.v1beta1.UpdateNoteRequest request)1494     public io.grafeas.v1beta1.Note updateNote(io.grafeas.v1beta1.UpdateNoteRequest request) {
1495       return blockingUnaryCall(getChannel(), getUpdateNoteMethod(), getCallOptions(), request);
1496     }
1497 
1498     /**
1499      *
1500      *
1501      * <pre>
1502      * Lists occurrences referencing the specified note. Provider projects can use
1503      * this method to get all occurrences across consumer projects referencing the
1504      * specified note.
1505      * </pre>
1506      */
listNoteOccurrences( io.grafeas.v1beta1.ListNoteOccurrencesRequest request)1507     public io.grafeas.v1beta1.ListNoteOccurrencesResponse listNoteOccurrences(
1508         io.grafeas.v1beta1.ListNoteOccurrencesRequest request) {
1509       return blockingUnaryCall(
1510           getChannel(), getListNoteOccurrencesMethod(), getCallOptions(), request);
1511     }
1512 
1513     /**
1514      *
1515      *
1516      * <pre>
1517      * Gets a summary of the number and severity of occurrences.
1518      * </pre>
1519      */
getVulnerabilityOccurrencesSummary( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request)1520     public io.grafeas.v1beta1.VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
1521         io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request) {
1522       return blockingUnaryCall(
1523           getChannel(), getGetVulnerabilityOccurrencesSummaryMethod(), getCallOptions(), request);
1524     }
1525   }
1526 
1527   /**
1528    *
1529    *
1530    * <pre>
1531    * [Grafeas](grafeas.io) API.
1532    * Retrieves analysis results of Cloud components such as Docker container
1533    * images.
1534    * Analysis results are stored as a series of occurrences. An `Occurrence`
1535    * contains information about a specific analysis instance on a resource. An
1536    * occurrence refers to a `Note`. A note contains details describing the
1537    * analysis and is generally stored in a separate project, called a `Provider`.
1538    * Multiple occurrences can refer to the same note.
1539    * For example, an SSL vulnerability could affect multiple images. In this case,
1540    * there would be one note for the vulnerability and an occurrence for each
1541    * image with the vulnerability referring to that note.
1542    * </pre>
1543    */
1544   public static final class GrafeasV1Beta1FutureStub
1545       extends io.grpc.stub.AbstractFutureStub<GrafeasV1Beta1FutureStub> {
GrafeasV1Beta1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1546     private GrafeasV1Beta1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1547       super(channel, callOptions);
1548     }
1549 
1550     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)1551     protected GrafeasV1Beta1FutureStub build(
1552         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1553       return new GrafeasV1Beta1FutureStub(channel, callOptions);
1554     }
1555 
1556     /**
1557      *
1558      *
1559      * <pre>
1560      * Gets the specified occurrence.
1561      * </pre>
1562      */
1563     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Occurrence>
getOccurrence(io.grafeas.v1beta1.GetOccurrenceRequest request)1564         getOccurrence(io.grafeas.v1beta1.GetOccurrenceRequest request) {
1565       return futureUnaryCall(
1566           getChannel().newCall(getGetOccurrenceMethod(), getCallOptions()), request);
1567     }
1568 
1569     /**
1570      *
1571      *
1572      * <pre>
1573      * Lists occurrences for the specified project.
1574      * </pre>
1575      */
1576     public com.google.common.util.concurrent.ListenableFuture<
1577             io.grafeas.v1beta1.ListOccurrencesResponse>
listOccurrences(io.grafeas.v1beta1.ListOccurrencesRequest request)1578         listOccurrences(io.grafeas.v1beta1.ListOccurrencesRequest request) {
1579       return futureUnaryCall(
1580           getChannel().newCall(getListOccurrencesMethod(), getCallOptions()), request);
1581     }
1582 
1583     /**
1584      *
1585      *
1586      * <pre>
1587      * Deletes the specified occurrence. For example, use this method to delete an
1588      * occurrence when the occurrence is no longer applicable for the given
1589      * resource.
1590      * </pre>
1591      */
1592     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteOccurrence(io.grafeas.v1beta1.DeleteOccurrenceRequest request)1593         deleteOccurrence(io.grafeas.v1beta1.DeleteOccurrenceRequest request) {
1594       return futureUnaryCall(
1595           getChannel().newCall(getDeleteOccurrenceMethod(), getCallOptions()), request);
1596     }
1597 
1598     /**
1599      *
1600      *
1601      * <pre>
1602      * Creates a new occurrence.
1603      * </pre>
1604      */
1605     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Occurrence>
createOccurrence(io.grafeas.v1beta1.CreateOccurrenceRequest request)1606         createOccurrence(io.grafeas.v1beta1.CreateOccurrenceRequest request) {
1607       return futureUnaryCall(
1608           getChannel().newCall(getCreateOccurrenceMethod(), getCallOptions()), request);
1609     }
1610 
1611     /**
1612      *
1613      *
1614      * <pre>
1615      * Creates new occurrences in batch.
1616      * </pre>
1617      */
1618     public com.google.common.util.concurrent.ListenableFuture<
1619             io.grafeas.v1beta1.BatchCreateOccurrencesResponse>
batchCreateOccurrences(io.grafeas.v1beta1.BatchCreateOccurrencesRequest request)1620         batchCreateOccurrences(io.grafeas.v1beta1.BatchCreateOccurrencesRequest request) {
1621       return futureUnaryCall(
1622           getChannel().newCall(getBatchCreateOccurrencesMethod(), getCallOptions()), request);
1623     }
1624 
1625     /**
1626      *
1627      *
1628      * <pre>
1629      * Updates the specified occurrence.
1630      * </pre>
1631      */
1632     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Occurrence>
updateOccurrence(io.grafeas.v1beta1.UpdateOccurrenceRequest request)1633         updateOccurrence(io.grafeas.v1beta1.UpdateOccurrenceRequest request) {
1634       return futureUnaryCall(
1635           getChannel().newCall(getUpdateOccurrenceMethod(), getCallOptions()), request);
1636     }
1637 
1638     /**
1639      *
1640      *
1641      * <pre>
1642      * Gets the note attached to the specified occurrence. Consumer projects can
1643      * use this method to get a note that belongs to a provider project.
1644      * </pre>
1645      */
1646     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Note>
getOccurrenceNote(io.grafeas.v1beta1.GetOccurrenceNoteRequest request)1647         getOccurrenceNote(io.grafeas.v1beta1.GetOccurrenceNoteRequest request) {
1648       return futureUnaryCall(
1649           getChannel().newCall(getGetOccurrenceNoteMethod(), getCallOptions()), request);
1650     }
1651 
1652     /**
1653      *
1654      *
1655      * <pre>
1656      * Gets the specified note.
1657      * </pre>
1658      */
getNote( io.grafeas.v1beta1.GetNoteRequest request)1659     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Note> getNote(
1660         io.grafeas.v1beta1.GetNoteRequest request) {
1661       return futureUnaryCall(getChannel().newCall(getGetNoteMethod(), getCallOptions()), request);
1662     }
1663 
1664     /**
1665      *
1666      *
1667      * <pre>
1668      * Lists notes for the specified project.
1669      * </pre>
1670      */
1671     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.ListNotesResponse>
listNotes(io.grafeas.v1beta1.ListNotesRequest request)1672         listNotes(io.grafeas.v1beta1.ListNotesRequest request) {
1673       return futureUnaryCall(getChannel().newCall(getListNotesMethod(), getCallOptions()), request);
1674     }
1675 
1676     /**
1677      *
1678      *
1679      * <pre>
1680      * Deletes the specified note.
1681      * </pre>
1682      */
deleteNote( io.grafeas.v1beta1.DeleteNoteRequest request)1683     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteNote(
1684         io.grafeas.v1beta1.DeleteNoteRequest request) {
1685       return futureUnaryCall(
1686           getChannel().newCall(getDeleteNoteMethod(), getCallOptions()), request);
1687     }
1688 
1689     /**
1690      *
1691      *
1692      * <pre>
1693      * Creates a new note.
1694      * </pre>
1695      */
createNote( io.grafeas.v1beta1.CreateNoteRequest request)1696     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Note> createNote(
1697         io.grafeas.v1beta1.CreateNoteRequest request) {
1698       return futureUnaryCall(
1699           getChannel().newCall(getCreateNoteMethod(), getCallOptions()), request);
1700     }
1701 
1702     /**
1703      *
1704      *
1705      * <pre>
1706      * Creates new notes in batch.
1707      * </pre>
1708      */
1709     public com.google.common.util.concurrent.ListenableFuture<
1710             io.grafeas.v1beta1.BatchCreateNotesResponse>
batchCreateNotes(io.grafeas.v1beta1.BatchCreateNotesRequest request)1711         batchCreateNotes(io.grafeas.v1beta1.BatchCreateNotesRequest request) {
1712       return futureUnaryCall(
1713           getChannel().newCall(getBatchCreateNotesMethod(), getCallOptions()), request);
1714     }
1715 
1716     /**
1717      *
1718      *
1719      * <pre>
1720      * Updates the specified note.
1721      * </pre>
1722      */
updateNote( io.grafeas.v1beta1.UpdateNoteRequest request)1723     public com.google.common.util.concurrent.ListenableFuture<io.grafeas.v1beta1.Note> updateNote(
1724         io.grafeas.v1beta1.UpdateNoteRequest request) {
1725       return futureUnaryCall(
1726           getChannel().newCall(getUpdateNoteMethod(), getCallOptions()), request);
1727     }
1728 
1729     /**
1730      *
1731      *
1732      * <pre>
1733      * Lists occurrences referencing the specified note. Provider projects can use
1734      * this method to get all occurrences across consumer projects referencing the
1735      * specified note.
1736      * </pre>
1737      */
1738     public com.google.common.util.concurrent.ListenableFuture<
1739             io.grafeas.v1beta1.ListNoteOccurrencesResponse>
listNoteOccurrences(io.grafeas.v1beta1.ListNoteOccurrencesRequest request)1740         listNoteOccurrences(io.grafeas.v1beta1.ListNoteOccurrencesRequest request) {
1741       return futureUnaryCall(
1742           getChannel().newCall(getListNoteOccurrencesMethod(), getCallOptions()), request);
1743     }
1744 
1745     /**
1746      *
1747      *
1748      * <pre>
1749      * Gets a summary of the number and severity of occurrences.
1750      * </pre>
1751      */
1752     public com.google.common.util.concurrent.ListenableFuture<
1753             io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>
getVulnerabilityOccurrencesSummary( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request)1754         getVulnerabilityOccurrencesSummary(
1755             io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest request) {
1756       return futureUnaryCall(
1757           getChannel().newCall(getGetVulnerabilityOccurrencesSummaryMethod(), getCallOptions()),
1758           request);
1759     }
1760   }
1761 
1762   private static final int METHODID_GET_OCCURRENCE = 0;
1763   private static final int METHODID_LIST_OCCURRENCES = 1;
1764   private static final int METHODID_DELETE_OCCURRENCE = 2;
1765   private static final int METHODID_CREATE_OCCURRENCE = 3;
1766   private static final int METHODID_BATCH_CREATE_OCCURRENCES = 4;
1767   private static final int METHODID_UPDATE_OCCURRENCE = 5;
1768   private static final int METHODID_GET_OCCURRENCE_NOTE = 6;
1769   private static final int METHODID_GET_NOTE = 7;
1770   private static final int METHODID_LIST_NOTES = 8;
1771   private static final int METHODID_DELETE_NOTE = 9;
1772   private static final int METHODID_CREATE_NOTE = 10;
1773   private static final int METHODID_BATCH_CREATE_NOTES = 11;
1774   private static final int METHODID_UPDATE_NOTE = 12;
1775   private static final int METHODID_LIST_NOTE_OCCURRENCES = 13;
1776   private static final int METHODID_GET_VULNERABILITY_OCCURRENCES_SUMMARY = 14;
1777 
1778   private static final class MethodHandlers<Req, Resp>
1779       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
1780           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
1781           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
1782           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
1783     private final GrafeasV1Beta1ImplBase serviceImpl;
1784     private final int methodId;
1785 
MethodHandlers(GrafeasV1Beta1ImplBase serviceImpl, int methodId)1786     MethodHandlers(GrafeasV1Beta1ImplBase serviceImpl, int methodId) {
1787       this.serviceImpl = serviceImpl;
1788       this.methodId = methodId;
1789     }
1790 
1791     @java.lang.Override
1792     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)1793     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
1794       switch (methodId) {
1795         case METHODID_GET_OCCURRENCE:
1796           serviceImpl.getOccurrence(
1797               (io.grafeas.v1beta1.GetOccurrenceRequest) request,
1798               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence>) responseObserver);
1799           break;
1800         case METHODID_LIST_OCCURRENCES:
1801           serviceImpl.listOccurrences(
1802               (io.grafeas.v1beta1.ListOccurrencesRequest) request,
1803               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListOccurrencesResponse>)
1804                   responseObserver);
1805           break;
1806         case METHODID_DELETE_OCCURRENCE:
1807           serviceImpl.deleteOccurrence(
1808               (io.grafeas.v1beta1.DeleteOccurrenceRequest) request,
1809               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
1810           break;
1811         case METHODID_CREATE_OCCURRENCE:
1812           serviceImpl.createOccurrence(
1813               (io.grafeas.v1beta1.CreateOccurrenceRequest) request,
1814               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence>) responseObserver);
1815           break;
1816         case METHODID_BATCH_CREATE_OCCURRENCES:
1817           serviceImpl.batchCreateOccurrences(
1818               (io.grafeas.v1beta1.BatchCreateOccurrencesRequest) request,
1819               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateOccurrencesResponse>)
1820                   responseObserver);
1821           break;
1822         case METHODID_UPDATE_OCCURRENCE:
1823           serviceImpl.updateOccurrence(
1824               (io.grafeas.v1beta1.UpdateOccurrenceRequest) request,
1825               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Occurrence>) responseObserver);
1826           break;
1827         case METHODID_GET_OCCURRENCE_NOTE:
1828           serviceImpl.getOccurrenceNote(
1829               (io.grafeas.v1beta1.GetOccurrenceNoteRequest) request,
1830               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note>) responseObserver);
1831           break;
1832         case METHODID_GET_NOTE:
1833           serviceImpl.getNote(
1834               (io.grafeas.v1beta1.GetNoteRequest) request,
1835               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note>) responseObserver);
1836           break;
1837         case METHODID_LIST_NOTES:
1838           serviceImpl.listNotes(
1839               (io.grafeas.v1beta1.ListNotesRequest) request,
1840               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNotesResponse>) responseObserver);
1841           break;
1842         case METHODID_DELETE_NOTE:
1843           serviceImpl.deleteNote(
1844               (io.grafeas.v1beta1.DeleteNoteRequest) request,
1845               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
1846           break;
1847         case METHODID_CREATE_NOTE:
1848           serviceImpl.createNote(
1849               (io.grafeas.v1beta1.CreateNoteRequest) request,
1850               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note>) responseObserver);
1851           break;
1852         case METHODID_BATCH_CREATE_NOTES:
1853           serviceImpl.batchCreateNotes(
1854               (io.grafeas.v1beta1.BatchCreateNotesRequest) request,
1855               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.BatchCreateNotesResponse>)
1856                   responseObserver);
1857           break;
1858         case METHODID_UPDATE_NOTE:
1859           serviceImpl.updateNote(
1860               (io.grafeas.v1beta1.UpdateNoteRequest) request,
1861               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.Note>) responseObserver);
1862           break;
1863         case METHODID_LIST_NOTE_OCCURRENCES:
1864           serviceImpl.listNoteOccurrences(
1865               (io.grafeas.v1beta1.ListNoteOccurrencesRequest) request,
1866               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.ListNoteOccurrencesResponse>)
1867                   responseObserver);
1868           break;
1869         case METHODID_GET_VULNERABILITY_OCCURRENCES_SUMMARY:
1870           serviceImpl.getVulnerabilityOccurrencesSummary(
1871               (io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) request,
1872               (io.grpc.stub.StreamObserver<io.grafeas.v1beta1.VulnerabilityOccurrencesSummary>)
1873                   responseObserver);
1874           break;
1875         default:
1876           throw new AssertionError();
1877       }
1878     }
1879 
1880     @java.lang.Override
1881     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)1882     public io.grpc.stub.StreamObserver<Req> invoke(
1883         io.grpc.stub.StreamObserver<Resp> responseObserver) {
1884       switch (methodId) {
1885         default:
1886           throw new AssertionError();
1887       }
1888     }
1889   }
1890 
1891   private abstract static class GrafeasV1Beta1BaseDescriptorSupplier
1892       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
1893           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
GrafeasV1Beta1BaseDescriptorSupplier()1894     GrafeasV1Beta1BaseDescriptorSupplier() {}
1895 
1896     @java.lang.Override
getFileDescriptor()1897     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
1898       return io.grafeas.v1beta1.Grafeas.getDescriptor();
1899     }
1900 
1901     @java.lang.Override
getServiceDescriptor()1902     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
1903       return getFileDescriptor().findServiceByName("GrafeasV1Beta1");
1904     }
1905   }
1906 
1907   private static final class GrafeasV1Beta1FileDescriptorSupplier
1908       extends GrafeasV1Beta1BaseDescriptorSupplier {
GrafeasV1Beta1FileDescriptorSupplier()1909     GrafeasV1Beta1FileDescriptorSupplier() {}
1910   }
1911 
1912   private static final class GrafeasV1Beta1MethodDescriptorSupplier
1913       extends GrafeasV1Beta1BaseDescriptorSupplier
1914       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
1915     private final String methodName;
1916 
GrafeasV1Beta1MethodDescriptorSupplier(String methodName)1917     GrafeasV1Beta1MethodDescriptorSupplier(String methodName) {
1918       this.methodName = methodName;
1919     }
1920 
1921     @java.lang.Override
getMethodDescriptor()1922     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
1923       return getServiceDescriptor().findMethodByName(methodName);
1924     }
1925   }
1926 
1927   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
1928 
getServiceDescriptor()1929   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
1930     io.grpc.ServiceDescriptor result = serviceDescriptor;
1931     if (result == null) {
1932       synchronized (GrafeasV1Beta1Grpc.class) {
1933         result = serviceDescriptor;
1934         if (result == null) {
1935           serviceDescriptor =
1936               result =
1937                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
1938                       .setSchemaDescriptor(new GrafeasV1Beta1FileDescriptorSupplier())
1939                       .addMethod(getGetOccurrenceMethod())
1940                       .addMethod(getListOccurrencesMethod())
1941                       .addMethod(getDeleteOccurrenceMethod())
1942                       .addMethod(getCreateOccurrenceMethod())
1943                       .addMethod(getBatchCreateOccurrencesMethod())
1944                       .addMethod(getUpdateOccurrenceMethod())
1945                       .addMethod(getGetOccurrenceNoteMethod())
1946                       .addMethod(getGetNoteMethod())
1947                       .addMethod(getListNotesMethod())
1948                       .addMethod(getDeleteNoteMethod())
1949                       .addMethod(getCreateNoteMethod())
1950                       .addMethod(getBatchCreateNotesMethod())
1951                       .addMethod(getUpdateNoteMethod())
1952                       .addMethod(getListNoteOccurrencesMethod())
1953                       .addMethod(getGetVulnerabilityOccurrencesSummaryMethod())
1954                       .build();
1955         }
1956       }
1957     }
1958     return result;
1959   }
1960 }
1961