16
16
package com .google .pubsub .v1 ;
17
17
18
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
19
25
- /** */
20
+ /**
21
+ *
22
+ *
23
+ * <pre>
24
+ * Service for doing schema-related operations.
25
+ * </pre>
26
+ */
26
27
@ javax .annotation .Generated (
27
28
value = "by gRPC proto compiler" ,
28
29
comments = "Source: google/pubsub/v1/schema.proto" )
@@ -319,7 +320,13 @@ public SchemaServiceFutureStub newStub(
319
320
return SchemaServiceFutureStub .newStub (factory , channel );
320
321
}
321
322
322
- /** */
323
+ /**
324
+ *
325
+ *
326
+ * <pre>
327
+ * Service for doing schema-related operations.
328
+ * </pre>
329
+ */
323
330
public abstract static class SchemaServiceImplBase implements io .grpc .BindableService {
324
331
325
332
/**
@@ -332,7 +339,8 @@ public abstract static class SchemaServiceImplBase implements io.grpc.BindableSe
332
339
public void createSchema (
333
340
com .google .pubsub .v1 .CreateSchemaRequest request ,
334
341
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .Schema > responseObserver ) {
335
- asyncUnimplementedUnaryCall (getCreateSchemaMethod (), responseObserver );
342
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
343
+ getCreateSchemaMethod (), responseObserver );
336
344
}
337
345
338
346
/**
@@ -345,7 +353,7 @@ public void createSchema(
345
353
public void getSchema (
346
354
com .google .pubsub .v1 .GetSchemaRequest request ,
347
355
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .Schema > responseObserver ) {
348
- asyncUnimplementedUnaryCall (getGetSchemaMethod (), responseObserver );
356
+ io . grpc . stub . ServerCalls . asyncUnimplementedUnaryCall (getGetSchemaMethod (), responseObserver );
349
357
}
350
358
351
359
/**
@@ -358,7 +366,8 @@ public void getSchema(
358
366
public void listSchemas (
359
367
com .google .pubsub .v1 .ListSchemasRequest request ,
360
368
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ListSchemasResponse > responseObserver ) {
361
- asyncUnimplementedUnaryCall (getListSchemasMethod (), responseObserver );
369
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
370
+ getListSchemasMethod (), responseObserver );
362
371
}
363
372
364
373
/**
@@ -371,7 +380,8 @@ public void listSchemas(
371
380
public void deleteSchema (
372
381
com .google .pubsub .v1 .DeleteSchemaRequest request ,
373
382
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
374
- asyncUnimplementedUnaryCall (getDeleteSchemaMethod (), responseObserver );
383
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
384
+ getDeleteSchemaMethod (), responseObserver );
375
385
}
376
386
377
387
/**
@@ -384,7 +394,8 @@ public void deleteSchema(
384
394
public void validateSchema (
385
395
com .google .pubsub .v1 .ValidateSchemaRequest request ,
386
396
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ValidateSchemaResponse > responseObserver ) {
387
- asyncUnimplementedUnaryCall (getValidateSchemaMethod (), responseObserver );
397
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
398
+ getValidateSchemaMethod (), responseObserver );
388
399
}
389
400
390
401
/**
@@ -398,45 +409,46 @@ public void validateMessage(
398
409
com .google .pubsub .v1 .ValidateMessageRequest request ,
399
410
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ValidateMessageResponse >
400
411
responseObserver ) {
401
- asyncUnimplementedUnaryCall (getValidateMessageMethod (), responseObserver );
412
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (
413
+ getValidateMessageMethod (), responseObserver );
402
414
}
403
415
404
416
@ java .lang .Override
405
417
public final io .grpc .ServerServiceDefinition bindService () {
406
418
return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
407
419
.addMethod (
408
420
getCreateSchemaMethod (),
409
- asyncUnaryCall (
421
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
410
422
new MethodHandlers <
411
423
com .google .pubsub .v1 .CreateSchemaRequest , com .google .pubsub .v1 .Schema >(
412
424
this , METHODID_CREATE_SCHEMA )))
413
425
.addMethod (
414
426
getGetSchemaMethod (),
415
- asyncUnaryCall (
427
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
416
428
new MethodHandlers <
417
429
com .google .pubsub .v1 .GetSchemaRequest , com .google .pubsub .v1 .Schema >(
418
430
this , METHODID_GET_SCHEMA )))
419
431
.addMethod (
420
432
getListSchemasMethod (),
421
- asyncUnaryCall (
433
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
422
434
new MethodHandlers <
423
435
com .google .pubsub .v1 .ListSchemasRequest ,
424
436
com .google .pubsub .v1 .ListSchemasResponse >(this , METHODID_LIST_SCHEMAS )))
425
437
.addMethod (
426
438
getDeleteSchemaMethod (),
427
- asyncUnaryCall (
439
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
428
440
new MethodHandlers <
429
441
com .google .pubsub .v1 .DeleteSchemaRequest , com .google .protobuf .Empty >(
430
442
this , METHODID_DELETE_SCHEMA )))
431
443
.addMethod (
432
444
getValidateSchemaMethod (),
433
- asyncUnaryCall (
445
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
434
446
new MethodHandlers <
435
447
com .google .pubsub .v1 .ValidateSchemaRequest ,
436
448
com .google .pubsub .v1 .ValidateSchemaResponse >(this , METHODID_VALIDATE_SCHEMA )))
437
449
.addMethod (
438
450
getValidateMessageMethod (),
439
- asyncUnaryCall (
451
+ io . grpc . stub . ServerCalls . asyncUnaryCall (
440
452
new MethodHandlers <
441
453
com .google .pubsub .v1 .ValidateMessageRequest ,
442
454
com .google .pubsub .v1 .ValidateMessageResponse >(
@@ -445,7 +457,13 @@ public final io.grpc.ServerServiceDefinition bindService() {
445
457
}
446
458
}
447
459
448
- /** */
460
+ /**
461
+ *
462
+ *
463
+ * <pre>
464
+ * Service for doing schema-related operations.
465
+ * </pre>
466
+ */
449
467
public static final class SchemaServiceStub
450
468
extends io .grpc .stub .AbstractAsyncStub <SchemaServiceStub > {
451
469
private SchemaServiceStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
@@ -467,7 +485,7 @@ protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c
467
485
public void createSchema (
468
486
com .google .pubsub .v1 .CreateSchemaRequest request ,
469
487
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .Schema > responseObserver ) {
470
- asyncUnaryCall (
488
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
471
489
getChannel ().newCall (getCreateSchemaMethod (), getCallOptions ()),
472
490
request ,
473
491
responseObserver );
@@ -483,7 +501,7 @@ public void createSchema(
483
501
public void getSchema (
484
502
com .google .pubsub .v1 .GetSchemaRequest request ,
485
503
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .Schema > responseObserver ) {
486
- asyncUnaryCall (
504
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
487
505
getChannel ().newCall (getGetSchemaMethod (), getCallOptions ()), request , responseObserver );
488
506
}
489
507
@@ -497,7 +515,7 @@ public void getSchema(
497
515
public void listSchemas (
498
516
com .google .pubsub .v1 .ListSchemasRequest request ,
499
517
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ListSchemasResponse > responseObserver ) {
500
- asyncUnaryCall (
518
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
501
519
getChannel ().newCall (getListSchemasMethod (), getCallOptions ()),
502
520
request ,
503
521
responseObserver );
@@ -513,7 +531,7 @@ public void listSchemas(
513
531
public void deleteSchema (
514
532
com .google .pubsub .v1 .DeleteSchemaRequest request ,
515
533
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
516
- asyncUnaryCall (
534
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
517
535
getChannel ().newCall (getDeleteSchemaMethod (), getCallOptions ()),
518
536
request ,
519
537
responseObserver );
@@ -529,7 +547,7 @@ public void deleteSchema(
529
547
public void validateSchema (
530
548
com .google .pubsub .v1 .ValidateSchemaRequest request ,
531
549
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ValidateSchemaResponse > responseObserver ) {
532
- asyncUnaryCall (
550
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
533
551
getChannel ().newCall (getValidateSchemaMethod (), getCallOptions ()),
534
552
request ,
535
553
responseObserver );
@@ -546,14 +564,20 @@ public void validateMessage(
546
564
com .google .pubsub .v1 .ValidateMessageRequest request ,
547
565
io .grpc .stub .StreamObserver <com .google .pubsub .v1 .ValidateMessageResponse >
548
566
responseObserver ) {
549
- asyncUnaryCall (
567
+ io . grpc . stub . ClientCalls . asyncUnaryCall (
550
568
getChannel ().newCall (getValidateMessageMethod (), getCallOptions ()),
551
569
request ,
552
570
responseObserver );
553
571
}
554
572
}
555
573
556
- /** */
574
+ /**
575
+ *
576
+ *
577
+ * <pre>
578
+ * Service for doing schema-related operations.
579
+ * </pre>
580
+ */
557
581
public static final class SchemaServiceBlockingStub
558
582
extends io .grpc .stub .AbstractBlockingStub <SchemaServiceBlockingStub > {
559
583
private SchemaServiceBlockingStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
@@ -575,7 +599,8 @@ protected SchemaServiceBlockingStub build(
575
599
*/
576
600
public com .google .pubsub .v1 .Schema createSchema (
577
601
com .google .pubsub .v1 .CreateSchemaRequest request ) {
578
- return blockingUnaryCall (getChannel (), getCreateSchemaMethod (), getCallOptions (), request );
602
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
603
+ getChannel (), getCreateSchemaMethod (), getCallOptions (), request );
579
604
}
580
605
581
606
/**
@@ -586,7 +611,8 @@ public com.google.pubsub.v1.Schema createSchema(
586
611
* </pre>
587
612
*/
588
613
public com .google .pubsub .v1 .Schema getSchema (com .google .pubsub .v1 .GetSchemaRequest request ) {
589
- return blockingUnaryCall (getChannel (), getGetSchemaMethod (), getCallOptions (), request );
614
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
615
+ getChannel (), getGetSchemaMethod (), getCallOptions (), request );
590
616
}
591
617
592
618
/**
@@ -598,7 +624,8 @@ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaReque
598
624
*/
599
625
public com .google .pubsub .v1 .ListSchemasResponse listSchemas (
600
626
com .google .pubsub .v1 .ListSchemasRequest request ) {
601
- return blockingUnaryCall (getChannel (), getListSchemasMethod (), getCallOptions (), request );
627
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
628
+ getChannel (), getListSchemasMethod (), getCallOptions (), request );
602
629
}
603
630
604
631
/**
@@ -610,7 +637,8 @@ public com.google.pubsub.v1.ListSchemasResponse listSchemas(
610
637
*/
611
638
public com .google .protobuf .Empty deleteSchema (
612
639
com .google .pubsub .v1 .DeleteSchemaRequest request ) {
613
- return blockingUnaryCall (getChannel (), getDeleteSchemaMethod (), getCallOptions (), request );
640
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
641
+ getChannel (), getDeleteSchemaMethod (), getCallOptions (), request );
614
642
}
615
643
616
644
/**
@@ -622,7 +650,8 @@ public com.google.protobuf.Empty deleteSchema(
622
650
*/
623
651
public com .google .pubsub .v1 .ValidateSchemaResponse validateSchema (
624
652
com .google .pubsub .v1 .ValidateSchemaRequest request ) {
625
- return blockingUnaryCall (getChannel (), getValidateSchemaMethod (), getCallOptions (), request );
653
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
654
+ getChannel (), getValidateSchemaMethod (), getCallOptions (), request );
626
655
}
627
656
628
657
/**
@@ -634,11 +663,18 @@ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema(
634
663
*/
635
664
public com .google .pubsub .v1 .ValidateMessageResponse validateMessage (
636
665
com .google .pubsub .v1 .ValidateMessageRequest request ) {
637
- return blockingUnaryCall (getChannel (), getValidateMessageMethod (), getCallOptions (), request );
666
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
667
+ getChannel (), getValidateMessageMethod (), getCallOptions (), request );
638
668
}
639
669
}
640
670
641
- /** */
671
+ /**
672
+ *
673
+ *
674
+ * <pre>
675
+ * Service for doing schema-related operations.
676
+ * </pre>
677
+ */
642
678
public static final class SchemaServiceFutureStub
643
679
extends io .grpc .stub .AbstractFutureStub <SchemaServiceFutureStub > {
644
680
private SchemaServiceFutureStub (io .grpc .Channel channel , io .grpc .CallOptions callOptions ) {
@@ -660,7 +696,7 @@ protected SchemaServiceFutureStub build(
660
696
*/
661
697
public com .google .common .util .concurrent .ListenableFuture <com .google .pubsub .v1 .Schema >
662
698
createSchema (com .google .pubsub .v1 .CreateSchemaRequest request ) {
663
- return futureUnaryCall (
699
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
664
700
getChannel ().newCall (getCreateSchemaMethod (), getCallOptions ()), request );
665
701
}
666
702
@@ -673,7 +709,8 @@ protected SchemaServiceFutureStub build(
673
709
*/
674
710
public com .google .common .util .concurrent .ListenableFuture <com .google .pubsub .v1 .Schema >
675
711
getSchema (com .google .pubsub .v1 .GetSchemaRequest request ) {
676
- return futureUnaryCall (getChannel ().newCall (getGetSchemaMethod (), getCallOptions ()), request );
712
+ return io .grpc .stub .ClientCalls .futureUnaryCall (
713
+ getChannel ().newCall (getGetSchemaMethod (), getCallOptions ()), request );
677
714
}
678
715
679
716
/**
@@ -686,7 +723,7 @@ protected SchemaServiceFutureStub build(
686
723
public com .google .common .util .concurrent .ListenableFuture <
687
724
com .google .pubsub .v1 .ListSchemasResponse >
688
725
listSchemas (com .google .pubsub .v1 .ListSchemasRequest request ) {
689
- return futureUnaryCall (
726
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
690
727
getChannel ().newCall (getListSchemasMethod (), getCallOptions ()), request );
691
728
}
692
729
@@ -699,7 +736,7 @@ protected SchemaServiceFutureStub build(
699
736
*/
700
737
public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty >
701
738
deleteSchema (com .google .pubsub .v1 .DeleteSchemaRequest request ) {
702
- return futureUnaryCall (
739
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
703
740
getChannel ().newCall (getDeleteSchemaMethod (), getCallOptions ()), request );
704
741
}
705
742
@@ -713,7 +750,7 @@ protected SchemaServiceFutureStub build(
713
750
public com .google .common .util .concurrent .ListenableFuture <
714
751
com .google .pubsub .v1 .ValidateSchemaResponse >
715
752
validateSchema (com .google .pubsub .v1 .ValidateSchemaRequest request ) {
716
- return futureUnaryCall (
753
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
717
754
getChannel ().newCall (getValidateSchemaMethod (), getCallOptions ()), request );
718
755
}
719
756
@@ -727,7 +764,7 @@ protected SchemaServiceFutureStub build(
727
764
public com .google .common .util .concurrent .ListenableFuture <
728
765
com .google .pubsub .v1 .ValidateMessageResponse >
729
766
validateMessage (com .google .pubsub .v1 .ValidateMessageRequest request ) {
730
- return futureUnaryCall (
767
+ return io . grpc . stub . ClientCalls . futureUnaryCall (
731
768
getChannel ().newCall (getValidateMessageMethod (), getCallOptions ()), request );
732
769
}
733
770
}
0 commit comments