• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.cloud.talent.v4;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 
20 /**
21  *
22  *
23  * <pre>
24  * A service handles job management, including job CRUD, enumeration and search.
25  * </pre>
26  */
27 @javax.annotation.Generated(
28     value = "by gRPC proto compiler",
29     comments = "Source: google/cloud/talent/v4/job_service.proto")
30 @io.grpc.stub.annotations.GrpcGenerated
31 public final class JobServiceGrpc {
32 
JobServiceGrpc()33   private JobServiceGrpc() {}
34 
35   public static final String SERVICE_NAME = "google.cloud.talent.v4.JobService";
36 
37   // Static method descriptors that strictly reflect the proto.
38   private static volatile io.grpc.MethodDescriptor<
39           com.google.cloud.talent.v4.CreateJobRequest, com.google.cloud.talent.v4.Job>
40       getCreateJobMethod;
41 
42   @io.grpc.stub.annotations.RpcMethod(
43       fullMethodName = SERVICE_NAME + '/' + "CreateJob",
44       requestType = com.google.cloud.talent.v4.CreateJobRequest.class,
45       responseType = com.google.cloud.talent.v4.Job.class,
46       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
47   public static io.grpc.MethodDescriptor<
48           com.google.cloud.talent.v4.CreateJobRequest, com.google.cloud.talent.v4.Job>
getCreateJobMethod()49       getCreateJobMethod() {
50     io.grpc.MethodDescriptor<
51             com.google.cloud.talent.v4.CreateJobRequest, com.google.cloud.talent.v4.Job>
52         getCreateJobMethod;
53     if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) {
54       synchronized (JobServiceGrpc.class) {
55         if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) {
56           JobServiceGrpc.getCreateJobMethod =
57               getCreateJobMethod =
58                   io.grpc.MethodDescriptor
59                       .<com.google.cloud.talent.v4.CreateJobRequest, com.google.cloud.talent.v4.Job>
60                           newBuilder()
61                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
62                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateJob"))
63                       .setSampledToLocalTracing(true)
64                       .setRequestMarshaller(
65                           io.grpc.protobuf.ProtoUtils.marshaller(
66                               com.google.cloud.talent.v4.CreateJobRequest.getDefaultInstance()))
67                       .setResponseMarshaller(
68                           io.grpc.protobuf.ProtoUtils.marshaller(
69                               com.google.cloud.talent.v4.Job.getDefaultInstance()))
70                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("CreateJob"))
71                       .build();
72         }
73       }
74     }
75     return getCreateJobMethod;
76   }
77 
78   private static volatile io.grpc.MethodDescriptor<
79           com.google.cloud.talent.v4.BatchCreateJobsRequest, com.google.longrunning.Operation>
80       getBatchCreateJobsMethod;
81 
82   @io.grpc.stub.annotations.RpcMethod(
83       fullMethodName = SERVICE_NAME + '/' + "BatchCreateJobs",
84       requestType = com.google.cloud.talent.v4.BatchCreateJobsRequest.class,
85       responseType = com.google.longrunning.Operation.class,
86       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
87   public static io.grpc.MethodDescriptor<
88           com.google.cloud.talent.v4.BatchCreateJobsRequest, com.google.longrunning.Operation>
getBatchCreateJobsMethod()89       getBatchCreateJobsMethod() {
90     io.grpc.MethodDescriptor<
91             com.google.cloud.talent.v4.BatchCreateJobsRequest, com.google.longrunning.Operation>
92         getBatchCreateJobsMethod;
93     if ((getBatchCreateJobsMethod = JobServiceGrpc.getBatchCreateJobsMethod) == null) {
94       synchronized (JobServiceGrpc.class) {
95         if ((getBatchCreateJobsMethod = JobServiceGrpc.getBatchCreateJobsMethod) == null) {
96           JobServiceGrpc.getBatchCreateJobsMethod =
97               getBatchCreateJobsMethod =
98                   io.grpc.MethodDescriptor
99                       .<com.google.cloud.talent.v4.BatchCreateJobsRequest,
100                           com.google.longrunning.Operation>
101                           newBuilder()
102                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
103                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateJobs"))
104                       .setSampledToLocalTracing(true)
105                       .setRequestMarshaller(
106                           io.grpc.protobuf.ProtoUtils.marshaller(
107                               com.google.cloud.talent.v4.BatchCreateJobsRequest
108                                   .getDefaultInstance()))
109                       .setResponseMarshaller(
110                           io.grpc.protobuf.ProtoUtils.marshaller(
111                               com.google.longrunning.Operation.getDefaultInstance()))
112                       .setSchemaDescriptor(
113                           new JobServiceMethodDescriptorSupplier("BatchCreateJobs"))
114                       .build();
115         }
116       }
117     }
118     return getBatchCreateJobsMethod;
119   }
120 
121   private static volatile io.grpc.MethodDescriptor<
122           com.google.cloud.talent.v4.GetJobRequest, com.google.cloud.talent.v4.Job>
123       getGetJobMethod;
124 
125   @io.grpc.stub.annotations.RpcMethod(
126       fullMethodName = SERVICE_NAME + '/' + "GetJob",
127       requestType = com.google.cloud.talent.v4.GetJobRequest.class,
128       responseType = com.google.cloud.talent.v4.Job.class,
129       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
130   public static io.grpc.MethodDescriptor<
131           com.google.cloud.talent.v4.GetJobRequest, com.google.cloud.talent.v4.Job>
getGetJobMethod()132       getGetJobMethod() {
133     io.grpc.MethodDescriptor<
134             com.google.cloud.talent.v4.GetJobRequest, com.google.cloud.talent.v4.Job>
135         getGetJobMethod;
136     if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) {
137       synchronized (JobServiceGrpc.class) {
138         if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) {
139           JobServiceGrpc.getGetJobMethod =
140               getGetJobMethod =
141                   io.grpc.MethodDescriptor
142                       .<com.google.cloud.talent.v4.GetJobRequest, com.google.cloud.talent.v4.Job>
143                           newBuilder()
144                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
145                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob"))
146                       .setSampledToLocalTracing(true)
147                       .setRequestMarshaller(
148                           io.grpc.protobuf.ProtoUtils.marshaller(
149                               com.google.cloud.talent.v4.GetJobRequest.getDefaultInstance()))
150                       .setResponseMarshaller(
151                           io.grpc.protobuf.ProtoUtils.marshaller(
152                               com.google.cloud.talent.v4.Job.getDefaultInstance()))
153                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("GetJob"))
154                       .build();
155         }
156       }
157     }
158     return getGetJobMethod;
159   }
160 
161   private static volatile io.grpc.MethodDescriptor<
162           com.google.cloud.talent.v4.UpdateJobRequest, com.google.cloud.talent.v4.Job>
163       getUpdateJobMethod;
164 
165   @io.grpc.stub.annotations.RpcMethod(
166       fullMethodName = SERVICE_NAME + '/' + "UpdateJob",
167       requestType = com.google.cloud.talent.v4.UpdateJobRequest.class,
168       responseType = com.google.cloud.talent.v4.Job.class,
169       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
170   public static io.grpc.MethodDescriptor<
171           com.google.cloud.talent.v4.UpdateJobRequest, com.google.cloud.talent.v4.Job>
getUpdateJobMethod()172       getUpdateJobMethod() {
173     io.grpc.MethodDescriptor<
174             com.google.cloud.talent.v4.UpdateJobRequest, com.google.cloud.talent.v4.Job>
175         getUpdateJobMethod;
176     if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) {
177       synchronized (JobServiceGrpc.class) {
178         if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) {
179           JobServiceGrpc.getUpdateJobMethod =
180               getUpdateJobMethod =
181                   io.grpc.MethodDescriptor
182                       .<com.google.cloud.talent.v4.UpdateJobRequest, com.google.cloud.talent.v4.Job>
183                           newBuilder()
184                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
185                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob"))
186                       .setSampledToLocalTracing(true)
187                       .setRequestMarshaller(
188                           io.grpc.protobuf.ProtoUtils.marshaller(
189                               com.google.cloud.talent.v4.UpdateJobRequest.getDefaultInstance()))
190                       .setResponseMarshaller(
191                           io.grpc.protobuf.ProtoUtils.marshaller(
192                               com.google.cloud.talent.v4.Job.getDefaultInstance()))
193                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("UpdateJob"))
194                       .build();
195         }
196       }
197     }
198     return getUpdateJobMethod;
199   }
200 
201   private static volatile io.grpc.MethodDescriptor<
202           com.google.cloud.talent.v4.BatchUpdateJobsRequest, com.google.longrunning.Operation>
203       getBatchUpdateJobsMethod;
204 
205   @io.grpc.stub.annotations.RpcMethod(
206       fullMethodName = SERVICE_NAME + '/' + "BatchUpdateJobs",
207       requestType = com.google.cloud.talent.v4.BatchUpdateJobsRequest.class,
208       responseType = com.google.longrunning.Operation.class,
209       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
210   public static io.grpc.MethodDescriptor<
211           com.google.cloud.talent.v4.BatchUpdateJobsRequest, com.google.longrunning.Operation>
getBatchUpdateJobsMethod()212       getBatchUpdateJobsMethod() {
213     io.grpc.MethodDescriptor<
214             com.google.cloud.talent.v4.BatchUpdateJobsRequest, com.google.longrunning.Operation>
215         getBatchUpdateJobsMethod;
216     if ((getBatchUpdateJobsMethod = JobServiceGrpc.getBatchUpdateJobsMethod) == null) {
217       synchronized (JobServiceGrpc.class) {
218         if ((getBatchUpdateJobsMethod = JobServiceGrpc.getBatchUpdateJobsMethod) == null) {
219           JobServiceGrpc.getBatchUpdateJobsMethod =
220               getBatchUpdateJobsMethod =
221                   io.grpc.MethodDescriptor
222                       .<com.google.cloud.talent.v4.BatchUpdateJobsRequest,
223                           com.google.longrunning.Operation>
224                           newBuilder()
225                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
226                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateJobs"))
227                       .setSampledToLocalTracing(true)
228                       .setRequestMarshaller(
229                           io.grpc.protobuf.ProtoUtils.marshaller(
230                               com.google.cloud.talent.v4.BatchUpdateJobsRequest
231                                   .getDefaultInstance()))
232                       .setResponseMarshaller(
233                           io.grpc.protobuf.ProtoUtils.marshaller(
234                               com.google.longrunning.Operation.getDefaultInstance()))
235                       .setSchemaDescriptor(
236                           new JobServiceMethodDescriptorSupplier("BatchUpdateJobs"))
237                       .build();
238         }
239       }
240     }
241     return getBatchUpdateJobsMethod;
242   }
243 
244   private static volatile io.grpc.MethodDescriptor<
245           com.google.cloud.talent.v4.DeleteJobRequest, com.google.protobuf.Empty>
246       getDeleteJobMethod;
247 
248   @io.grpc.stub.annotations.RpcMethod(
249       fullMethodName = SERVICE_NAME + '/' + "DeleteJob",
250       requestType = com.google.cloud.talent.v4.DeleteJobRequest.class,
251       responseType = com.google.protobuf.Empty.class,
252       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
253   public static io.grpc.MethodDescriptor<
254           com.google.cloud.talent.v4.DeleteJobRequest, com.google.protobuf.Empty>
getDeleteJobMethod()255       getDeleteJobMethod() {
256     io.grpc.MethodDescriptor<com.google.cloud.talent.v4.DeleteJobRequest, com.google.protobuf.Empty>
257         getDeleteJobMethod;
258     if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) {
259       synchronized (JobServiceGrpc.class) {
260         if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) {
261           JobServiceGrpc.getDeleteJobMethod =
262               getDeleteJobMethod =
263                   io.grpc.MethodDescriptor
264                       .<com.google.cloud.talent.v4.DeleteJobRequest, com.google.protobuf.Empty>
265                           newBuilder()
266                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
267                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob"))
268                       .setSampledToLocalTracing(true)
269                       .setRequestMarshaller(
270                           io.grpc.protobuf.ProtoUtils.marshaller(
271                               com.google.cloud.talent.v4.DeleteJobRequest.getDefaultInstance()))
272                       .setResponseMarshaller(
273                           io.grpc.protobuf.ProtoUtils.marshaller(
274                               com.google.protobuf.Empty.getDefaultInstance()))
275                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("DeleteJob"))
276                       .build();
277         }
278       }
279     }
280     return getDeleteJobMethod;
281   }
282 
283   private static volatile io.grpc.MethodDescriptor<
284           com.google.cloud.talent.v4.BatchDeleteJobsRequest, com.google.longrunning.Operation>
285       getBatchDeleteJobsMethod;
286 
287   @io.grpc.stub.annotations.RpcMethod(
288       fullMethodName = SERVICE_NAME + '/' + "BatchDeleteJobs",
289       requestType = com.google.cloud.talent.v4.BatchDeleteJobsRequest.class,
290       responseType = com.google.longrunning.Operation.class,
291       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
292   public static io.grpc.MethodDescriptor<
293           com.google.cloud.talent.v4.BatchDeleteJobsRequest, com.google.longrunning.Operation>
getBatchDeleteJobsMethod()294       getBatchDeleteJobsMethod() {
295     io.grpc.MethodDescriptor<
296             com.google.cloud.talent.v4.BatchDeleteJobsRequest, com.google.longrunning.Operation>
297         getBatchDeleteJobsMethod;
298     if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) {
299       synchronized (JobServiceGrpc.class) {
300         if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) {
301           JobServiceGrpc.getBatchDeleteJobsMethod =
302               getBatchDeleteJobsMethod =
303                   io.grpc.MethodDescriptor
304                       .<com.google.cloud.talent.v4.BatchDeleteJobsRequest,
305                           com.google.longrunning.Operation>
306                           newBuilder()
307                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
308                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteJobs"))
309                       .setSampledToLocalTracing(true)
310                       .setRequestMarshaller(
311                           io.grpc.protobuf.ProtoUtils.marshaller(
312                               com.google.cloud.talent.v4.BatchDeleteJobsRequest
313                                   .getDefaultInstance()))
314                       .setResponseMarshaller(
315                           io.grpc.protobuf.ProtoUtils.marshaller(
316                               com.google.longrunning.Operation.getDefaultInstance()))
317                       .setSchemaDescriptor(
318                           new JobServiceMethodDescriptorSupplier("BatchDeleteJobs"))
319                       .build();
320         }
321       }
322     }
323     return getBatchDeleteJobsMethod;
324   }
325 
326   private static volatile io.grpc.MethodDescriptor<
327           com.google.cloud.talent.v4.ListJobsRequest, com.google.cloud.talent.v4.ListJobsResponse>
328       getListJobsMethod;
329 
330   @io.grpc.stub.annotations.RpcMethod(
331       fullMethodName = SERVICE_NAME + '/' + "ListJobs",
332       requestType = com.google.cloud.talent.v4.ListJobsRequest.class,
333       responseType = com.google.cloud.talent.v4.ListJobsResponse.class,
334       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
335   public static io.grpc.MethodDescriptor<
336           com.google.cloud.talent.v4.ListJobsRequest, com.google.cloud.talent.v4.ListJobsResponse>
getListJobsMethod()337       getListJobsMethod() {
338     io.grpc.MethodDescriptor<
339             com.google.cloud.talent.v4.ListJobsRequest, com.google.cloud.talent.v4.ListJobsResponse>
340         getListJobsMethod;
341     if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) {
342       synchronized (JobServiceGrpc.class) {
343         if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) {
344           JobServiceGrpc.getListJobsMethod =
345               getListJobsMethod =
346                   io.grpc.MethodDescriptor
347                       .<com.google.cloud.talent.v4.ListJobsRequest,
348                           com.google.cloud.talent.v4.ListJobsResponse>
349                           newBuilder()
350                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
351                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs"))
352                       .setSampledToLocalTracing(true)
353                       .setRequestMarshaller(
354                           io.grpc.protobuf.ProtoUtils.marshaller(
355                               com.google.cloud.talent.v4.ListJobsRequest.getDefaultInstance()))
356                       .setResponseMarshaller(
357                           io.grpc.protobuf.ProtoUtils.marshaller(
358                               com.google.cloud.talent.v4.ListJobsResponse.getDefaultInstance()))
359                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("ListJobs"))
360                       .build();
361         }
362       }
363     }
364     return getListJobsMethod;
365   }
366 
367   private static volatile io.grpc.MethodDescriptor<
368           com.google.cloud.talent.v4.SearchJobsRequest,
369           com.google.cloud.talent.v4.SearchJobsResponse>
370       getSearchJobsMethod;
371 
372   @io.grpc.stub.annotations.RpcMethod(
373       fullMethodName = SERVICE_NAME + '/' + "SearchJobs",
374       requestType = com.google.cloud.talent.v4.SearchJobsRequest.class,
375       responseType = com.google.cloud.talent.v4.SearchJobsResponse.class,
376       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
377   public static io.grpc.MethodDescriptor<
378           com.google.cloud.talent.v4.SearchJobsRequest,
379           com.google.cloud.talent.v4.SearchJobsResponse>
getSearchJobsMethod()380       getSearchJobsMethod() {
381     io.grpc.MethodDescriptor<
382             com.google.cloud.talent.v4.SearchJobsRequest,
383             com.google.cloud.talent.v4.SearchJobsResponse>
384         getSearchJobsMethod;
385     if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) {
386       synchronized (JobServiceGrpc.class) {
387         if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) {
388           JobServiceGrpc.getSearchJobsMethod =
389               getSearchJobsMethod =
390                   io.grpc.MethodDescriptor
391                       .<com.google.cloud.talent.v4.SearchJobsRequest,
392                           com.google.cloud.talent.v4.SearchJobsResponse>
393                           newBuilder()
394                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
395                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchJobs"))
396                       .setSampledToLocalTracing(true)
397                       .setRequestMarshaller(
398                           io.grpc.protobuf.ProtoUtils.marshaller(
399                               com.google.cloud.talent.v4.SearchJobsRequest.getDefaultInstance()))
400                       .setResponseMarshaller(
401                           io.grpc.protobuf.ProtoUtils.marshaller(
402                               com.google.cloud.talent.v4.SearchJobsResponse.getDefaultInstance()))
403                       .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("SearchJobs"))
404                       .build();
405         }
406       }
407     }
408     return getSearchJobsMethod;
409   }
410 
411   private static volatile io.grpc.MethodDescriptor<
412           com.google.cloud.talent.v4.SearchJobsRequest,
413           com.google.cloud.talent.v4.SearchJobsResponse>
414       getSearchJobsForAlertMethod;
415 
416   @io.grpc.stub.annotations.RpcMethod(
417       fullMethodName = SERVICE_NAME + '/' + "SearchJobsForAlert",
418       requestType = com.google.cloud.talent.v4.SearchJobsRequest.class,
419       responseType = com.google.cloud.talent.v4.SearchJobsResponse.class,
420       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
421   public static io.grpc.MethodDescriptor<
422           com.google.cloud.talent.v4.SearchJobsRequest,
423           com.google.cloud.talent.v4.SearchJobsResponse>
getSearchJobsForAlertMethod()424       getSearchJobsForAlertMethod() {
425     io.grpc.MethodDescriptor<
426             com.google.cloud.talent.v4.SearchJobsRequest,
427             com.google.cloud.talent.v4.SearchJobsResponse>
428         getSearchJobsForAlertMethod;
429     if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) {
430       synchronized (JobServiceGrpc.class) {
431         if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) {
432           JobServiceGrpc.getSearchJobsForAlertMethod =
433               getSearchJobsForAlertMethod =
434                   io.grpc.MethodDescriptor
435                       .<com.google.cloud.talent.v4.SearchJobsRequest,
436                           com.google.cloud.talent.v4.SearchJobsResponse>
437                           newBuilder()
438                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
439                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchJobsForAlert"))
440                       .setSampledToLocalTracing(true)
441                       .setRequestMarshaller(
442                           io.grpc.protobuf.ProtoUtils.marshaller(
443                               com.google.cloud.talent.v4.SearchJobsRequest.getDefaultInstance()))
444                       .setResponseMarshaller(
445                           io.grpc.protobuf.ProtoUtils.marshaller(
446                               com.google.cloud.talent.v4.SearchJobsResponse.getDefaultInstance()))
447                       .setSchemaDescriptor(
448                           new JobServiceMethodDescriptorSupplier("SearchJobsForAlert"))
449                       .build();
450         }
451       }
452     }
453     return getSearchJobsForAlertMethod;
454   }
455 
456   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)457   public static JobServiceStub newStub(io.grpc.Channel channel) {
458     io.grpc.stub.AbstractStub.StubFactory<JobServiceStub> factory =
459         new io.grpc.stub.AbstractStub.StubFactory<JobServiceStub>() {
460           @java.lang.Override
461           public JobServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
462             return new JobServiceStub(channel, callOptions);
463           }
464         };
465     return JobServiceStub.newStub(factory, channel);
466   }
467 
468   /**
469    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
470    */
newBlockingStub(io.grpc.Channel channel)471   public static JobServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
472     io.grpc.stub.AbstractStub.StubFactory<JobServiceBlockingStub> factory =
473         new io.grpc.stub.AbstractStub.StubFactory<JobServiceBlockingStub>() {
474           @java.lang.Override
475           public JobServiceBlockingStub newStub(
476               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
477             return new JobServiceBlockingStub(channel, callOptions);
478           }
479         };
480     return JobServiceBlockingStub.newStub(factory, channel);
481   }
482 
483   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)484   public static JobServiceFutureStub newFutureStub(io.grpc.Channel channel) {
485     io.grpc.stub.AbstractStub.StubFactory<JobServiceFutureStub> factory =
486         new io.grpc.stub.AbstractStub.StubFactory<JobServiceFutureStub>() {
487           @java.lang.Override
488           public JobServiceFutureStub newStub(
489               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
490             return new JobServiceFutureStub(channel, callOptions);
491           }
492         };
493     return JobServiceFutureStub.newStub(factory, channel);
494   }
495 
496   /**
497    *
498    *
499    * <pre>
500    * A service handles job management, including job CRUD, enumeration and search.
501    * </pre>
502    */
503   public interface AsyncService {
504 
505     /**
506      *
507      *
508      * <pre>
509      * Creates a new job.
510      * Typically, the job becomes searchable within 10 seconds, but it may take
511      * up to 5 minutes.
512      * </pre>
513      */
createJob( com.google.cloud.talent.v4.CreateJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)514     default void createJob(
515         com.google.cloud.talent.v4.CreateJobRequest request,
516         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
517       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver);
518     }
519 
520     /**
521      *
522      *
523      * <pre>
524      * Begins executing a batch create jobs operation.
525      * </pre>
526      */
batchCreateJobs( com.google.cloud.talent.v4.BatchCreateJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)527     default void batchCreateJobs(
528         com.google.cloud.talent.v4.BatchCreateJobsRequest request,
529         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
530       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
531           getBatchCreateJobsMethod(), responseObserver);
532     }
533 
534     /**
535      *
536      *
537      * <pre>
538      * Retrieves the specified job, whose status is OPEN or recently EXPIRED
539      * within the last 90 days.
540      * </pre>
541      */
getJob( com.google.cloud.talent.v4.GetJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)542     default void getJob(
543         com.google.cloud.talent.v4.GetJobRequest request,
544         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
545       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver);
546     }
547 
548     /**
549      *
550      *
551      * <pre>
552      * Updates specified job.
553      * Typically, updated contents become visible in search results within 10
554      * seconds, but it may take up to 5 minutes.
555      * </pre>
556      */
updateJob( com.google.cloud.talent.v4.UpdateJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)557     default void updateJob(
558         com.google.cloud.talent.v4.UpdateJobRequest request,
559         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
560       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver);
561     }
562 
563     /**
564      *
565      *
566      * <pre>
567      * Begins executing a batch update jobs operation.
568      * </pre>
569      */
batchUpdateJobs( com.google.cloud.talent.v4.BatchUpdateJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)570     default void batchUpdateJobs(
571         com.google.cloud.talent.v4.BatchUpdateJobsRequest request,
572         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
573       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
574           getBatchUpdateJobsMethod(), responseObserver);
575     }
576 
577     /**
578      *
579      *
580      * <pre>
581      * Deletes the specified job.
582      * Typically, the job becomes unsearchable within 10 seconds, but it may take
583      * up to 5 minutes.
584      * </pre>
585      */
deleteJob( com.google.cloud.talent.v4.DeleteJobRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)586     default void deleteJob(
587         com.google.cloud.talent.v4.DeleteJobRequest request,
588         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
589       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver);
590     }
591 
592     /**
593      *
594      *
595      * <pre>
596      * Begins executing a batch delete jobs operation.
597      * </pre>
598      */
batchDeleteJobs( com.google.cloud.talent.v4.BatchDeleteJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)599     default void batchDeleteJobs(
600         com.google.cloud.talent.v4.BatchDeleteJobsRequest request,
601         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
602       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
603           getBatchDeleteJobsMethod(), responseObserver);
604     }
605 
606     /**
607      *
608      *
609      * <pre>
610      * Lists jobs by filter.
611      * </pre>
612      */
listJobs( com.google.cloud.talent.v4.ListJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.ListJobsResponse> responseObserver)613     default void listJobs(
614         com.google.cloud.talent.v4.ListJobsRequest request,
615         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.ListJobsResponse> responseObserver) {
616       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver);
617     }
618 
619     /**
620      *
621      *
622      * <pre>
623      * Searches for jobs using the provided
624      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
625      * This call constrains the
626      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
627      * database, and only returns jobs that the caller has permission to search
628      * against.
629      * </pre>
630      */
searchJobs( com.google.cloud.talent.v4.SearchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse> responseObserver)631     default void searchJobs(
632         com.google.cloud.talent.v4.SearchJobsRequest request,
633         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>
634             responseObserver) {
635       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchJobsMethod(), responseObserver);
636     }
637 
638     /**
639      *
640      *
641      * <pre>
642      * Searches for jobs using the provided
643      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
644      * This API call is intended for the use case of targeting passive job
645      * seekers (for example, job seekers who have signed up to receive email
646      * alerts about potential job opportunities), it has different algorithmic
647      * adjustments that are designed to specifically target passive job seekers.
648      * This call constrains the
649      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
650      * database, and only returns jobs the caller has permission to search
651      * against.
652      * </pre>
653      */
searchJobsForAlert( com.google.cloud.talent.v4.SearchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse> responseObserver)654     default void searchJobsForAlert(
655         com.google.cloud.talent.v4.SearchJobsRequest request,
656         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>
657             responseObserver) {
658       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
659           getSearchJobsForAlertMethod(), responseObserver);
660     }
661   }
662 
663   /**
664    * Base class for the server implementation of the service JobService.
665    *
666    * <pre>
667    * A service handles job management, including job CRUD, enumeration and search.
668    * </pre>
669    */
670   public abstract static class JobServiceImplBase implements io.grpc.BindableService, AsyncService {
671 
672     @java.lang.Override
bindService()673     public final io.grpc.ServerServiceDefinition bindService() {
674       return JobServiceGrpc.bindService(this);
675     }
676   }
677 
678   /**
679    * A stub to allow clients to do asynchronous rpc calls to service JobService.
680    *
681    * <pre>
682    * A service handles job management, including job CRUD, enumeration and search.
683    * </pre>
684    */
685   public static final class JobServiceStub extends io.grpc.stub.AbstractAsyncStub<JobServiceStub> {
JobServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)686     private JobServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
687       super(channel, callOptions);
688     }
689 
690     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)691     protected JobServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
692       return new JobServiceStub(channel, callOptions);
693     }
694 
695     /**
696      *
697      *
698      * <pre>
699      * Creates a new job.
700      * Typically, the job becomes searchable within 10 seconds, but it may take
701      * up to 5 minutes.
702      * </pre>
703      */
createJob( com.google.cloud.talent.v4.CreateJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)704     public void createJob(
705         com.google.cloud.talent.v4.CreateJobRequest request,
706         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
707       io.grpc.stub.ClientCalls.asyncUnaryCall(
708           getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver);
709     }
710 
711     /**
712      *
713      *
714      * <pre>
715      * Begins executing a batch create jobs operation.
716      * </pre>
717      */
batchCreateJobs( com.google.cloud.talent.v4.BatchCreateJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)718     public void batchCreateJobs(
719         com.google.cloud.talent.v4.BatchCreateJobsRequest request,
720         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
721       io.grpc.stub.ClientCalls.asyncUnaryCall(
722           getChannel().newCall(getBatchCreateJobsMethod(), getCallOptions()),
723           request,
724           responseObserver);
725     }
726 
727     /**
728      *
729      *
730      * <pre>
731      * Retrieves the specified job, whose status is OPEN or recently EXPIRED
732      * within the last 90 days.
733      * </pre>
734      */
getJob( com.google.cloud.talent.v4.GetJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)735     public void getJob(
736         com.google.cloud.talent.v4.GetJobRequest request,
737         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
738       io.grpc.stub.ClientCalls.asyncUnaryCall(
739           getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver);
740     }
741 
742     /**
743      *
744      *
745      * <pre>
746      * Updates specified job.
747      * Typically, updated contents become visible in search results within 10
748      * seconds, but it may take up to 5 minutes.
749      * </pre>
750      */
updateJob( com.google.cloud.talent.v4.UpdateJobRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver)751     public void updateJob(
752         com.google.cloud.talent.v4.UpdateJobRequest request,
753         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job> responseObserver) {
754       io.grpc.stub.ClientCalls.asyncUnaryCall(
755           getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver);
756     }
757 
758     /**
759      *
760      *
761      * <pre>
762      * Begins executing a batch update jobs operation.
763      * </pre>
764      */
batchUpdateJobs( com.google.cloud.talent.v4.BatchUpdateJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)765     public void batchUpdateJobs(
766         com.google.cloud.talent.v4.BatchUpdateJobsRequest request,
767         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
768       io.grpc.stub.ClientCalls.asyncUnaryCall(
769           getChannel().newCall(getBatchUpdateJobsMethod(), getCallOptions()),
770           request,
771           responseObserver);
772     }
773 
774     /**
775      *
776      *
777      * <pre>
778      * Deletes the specified job.
779      * Typically, the job becomes unsearchable within 10 seconds, but it may take
780      * up to 5 minutes.
781      * </pre>
782      */
deleteJob( com.google.cloud.talent.v4.DeleteJobRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)783     public void deleteJob(
784         com.google.cloud.talent.v4.DeleteJobRequest request,
785         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
786       io.grpc.stub.ClientCalls.asyncUnaryCall(
787           getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver);
788     }
789 
790     /**
791      *
792      *
793      * <pre>
794      * Begins executing a batch delete jobs operation.
795      * </pre>
796      */
batchDeleteJobs( com.google.cloud.talent.v4.BatchDeleteJobsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)797     public void batchDeleteJobs(
798         com.google.cloud.talent.v4.BatchDeleteJobsRequest request,
799         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
800       io.grpc.stub.ClientCalls.asyncUnaryCall(
801           getChannel().newCall(getBatchDeleteJobsMethod(), getCallOptions()),
802           request,
803           responseObserver);
804     }
805 
806     /**
807      *
808      *
809      * <pre>
810      * Lists jobs by filter.
811      * </pre>
812      */
listJobs( com.google.cloud.talent.v4.ListJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.ListJobsResponse> responseObserver)813     public void listJobs(
814         com.google.cloud.talent.v4.ListJobsRequest request,
815         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.ListJobsResponse> responseObserver) {
816       io.grpc.stub.ClientCalls.asyncUnaryCall(
817           getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver);
818     }
819 
820     /**
821      *
822      *
823      * <pre>
824      * Searches for jobs using the provided
825      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
826      * This call constrains the
827      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
828      * database, and only returns jobs that the caller has permission to search
829      * against.
830      * </pre>
831      */
searchJobs( com.google.cloud.talent.v4.SearchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse> responseObserver)832     public void searchJobs(
833         com.google.cloud.talent.v4.SearchJobsRequest request,
834         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>
835             responseObserver) {
836       io.grpc.stub.ClientCalls.asyncUnaryCall(
837           getChannel().newCall(getSearchJobsMethod(), getCallOptions()), request, responseObserver);
838     }
839 
840     /**
841      *
842      *
843      * <pre>
844      * Searches for jobs using the provided
845      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
846      * This API call is intended for the use case of targeting passive job
847      * seekers (for example, job seekers who have signed up to receive email
848      * alerts about potential job opportunities), it has different algorithmic
849      * adjustments that are designed to specifically target passive job seekers.
850      * This call constrains the
851      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
852      * database, and only returns jobs the caller has permission to search
853      * against.
854      * </pre>
855      */
searchJobsForAlert( com.google.cloud.talent.v4.SearchJobsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse> responseObserver)856     public void searchJobsForAlert(
857         com.google.cloud.talent.v4.SearchJobsRequest request,
858         io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>
859             responseObserver) {
860       io.grpc.stub.ClientCalls.asyncUnaryCall(
861           getChannel().newCall(getSearchJobsForAlertMethod(), getCallOptions()),
862           request,
863           responseObserver);
864     }
865   }
866 
867   /**
868    * A stub to allow clients to do synchronous rpc calls to service JobService.
869    *
870    * <pre>
871    * A service handles job management, including job CRUD, enumeration and search.
872    * </pre>
873    */
874   public static final class JobServiceBlockingStub
875       extends io.grpc.stub.AbstractBlockingStub<JobServiceBlockingStub> {
JobServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)876     private JobServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
877       super(channel, callOptions);
878     }
879 
880     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)881     protected JobServiceBlockingStub build(
882         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
883       return new JobServiceBlockingStub(channel, callOptions);
884     }
885 
886     /**
887      *
888      *
889      * <pre>
890      * Creates a new job.
891      * Typically, the job becomes searchable within 10 seconds, but it may take
892      * up to 5 minutes.
893      * </pre>
894      */
createJob( com.google.cloud.talent.v4.CreateJobRequest request)895     public com.google.cloud.talent.v4.Job createJob(
896         com.google.cloud.talent.v4.CreateJobRequest request) {
897       return io.grpc.stub.ClientCalls.blockingUnaryCall(
898           getChannel(), getCreateJobMethod(), getCallOptions(), request);
899     }
900 
901     /**
902      *
903      *
904      * <pre>
905      * Begins executing a batch create jobs operation.
906      * </pre>
907      */
batchCreateJobs( com.google.cloud.talent.v4.BatchCreateJobsRequest request)908     public com.google.longrunning.Operation batchCreateJobs(
909         com.google.cloud.talent.v4.BatchCreateJobsRequest request) {
910       return io.grpc.stub.ClientCalls.blockingUnaryCall(
911           getChannel(), getBatchCreateJobsMethod(), getCallOptions(), request);
912     }
913 
914     /**
915      *
916      *
917      * <pre>
918      * Retrieves the specified job, whose status is OPEN or recently EXPIRED
919      * within the last 90 days.
920      * </pre>
921      */
getJob(com.google.cloud.talent.v4.GetJobRequest request)922     public com.google.cloud.talent.v4.Job getJob(com.google.cloud.talent.v4.GetJobRequest request) {
923       return io.grpc.stub.ClientCalls.blockingUnaryCall(
924           getChannel(), getGetJobMethod(), getCallOptions(), request);
925     }
926 
927     /**
928      *
929      *
930      * <pre>
931      * Updates specified job.
932      * Typically, updated contents become visible in search results within 10
933      * seconds, but it may take up to 5 minutes.
934      * </pre>
935      */
updateJob( com.google.cloud.talent.v4.UpdateJobRequest request)936     public com.google.cloud.talent.v4.Job updateJob(
937         com.google.cloud.talent.v4.UpdateJobRequest request) {
938       return io.grpc.stub.ClientCalls.blockingUnaryCall(
939           getChannel(), getUpdateJobMethod(), getCallOptions(), request);
940     }
941 
942     /**
943      *
944      *
945      * <pre>
946      * Begins executing a batch update jobs operation.
947      * </pre>
948      */
batchUpdateJobs( com.google.cloud.talent.v4.BatchUpdateJobsRequest request)949     public com.google.longrunning.Operation batchUpdateJobs(
950         com.google.cloud.talent.v4.BatchUpdateJobsRequest request) {
951       return io.grpc.stub.ClientCalls.blockingUnaryCall(
952           getChannel(), getBatchUpdateJobsMethod(), getCallOptions(), request);
953     }
954 
955     /**
956      *
957      *
958      * <pre>
959      * Deletes the specified job.
960      * Typically, the job becomes unsearchable within 10 seconds, but it may take
961      * up to 5 minutes.
962      * </pre>
963      */
deleteJob( com.google.cloud.talent.v4.DeleteJobRequest request)964     public com.google.protobuf.Empty deleteJob(
965         com.google.cloud.talent.v4.DeleteJobRequest request) {
966       return io.grpc.stub.ClientCalls.blockingUnaryCall(
967           getChannel(), getDeleteJobMethod(), getCallOptions(), request);
968     }
969 
970     /**
971      *
972      *
973      * <pre>
974      * Begins executing a batch delete jobs operation.
975      * </pre>
976      */
batchDeleteJobs( com.google.cloud.talent.v4.BatchDeleteJobsRequest request)977     public com.google.longrunning.Operation batchDeleteJobs(
978         com.google.cloud.talent.v4.BatchDeleteJobsRequest request) {
979       return io.grpc.stub.ClientCalls.blockingUnaryCall(
980           getChannel(), getBatchDeleteJobsMethod(), getCallOptions(), request);
981     }
982 
983     /**
984      *
985      *
986      * <pre>
987      * Lists jobs by filter.
988      * </pre>
989      */
listJobs( com.google.cloud.talent.v4.ListJobsRequest request)990     public com.google.cloud.talent.v4.ListJobsResponse listJobs(
991         com.google.cloud.talent.v4.ListJobsRequest request) {
992       return io.grpc.stub.ClientCalls.blockingUnaryCall(
993           getChannel(), getListJobsMethod(), getCallOptions(), request);
994     }
995 
996     /**
997      *
998      *
999      * <pre>
1000      * Searches for jobs using the provided
1001      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1002      * This call constrains the
1003      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
1004      * database, and only returns jobs that the caller has permission to search
1005      * against.
1006      * </pre>
1007      */
searchJobs( com.google.cloud.talent.v4.SearchJobsRequest request)1008     public com.google.cloud.talent.v4.SearchJobsResponse searchJobs(
1009         com.google.cloud.talent.v4.SearchJobsRequest request) {
1010       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1011           getChannel(), getSearchJobsMethod(), getCallOptions(), request);
1012     }
1013 
1014     /**
1015      *
1016      *
1017      * <pre>
1018      * Searches for jobs using the provided
1019      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1020      * This API call is intended for the use case of targeting passive job
1021      * seekers (for example, job seekers who have signed up to receive email
1022      * alerts about potential job opportunities), it has different algorithmic
1023      * adjustments that are designed to specifically target passive job seekers.
1024      * This call constrains the
1025      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
1026      * database, and only returns jobs the caller has permission to search
1027      * against.
1028      * </pre>
1029      */
searchJobsForAlert( com.google.cloud.talent.v4.SearchJobsRequest request)1030     public com.google.cloud.talent.v4.SearchJobsResponse searchJobsForAlert(
1031         com.google.cloud.talent.v4.SearchJobsRequest request) {
1032       return io.grpc.stub.ClientCalls.blockingUnaryCall(
1033           getChannel(), getSearchJobsForAlertMethod(), getCallOptions(), request);
1034     }
1035   }
1036 
1037   /**
1038    * A stub to allow clients to do ListenableFuture-style rpc calls to service JobService.
1039    *
1040    * <pre>
1041    * A service handles job management, including job CRUD, enumeration and search.
1042    * </pre>
1043    */
1044   public static final class JobServiceFutureStub
1045       extends io.grpc.stub.AbstractFutureStub<JobServiceFutureStub> {
JobServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1046     private JobServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1047       super(channel, callOptions);
1048     }
1049 
1050     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1051     protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1052       return new JobServiceFutureStub(channel, callOptions);
1053     }
1054 
1055     /**
1056      *
1057      *
1058      * <pre>
1059      * Creates a new job.
1060      * Typically, the job becomes searchable within 10 seconds, but it may take
1061      * up to 5 minutes.
1062      * </pre>
1063      */
1064     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.talent.v4.Job>
createJob(com.google.cloud.talent.v4.CreateJobRequest request)1065         createJob(com.google.cloud.talent.v4.CreateJobRequest request) {
1066       return io.grpc.stub.ClientCalls.futureUnaryCall(
1067           getChannel().newCall(getCreateJobMethod(), getCallOptions()), request);
1068     }
1069 
1070     /**
1071      *
1072      *
1073      * <pre>
1074      * Begins executing a batch create jobs operation.
1075      * </pre>
1076      */
1077     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
batchCreateJobs(com.google.cloud.talent.v4.BatchCreateJobsRequest request)1078         batchCreateJobs(com.google.cloud.talent.v4.BatchCreateJobsRequest request) {
1079       return io.grpc.stub.ClientCalls.futureUnaryCall(
1080           getChannel().newCall(getBatchCreateJobsMethod(), getCallOptions()), request);
1081     }
1082 
1083     /**
1084      *
1085      *
1086      * <pre>
1087      * Retrieves the specified job, whose status is OPEN or recently EXPIRED
1088      * within the last 90 days.
1089      * </pre>
1090      */
1091     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.talent.v4.Job>
getJob(com.google.cloud.talent.v4.GetJobRequest request)1092         getJob(com.google.cloud.talent.v4.GetJobRequest request) {
1093       return io.grpc.stub.ClientCalls.futureUnaryCall(
1094           getChannel().newCall(getGetJobMethod(), getCallOptions()), request);
1095     }
1096 
1097     /**
1098      *
1099      *
1100      * <pre>
1101      * Updates specified job.
1102      * Typically, updated contents become visible in search results within 10
1103      * seconds, but it may take up to 5 minutes.
1104      * </pre>
1105      */
1106     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.talent.v4.Job>
updateJob(com.google.cloud.talent.v4.UpdateJobRequest request)1107         updateJob(com.google.cloud.talent.v4.UpdateJobRequest request) {
1108       return io.grpc.stub.ClientCalls.futureUnaryCall(
1109           getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request);
1110     }
1111 
1112     /**
1113      *
1114      *
1115      * <pre>
1116      * Begins executing a batch update jobs operation.
1117      * </pre>
1118      */
1119     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
batchUpdateJobs(com.google.cloud.talent.v4.BatchUpdateJobsRequest request)1120         batchUpdateJobs(com.google.cloud.talent.v4.BatchUpdateJobsRequest request) {
1121       return io.grpc.stub.ClientCalls.futureUnaryCall(
1122           getChannel().newCall(getBatchUpdateJobsMethod(), getCallOptions()), request);
1123     }
1124 
1125     /**
1126      *
1127      *
1128      * <pre>
1129      * Deletes the specified job.
1130      * Typically, the job becomes unsearchable within 10 seconds, but it may take
1131      * up to 5 minutes.
1132      * </pre>
1133      */
deleteJob( com.google.cloud.talent.v4.DeleteJobRequest request)1134     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteJob(
1135         com.google.cloud.talent.v4.DeleteJobRequest request) {
1136       return io.grpc.stub.ClientCalls.futureUnaryCall(
1137           getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request);
1138     }
1139 
1140     /**
1141      *
1142      *
1143      * <pre>
1144      * Begins executing a batch delete jobs operation.
1145      * </pre>
1146      */
1147     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
batchDeleteJobs(com.google.cloud.talent.v4.BatchDeleteJobsRequest request)1148         batchDeleteJobs(com.google.cloud.talent.v4.BatchDeleteJobsRequest request) {
1149       return io.grpc.stub.ClientCalls.futureUnaryCall(
1150           getChannel().newCall(getBatchDeleteJobsMethod(), getCallOptions()), request);
1151     }
1152 
1153     /**
1154      *
1155      *
1156      * <pre>
1157      * Lists jobs by filter.
1158      * </pre>
1159      */
1160     public com.google.common.util.concurrent.ListenableFuture<
1161             com.google.cloud.talent.v4.ListJobsResponse>
listJobs(com.google.cloud.talent.v4.ListJobsRequest request)1162         listJobs(com.google.cloud.talent.v4.ListJobsRequest request) {
1163       return io.grpc.stub.ClientCalls.futureUnaryCall(
1164           getChannel().newCall(getListJobsMethod(), getCallOptions()), request);
1165     }
1166 
1167     /**
1168      *
1169      *
1170      * <pre>
1171      * Searches for jobs using the provided
1172      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1173      * This call constrains the
1174      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
1175      * database, and only returns jobs that the caller has permission to search
1176      * against.
1177      * </pre>
1178      */
1179     public com.google.common.util.concurrent.ListenableFuture<
1180             com.google.cloud.talent.v4.SearchJobsResponse>
searchJobs(com.google.cloud.talent.v4.SearchJobsRequest request)1181         searchJobs(com.google.cloud.talent.v4.SearchJobsRequest request) {
1182       return io.grpc.stub.ClientCalls.futureUnaryCall(
1183           getChannel().newCall(getSearchJobsMethod(), getCallOptions()), request);
1184     }
1185 
1186     /**
1187      *
1188      *
1189      * <pre>
1190      * Searches for jobs using the provided
1191      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1192      * This API call is intended for the use case of targeting passive job
1193      * seekers (for example, job seekers who have signed up to receive email
1194      * alerts about potential job opportunities), it has different algorithmic
1195      * adjustments that are designed to specifically target passive job seekers.
1196      * This call constrains the
1197      * [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the
1198      * database, and only returns jobs the caller has permission to search
1199      * against.
1200      * </pre>
1201      */
1202     public com.google.common.util.concurrent.ListenableFuture<
1203             com.google.cloud.talent.v4.SearchJobsResponse>
searchJobsForAlert(com.google.cloud.talent.v4.SearchJobsRequest request)1204         searchJobsForAlert(com.google.cloud.talent.v4.SearchJobsRequest request) {
1205       return io.grpc.stub.ClientCalls.futureUnaryCall(
1206           getChannel().newCall(getSearchJobsForAlertMethod(), getCallOptions()), request);
1207     }
1208   }
1209 
1210   private static final int METHODID_CREATE_JOB = 0;
1211   private static final int METHODID_BATCH_CREATE_JOBS = 1;
1212   private static final int METHODID_GET_JOB = 2;
1213   private static final int METHODID_UPDATE_JOB = 3;
1214   private static final int METHODID_BATCH_UPDATE_JOBS = 4;
1215   private static final int METHODID_DELETE_JOB = 5;
1216   private static final int METHODID_BATCH_DELETE_JOBS = 6;
1217   private static final int METHODID_LIST_JOBS = 7;
1218   private static final int METHODID_SEARCH_JOBS = 8;
1219   private static final int METHODID_SEARCH_JOBS_FOR_ALERT = 9;
1220 
1221   private static final class MethodHandlers<Req, Resp>
1222       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
1223           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
1224           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
1225           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
1226     private final AsyncService serviceImpl;
1227     private final int methodId;
1228 
MethodHandlers(AsyncService serviceImpl, int methodId)1229     MethodHandlers(AsyncService serviceImpl, int methodId) {
1230       this.serviceImpl = serviceImpl;
1231       this.methodId = methodId;
1232     }
1233 
1234     @java.lang.Override
1235     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)1236     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
1237       switch (methodId) {
1238         case METHODID_CREATE_JOB:
1239           serviceImpl.createJob(
1240               (com.google.cloud.talent.v4.CreateJobRequest) request,
1241               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job>) responseObserver);
1242           break;
1243         case METHODID_BATCH_CREATE_JOBS:
1244           serviceImpl.batchCreateJobs(
1245               (com.google.cloud.talent.v4.BatchCreateJobsRequest) request,
1246               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
1247           break;
1248         case METHODID_GET_JOB:
1249           serviceImpl.getJob(
1250               (com.google.cloud.talent.v4.GetJobRequest) request,
1251               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job>) responseObserver);
1252           break;
1253         case METHODID_UPDATE_JOB:
1254           serviceImpl.updateJob(
1255               (com.google.cloud.talent.v4.UpdateJobRequest) request,
1256               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.Job>) responseObserver);
1257           break;
1258         case METHODID_BATCH_UPDATE_JOBS:
1259           serviceImpl.batchUpdateJobs(
1260               (com.google.cloud.talent.v4.BatchUpdateJobsRequest) request,
1261               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
1262           break;
1263         case METHODID_DELETE_JOB:
1264           serviceImpl.deleteJob(
1265               (com.google.cloud.talent.v4.DeleteJobRequest) request,
1266               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
1267           break;
1268         case METHODID_BATCH_DELETE_JOBS:
1269           serviceImpl.batchDeleteJobs(
1270               (com.google.cloud.talent.v4.BatchDeleteJobsRequest) request,
1271               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
1272           break;
1273         case METHODID_LIST_JOBS:
1274           serviceImpl.listJobs(
1275               (com.google.cloud.talent.v4.ListJobsRequest) request,
1276               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.ListJobsResponse>)
1277                   responseObserver);
1278           break;
1279         case METHODID_SEARCH_JOBS:
1280           serviceImpl.searchJobs(
1281               (com.google.cloud.talent.v4.SearchJobsRequest) request,
1282               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>)
1283                   responseObserver);
1284           break;
1285         case METHODID_SEARCH_JOBS_FOR_ALERT:
1286           serviceImpl.searchJobsForAlert(
1287               (com.google.cloud.talent.v4.SearchJobsRequest) request,
1288               (io.grpc.stub.StreamObserver<com.google.cloud.talent.v4.SearchJobsResponse>)
1289                   responseObserver);
1290           break;
1291         default:
1292           throw new AssertionError();
1293       }
1294     }
1295 
1296     @java.lang.Override
1297     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)1298     public io.grpc.stub.StreamObserver<Req> invoke(
1299         io.grpc.stub.StreamObserver<Resp> responseObserver) {
1300       switch (methodId) {
1301         default:
1302           throw new AssertionError();
1303       }
1304     }
1305   }
1306 
bindService(AsyncService service)1307   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
1308     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
1309         .addMethod(
1310             getCreateJobMethod(),
1311             io.grpc.stub.ServerCalls.asyncUnaryCall(
1312                 new MethodHandlers<
1313                     com.google.cloud.talent.v4.CreateJobRequest, com.google.cloud.talent.v4.Job>(
1314                     service, METHODID_CREATE_JOB)))
1315         .addMethod(
1316             getBatchCreateJobsMethod(),
1317             io.grpc.stub.ServerCalls.asyncUnaryCall(
1318                 new MethodHandlers<
1319                     com.google.cloud.talent.v4.BatchCreateJobsRequest,
1320                     com.google.longrunning.Operation>(service, METHODID_BATCH_CREATE_JOBS)))
1321         .addMethod(
1322             getGetJobMethod(),
1323             io.grpc.stub.ServerCalls.asyncUnaryCall(
1324                 new MethodHandlers<
1325                     com.google.cloud.talent.v4.GetJobRequest, com.google.cloud.talent.v4.Job>(
1326                     service, METHODID_GET_JOB)))
1327         .addMethod(
1328             getUpdateJobMethod(),
1329             io.grpc.stub.ServerCalls.asyncUnaryCall(
1330                 new MethodHandlers<
1331                     com.google.cloud.talent.v4.UpdateJobRequest, com.google.cloud.talent.v4.Job>(
1332                     service, METHODID_UPDATE_JOB)))
1333         .addMethod(
1334             getBatchUpdateJobsMethod(),
1335             io.grpc.stub.ServerCalls.asyncUnaryCall(
1336                 new MethodHandlers<
1337                     com.google.cloud.talent.v4.BatchUpdateJobsRequest,
1338                     com.google.longrunning.Operation>(service, METHODID_BATCH_UPDATE_JOBS)))
1339         .addMethod(
1340             getDeleteJobMethod(),
1341             io.grpc.stub.ServerCalls.asyncUnaryCall(
1342                 new MethodHandlers<
1343                     com.google.cloud.talent.v4.DeleteJobRequest, com.google.protobuf.Empty>(
1344                     service, METHODID_DELETE_JOB)))
1345         .addMethod(
1346             getBatchDeleteJobsMethod(),
1347             io.grpc.stub.ServerCalls.asyncUnaryCall(
1348                 new MethodHandlers<
1349                     com.google.cloud.talent.v4.BatchDeleteJobsRequest,
1350                     com.google.longrunning.Operation>(service, METHODID_BATCH_DELETE_JOBS)))
1351         .addMethod(
1352             getListJobsMethod(),
1353             io.grpc.stub.ServerCalls.asyncUnaryCall(
1354                 new MethodHandlers<
1355                     com.google.cloud.talent.v4.ListJobsRequest,
1356                     com.google.cloud.talent.v4.ListJobsResponse>(service, METHODID_LIST_JOBS)))
1357         .addMethod(
1358             getSearchJobsMethod(),
1359             io.grpc.stub.ServerCalls.asyncUnaryCall(
1360                 new MethodHandlers<
1361                     com.google.cloud.talent.v4.SearchJobsRequest,
1362                     com.google.cloud.talent.v4.SearchJobsResponse>(service, METHODID_SEARCH_JOBS)))
1363         .addMethod(
1364             getSearchJobsForAlertMethod(),
1365             io.grpc.stub.ServerCalls.asyncUnaryCall(
1366                 new MethodHandlers<
1367                     com.google.cloud.talent.v4.SearchJobsRequest,
1368                     com.google.cloud.talent.v4.SearchJobsResponse>(
1369                     service, METHODID_SEARCH_JOBS_FOR_ALERT)))
1370         .build();
1371   }
1372 
1373   private abstract static class JobServiceBaseDescriptorSupplier
1374       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
1375           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
JobServiceBaseDescriptorSupplier()1376     JobServiceBaseDescriptorSupplier() {}
1377 
1378     @java.lang.Override
getFileDescriptor()1379     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
1380       return com.google.cloud.talent.v4.JobServiceProto.getDescriptor();
1381     }
1382 
1383     @java.lang.Override
getServiceDescriptor()1384     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
1385       return getFileDescriptor().findServiceByName("JobService");
1386     }
1387   }
1388 
1389   private static final class JobServiceFileDescriptorSupplier
1390       extends JobServiceBaseDescriptorSupplier {
JobServiceFileDescriptorSupplier()1391     JobServiceFileDescriptorSupplier() {}
1392   }
1393 
1394   private static final class JobServiceMethodDescriptorSupplier
1395       extends JobServiceBaseDescriptorSupplier
1396       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
1397     private final String methodName;
1398 
JobServiceMethodDescriptorSupplier(String methodName)1399     JobServiceMethodDescriptorSupplier(String methodName) {
1400       this.methodName = methodName;
1401     }
1402 
1403     @java.lang.Override
getMethodDescriptor()1404     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
1405       return getServiceDescriptor().findMethodByName(methodName);
1406     }
1407   }
1408 
1409   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
1410 
getServiceDescriptor()1411   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
1412     io.grpc.ServiceDescriptor result = serviceDescriptor;
1413     if (result == null) {
1414       synchronized (JobServiceGrpc.class) {
1415         result = serviceDescriptor;
1416         if (result == null) {
1417           serviceDescriptor =
1418               result =
1419                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
1420                       .setSchemaDescriptor(new JobServiceFileDescriptorSupplier())
1421                       .addMethod(getCreateJobMethod())
1422                       .addMethod(getBatchCreateJobsMethod())
1423                       .addMethod(getGetJobMethod())
1424                       .addMethod(getUpdateJobMethod())
1425                       .addMethod(getBatchUpdateJobsMethod())
1426                       .addMethod(getDeleteJobMethod())
1427                       .addMethod(getBatchDeleteJobsMethod())
1428                       .addMethod(getListJobsMethod())
1429                       .addMethod(getSearchJobsMethod())
1430                       .addMethod(getSearchJobsForAlertMethod())
1431                       .build();
1432         }
1433       }
1434     }
1435     return result;
1436   }
1437 }
1438