Adrià Vilanova MartÃnez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 1 | /** |
| 2 | * @fileoverview gRPC-Web generated client stub for |
| 3 | * @enhanceable |
| 4 | * @public |
| 5 | */ |
| 6 | |
| 7 | // GENERATED CODE -- DO NOT EDIT! |
| 8 | |
| 9 | |
| 10 | /* eslint-disable */ |
| 11 | // @ts-nocheck |
| 12 | |
| 13 | |
| 14 | |
| 15 | const grpc = {}; |
| 16 | grpc.web = require('grpc-web'); |
| 17 | |
| 18 | |
| 19 | var api_proto_common_pb = require('../api_proto/common_pb.js') |
| 20 | |
| 21 | var api_proto_kill_switch_objects_pb = require('../api_proto/kill_switch_objects_pb.js') |
| 22 | const proto = require('./kill_switch_pb.js'); |
| 23 | |
| 24 | /** |
| 25 | * @param {string} hostname |
| 26 | * @param {?Object} credentials |
| 27 | * @param {?Object} options |
| 28 | * @constructor |
| 29 | * @struct |
| 30 | * @final |
| 31 | */ |
| 32 | proto.KillSwitchServiceClient = |
| 33 | function(hostname, credentials, options) { |
| 34 | if (!options) options = {}; |
| 35 | options['format'] = 'text'; |
| 36 | |
| 37 | /** |
| 38 | * @private @const {!grpc.web.GrpcWebClientBase} The client |
| 39 | */ |
| 40 | this.client_ = new grpc.web.GrpcWebClientBase(options); |
| 41 | |
| 42 | /** |
| 43 | * @private @const {string} The hostname |
| 44 | */ |
| 45 | this.hostname_ = hostname; |
| 46 | |
| 47 | }; |
| 48 | |
| 49 | |
| 50 | /** |
| 51 | * @param {string} hostname |
| 52 | * @param {?Object} credentials |
| 53 | * @param {?Object} options |
| 54 | * @constructor |
| 55 | * @struct |
| 56 | * @final |
| 57 | */ |
| 58 | proto.KillSwitchServicePromiseClient = |
| 59 | function(hostname, credentials, options) { |
| 60 | if (!options) options = {}; |
| 61 | options['format'] = 'text'; |
| 62 | |
| 63 | /** |
| 64 | * @private @const {!grpc.web.GrpcWebClientBase} The client |
| 65 | */ |
| 66 | this.client_ = new grpc.web.GrpcWebClientBase(options); |
| 67 | |
| 68 | /** |
| 69 | * @private @const {string} The hostname |
| 70 | */ |
| 71 | this.hostname_ = hostname; |
| 72 | |
| 73 | }; |
| 74 | |
| 75 | |
| 76 | /** |
| 77 | * @const |
| 78 | * @type {!grpc.web.MethodDescriptor< |
| 79 | * !proto.GetKillSwitchStatusRequest, |
| 80 | * !proto.GetKillSwitchStatusResponse>} |
| 81 | */ |
| 82 | const methodDescriptor_KillSwitchService_GetKillSwitchStatus = new grpc.web.MethodDescriptor( |
| 83 | '/KillSwitchService/GetKillSwitchStatus', |
| 84 | grpc.web.MethodType.UNARY, |
| 85 | proto.GetKillSwitchStatusRequest, |
| 86 | proto.GetKillSwitchStatusResponse, |
| 87 | /** |
| 88 | * @param {!proto.GetKillSwitchStatusRequest} request |
| 89 | * @return {!Uint8Array} |
| 90 | */ |
| 91 | function(request) { |
| 92 | return request.serializeBinary(); |
| 93 | }, |
| 94 | proto.GetKillSwitchStatusResponse.deserializeBinary |
| 95 | ); |
| 96 | |
| 97 | |
| 98 | /** |
| 99 | * @const |
| 100 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 101 | * !proto.GetKillSwitchStatusRequest, |
| 102 | * !proto.GetKillSwitchStatusResponse>} |
| 103 | */ |
| 104 | const methodInfo_KillSwitchService_GetKillSwitchStatus = new grpc.web.AbstractClientBase.MethodInfo( |
| 105 | proto.GetKillSwitchStatusResponse, |
| 106 | /** |
| 107 | * @param {!proto.GetKillSwitchStatusRequest} request |
| 108 | * @return {!Uint8Array} |
| 109 | */ |
| 110 | function(request) { |
| 111 | return request.serializeBinary(); |
| 112 | }, |
| 113 | proto.GetKillSwitchStatusResponse.deserializeBinary |
| 114 | ); |
| 115 | |
| 116 | |
| 117 | /** |
| 118 | * @param {!proto.GetKillSwitchStatusRequest} request The |
| 119 | * request proto |
| 120 | * @param {?Object<string, string>} metadata User defined |
| 121 | * call metadata |
| 122 | * @param {function(?grpc.web.Error, ?proto.GetKillSwitchStatusResponse)} |
| 123 | * callback The callback function(error, response) |
| 124 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchStatusResponse>|undefined} |
| 125 | * The XHR Node Readable Stream |
| 126 | */ |
| 127 | proto.KillSwitchServiceClient.prototype.getKillSwitchStatus = |
| 128 | function(request, metadata, callback) { |
| 129 | return this.client_.rpcCall(this.hostname_ + |
| 130 | '/KillSwitchService/GetKillSwitchStatus', |
| 131 | request, |
| 132 | metadata || {}, |
| 133 | methodDescriptor_KillSwitchService_GetKillSwitchStatus, |
| 134 | callback); |
| 135 | }; |
| 136 | |
| 137 | |
| 138 | /** |
| 139 | * @param {!proto.GetKillSwitchStatusRequest} request The |
| 140 | * request proto |
| 141 | * @param {?Object<string, string>} metadata User defined |
| 142 | * call metadata |
| 143 | * @return {!Promise<!proto.GetKillSwitchStatusResponse>} |
| 144 | * Promise that resolves to the response |
| 145 | */ |
| 146 | proto.KillSwitchServicePromiseClient.prototype.getKillSwitchStatus = |
| 147 | function(request, metadata) { |
| 148 | return this.client_.unaryCall(this.hostname_ + |
| 149 | '/KillSwitchService/GetKillSwitchStatus', |
| 150 | request, |
| 151 | metadata || {}, |
| 152 | methodDescriptor_KillSwitchService_GetKillSwitchStatus); |
| 153 | }; |
| 154 | |
| 155 | |
| 156 | /** |
| 157 | * @const |
| 158 | * @type {!grpc.web.MethodDescriptor< |
| 159 | * !proto.GetKillSwitchOverviewRequest, |
| 160 | * !proto.GetKillSwitchOverviewResponse>} |
| 161 | */ |
| 162 | const methodDescriptor_KillSwitchService_GetKillSwitchOverview = new grpc.web.MethodDescriptor( |
| 163 | '/KillSwitchService/GetKillSwitchOverview', |
| 164 | grpc.web.MethodType.UNARY, |
| 165 | proto.GetKillSwitchOverviewRequest, |
| 166 | proto.GetKillSwitchOverviewResponse, |
| 167 | /** |
| 168 | * @param {!proto.GetKillSwitchOverviewRequest} request |
| 169 | * @return {!Uint8Array} |
| 170 | */ |
| 171 | function(request) { |
| 172 | return request.serializeBinary(); |
| 173 | }, |
| 174 | proto.GetKillSwitchOverviewResponse.deserializeBinary |
| 175 | ); |
| 176 | |
| 177 | |
| 178 | /** |
| 179 | * @const |
| 180 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 181 | * !proto.GetKillSwitchOverviewRequest, |
| 182 | * !proto.GetKillSwitchOverviewResponse>} |
| 183 | */ |
| 184 | const methodInfo_KillSwitchService_GetKillSwitchOverview = new grpc.web.AbstractClientBase.MethodInfo( |
| 185 | proto.GetKillSwitchOverviewResponse, |
| 186 | /** |
| 187 | * @param {!proto.GetKillSwitchOverviewRequest} request |
| 188 | * @return {!Uint8Array} |
| 189 | */ |
| 190 | function(request) { |
| 191 | return request.serializeBinary(); |
| 192 | }, |
| 193 | proto.GetKillSwitchOverviewResponse.deserializeBinary |
| 194 | ); |
| 195 | |
| 196 | |
| 197 | /** |
| 198 | * @param {!proto.GetKillSwitchOverviewRequest} request The |
| 199 | * request proto |
| 200 | * @param {?Object<string, string>} metadata User defined |
| 201 | * call metadata |
| 202 | * @param {function(?grpc.web.Error, ?proto.GetKillSwitchOverviewResponse)} |
| 203 | * callback The callback function(error, response) |
| 204 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchOverviewResponse>|undefined} |
| 205 | * The XHR Node Readable Stream |
| 206 | */ |
| 207 | proto.KillSwitchServiceClient.prototype.getKillSwitchOverview = |
| 208 | function(request, metadata, callback) { |
| 209 | return this.client_.rpcCall(this.hostname_ + |
| 210 | '/KillSwitchService/GetKillSwitchOverview', |
| 211 | request, |
| 212 | metadata || {}, |
| 213 | methodDescriptor_KillSwitchService_GetKillSwitchOverview, |
| 214 | callback); |
| 215 | }; |
| 216 | |
| 217 | |
| 218 | /** |
| 219 | * @param {!proto.GetKillSwitchOverviewRequest} request The |
| 220 | * request proto |
| 221 | * @param {?Object<string, string>} metadata User defined |
| 222 | * call metadata |
| 223 | * @return {!Promise<!proto.GetKillSwitchOverviewResponse>} |
| 224 | * Promise that resolves to the response |
| 225 | */ |
| 226 | proto.KillSwitchServicePromiseClient.prototype.getKillSwitchOverview = |
| 227 | function(request, metadata) { |
| 228 | return this.client_.unaryCall(this.hostname_ + |
| 229 | '/KillSwitchService/GetKillSwitchOverview', |
| 230 | request, |
| 231 | metadata || {}, |
| 232 | methodDescriptor_KillSwitchService_GetKillSwitchOverview); |
| 233 | }; |
| 234 | |
| 235 | |
| 236 | /** |
| 237 | * @const |
| 238 | * @type {!grpc.web.MethodDescriptor< |
| 239 | * !proto.ListFeaturesRequest, |
| 240 | * !proto.ListFeaturesResponse>} |
| 241 | */ |
| 242 | const methodDescriptor_KillSwitchService_ListFeatures = new grpc.web.MethodDescriptor( |
| 243 | '/KillSwitchService/ListFeatures', |
| 244 | grpc.web.MethodType.UNARY, |
| 245 | proto.ListFeaturesRequest, |
| 246 | proto.ListFeaturesResponse, |
| 247 | /** |
| 248 | * @param {!proto.ListFeaturesRequest} request |
| 249 | * @return {!Uint8Array} |
| 250 | */ |
| 251 | function(request) { |
| 252 | return request.serializeBinary(); |
| 253 | }, |
| 254 | proto.ListFeaturesResponse.deserializeBinary |
| 255 | ); |
| 256 | |
| 257 | |
| 258 | /** |
| 259 | * @const |
| 260 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 261 | * !proto.ListFeaturesRequest, |
| 262 | * !proto.ListFeaturesResponse>} |
| 263 | */ |
| 264 | const methodInfo_KillSwitchService_ListFeatures = new grpc.web.AbstractClientBase.MethodInfo( |
| 265 | proto.ListFeaturesResponse, |
| 266 | /** |
| 267 | * @param {!proto.ListFeaturesRequest} request |
| 268 | * @return {!Uint8Array} |
| 269 | */ |
| 270 | function(request) { |
| 271 | return request.serializeBinary(); |
| 272 | }, |
| 273 | proto.ListFeaturesResponse.deserializeBinary |
| 274 | ); |
| 275 | |
| 276 | |
| 277 | /** |
| 278 | * @param {!proto.ListFeaturesRequest} request The |
| 279 | * request proto |
| 280 | * @param {?Object<string, string>} metadata User defined |
| 281 | * call metadata |
| 282 | * @param {function(?grpc.web.Error, ?proto.ListFeaturesResponse)} |
| 283 | * callback The callback function(error, response) |
| 284 | * @return {!grpc.web.ClientReadableStream<!proto.ListFeaturesResponse>|undefined} |
| 285 | * The XHR Node Readable Stream |
| 286 | */ |
| 287 | proto.KillSwitchServiceClient.prototype.listFeatures = |
| 288 | function(request, metadata, callback) { |
| 289 | return this.client_.rpcCall(this.hostname_ + |
| 290 | '/KillSwitchService/ListFeatures', |
| 291 | request, |
| 292 | metadata || {}, |
| 293 | methodDescriptor_KillSwitchService_ListFeatures, |
| 294 | callback); |
| 295 | }; |
| 296 | |
| 297 | |
| 298 | /** |
| 299 | * @param {!proto.ListFeaturesRequest} request The |
| 300 | * request proto |
| 301 | * @param {?Object<string, string>} metadata User defined |
| 302 | * call metadata |
| 303 | * @return {!Promise<!proto.ListFeaturesResponse>} |
| 304 | * Promise that resolves to the response |
| 305 | */ |
| 306 | proto.KillSwitchServicePromiseClient.prototype.listFeatures = |
| 307 | function(request, metadata) { |
| 308 | return this.client_.unaryCall(this.hostname_ + |
| 309 | '/KillSwitchService/ListFeatures', |
| 310 | request, |
| 311 | metadata || {}, |
| 312 | methodDescriptor_KillSwitchService_ListFeatures); |
| 313 | }; |
| 314 | |
| 315 | |
| 316 | /** |
| 317 | * @const |
| 318 | * @type {!grpc.web.MethodDescriptor< |
| 319 | * !proto.SyncFeaturesRequest, |
| 320 | * !proto.SyncFeaturesResponse>} |
| 321 | */ |
| 322 | const methodDescriptor_KillSwitchService_SyncFeatures = new grpc.web.MethodDescriptor( |
| 323 | '/KillSwitchService/SyncFeatures', |
| 324 | grpc.web.MethodType.UNARY, |
| 325 | proto.SyncFeaturesRequest, |
| 326 | proto.SyncFeaturesResponse, |
| 327 | /** |
| 328 | * @param {!proto.SyncFeaturesRequest} request |
| 329 | * @return {!Uint8Array} |
| 330 | */ |
| 331 | function(request) { |
| 332 | return request.serializeBinary(); |
| 333 | }, |
| 334 | proto.SyncFeaturesResponse.deserializeBinary |
| 335 | ); |
| 336 | |
| 337 | |
| 338 | /** |
| 339 | * @const |
| 340 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 341 | * !proto.SyncFeaturesRequest, |
| 342 | * !proto.SyncFeaturesResponse>} |
| 343 | */ |
| 344 | const methodInfo_KillSwitchService_SyncFeatures = new grpc.web.AbstractClientBase.MethodInfo( |
| 345 | proto.SyncFeaturesResponse, |
| 346 | /** |
| 347 | * @param {!proto.SyncFeaturesRequest} request |
| 348 | * @return {!Uint8Array} |
| 349 | */ |
| 350 | function(request) { |
| 351 | return request.serializeBinary(); |
| 352 | }, |
| 353 | proto.SyncFeaturesResponse.deserializeBinary |
| 354 | ); |
| 355 | |
| 356 | |
| 357 | /** |
| 358 | * @param {!proto.SyncFeaturesRequest} request The |
| 359 | * request proto |
| 360 | * @param {?Object<string, string>} metadata User defined |
| 361 | * call metadata |
| 362 | * @param {function(?grpc.web.Error, ?proto.SyncFeaturesResponse)} |
| 363 | * callback The callback function(error, response) |
| 364 | * @return {!grpc.web.ClientReadableStream<!proto.SyncFeaturesResponse>|undefined} |
| 365 | * The XHR Node Readable Stream |
| 366 | */ |
| 367 | proto.KillSwitchServiceClient.prototype.syncFeatures = |
| 368 | function(request, metadata, callback) { |
| 369 | return this.client_.rpcCall(this.hostname_ + |
| 370 | '/KillSwitchService/SyncFeatures', |
| 371 | request, |
| 372 | metadata || {}, |
| 373 | methodDescriptor_KillSwitchService_SyncFeatures, |
| 374 | callback); |
| 375 | }; |
| 376 | |
| 377 | |
| 378 | /** |
| 379 | * @param {!proto.SyncFeaturesRequest} request The |
| 380 | * request proto |
| 381 | * @param {?Object<string, string>} metadata User defined |
| 382 | * call metadata |
| 383 | * @return {!Promise<!proto.SyncFeaturesResponse>} |
| 384 | * Promise that resolves to the response |
| 385 | */ |
| 386 | proto.KillSwitchServicePromiseClient.prototype.syncFeatures = |
| 387 | function(request, metadata) { |
| 388 | return this.client_.unaryCall(this.hostname_ + |
| 389 | '/KillSwitchService/SyncFeatures', |
| 390 | request, |
| 391 | metadata || {}, |
| 392 | methodDescriptor_KillSwitchService_SyncFeatures); |
| 393 | }; |
| 394 | |
| 395 | |
| 396 | /** |
| 397 | * @const |
| 398 | * @type {!grpc.web.MethodDescriptor< |
| 399 | * !proto.EnableKillSwitchRequest, |
| 400 | * !proto.EnableKillSwitchResponse>} |
| 401 | */ |
| 402 | const methodDescriptor_KillSwitchService_EnableKillSwitch = new grpc.web.MethodDescriptor( |
| 403 | '/KillSwitchService/EnableKillSwitch', |
| 404 | grpc.web.MethodType.UNARY, |
| 405 | proto.EnableKillSwitchRequest, |
| 406 | proto.EnableKillSwitchResponse, |
| 407 | /** |
| 408 | * @param {!proto.EnableKillSwitchRequest} request |
| 409 | * @return {!Uint8Array} |
| 410 | */ |
| 411 | function(request) { |
| 412 | return request.serializeBinary(); |
| 413 | }, |
| 414 | proto.EnableKillSwitchResponse.deserializeBinary |
| 415 | ); |
| 416 | |
| 417 | |
| 418 | /** |
| 419 | * @const |
| 420 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 421 | * !proto.EnableKillSwitchRequest, |
| 422 | * !proto.EnableKillSwitchResponse>} |
| 423 | */ |
| 424 | const methodInfo_KillSwitchService_EnableKillSwitch = new grpc.web.AbstractClientBase.MethodInfo( |
| 425 | proto.EnableKillSwitchResponse, |
| 426 | /** |
| 427 | * @param {!proto.EnableKillSwitchRequest} request |
| 428 | * @return {!Uint8Array} |
| 429 | */ |
| 430 | function(request) { |
| 431 | return request.serializeBinary(); |
| 432 | }, |
| 433 | proto.EnableKillSwitchResponse.deserializeBinary |
| 434 | ); |
| 435 | |
| 436 | |
| 437 | /** |
| 438 | * @param {!proto.EnableKillSwitchRequest} request The |
| 439 | * request proto |
| 440 | * @param {?Object<string, string>} metadata User defined |
| 441 | * call metadata |
| 442 | * @param {function(?grpc.web.Error, ?proto.EnableKillSwitchResponse)} |
| 443 | * callback The callback function(error, response) |
| 444 | * @return {!grpc.web.ClientReadableStream<!proto.EnableKillSwitchResponse>|undefined} |
| 445 | * The XHR Node Readable Stream |
| 446 | */ |
| 447 | proto.KillSwitchServiceClient.prototype.enableKillSwitch = |
| 448 | function(request, metadata, callback) { |
| 449 | return this.client_.rpcCall(this.hostname_ + |
| 450 | '/KillSwitchService/EnableKillSwitch', |
| 451 | request, |
| 452 | metadata || {}, |
| 453 | methodDescriptor_KillSwitchService_EnableKillSwitch, |
| 454 | callback); |
| 455 | }; |
| 456 | |
| 457 | |
| 458 | /** |
| 459 | * @param {!proto.EnableKillSwitchRequest} request The |
| 460 | * request proto |
| 461 | * @param {?Object<string, string>} metadata User defined |
| 462 | * call metadata |
| 463 | * @return {!Promise<!proto.EnableKillSwitchResponse>} |
| 464 | * Promise that resolves to the response |
| 465 | */ |
| 466 | proto.KillSwitchServicePromiseClient.prototype.enableKillSwitch = |
| 467 | function(request, metadata) { |
| 468 | return this.client_.unaryCall(this.hostname_ + |
| 469 | '/KillSwitchService/EnableKillSwitch', |
| 470 | request, |
| 471 | metadata || {}, |
| 472 | methodDescriptor_KillSwitchService_EnableKillSwitch); |
| 473 | }; |
| 474 | |
| 475 | |
| 476 | /** |
| 477 | * @const |
| 478 | * @type {!grpc.web.MethodDescriptor< |
| 479 | * !proto.DisableKillSwitchRequest, |
| 480 | * !proto.DisableKillSwitchResponse>} |
| 481 | */ |
| 482 | const methodDescriptor_KillSwitchService_DisableKillSwitch = new grpc.web.MethodDescriptor( |
| 483 | '/KillSwitchService/DisableKillSwitch', |
| 484 | grpc.web.MethodType.UNARY, |
| 485 | proto.DisableKillSwitchRequest, |
| 486 | proto.DisableKillSwitchResponse, |
| 487 | /** |
| 488 | * @param {!proto.DisableKillSwitchRequest} request |
| 489 | * @return {!Uint8Array} |
| 490 | */ |
| 491 | function(request) { |
| 492 | return request.serializeBinary(); |
| 493 | }, |
| 494 | proto.DisableKillSwitchResponse.deserializeBinary |
| 495 | ); |
| 496 | |
| 497 | |
| 498 | /** |
| 499 | * @const |
| 500 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 501 | * !proto.DisableKillSwitchRequest, |
| 502 | * !proto.DisableKillSwitchResponse>} |
| 503 | */ |
| 504 | const methodInfo_KillSwitchService_DisableKillSwitch = new grpc.web.AbstractClientBase.MethodInfo( |
| 505 | proto.DisableKillSwitchResponse, |
| 506 | /** |
| 507 | * @param {!proto.DisableKillSwitchRequest} request |
| 508 | * @return {!Uint8Array} |
| 509 | */ |
| 510 | function(request) { |
| 511 | return request.serializeBinary(); |
| 512 | }, |
| 513 | proto.DisableKillSwitchResponse.deserializeBinary |
| 514 | ); |
| 515 | |
| 516 | |
| 517 | /** |
| 518 | * @param {!proto.DisableKillSwitchRequest} request The |
| 519 | * request proto |
| 520 | * @param {?Object<string, string>} metadata User defined |
| 521 | * call metadata |
| 522 | * @param {function(?grpc.web.Error, ?proto.DisableKillSwitchResponse)} |
| 523 | * callback The callback function(error, response) |
| 524 | * @return {!grpc.web.ClientReadableStream<!proto.DisableKillSwitchResponse>|undefined} |
| 525 | * The XHR Node Readable Stream |
| 526 | */ |
| 527 | proto.KillSwitchServiceClient.prototype.disableKillSwitch = |
| 528 | function(request, metadata, callback) { |
| 529 | return this.client_.rpcCall(this.hostname_ + |
| 530 | '/KillSwitchService/DisableKillSwitch', |
| 531 | request, |
| 532 | metadata || {}, |
| 533 | methodDescriptor_KillSwitchService_DisableKillSwitch, |
| 534 | callback); |
| 535 | }; |
| 536 | |
| 537 | |
| 538 | /** |
| 539 | * @param {!proto.DisableKillSwitchRequest} request The |
| 540 | * request proto |
| 541 | * @param {?Object<string, string>} metadata User defined |
| 542 | * call metadata |
| 543 | * @return {!Promise<!proto.DisableKillSwitchResponse>} |
| 544 | * Promise that resolves to the response |
| 545 | */ |
| 546 | proto.KillSwitchServicePromiseClient.prototype.disableKillSwitch = |
| 547 | function(request, metadata) { |
| 548 | return this.client_.unaryCall(this.hostname_ + |
| 549 | '/KillSwitchService/DisableKillSwitch', |
| 550 | request, |
| 551 | metadata || {}, |
| 552 | methodDescriptor_KillSwitchService_DisableKillSwitch); |
| 553 | }; |
| 554 | |
| 555 | |
| 556 | /** |
| 557 | * @const |
| 558 | * @type {!grpc.web.MethodDescriptor< |
| 559 | * !proto.ListAuthorizedUsersRequest, |
| 560 | * !proto.ListAuthorizedUsersResponse>} |
| 561 | */ |
| 562 | const methodDescriptor_KillSwitchService_ListAuthorizedUsers = new grpc.web.MethodDescriptor( |
| 563 | '/KillSwitchService/ListAuthorizedUsers', |
| 564 | grpc.web.MethodType.UNARY, |
| 565 | proto.ListAuthorizedUsersRequest, |
| 566 | proto.ListAuthorizedUsersResponse, |
| 567 | /** |
| 568 | * @param {!proto.ListAuthorizedUsersRequest} request |
| 569 | * @return {!Uint8Array} |
| 570 | */ |
| 571 | function(request) { |
| 572 | return request.serializeBinary(); |
| 573 | }, |
| 574 | proto.ListAuthorizedUsersResponse.deserializeBinary |
| 575 | ); |
| 576 | |
| 577 | |
| 578 | /** |
| 579 | * @const |
| 580 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 581 | * !proto.ListAuthorizedUsersRequest, |
| 582 | * !proto.ListAuthorizedUsersResponse>} |
| 583 | */ |
| 584 | const methodInfo_KillSwitchService_ListAuthorizedUsers = new grpc.web.AbstractClientBase.MethodInfo( |
| 585 | proto.ListAuthorizedUsersResponse, |
| 586 | /** |
| 587 | * @param {!proto.ListAuthorizedUsersRequest} request |
| 588 | * @return {!Uint8Array} |
| 589 | */ |
| 590 | function(request) { |
| 591 | return request.serializeBinary(); |
| 592 | }, |
| 593 | proto.ListAuthorizedUsersResponse.deserializeBinary |
| 594 | ); |
| 595 | |
| 596 | |
| 597 | /** |
| 598 | * @param {!proto.ListAuthorizedUsersRequest} request The |
| 599 | * request proto |
| 600 | * @param {?Object<string, string>} metadata User defined |
| 601 | * call metadata |
| 602 | * @param {function(?grpc.web.Error, ?proto.ListAuthorizedUsersResponse)} |
| 603 | * callback The callback function(error, response) |
| 604 | * @return {!grpc.web.ClientReadableStream<!proto.ListAuthorizedUsersResponse>|undefined} |
| 605 | * The XHR Node Readable Stream |
| 606 | */ |
| 607 | proto.KillSwitchServiceClient.prototype.listAuthorizedUsers = |
| 608 | function(request, metadata, callback) { |
| 609 | return this.client_.rpcCall(this.hostname_ + |
| 610 | '/KillSwitchService/ListAuthorizedUsers', |
| 611 | request, |
| 612 | metadata || {}, |
| 613 | methodDescriptor_KillSwitchService_ListAuthorizedUsers, |
| 614 | callback); |
| 615 | }; |
| 616 | |
| 617 | |
| 618 | /** |
| 619 | * @param {!proto.ListAuthorizedUsersRequest} request The |
| 620 | * request proto |
| 621 | * @param {?Object<string, string>} metadata User defined |
| 622 | * call metadata |
| 623 | * @return {!Promise<!proto.ListAuthorizedUsersResponse>} |
| 624 | * Promise that resolves to the response |
| 625 | */ |
| 626 | proto.KillSwitchServicePromiseClient.prototype.listAuthorizedUsers = |
| 627 | function(request, metadata) { |
| 628 | return this.client_.unaryCall(this.hostname_ + |
| 629 | '/KillSwitchService/ListAuthorizedUsers', |
| 630 | request, |
| 631 | metadata || {}, |
| 632 | methodDescriptor_KillSwitchService_ListAuthorizedUsers); |
| 633 | }; |
| 634 | |
| 635 | |
| 636 | /** |
| 637 | * @const |
| 638 | * @type {!grpc.web.MethodDescriptor< |
| 639 | * !proto.AddAuthorizedUserRequest, |
| 640 | * !proto.AddAuthorizedUserResponse>} |
| 641 | */ |
| 642 | const methodDescriptor_KillSwitchService_AddAuthorizedUser = new grpc.web.MethodDescriptor( |
| 643 | '/KillSwitchService/AddAuthorizedUser', |
| 644 | grpc.web.MethodType.UNARY, |
| 645 | proto.AddAuthorizedUserRequest, |
| 646 | proto.AddAuthorizedUserResponse, |
| 647 | /** |
| 648 | * @param {!proto.AddAuthorizedUserRequest} request |
| 649 | * @return {!Uint8Array} |
| 650 | */ |
| 651 | function(request) { |
| 652 | return request.serializeBinary(); |
| 653 | }, |
| 654 | proto.AddAuthorizedUserResponse.deserializeBinary |
| 655 | ); |
| 656 | |
| 657 | |
| 658 | /** |
| 659 | * @const |
| 660 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 661 | * !proto.AddAuthorizedUserRequest, |
| 662 | * !proto.AddAuthorizedUserResponse>} |
| 663 | */ |
| 664 | const methodInfo_KillSwitchService_AddAuthorizedUser = new grpc.web.AbstractClientBase.MethodInfo( |
| 665 | proto.AddAuthorizedUserResponse, |
| 666 | /** |
| 667 | * @param {!proto.AddAuthorizedUserRequest} request |
| 668 | * @return {!Uint8Array} |
| 669 | */ |
| 670 | function(request) { |
| 671 | return request.serializeBinary(); |
| 672 | }, |
| 673 | proto.AddAuthorizedUserResponse.deserializeBinary |
| 674 | ); |
| 675 | |
| 676 | |
| 677 | /** |
| 678 | * @param {!proto.AddAuthorizedUserRequest} request The |
| 679 | * request proto |
| 680 | * @param {?Object<string, string>} metadata User defined |
| 681 | * call metadata |
| 682 | * @param {function(?grpc.web.Error, ?proto.AddAuthorizedUserResponse)} |
| 683 | * callback The callback function(error, response) |
| 684 | * @return {!grpc.web.ClientReadableStream<!proto.AddAuthorizedUserResponse>|undefined} |
| 685 | * The XHR Node Readable Stream |
| 686 | */ |
| 687 | proto.KillSwitchServiceClient.prototype.addAuthorizedUser = |
| 688 | function(request, metadata, callback) { |
| 689 | return this.client_.rpcCall(this.hostname_ + |
| 690 | '/KillSwitchService/AddAuthorizedUser', |
| 691 | request, |
| 692 | metadata || {}, |
| 693 | methodDescriptor_KillSwitchService_AddAuthorizedUser, |
| 694 | callback); |
| 695 | }; |
| 696 | |
| 697 | |
| 698 | /** |
| 699 | * @param {!proto.AddAuthorizedUserRequest} request The |
| 700 | * request proto |
| 701 | * @param {?Object<string, string>} metadata User defined |
| 702 | * call metadata |
| 703 | * @return {!Promise<!proto.AddAuthorizedUserResponse>} |
| 704 | * Promise that resolves to the response |
| 705 | */ |
| 706 | proto.KillSwitchServicePromiseClient.prototype.addAuthorizedUser = |
| 707 | function(request, metadata) { |
| 708 | return this.client_.unaryCall(this.hostname_ + |
| 709 | '/KillSwitchService/AddAuthorizedUser', |
| 710 | request, |
| 711 | metadata || {}, |
| 712 | methodDescriptor_KillSwitchService_AddAuthorizedUser); |
| 713 | }; |
| 714 | |
| 715 | |
| 716 | /** |
| 717 | * @const |
| 718 | * @type {!grpc.web.MethodDescriptor< |
| 719 | * !proto.UpdateAuthorizedUserRequest, |
| 720 | * !proto.UpdateAuthorizedUserResponse>} |
| 721 | */ |
| 722 | const methodDescriptor_KillSwitchService_UpdateAuthorizedUser = new grpc.web.MethodDescriptor( |
| 723 | '/KillSwitchService/UpdateAuthorizedUser', |
| 724 | grpc.web.MethodType.UNARY, |
| 725 | proto.UpdateAuthorizedUserRequest, |
| 726 | proto.UpdateAuthorizedUserResponse, |
| 727 | /** |
| 728 | * @param {!proto.UpdateAuthorizedUserRequest} request |
| 729 | * @return {!Uint8Array} |
| 730 | */ |
| 731 | function(request) { |
| 732 | return request.serializeBinary(); |
| 733 | }, |
| 734 | proto.UpdateAuthorizedUserResponse.deserializeBinary |
| 735 | ); |
| 736 | |
| 737 | |
| 738 | /** |
| 739 | * @const |
| 740 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 741 | * !proto.UpdateAuthorizedUserRequest, |
| 742 | * !proto.UpdateAuthorizedUserResponse>} |
| 743 | */ |
| 744 | const methodInfo_KillSwitchService_UpdateAuthorizedUser = new grpc.web.AbstractClientBase.MethodInfo( |
| 745 | proto.UpdateAuthorizedUserResponse, |
| 746 | /** |
| 747 | * @param {!proto.UpdateAuthorizedUserRequest} request |
| 748 | * @return {!Uint8Array} |
| 749 | */ |
| 750 | function(request) { |
| 751 | return request.serializeBinary(); |
| 752 | }, |
| 753 | proto.UpdateAuthorizedUserResponse.deserializeBinary |
| 754 | ); |
| 755 | |
| 756 | |
| 757 | /** |
| 758 | * @param {!proto.UpdateAuthorizedUserRequest} request The |
| 759 | * request proto |
| 760 | * @param {?Object<string, string>} metadata User defined |
| 761 | * call metadata |
| 762 | * @param {function(?grpc.web.Error, ?proto.UpdateAuthorizedUserResponse)} |
| 763 | * callback The callback function(error, response) |
| 764 | * @return {!grpc.web.ClientReadableStream<!proto.UpdateAuthorizedUserResponse>|undefined} |
| 765 | * The XHR Node Readable Stream |
| 766 | */ |
| 767 | proto.KillSwitchServiceClient.prototype.updateAuthorizedUser = |
| 768 | function(request, metadata, callback) { |
| 769 | return this.client_.rpcCall(this.hostname_ + |
| 770 | '/KillSwitchService/UpdateAuthorizedUser', |
| 771 | request, |
| 772 | metadata || {}, |
| 773 | methodDescriptor_KillSwitchService_UpdateAuthorizedUser, |
| 774 | callback); |
| 775 | }; |
| 776 | |
| 777 | |
| 778 | /** |
| 779 | * @param {!proto.UpdateAuthorizedUserRequest} request The |
| 780 | * request proto |
| 781 | * @param {?Object<string, string>} metadata User defined |
| 782 | * call metadata |
| 783 | * @return {!Promise<!proto.UpdateAuthorizedUserResponse>} |
| 784 | * Promise that resolves to the response |
| 785 | */ |
| 786 | proto.KillSwitchServicePromiseClient.prototype.updateAuthorizedUser = |
| 787 | function(request, metadata) { |
| 788 | return this.client_.unaryCall(this.hostname_ + |
| 789 | '/KillSwitchService/UpdateAuthorizedUser', |
| 790 | request, |
| 791 | metadata || {}, |
| 792 | methodDescriptor_KillSwitchService_UpdateAuthorizedUser); |
| 793 | }; |
| 794 | |
| 795 | |
| 796 | /** |
| 797 | * @const |
| 798 | * @type {!grpc.web.MethodDescriptor< |
| 799 | * !proto.DeleteAuthorizedUserRequest, |
| 800 | * !proto.DeleteAuthorizedUserResponse>} |
| 801 | */ |
| 802 | const methodDescriptor_KillSwitchService_DeleteAuthorizedUser = new grpc.web.MethodDescriptor( |
| 803 | '/KillSwitchService/DeleteAuthorizedUser', |
| 804 | grpc.web.MethodType.UNARY, |
| 805 | proto.DeleteAuthorizedUserRequest, |
| 806 | proto.DeleteAuthorizedUserResponse, |
| 807 | /** |
| 808 | * @param {!proto.DeleteAuthorizedUserRequest} request |
| 809 | * @return {!Uint8Array} |
| 810 | */ |
| 811 | function(request) { |
| 812 | return request.serializeBinary(); |
| 813 | }, |
| 814 | proto.DeleteAuthorizedUserResponse.deserializeBinary |
| 815 | ); |
| 816 | |
| 817 | |
| 818 | /** |
| 819 | * @const |
| 820 | * @type {!grpc.web.AbstractClientBase.MethodInfo< |
| 821 | * !proto.DeleteAuthorizedUserRequest, |
| 822 | * !proto.DeleteAuthorizedUserResponse>} |
| 823 | */ |
| 824 | const methodInfo_KillSwitchService_DeleteAuthorizedUser = new grpc.web.AbstractClientBase.MethodInfo( |
| 825 | proto.DeleteAuthorizedUserResponse, |
| 826 | /** |
| 827 | * @param {!proto.DeleteAuthorizedUserRequest} request |
| 828 | * @return {!Uint8Array} |
| 829 | */ |
| 830 | function(request) { |
| 831 | return request.serializeBinary(); |
| 832 | }, |
| 833 | proto.DeleteAuthorizedUserResponse.deserializeBinary |
| 834 | ); |
| 835 | |
| 836 | |
| 837 | /** |
| 838 | * @param {!proto.DeleteAuthorizedUserRequest} request The |
| 839 | * request proto |
| 840 | * @param {?Object<string, string>} metadata User defined |
| 841 | * call metadata |
| 842 | * @param {function(?grpc.web.Error, ?proto.DeleteAuthorizedUserResponse)} |
| 843 | * callback The callback function(error, response) |
| 844 | * @return {!grpc.web.ClientReadableStream<!proto.DeleteAuthorizedUserResponse>|undefined} |
| 845 | * The XHR Node Readable Stream |
| 846 | */ |
| 847 | proto.KillSwitchServiceClient.prototype.deleteAuthorizedUser = |
| 848 | function(request, metadata, callback) { |
| 849 | return this.client_.rpcCall(this.hostname_ + |
| 850 | '/KillSwitchService/DeleteAuthorizedUser', |
| 851 | request, |
| 852 | metadata || {}, |
| 853 | methodDescriptor_KillSwitchService_DeleteAuthorizedUser, |
| 854 | callback); |
| 855 | }; |
| 856 | |
| 857 | |
| 858 | /** |
| 859 | * @param {!proto.DeleteAuthorizedUserRequest} request The |
| 860 | * request proto |
| 861 | * @param {?Object<string, string>} metadata User defined |
| 862 | * call metadata |
| 863 | * @return {!Promise<!proto.DeleteAuthorizedUserResponse>} |
| 864 | * Promise that resolves to the response |
| 865 | */ |
| 866 | proto.KillSwitchServicePromiseClient.prototype.deleteAuthorizedUser = |
| 867 | function(request, metadata) { |
| 868 | return this.client_.unaryCall(this.hostname_ + |
| 869 | '/KillSwitchService/DeleteAuthorizedUser', |
| 870 | request, |
| 871 | metadata || {}, |
| 872 | methodDescriptor_KillSwitchService_DeleteAuthorizedUser); |
| 873 | }; |
| 874 | |
| 875 | |
| 876 | module.exports = proto; |
| 877 | |