3
3
import static io .grpc .MethodDescriptor .generateFullMethodName ;
4
4
5
5
/**
6
- *
7
6
*/
8
7
@ javax .annotation .Generated (
9
8
value = "by gRPC proto compiler (version 1.45.1)" ,
10
- comments = "Source: service.proto" )
9
+ comments = "Source: notifications/v1/ service.proto" )
11
10
@ io .grpc .stub .annotations .GrpcGenerated
12
11
public final class NotificationsGrpc {
13
12
14
- private NotificationsGrpc () {
15
- }
13
+ private NotificationsGrpc () {}
16
14
17
15
public static final String SERVICE_NAME = "notifications.v1.Notifications" ;
18
16
@@ -107,6 +105,36 @@ com.google.protobuf.Empty> getSubscribeMethod() {
107
105
return getSubscribeMethod ;
108
106
}
109
107
108
+ private static volatile io .grpc .MethodDescriptor <org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest ,
109
+ com .google .protobuf .Empty > getSubscribeWithMetadataMethod ;
110
+
111
+ @ io .grpc .stub .annotations .RpcMethod (
112
+ fullMethodName = SERVICE_NAME + '/' + "SubscribeWithMetadata" ,
113
+ requestType = org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest .class ,
114
+ responseType = com .google .protobuf .Empty .class ,
115
+ methodType = io .grpc .MethodDescriptor .MethodType .UNARY )
116
+ public static io .grpc .MethodDescriptor <org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest ,
117
+ com .google .protobuf .Empty > getSubscribeWithMetadataMethod () {
118
+ io .grpc .MethodDescriptor <org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest , com .google .protobuf .Empty > getSubscribeWithMetadataMethod ;
119
+ if ((getSubscribeWithMetadataMethod = NotificationsGrpc .getSubscribeWithMetadataMethod ) == null ) {
120
+ synchronized (NotificationsGrpc .class ) {
121
+ if ((getSubscribeWithMetadataMethod = NotificationsGrpc .getSubscribeWithMetadataMethod ) == null ) {
122
+ NotificationsGrpc .getSubscribeWithMetadataMethod = getSubscribeWithMetadataMethod =
123
+ io .grpc .MethodDescriptor .<org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest , com .google .protobuf .Empty >newBuilder ()
124
+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
125
+ .setFullMethodName (generateFullMethodName (SERVICE_NAME , "SubscribeWithMetadata" ))
126
+ .setSampledToLocalTracing (true )
127
+ .setRequestMarshaller (io .grpc .protobuf .lite .ProtoLiteUtils .marshaller (
128
+ org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest .getDefaultInstance ()))
129
+ .setResponseMarshaller (io .grpc .protobuf .lite .ProtoLiteUtils .marshaller (
130
+ com .google .protobuf .Empty .getDefaultInstance ()))
131
+ .build ();
132
+ }
133
+ }
134
+ }
135
+ return getSubscribeWithMetadataMethod ;
136
+ }
137
+
110
138
private static volatile io .grpc .MethodDescriptor <org .xmtp .android .library .push .Service .UnsubscribeRequest ,
111
139
com .google .protobuf .Empty > getUnsubscribeMethod ;
112
140
@@ -182,44 +210,45 @@ public NotificationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOpti
182
210
}
183
211
184
212
/**
185
- *
186
213
*/
187
214
public static abstract class NotificationsImplBase implements io .grpc .BindableService {
188
215
189
216
/**
190
- *
191
217
*/
192
218
public void registerInstallation (org .xmtp .android .library .push .Service .RegisterInstallationRequest request ,
193
219
io .grpc .stub .StreamObserver <org .xmtp .android .library .push .Service .RegisterInstallationResponse > responseObserver ) {
194
220
io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getRegisterInstallationMethod (), responseObserver );
195
221
}
196
222
197
223
/**
198
- *
199
224
*/
200
225
public void deleteInstallation (org .xmtp .android .library .push .Service .DeleteInstallationRequest request ,
201
226
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
202
227
io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getDeleteInstallationMethod (), responseObserver );
203
228
}
204
229
205
230
/**
206
- *
207
231
*/
208
232
public void subscribe (org .xmtp .android .library .push .Service .SubscribeRequest request ,
209
233
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
210
234
io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getSubscribeMethod (), responseObserver );
211
235
}
212
236
213
237
/**
214
- *
238
+ */
239
+ public void subscribeWithMetadata (org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest request ,
240
+ io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
241
+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getSubscribeWithMetadataMethod (), responseObserver );
242
+ }
243
+
244
+ /**
215
245
*/
216
246
public void unsubscribe (org .xmtp .android .library .push .Service .UnsubscribeRequest request ,
217
247
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
218
248
io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getUnsubscribeMethod (), responseObserver );
219
249
}
220
250
221
- @ java .lang .Override
222
- public final io .grpc .ServerServiceDefinition bindService () {
251
+ @ java .lang .Override public final io .grpc .ServerServiceDefinition bindService () {
223
252
return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
224
253
.addMethod (
225
254
getRegisterInstallationMethod (),
@@ -242,6 +271,13 @@ public final io.grpc.ServerServiceDefinition bindService() {
242
271
org .xmtp .android .library .push .Service .SubscribeRequest ,
243
272
com .google .protobuf .Empty >(
244
273
this , METHODID_SUBSCRIBE )))
274
+ .addMethod (
275
+ getSubscribeWithMetadataMethod (),
276
+ io .grpc .stub .ServerCalls .asyncUnaryCall (
277
+ new MethodHandlers <
278
+ org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest ,
279
+ com .google .protobuf .Empty >(
280
+ this , METHODID_SUBSCRIBE_WITH_METADATA )))
245
281
.addMethod (
246
282
getUnsubscribeMethod (),
247
283
io .grpc .stub .ServerCalls .asyncUnaryCall (
@@ -254,7 +290,6 @@ public final io.grpc.ServerServiceDefinition bindService() {
254
290
}
255
291
256
292
/**
257
- *
258
293
*/
259
294
public static final class NotificationsStub extends io .grpc .stub .AbstractAsyncStub <NotificationsStub > {
260
295
private NotificationsStub (
@@ -269,7 +304,6 @@ protected NotificationsStub build(
269
304
}
270
305
271
306
/**
272
- *
273
307
*/
274
308
public void registerInstallation (org .xmtp .android .library .push .Service .RegisterInstallationRequest request ,
275
309
io .grpc .stub .StreamObserver <org .xmtp .android .library .push .Service .RegisterInstallationResponse > responseObserver ) {
@@ -278,7 +312,6 @@ public void registerInstallation(org.xmtp.android.library.push.Service.RegisterI
278
312
}
279
313
280
314
/**
281
- *
282
315
*/
283
316
public void deleteInstallation (org .xmtp .android .library .push .Service .DeleteInstallationRequest request ,
284
317
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
@@ -287,7 +320,6 @@ public void deleteInstallation(org.xmtp.android.library.push.Service.DeleteInsta
287
320
}
288
321
289
322
/**
290
- *
291
323
*/
292
324
public void subscribe (org .xmtp .android .library .push .Service .SubscribeRequest request ,
293
325
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
@@ -296,7 +328,14 @@ public void subscribe(org.xmtp.android.library.push.Service.SubscribeRequest req
296
328
}
297
329
298
330
/**
299
- *
331
+ */
332
+ public void subscribeWithMetadata (org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest request ,
333
+ io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
334
+ io .grpc .stub .ClientCalls .asyncUnaryCall (
335
+ getChannel ().newCall (getSubscribeWithMetadataMethod (), getCallOptions ()), request , responseObserver );
336
+ }
337
+
338
+ /**
300
339
*/
301
340
public void unsubscribe (org .xmtp .android .library .push .Service .UnsubscribeRequest request ,
302
341
io .grpc .stub .StreamObserver <com .google .protobuf .Empty > responseObserver ) {
@@ -306,7 +345,6 @@ public void unsubscribe(org.xmtp.android.library.push.Service.UnsubscribeRequest
306
345
}
307
346
308
347
/**
309
- *
310
348
*/
311
349
public static final class NotificationsBlockingStub extends io .grpc .stub .AbstractBlockingStub <NotificationsBlockingStub > {
312
350
private NotificationsBlockingStub (
@@ -321,31 +359,34 @@ protected NotificationsBlockingStub build(
321
359
}
322
360
323
361
/**
324
- *
325
362
*/
326
363
public org .xmtp .android .library .push .Service .RegisterInstallationResponse registerInstallation (org .xmtp .android .library .push .Service .RegisterInstallationRequest request ) {
327
364
return io .grpc .stub .ClientCalls .blockingUnaryCall (
328
365
getChannel (), getRegisterInstallationMethod (), getCallOptions (), request );
329
366
}
330
367
331
368
/**
332
- *
333
369
*/
334
370
public com .google .protobuf .Empty deleteInstallation (org .xmtp .android .library .push .Service .DeleteInstallationRequest request ) {
335
371
return io .grpc .stub .ClientCalls .blockingUnaryCall (
336
372
getChannel (), getDeleteInstallationMethod (), getCallOptions (), request );
337
373
}
338
374
339
375
/**
340
- *
341
376
*/
342
377
public com .google .protobuf .Empty subscribe (org .xmtp .android .library .push .Service .SubscribeRequest request ) {
343
378
return io .grpc .stub .ClientCalls .blockingUnaryCall (
344
379
getChannel (), getSubscribeMethod (), getCallOptions (), request );
345
380
}
346
381
347
382
/**
348
- *
383
+ */
384
+ public com .google .protobuf .Empty subscribeWithMetadata (org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest request ) {
385
+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
386
+ getChannel (), getSubscribeWithMetadataMethod (), getCallOptions (), request );
387
+ }
388
+
389
+ /**
349
390
*/
350
391
public com .google .protobuf .Empty unsubscribe (org .xmtp .android .library .push .Service .UnsubscribeRequest request ) {
351
392
return io .grpc .stub .ClientCalls .blockingUnaryCall (
@@ -354,7 +395,6 @@ public com.google.protobuf.Empty unsubscribe(org.xmtp.android.library.push.Servi
354
395
}
355
396
356
397
/**
357
- *
358
398
*/
359
399
public static final class NotificationsFutureStub extends io .grpc .stub .AbstractFutureStub <NotificationsFutureStub > {
360
400
private NotificationsFutureStub (
@@ -369,7 +409,6 @@ protected NotificationsFutureStub build(
369
409
}
370
410
371
411
/**
372
- *
373
412
*/
374
413
public com .google .common .util .concurrent .ListenableFuture <org .xmtp .android .library .push .Service .RegisterInstallationResponse > registerInstallation (
375
414
org .xmtp .android .library .push .Service .RegisterInstallationRequest request ) {
@@ -378,7 +417,6 @@ public com.google.common.util.concurrent.ListenableFuture<org.xmtp.android.libra
378
417
}
379
418
380
419
/**
381
- *
382
420
*/
383
421
public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty > deleteInstallation (
384
422
org .xmtp .android .library .push .Service .DeleteInstallationRequest request ) {
@@ -387,7 +425,6 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
387
425
}
388
426
389
427
/**
390
- *
391
428
*/
392
429
public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty > subscribe (
393
430
org .xmtp .android .library .push .Service .SubscribeRequest request ) {
@@ -396,7 +433,14 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
396
433
}
397
434
398
435
/**
399
- *
436
+ */
437
+ public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty > subscribeWithMetadata (
438
+ org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest request ) {
439
+ return io .grpc .stub .ClientCalls .futureUnaryCall (
440
+ getChannel ().newCall (getSubscribeWithMetadataMethod (), getCallOptions ()), request );
441
+ }
442
+
443
+ /**
400
444
*/
401
445
public com .google .common .util .concurrent .ListenableFuture <com .google .protobuf .Empty > unsubscribe (
402
446
org .xmtp .android .library .push .Service .UnsubscribeRequest request ) {
@@ -408,7 +452,8 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
408
452
private static final int METHODID_REGISTER_INSTALLATION = 0 ;
409
453
private static final int METHODID_DELETE_INSTALLATION = 1 ;
410
454
private static final int METHODID_SUBSCRIBE = 2 ;
411
- private static final int METHODID_UNSUBSCRIBE = 3 ;
455
+ private static final int METHODID_SUBSCRIBE_WITH_METADATA = 3 ;
456
+ private static final int METHODID_UNSUBSCRIBE = 4 ;
412
457
413
458
private static final class MethodHandlers <Req , Resp > implements
414
459
io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -439,6 +484,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
439
484
serviceImpl .subscribe ((org .xmtp .android .library .push .Service .SubscribeRequest ) request ,
440
485
(io .grpc .stub .StreamObserver <com .google .protobuf .Empty >) responseObserver );
441
486
break ;
487
+ case METHODID_SUBSCRIBE_WITH_METADATA :
488
+ serviceImpl .subscribeWithMetadata ((org .xmtp .android .library .push .Service .SubscribeWithMetadataRequest ) request ,
489
+ (io .grpc .stub .StreamObserver <com .google .protobuf .Empty >) responseObserver );
490
+ break ;
442
491
case METHODID_UNSUBSCRIBE :
443
492
serviceImpl .unsubscribe ((org .xmtp .android .library .push .Service .UnsubscribeRequest ) request ,
444
493
(io .grpc .stub .StreamObserver <com .google .protobuf .Empty >) responseObserver );
@@ -471,6 +520,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
471
520
.addMethod (getRegisterInstallationMethod ())
472
521
.addMethod (getDeleteInstallationMethod ())
473
522
.addMethod (getSubscribeMethod ())
523
+ .addMethod (getSubscribeWithMetadataMethod ())
474
524
.addMethod (getUnsubscribeMethod ())
475
525
.build ();
476
526
}
0 commit comments