blob: 47aeb296229feb5f369a9ce632cc1e77e35b0c04 [file] [log] [blame]
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +02001/**
2 * @fileoverview gRPC-Web generated client stub for
3 * @enhanceable
4 * @public
5 */
6
Adrià Vilanova Martínez7c99ad12023-04-15 17:27:09 +02007// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8// versions:
9// protoc-gen-grpc-web v1.4.2
10// protoc v3.21.12
11// source: api_proto/kill_switch.proto
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020012
13
14/* eslint-disable */
15// @ts-nocheck
16
17
18
19const grpc = {};
20grpc.web = require('grpc-web');
21
22
23var api_proto_common_pb = require('../api_proto/common_pb.js')
24
25var api_proto_kill_switch_objects_pb = require('../api_proto/kill_switch_objects_pb.js')
26const proto = require('./kill_switch_pb.js');
27
28/**
29 * @param {string} hostname
30 * @param {?Object} credentials
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +010031 * @param {?grpc.web.ClientOptions} options
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020032 * @constructor
33 * @struct
34 * @final
35 */
36proto.KillSwitchServiceClient =
37 function(hostname, credentials, options) {
38 if (!options) options = {};
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +010039 options.format = 'text';
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020040
41 /**
42 * @private @const {!grpc.web.GrpcWebClientBase} The client
43 */
44 this.client_ = new grpc.web.GrpcWebClientBase(options);
45
46 /**
47 * @private @const {string} The hostname
48 */
Adrià Vilanova Martínez7c99ad12023-04-15 17:27:09 +020049 this.hostname_ = hostname.replace(/\/+$/, '');
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020050
51};
52
53
54/**
55 * @param {string} hostname
56 * @param {?Object} credentials
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +010057 * @param {?grpc.web.ClientOptions} options
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020058 * @constructor
59 * @struct
60 * @final
61 */
62proto.KillSwitchServicePromiseClient =
63 function(hostname, credentials, options) {
64 if (!options) options = {};
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +010065 options.format = 'text';
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020066
67 /**
68 * @private @const {!grpc.web.GrpcWebClientBase} The client
69 */
70 this.client_ = new grpc.web.GrpcWebClientBase(options);
71
72 /**
73 * @private @const {string} The hostname
74 */
Adrià Vilanova Martínez7c99ad12023-04-15 17:27:09 +020075 this.hostname_ = hostname.replace(/\/+$/, '');
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020076
77};
78
79
80/**
81 * @const
82 * @type {!grpc.web.MethodDescriptor<
83 * !proto.GetKillSwitchStatusRequest,
84 * !proto.GetKillSwitchStatusResponse>}
85 */
86const methodDescriptor_KillSwitchService_GetKillSwitchStatus = new grpc.web.MethodDescriptor(
87 '/KillSwitchService/GetKillSwitchStatus',
88 grpc.web.MethodType.UNARY,
89 proto.GetKillSwitchStatusRequest,
90 proto.GetKillSwitchStatusResponse,
91 /**
92 * @param {!proto.GetKillSwitchStatusRequest} request
93 * @return {!Uint8Array}
94 */
95 function(request) {
96 return request.serializeBinary();
97 },
98 proto.GetKillSwitchStatusResponse.deserializeBinary
99);
100
101
102/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200103 * @param {!proto.GetKillSwitchStatusRequest} request The
104 * request proto
105 * @param {?Object<string, string>} metadata User defined
106 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100107 * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchStatusResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200108 * callback The callback function(error, response)
109 * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchStatusResponse>|undefined}
110 * The XHR Node Readable Stream
111 */
112proto.KillSwitchServiceClient.prototype.getKillSwitchStatus =
113 function(request, metadata, callback) {
114 return this.client_.rpcCall(this.hostname_ +
115 '/KillSwitchService/GetKillSwitchStatus',
116 request,
117 metadata || {},
118 methodDescriptor_KillSwitchService_GetKillSwitchStatus,
119 callback);
120};
121
122
123/**
124 * @param {!proto.GetKillSwitchStatusRequest} request The
125 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100126 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200127 * call metadata
128 * @return {!Promise<!proto.GetKillSwitchStatusResponse>}
129 * Promise that resolves to the response
130 */
131proto.KillSwitchServicePromiseClient.prototype.getKillSwitchStatus =
132 function(request, metadata) {
133 return this.client_.unaryCall(this.hostname_ +
134 '/KillSwitchService/GetKillSwitchStatus',
135 request,
136 metadata || {},
137 methodDescriptor_KillSwitchService_GetKillSwitchStatus);
138};
139
140
141/**
142 * @const
143 * @type {!grpc.web.MethodDescriptor<
144 * !proto.GetKillSwitchOverviewRequest,
145 * !proto.GetKillSwitchOverviewResponse>}
146 */
147const methodDescriptor_KillSwitchService_GetKillSwitchOverview = new grpc.web.MethodDescriptor(
148 '/KillSwitchService/GetKillSwitchOverview',
149 grpc.web.MethodType.UNARY,
150 proto.GetKillSwitchOverviewRequest,
151 proto.GetKillSwitchOverviewResponse,
152 /**
153 * @param {!proto.GetKillSwitchOverviewRequest} request
154 * @return {!Uint8Array}
155 */
156 function(request) {
157 return request.serializeBinary();
158 },
159 proto.GetKillSwitchOverviewResponse.deserializeBinary
160);
161
162
163/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200164 * @param {!proto.GetKillSwitchOverviewRequest} request The
165 * request proto
166 * @param {?Object<string, string>} metadata User defined
167 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100168 * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchOverviewResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200169 * callback The callback function(error, response)
170 * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchOverviewResponse>|undefined}
171 * The XHR Node Readable Stream
172 */
173proto.KillSwitchServiceClient.prototype.getKillSwitchOverview =
174 function(request, metadata, callback) {
175 return this.client_.rpcCall(this.hostname_ +
176 '/KillSwitchService/GetKillSwitchOverview',
177 request,
178 metadata || {},
179 methodDescriptor_KillSwitchService_GetKillSwitchOverview,
180 callback);
181};
182
183
184/**
185 * @param {!proto.GetKillSwitchOverviewRequest} request The
186 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100187 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200188 * call metadata
189 * @return {!Promise<!proto.GetKillSwitchOverviewResponse>}
190 * Promise that resolves to the response
191 */
192proto.KillSwitchServicePromiseClient.prototype.getKillSwitchOverview =
193 function(request, metadata) {
194 return this.client_.unaryCall(this.hostname_ +
195 '/KillSwitchService/GetKillSwitchOverview',
196 request,
197 metadata || {},
198 methodDescriptor_KillSwitchService_GetKillSwitchOverview);
199};
200
201
202/**
203 * @const
204 * @type {!grpc.web.MethodDescriptor<
205 * !proto.ListFeaturesRequest,
206 * !proto.ListFeaturesResponse>}
207 */
208const methodDescriptor_KillSwitchService_ListFeatures = new grpc.web.MethodDescriptor(
209 '/KillSwitchService/ListFeatures',
210 grpc.web.MethodType.UNARY,
211 proto.ListFeaturesRequest,
212 proto.ListFeaturesResponse,
213 /**
214 * @param {!proto.ListFeaturesRequest} request
215 * @return {!Uint8Array}
216 */
217 function(request) {
218 return request.serializeBinary();
219 },
220 proto.ListFeaturesResponse.deserializeBinary
221);
222
223
224/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200225 * @param {!proto.ListFeaturesRequest} request The
226 * request proto
227 * @param {?Object<string, string>} metadata User defined
228 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100229 * @param {function(?grpc.web.RpcError, ?proto.ListFeaturesResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200230 * callback The callback function(error, response)
231 * @return {!grpc.web.ClientReadableStream<!proto.ListFeaturesResponse>|undefined}
232 * The XHR Node Readable Stream
233 */
234proto.KillSwitchServiceClient.prototype.listFeatures =
235 function(request, metadata, callback) {
236 return this.client_.rpcCall(this.hostname_ +
237 '/KillSwitchService/ListFeatures',
238 request,
239 metadata || {},
240 methodDescriptor_KillSwitchService_ListFeatures,
241 callback);
242};
243
244
245/**
246 * @param {!proto.ListFeaturesRequest} request The
247 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100248 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200249 * call metadata
250 * @return {!Promise<!proto.ListFeaturesResponse>}
251 * Promise that resolves to the response
252 */
253proto.KillSwitchServicePromiseClient.prototype.listFeatures =
254 function(request, metadata) {
255 return this.client_.unaryCall(this.hostname_ +
256 '/KillSwitchService/ListFeatures',
257 request,
258 metadata || {},
259 methodDescriptor_KillSwitchService_ListFeatures);
260};
261
262
263/**
264 * @const
265 * @type {!grpc.web.MethodDescriptor<
266 * !proto.SyncFeaturesRequest,
267 * !proto.SyncFeaturesResponse>}
268 */
269const methodDescriptor_KillSwitchService_SyncFeatures = new grpc.web.MethodDescriptor(
270 '/KillSwitchService/SyncFeatures',
271 grpc.web.MethodType.UNARY,
272 proto.SyncFeaturesRequest,
273 proto.SyncFeaturesResponse,
274 /**
275 * @param {!proto.SyncFeaturesRequest} request
276 * @return {!Uint8Array}
277 */
278 function(request) {
279 return request.serializeBinary();
280 },
281 proto.SyncFeaturesResponse.deserializeBinary
282);
283
284
285/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200286 * @param {!proto.SyncFeaturesRequest} request The
287 * request proto
288 * @param {?Object<string, string>} metadata User defined
289 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100290 * @param {function(?grpc.web.RpcError, ?proto.SyncFeaturesResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200291 * callback The callback function(error, response)
292 * @return {!grpc.web.ClientReadableStream<!proto.SyncFeaturesResponse>|undefined}
293 * The XHR Node Readable Stream
294 */
295proto.KillSwitchServiceClient.prototype.syncFeatures =
296 function(request, metadata, callback) {
297 return this.client_.rpcCall(this.hostname_ +
298 '/KillSwitchService/SyncFeatures',
299 request,
300 metadata || {},
301 methodDescriptor_KillSwitchService_SyncFeatures,
302 callback);
303};
304
305
306/**
307 * @param {!proto.SyncFeaturesRequest} request The
308 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100309 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200310 * call metadata
311 * @return {!Promise<!proto.SyncFeaturesResponse>}
312 * Promise that resolves to the response
313 */
314proto.KillSwitchServicePromiseClient.prototype.syncFeatures =
315 function(request, metadata) {
316 return this.client_.unaryCall(this.hostname_ +
317 '/KillSwitchService/SyncFeatures',
318 request,
319 metadata || {},
320 methodDescriptor_KillSwitchService_SyncFeatures);
321};
322
323
324/**
325 * @const
326 * @type {!grpc.web.MethodDescriptor<
327 * !proto.EnableKillSwitchRequest,
328 * !proto.EnableKillSwitchResponse>}
329 */
330const methodDescriptor_KillSwitchService_EnableKillSwitch = new grpc.web.MethodDescriptor(
331 '/KillSwitchService/EnableKillSwitch',
332 grpc.web.MethodType.UNARY,
333 proto.EnableKillSwitchRequest,
334 proto.EnableKillSwitchResponse,
335 /**
336 * @param {!proto.EnableKillSwitchRequest} request
337 * @return {!Uint8Array}
338 */
339 function(request) {
340 return request.serializeBinary();
341 },
342 proto.EnableKillSwitchResponse.deserializeBinary
343);
344
345
346/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200347 * @param {!proto.EnableKillSwitchRequest} request The
348 * request proto
349 * @param {?Object<string, string>} metadata User defined
350 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100351 * @param {function(?grpc.web.RpcError, ?proto.EnableKillSwitchResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200352 * callback The callback function(error, response)
353 * @return {!grpc.web.ClientReadableStream<!proto.EnableKillSwitchResponse>|undefined}
354 * The XHR Node Readable Stream
355 */
356proto.KillSwitchServiceClient.prototype.enableKillSwitch =
357 function(request, metadata, callback) {
358 return this.client_.rpcCall(this.hostname_ +
359 '/KillSwitchService/EnableKillSwitch',
360 request,
361 metadata || {},
362 methodDescriptor_KillSwitchService_EnableKillSwitch,
363 callback);
364};
365
366
367/**
368 * @param {!proto.EnableKillSwitchRequest} request The
369 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100370 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200371 * call metadata
372 * @return {!Promise<!proto.EnableKillSwitchResponse>}
373 * Promise that resolves to the response
374 */
375proto.KillSwitchServicePromiseClient.prototype.enableKillSwitch =
376 function(request, metadata) {
377 return this.client_.unaryCall(this.hostname_ +
378 '/KillSwitchService/EnableKillSwitch',
379 request,
380 metadata || {},
381 methodDescriptor_KillSwitchService_EnableKillSwitch);
382};
383
384
385/**
386 * @const
387 * @type {!grpc.web.MethodDescriptor<
388 * !proto.DisableKillSwitchRequest,
389 * !proto.DisableKillSwitchResponse>}
390 */
391const methodDescriptor_KillSwitchService_DisableKillSwitch = new grpc.web.MethodDescriptor(
392 '/KillSwitchService/DisableKillSwitch',
393 grpc.web.MethodType.UNARY,
394 proto.DisableKillSwitchRequest,
395 proto.DisableKillSwitchResponse,
396 /**
397 * @param {!proto.DisableKillSwitchRequest} request
398 * @return {!Uint8Array}
399 */
400 function(request) {
401 return request.serializeBinary();
402 },
403 proto.DisableKillSwitchResponse.deserializeBinary
404);
405
406
407/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200408 * @param {!proto.DisableKillSwitchRequest} request The
409 * request proto
410 * @param {?Object<string, string>} metadata User defined
411 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100412 * @param {function(?grpc.web.RpcError, ?proto.DisableKillSwitchResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200413 * callback The callback function(error, response)
414 * @return {!grpc.web.ClientReadableStream<!proto.DisableKillSwitchResponse>|undefined}
415 * The XHR Node Readable Stream
416 */
417proto.KillSwitchServiceClient.prototype.disableKillSwitch =
418 function(request, metadata, callback) {
419 return this.client_.rpcCall(this.hostname_ +
420 '/KillSwitchService/DisableKillSwitch',
421 request,
422 metadata || {},
423 methodDescriptor_KillSwitchService_DisableKillSwitch,
424 callback);
425};
426
427
428/**
429 * @param {!proto.DisableKillSwitchRequest} request The
430 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100431 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200432 * call metadata
433 * @return {!Promise<!proto.DisableKillSwitchResponse>}
434 * Promise that resolves to the response
435 */
436proto.KillSwitchServicePromiseClient.prototype.disableKillSwitch =
437 function(request, metadata) {
438 return this.client_.unaryCall(this.hostname_ +
439 '/KillSwitchService/DisableKillSwitch',
440 request,
441 metadata || {},
442 methodDescriptor_KillSwitchService_DisableKillSwitch);
443};
444
445
446/**
447 * @const
448 * @type {!grpc.web.MethodDescriptor<
449 * !proto.ListAuthorizedUsersRequest,
450 * !proto.ListAuthorizedUsersResponse>}
451 */
452const methodDescriptor_KillSwitchService_ListAuthorizedUsers = new grpc.web.MethodDescriptor(
453 '/KillSwitchService/ListAuthorizedUsers',
454 grpc.web.MethodType.UNARY,
455 proto.ListAuthorizedUsersRequest,
456 proto.ListAuthorizedUsersResponse,
457 /**
458 * @param {!proto.ListAuthorizedUsersRequest} request
459 * @return {!Uint8Array}
460 */
461 function(request) {
462 return request.serializeBinary();
463 },
464 proto.ListAuthorizedUsersResponse.deserializeBinary
465);
466
467
468/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200469 * @param {!proto.ListAuthorizedUsersRequest} request The
470 * request proto
471 * @param {?Object<string, string>} metadata User defined
472 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100473 * @param {function(?grpc.web.RpcError, ?proto.ListAuthorizedUsersResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200474 * callback The callback function(error, response)
475 * @return {!grpc.web.ClientReadableStream<!proto.ListAuthorizedUsersResponse>|undefined}
476 * The XHR Node Readable Stream
477 */
478proto.KillSwitchServiceClient.prototype.listAuthorizedUsers =
479 function(request, metadata, callback) {
480 return this.client_.rpcCall(this.hostname_ +
481 '/KillSwitchService/ListAuthorizedUsers',
482 request,
483 metadata || {},
484 methodDescriptor_KillSwitchService_ListAuthorizedUsers,
485 callback);
486};
487
488
489/**
490 * @param {!proto.ListAuthorizedUsersRequest} request The
491 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100492 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200493 * call metadata
494 * @return {!Promise<!proto.ListAuthorizedUsersResponse>}
495 * Promise that resolves to the response
496 */
497proto.KillSwitchServicePromiseClient.prototype.listAuthorizedUsers =
498 function(request, metadata) {
499 return this.client_.unaryCall(this.hostname_ +
500 '/KillSwitchService/ListAuthorizedUsers',
501 request,
502 metadata || {},
503 methodDescriptor_KillSwitchService_ListAuthorizedUsers);
504};
505
506
507/**
508 * @const
509 * @type {!grpc.web.MethodDescriptor<
510 * !proto.AddAuthorizedUserRequest,
511 * !proto.AddAuthorizedUserResponse>}
512 */
513const methodDescriptor_KillSwitchService_AddAuthorizedUser = new grpc.web.MethodDescriptor(
514 '/KillSwitchService/AddAuthorizedUser',
515 grpc.web.MethodType.UNARY,
516 proto.AddAuthorizedUserRequest,
517 proto.AddAuthorizedUserResponse,
518 /**
519 * @param {!proto.AddAuthorizedUserRequest} request
520 * @return {!Uint8Array}
521 */
522 function(request) {
523 return request.serializeBinary();
524 },
525 proto.AddAuthorizedUserResponse.deserializeBinary
526);
527
528
529/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200530 * @param {!proto.AddAuthorizedUserRequest} request The
531 * request proto
532 * @param {?Object<string, string>} metadata User defined
533 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100534 * @param {function(?grpc.web.RpcError, ?proto.AddAuthorizedUserResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200535 * callback The callback function(error, response)
536 * @return {!grpc.web.ClientReadableStream<!proto.AddAuthorizedUserResponse>|undefined}
537 * The XHR Node Readable Stream
538 */
539proto.KillSwitchServiceClient.prototype.addAuthorizedUser =
540 function(request, metadata, callback) {
541 return this.client_.rpcCall(this.hostname_ +
542 '/KillSwitchService/AddAuthorizedUser',
543 request,
544 metadata || {},
545 methodDescriptor_KillSwitchService_AddAuthorizedUser,
546 callback);
547};
548
549
550/**
551 * @param {!proto.AddAuthorizedUserRequest} request The
552 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100553 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200554 * call metadata
555 * @return {!Promise<!proto.AddAuthorizedUserResponse>}
556 * Promise that resolves to the response
557 */
558proto.KillSwitchServicePromiseClient.prototype.addAuthorizedUser =
559 function(request, metadata) {
560 return this.client_.unaryCall(this.hostname_ +
561 '/KillSwitchService/AddAuthorizedUser',
562 request,
563 metadata || {},
564 methodDescriptor_KillSwitchService_AddAuthorizedUser);
565};
566
567
568/**
569 * @const
570 * @type {!grpc.web.MethodDescriptor<
571 * !proto.UpdateAuthorizedUserRequest,
572 * !proto.UpdateAuthorizedUserResponse>}
573 */
574const methodDescriptor_KillSwitchService_UpdateAuthorizedUser = new grpc.web.MethodDescriptor(
575 '/KillSwitchService/UpdateAuthorizedUser',
576 grpc.web.MethodType.UNARY,
577 proto.UpdateAuthorizedUserRequest,
578 proto.UpdateAuthorizedUserResponse,
579 /**
580 * @param {!proto.UpdateAuthorizedUserRequest} request
581 * @return {!Uint8Array}
582 */
583 function(request) {
584 return request.serializeBinary();
585 },
586 proto.UpdateAuthorizedUserResponse.deserializeBinary
587);
588
589
590/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200591 * @param {!proto.UpdateAuthorizedUserRequest} request The
592 * request proto
593 * @param {?Object<string, string>} metadata User defined
594 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100595 * @param {function(?grpc.web.RpcError, ?proto.UpdateAuthorizedUserResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200596 * callback The callback function(error, response)
597 * @return {!grpc.web.ClientReadableStream<!proto.UpdateAuthorizedUserResponse>|undefined}
598 * The XHR Node Readable Stream
599 */
600proto.KillSwitchServiceClient.prototype.updateAuthorizedUser =
601 function(request, metadata, callback) {
602 return this.client_.rpcCall(this.hostname_ +
603 '/KillSwitchService/UpdateAuthorizedUser',
604 request,
605 metadata || {},
606 methodDescriptor_KillSwitchService_UpdateAuthorizedUser,
607 callback);
608};
609
610
611/**
612 * @param {!proto.UpdateAuthorizedUserRequest} request The
613 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100614 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200615 * call metadata
616 * @return {!Promise<!proto.UpdateAuthorizedUserResponse>}
617 * Promise that resolves to the response
618 */
619proto.KillSwitchServicePromiseClient.prototype.updateAuthorizedUser =
620 function(request, metadata) {
621 return this.client_.unaryCall(this.hostname_ +
622 '/KillSwitchService/UpdateAuthorizedUser',
623 request,
624 metadata || {},
625 methodDescriptor_KillSwitchService_UpdateAuthorizedUser);
626};
627
628
629/**
630 * @const
631 * @type {!grpc.web.MethodDescriptor<
632 * !proto.DeleteAuthorizedUserRequest,
633 * !proto.DeleteAuthorizedUserResponse>}
634 */
635const methodDescriptor_KillSwitchService_DeleteAuthorizedUser = new grpc.web.MethodDescriptor(
636 '/KillSwitchService/DeleteAuthorizedUser',
637 grpc.web.MethodType.UNARY,
638 proto.DeleteAuthorizedUserRequest,
639 proto.DeleteAuthorizedUserResponse,
640 /**
641 * @param {!proto.DeleteAuthorizedUserRequest} request
642 * @return {!Uint8Array}
643 */
644 function(request) {
645 return request.serializeBinary();
646 },
647 proto.DeleteAuthorizedUserResponse.deserializeBinary
648);
649
650
651/**
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200652 * @param {!proto.DeleteAuthorizedUserRequest} request The
653 * request proto
654 * @param {?Object<string, string>} metadata User defined
655 * call metadata
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100656 * @param {function(?grpc.web.RpcError, ?proto.DeleteAuthorizedUserResponse)}
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200657 * callback The callback function(error, response)
658 * @return {!grpc.web.ClientReadableStream<!proto.DeleteAuthorizedUserResponse>|undefined}
659 * The XHR Node Readable Stream
660 */
661proto.KillSwitchServiceClient.prototype.deleteAuthorizedUser =
662 function(request, metadata, callback) {
663 return this.client_.rpcCall(this.hostname_ +
664 '/KillSwitchService/DeleteAuthorizedUser',
665 request,
666 metadata || {},
667 methodDescriptor_KillSwitchService_DeleteAuthorizedUser,
668 callback);
669};
670
671
672/**
673 * @param {!proto.DeleteAuthorizedUserRequest} request The
674 * request proto
Adrià Vilanova Martínez50435f82022-01-21 19:33:36 +0100675 * @param {?Object<string, string>=} metadata User defined
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +0200676 * call metadata
677 * @return {!Promise<!proto.DeleteAuthorizedUserResponse>}
678 * Promise that resolves to the response
679 */
680proto.KillSwitchServicePromiseClient.prototype.deleteAuthorizedUser =
681 function(request, metadata) {
682 return this.client_.unaryCall(this.hostname_ +
683 '/KillSwitchService/DeleteAuthorizedUser',
684 request,
685 metadata || {},
686 methodDescriptor_KillSwitchService_DeleteAuthorizedUser);
687};
688
689
690module.exports = proto;
691