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 |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 27 | * @param {?grpc.web.ClientOptions} options |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 28 | * @constructor |
| 29 | * @struct |
| 30 | * @final |
| 31 | */ |
| 32 | proto.KillSwitchServiceClient = |
| 33 | function(hostname, credentials, options) { |
| 34 | if (!options) options = {}; |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 35 | options.format = 'text'; |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 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 |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 53 | * @param {?grpc.web.ClientOptions} options |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 54 | * @constructor |
| 55 | * @struct |
| 56 | * @final |
| 57 | */ |
| 58 | proto.KillSwitchServicePromiseClient = |
| 59 | function(hostname, credentials, options) { |
| 60 | if (!options) options = {}; |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 61 | options.format = 'text'; |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 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 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 99 | * @param {!proto.GetKillSwitchStatusRequest} request The |
| 100 | * request proto |
| 101 | * @param {?Object<string, string>} metadata User defined |
| 102 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 103 | * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchStatusResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 104 | * callback The callback function(error, response) |
| 105 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchStatusResponse>|undefined} |
| 106 | * The XHR Node Readable Stream |
| 107 | */ |
| 108 | proto.KillSwitchServiceClient.prototype.getKillSwitchStatus = |
| 109 | function(request, metadata, callback) { |
| 110 | return this.client_.rpcCall(this.hostname_ + |
| 111 | '/KillSwitchService/GetKillSwitchStatus', |
| 112 | request, |
| 113 | metadata || {}, |
| 114 | methodDescriptor_KillSwitchService_GetKillSwitchStatus, |
| 115 | callback); |
| 116 | }; |
| 117 | |
| 118 | |
| 119 | /** |
| 120 | * @param {!proto.GetKillSwitchStatusRequest} request The |
| 121 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 122 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 123 | * call metadata |
| 124 | * @return {!Promise<!proto.GetKillSwitchStatusResponse>} |
| 125 | * Promise that resolves to the response |
| 126 | */ |
| 127 | proto.KillSwitchServicePromiseClient.prototype.getKillSwitchStatus = |
| 128 | function(request, metadata) { |
| 129 | return this.client_.unaryCall(this.hostname_ + |
| 130 | '/KillSwitchService/GetKillSwitchStatus', |
| 131 | request, |
| 132 | metadata || {}, |
| 133 | methodDescriptor_KillSwitchService_GetKillSwitchStatus); |
| 134 | }; |
| 135 | |
| 136 | |
| 137 | /** |
| 138 | * @const |
| 139 | * @type {!grpc.web.MethodDescriptor< |
| 140 | * !proto.GetKillSwitchOverviewRequest, |
| 141 | * !proto.GetKillSwitchOverviewResponse>} |
| 142 | */ |
| 143 | const methodDescriptor_KillSwitchService_GetKillSwitchOverview = new grpc.web.MethodDescriptor( |
| 144 | '/KillSwitchService/GetKillSwitchOverview', |
| 145 | grpc.web.MethodType.UNARY, |
| 146 | proto.GetKillSwitchOverviewRequest, |
| 147 | proto.GetKillSwitchOverviewResponse, |
| 148 | /** |
| 149 | * @param {!proto.GetKillSwitchOverviewRequest} request |
| 150 | * @return {!Uint8Array} |
| 151 | */ |
| 152 | function(request) { |
| 153 | return request.serializeBinary(); |
| 154 | }, |
| 155 | proto.GetKillSwitchOverviewResponse.deserializeBinary |
| 156 | ); |
| 157 | |
| 158 | |
| 159 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 160 | * @param {!proto.GetKillSwitchOverviewRequest} request The |
| 161 | * request proto |
| 162 | * @param {?Object<string, string>} metadata User defined |
| 163 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 164 | * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchOverviewResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 165 | * callback The callback function(error, response) |
| 166 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchOverviewResponse>|undefined} |
| 167 | * The XHR Node Readable Stream |
| 168 | */ |
| 169 | proto.KillSwitchServiceClient.prototype.getKillSwitchOverview = |
| 170 | function(request, metadata, callback) { |
| 171 | return this.client_.rpcCall(this.hostname_ + |
| 172 | '/KillSwitchService/GetKillSwitchOverview', |
| 173 | request, |
| 174 | metadata || {}, |
| 175 | methodDescriptor_KillSwitchService_GetKillSwitchOverview, |
| 176 | callback); |
| 177 | }; |
| 178 | |
| 179 | |
| 180 | /** |
| 181 | * @param {!proto.GetKillSwitchOverviewRequest} request The |
| 182 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 183 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 184 | * call metadata |
| 185 | * @return {!Promise<!proto.GetKillSwitchOverviewResponse>} |
| 186 | * Promise that resolves to the response |
| 187 | */ |
| 188 | proto.KillSwitchServicePromiseClient.prototype.getKillSwitchOverview = |
| 189 | function(request, metadata) { |
| 190 | return this.client_.unaryCall(this.hostname_ + |
| 191 | '/KillSwitchService/GetKillSwitchOverview', |
| 192 | request, |
| 193 | metadata || {}, |
| 194 | methodDescriptor_KillSwitchService_GetKillSwitchOverview); |
| 195 | }; |
| 196 | |
| 197 | |
| 198 | /** |
| 199 | * @const |
| 200 | * @type {!grpc.web.MethodDescriptor< |
| 201 | * !proto.ListFeaturesRequest, |
| 202 | * !proto.ListFeaturesResponse>} |
| 203 | */ |
| 204 | const methodDescriptor_KillSwitchService_ListFeatures = new grpc.web.MethodDescriptor( |
| 205 | '/KillSwitchService/ListFeatures', |
| 206 | grpc.web.MethodType.UNARY, |
| 207 | proto.ListFeaturesRequest, |
| 208 | proto.ListFeaturesResponse, |
| 209 | /** |
| 210 | * @param {!proto.ListFeaturesRequest} request |
| 211 | * @return {!Uint8Array} |
| 212 | */ |
| 213 | function(request) { |
| 214 | return request.serializeBinary(); |
| 215 | }, |
| 216 | proto.ListFeaturesResponse.deserializeBinary |
| 217 | ); |
| 218 | |
| 219 | |
| 220 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 221 | * @param {!proto.ListFeaturesRequest} request The |
| 222 | * request proto |
| 223 | * @param {?Object<string, string>} metadata User defined |
| 224 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 225 | * @param {function(?grpc.web.RpcError, ?proto.ListFeaturesResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 226 | * callback The callback function(error, response) |
| 227 | * @return {!grpc.web.ClientReadableStream<!proto.ListFeaturesResponse>|undefined} |
| 228 | * The XHR Node Readable Stream |
| 229 | */ |
| 230 | proto.KillSwitchServiceClient.prototype.listFeatures = |
| 231 | function(request, metadata, callback) { |
| 232 | return this.client_.rpcCall(this.hostname_ + |
| 233 | '/KillSwitchService/ListFeatures', |
| 234 | request, |
| 235 | metadata || {}, |
| 236 | methodDescriptor_KillSwitchService_ListFeatures, |
| 237 | callback); |
| 238 | }; |
| 239 | |
| 240 | |
| 241 | /** |
| 242 | * @param {!proto.ListFeaturesRequest} request The |
| 243 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 244 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 245 | * call metadata |
| 246 | * @return {!Promise<!proto.ListFeaturesResponse>} |
| 247 | * Promise that resolves to the response |
| 248 | */ |
| 249 | proto.KillSwitchServicePromiseClient.prototype.listFeatures = |
| 250 | function(request, metadata) { |
| 251 | return this.client_.unaryCall(this.hostname_ + |
| 252 | '/KillSwitchService/ListFeatures', |
| 253 | request, |
| 254 | metadata || {}, |
| 255 | methodDescriptor_KillSwitchService_ListFeatures); |
| 256 | }; |
| 257 | |
| 258 | |
| 259 | /** |
| 260 | * @const |
| 261 | * @type {!grpc.web.MethodDescriptor< |
| 262 | * !proto.SyncFeaturesRequest, |
| 263 | * !proto.SyncFeaturesResponse>} |
| 264 | */ |
| 265 | const methodDescriptor_KillSwitchService_SyncFeatures = new grpc.web.MethodDescriptor( |
| 266 | '/KillSwitchService/SyncFeatures', |
| 267 | grpc.web.MethodType.UNARY, |
| 268 | proto.SyncFeaturesRequest, |
| 269 | proto.SyncFeaturesResponse, |
| 270 | /** |
| 271 | * @param {!proto.SyncFeaturesRequest} request |
| 272 | * @return {!Uint8Array} |
| 273 | */ |
| 274 | function(request) { |
| 275 | return request.serializeBinary(); |
| 276 | }, |
| 277 | proto.SyncFeaturesResponse.deserializeBinary |
| 278 | ); |
| 279 | |
| 280 | |
| 281 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 282 | * @param {!proto.SyncFeaturesRequest} request The |
| 283 | * request proto |
| 284 | * @param {?Object<string, string>} metadata User defined |
| 285 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 286 | * @param {function(?grpc.web.RpcError, ?proto.SyncFeaturesResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 287 | * callback The callback function(error, response) |
| 288 | * @return {!grpc.web.ClientReadableStream<!proto.SyncFeaturesResponse>|undefined} |
| 289 | * The XHR Node Readable Stream |
| 290 | */ |
| 291 | proto.KillSwitchServiceClient.prototype.syncFeatures = |
| 292 | function(request, metadata, callback) { |
| 293 | return this.client_.rpcCall(this.hostname_ + |
| 294 | '/KillSwitchService/SyncFeatures', |
| 295 | request, |
| 296 | metadata || {}, |
| 297 | methodDescriptor_KillSwitchService_SyncFeatures, |
| 298 | callback); |
| 299 | }; |
| 300 | |
| 301 | |
| 302 | /** |
| 303 | * @param {!proto.SyncFeaturesRequest} request The |
| 304 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 305 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 306 | * call metadata |
| 307 | * @return {!Promise<!proto.SyncFeaturesResponse>} |
| 308 | * Promise that resolves to the response |
| 309 | */ |
| 310 | proto.KillSwitchServicePromiseClient.prototype.syncFeatures = |
| 311 | function(request, metadata) { |
| 312 | return this.client_.unaryCall(this.hostname_ + |
| 313 | '/KillSwitchService/SyncFeatures', |
| 314 | request, |
| 315 | metadata || {}, |
| 316 | methodDescriptor_KillSwitchService_SyncFeatures); |
| 317 | }; |
| 318 | |
| 319 | |
| 320 | /** |
| 321 | * @const |
| 322 | * @type {!grpc.web.MethodDescriptor< |
| 323 | * !proto.EnableKillSwitchRequest, |
| 324 | * !proto.EnableKillSwitchResponse>} |
| 325 | */ |
| 326 | const methodDescriptor_KillSwitchService_EnableKillSwitch = new grpc.web.MethodDescriptor( |
| 327 | '/KillSwitchService/EnableKillSwitch', |
| 328 | grpc.web.MethodType.UNARY, |
| 329 | proto.EnableKillSwitchRequest, |
| 330 | proto.EnableKillSwitchResponse, |
| 331 | /** |
| 332 | * @param {!proto.EnableKillSwitchRequest} request |
| 333 | * @return {!Uint8Array} |
| 334 | */ |
| 335 | function(request) { |
| 336 | return request.serializeBinary(); |
| 337 | }, |
| 338 | proto.EnableKillSwitchResponse.deserializeBinary |
| 339 | ); |
| 340 | |
| 341 | |
| 342 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 343 | * @param {!proto.EnableKillSwitchRequest} request The |
| 344 | * request proto |
| 345 | * @param {?Object<string, string>} metadata User defined |
| 346 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 347 | * @param {function(?grpc.web.RpcError, ?proto.EnableKillSwitchResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 348 | * callback The callback function(error, response) |
| 349 | * @return {!grpc.web.ClientReadableStream<!proto.EnableKillSwitchResponse>|undefined} |
| 350 | * The XHR Node Readable Stream |
| 351 | */ |
| 352 | proto.KillSwitchServiceClient.prototype.enableKillSwitch = |
| 353 | function(request, metadata, callback) { |
| 354 | return this.client_.rpcCall(this.hostname_ + |
| 355 | '/KillSwitchService/EnableKillSwitch', |
| 356 | request, |
| 357 | metadata || {}, |
| 358 | methodDescriptor_KillSwitchService_EnableKillSwitch, |
| 359 | callback); |
| 360 | }; |
| 361 | |
| 362 | |
| 363 | /** |
| 364 | * @param {!proto.EnableKillSwitchRequest} request The |
| 365 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 366 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 367 | * call metadata |
| 368 | * @return {!Promise<!proto.EnableKillSwitchResponse>} |
| 369 | * Promise that resolves to the response |
| 370 | */ |
| 371 | proto.KillSwitchServicePromiseClient.prototype.enableKillSwitch = |
| 372 | function(request, metadata) { |
| 373 | return this.client_.unaryCall(this.hostname_ + |
| 374 | '/KillSwitchService/EnableKillSwitch', |
| 375 | request, |
| 376 | metadata || {}, |
| 377 | methodDescriptor_KillSwitchService_EnableKillSwitch); |
| 378 | }; |
| 379 | |
| 380 | |
| 381 | /** |
| 382 | * @const |
| 383 | * @type {!grpc.web.MethodDescriptor< |
| 384 | * !proto.DisableKillSwitchRequest, |
| 385 | * !proto.DisableKillSwitchResponse>} |
| 386 | */ |
| 387 | const methodDescriptor_KillSwitchService_DisableKillSwitch = new grpc.web.MethodDescriptor( |
| 388 | '/KillSwitchService/DisableKillSwitch', |
| 389 | grpc.web.MethodType.UNARY, |
| 390 | proto.DisableKillSwitchRequest, |
| 391 | proto.DisableKillSwitchResponse, |
| 392 | /** |
| 393 | * @param {!proto.DisableKillSwitchRequest} request |
| 394 | * @return {!Uint8Array} |
| 395 | */ |
| 396 | function(request) { |
| 397 | return request.serializeBinary(); |
| 398 | }, |
| 399 | proto.DisableKillSwitchResponse.deserializeBinary |
| 400 | ); |
| 401 | |
| 402 | |
| 403 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 404 | * @param {!proto.DisableKillSwitchRequest} request The |
| 405 | * request proto |
| 406 | * @param {?Object<string, string>} metadata User defined |
| 407 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 408 | * @param {function(?grpc.web.RpcError, ?proto.DisableKillSwitchResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 409 | * callback The callback function(error, response) |
| 410 | * @return {!grpc.web.ClientReadableStream<!proto.DisableKillSwitchResponse>|undefined} |
| 411 | * The XHR Node Readable Stream |
| 412 | */ |
| 413 | proto.KillSwitchServiceClient.prototype.disableKillSwitch = |
| 414 | function(request, metadata, callback) { |
| 415 | return this.client_.rpcCall(this.hostname_ + |
| 416 | '/KillSwitchService/DisableKillSwitch', |
| 417 | request, |
| 418 | metadata || {}, |
| 419 | methodDescriptor_KillSwitchService_DisableKillSwitch, |
| 420 | callback); |
| 421 | }; |
| 422 | |
| 423 | |
| 424 | /** |
| 425 | * @param {!proto.DisableKillSwitchRequest} request The |
| 426 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 427 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 428 | * call metadata |
| 429 | * @return {!Promise<!proto.DisableKillSwitchResponse>} |
| 430 | * Promise that resolves to the response |
| 431 | */ |
| 432 | proto.KillSwitchServicePromiseClient.prototype.disableKillSwitch = |
| 433 | function(request, metadata) { |
| 434 | return this.client_.unaryCall(this.hostname_ + |
| 435 | '/KillSwitchService/DisableKillSwitch', |
| 436 | request, |
| 437 | metadata || {}, |
| 438 | methodDescriptor_KillSwitchService_DisableKillSwitch); |
| 439 | }; |
| 440 | |
| 441 | |
| 442 | /** |
| 443 | * @const |
| 444 | * @type {!grpc.web.MethodDescriptor< |
| 445 | * !proto.ListAuthorizedUsersRequest, |
| 446 | * !proto.ListAuthorizedUsersResponse>} |
| 447 | */ |
| 448 | const methodDescriptor_KillSwitchService_ListAuthorizedUsers = new grpc.web.MethodDescriptor( |
| 449 | '/KillSwitchService/ListAuthorizedUsers', |
| 450 | grpc.web.MethodType.UNARY, |
| 451 | proto.ListAuthorizedUsersRequest, |
| 452 | proto.ListAuthorizedUsersResponse, |
| 453 | /** |
| 454 | * @param {!proto.ListAuthorizedUsersRequest} request |
| 455 | * @return {!Uint8Array} |
| 456 | */ |
| 457 | function(request) { |
| 458 | return request.serializeBinary(); |
| 459 | }, |
| 460 | proto.ListAuthorizedUsersResponse.deserializeBinary |
| 461 | ); |
| 462 | |
| 463 | |
| 464 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 465 | * @param {!proto.ListAuthorizedUsersRequest} request The |
| 466 | * request proto |
| 467 | * @param {?Object<string, string>} metadata User defined |
| 468 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 469 | * @param {function(?grpc.web.RpcError, ?proto.ListAuthorizedUsersResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 470 | * callback The callback function(error, response) |
| 471 | * @return {!grpc.web.ClientReadableStream<!proto.ListAuthorizedUsersResponse>|undefined} |
| 472 | * The XHR Node Readable Stream |
| 473 | */ |
| 474 | proto.KillSwitchServiceClient.prototype.listAuthorizedUsers = |
| 475 | function(request, metadata, callback) { |
| 476 | return this.client_.rpcCall(this.hostname_ + |
| 477 | '/KillSwitchService/ListAuthorizedUsers', |
| 478 | request, |
| 479 | metadata || {}, |
| 480 | methodDescriptor_KillSwitchService_ListAuthorizedUsers, |
| 481 | callback); |
| 482 | }; |
| 483 | |
| 484 | |
| 485 | /** |
| 486 | * @param {!proto.ListAuthorizedUsersRequest} request The |
| 487 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 488 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 489 | * call metadata |
| 490 | * @return {!Promise<!proto.ListAuthorizedUsersResponse>} |
| 491 | * Promise that resolves to the response |
| 492 | */ |
| 493 | proto.KillSwitchServicePromiseClient.prototype.listAuthorizedUsers = |
| 494 | function(request, metadata) { |
| 495 | return this.client_.unaryCall(this.hostname_ + |
| 496 | '/KillSwitchService/ListAuthorizedUsers', |
| 497 | request, |
| 498 | metadata || {}, |
| 499 | methodDescriptor_KillSwitchService_ListAuthorizedUsers); |
| 500 | }; |
| 501 | |
| 502 | |
| 503 | /** |
| 504 | * @const |
| 505 | * @type {!grpc.web.MethodDescriptor< |
| 506 | * !proto.AddAuthorizedUserRequest, |
| 507 | * !proto.AddAuthorizedUserResponse>} |
| 508 | */ |
| 509 | const methodDescriptor_KillSwitchService_AddAuthorizedUser = new grpc.web.MethodDescriptor( |
| 510 | '/KillSwitchService/AddAuthorizedUser', |
| 511 | grpc.web.MethodType.UNARY, |
| 512 | proto.AddAuthorizedUserRequest, |
| 513 | proto.AddAuthorizedUserResponse, |
| 514 | /** |
| 515 | * @param {!proto.AddAuthorizedUserRequest} request |
| 516 | * @return {!Uint8Array} |
| 517 | */ |
| 518 | function(request) { |
| 519 | return request.serializeBinary(); |
| 520 | }, |
| 521 | proto.AddAuthorizedUserResponse.deserializeBinary |
| 522 | ); |
| 523 | |
| 524 | |
| 525 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 526 | * @param {!proto.AddAuthorizedUserRequest} request The |
| 527 | * request proto |
| 528 | * @param {?Object<string, string>} metadata User defined |
| 529 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 530 | * @param {function(?grpc.web.RpcError, ?proto.AddAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 531 | * callback The callback function(error, response) |
| 532 | * @return {!grpc.web.ClientReadableStream<!proto.AddAuthorizedUserResponse>|undefined} |
| 533 | * The XHR Node Readable Stream |
| 534 | */ |
| 535 | proto.KillSwitchServiceClient.prototype.addAuthorizedUser = |
| 536 | function(request, metadata, callback) { |
| 537 | return this.client_.rpcCall(this.hostname_ + |
| 538 | '/KillSwitchService/AddAuthorizedUser', |
| 539 | request, |
| 540 | metadata || {}, |
| 541 | methodDescriptor_KillSwitchService_AddAuthorizedUser, |
| 542 | callback); |
| 543 | }; |
| 544 | |
| 545 | |
| 546 | /** |
| 547 | * @param {!proto.AddAuthorizedUserRequest} request The |
| 548 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 549 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 550 | * call metadata |
| 551 | * @return {!Promise<!proto.AddAuthorizedUserResponse>} |
| 552 | * Promise that resolves to the response |
| 553 | */ |
| 554 | proto.KillSwitchServicePromiseClient.prototype.addAuthorizedUser = |
| 555 | function(request, metadata) { |
| 556 | return this.client_.unaryCall(this.hostname_ + |
| 557 | '/KillSwitchService/AddAuthorizedUser', |
| 558 | request, |
| 559 | metadata || {}, |
| 560 | methodDescriptor_KillSwitchService_AddAuthorizedUser); |
| 561 | }; |
| 562 | |
| 563 | |
| 564 | /** |
| 565 | * @const |
| 566 | * @type {!grpc.web.MethodDescriptor< |
| 567 | * !proto.UpdateAuthorizedUserRequest, |
| 568 | * !proto.UpdateAuthorizedUserResponse>} |
| 569 | */ |
| 570 | const methodDescriptor_KillSwitchService_UpdateAuthorizedUser = new grpc.web.MethodDescriptor( |
| 571 | '/KillSwitchService/UpdateAuthorizedUser', |
| 572 | grpc.web.MethodType.UNARY, |
| 573 | proto.UpdateAuthorizedUserRequest, |
| 574 | proto.UpdateAuthorizedUserResponse, |
| 575 | /** |
| 576 | * @param {!proto.UpdateAuthorizedUserRequest} request |
| 577 | * @return {!Uint8Array} |
| 578 | */ |
| 579 | function(request) { |
| 580 | return request.serializeBinary(); |
| 581 | }, |
| 582 | proto.UpdateAuthorizedUserResponse.deserializeBinary |
| 583 | ); |
| 584 | |
| 585 | |
| 586 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 587 | * @param {!proto.UpdateAuthorizedUserRequest} request The |
| 588 | * request proto |
| 589 | * @param {?Object<string, string>} metadata User defined |
| 590 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 591 | * @param {function(?grpc.web.RpcError, ?proto.UpdateAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 592 | * callback The callback function(error, response) |
| 593 | * @return {!grpc.web.ClientReadableStream<!proto.UpdateAuthorizedUserResponse>|undefined} |
| 594 | * The XHR Node Readable Stream |
| 595 | */ |
| 596 | proto.KillSwitchServiceClient.prototype.updateAuthorizedUser = |
| 597 | function(request, metadata, callback) { |
| 598 | return this.client_.rpcCall(this.hostname_ + |
| 599 | '/KillSwitchService/UpdateAuthorizedUser', |
| 600 | request, |
| 601 | metadata || {}, |
| 602 | methodDescriptor_KillSwitchService_UpdateAuthorizedUser, |
| 603 | callback); |
| 604 | }; |
| 605 | |
| 606 | |
| 607 | /** |
| 608 | * @param {!proto.UpdateAuthorizedUserRequest} request The |
| 609 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 610 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 611 | * call metadata |
| 612 | * @return {!Promise<!proto.UpdateAuthorizedUserResponse>} |
| 613 | * Promise that resolves to the response |
| 614 | */ |
| 615 | proto.KillSwitchServicePromiseClient.prototype.updateAuthorizedUser = |
| 616 | function(request, metadata) { |
| 617 | return this.client_.unaryCall(this.hostname_ + |
| 618 | '/KillSwitchService/UpdateAuthorizedUser', |
| 619 | request, |
| 620 | metadata || {}, |
| 621 | methodDescriptor_KillSwitchService_UpdateAuthorizedUser); |
| 622 | }; |
| 623 | |
| 624 | |
| 625 | /** |
| 626 | * @const |
| 627 | * @type {!grpc.web.MethodDescriptor< |
| 628 | * !proto.DeleteAuthorizedUserRequest, |
| 629 | * !proto.DeleteAuthorizedUserResponse>} |
| 630 | */ |
| 631 | const methodDescriptor_KillSwitchService_DeleteAuthorizedUser = new grpc.web.MethodDescriptor( |
| 632 | '/KillSwitchService/DeleteAuthorizedUser', |
| 633 | grpc.web.MethodType.UNARY, |
| 634 | proto.DeleteAuthorizedUserRequest, |
| 635 | proto.DeleteAuthorizedUserResponse, |
| 636 | /** |
| 637 | * @param {!proto.DeleteAuthorizedUserRequest} request |
| 638 | * @return {!Uint8Array} |
| 639 | */ |
| 640 | function(request) { |
| 641 | return request.serializeBinary(); |
| 642 | }, |
| 643 | proto.DeleteAuthorizedUserResponse.deserializeBinary |
| 644 | ); |
| 645 | |
| 646 | |
| 647 | /** |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 648 | * @param {!proto.DeleteAuthorizedUserRequest} request The |
| 649 | * request proto |
| 650 | * @param {?Object<string, string>} metadata User defined |
| 651 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 652 | * @param {function(?grpc.web.RpcError, ?proto.DeleteAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 653 | * callback The callback function(error, response) |
| 654 | * @return {!grpc.web.ClientReadableStream<!proto.DeleteAuthorizedUserResponse>|undefined} |
| 655 | * The XHR Node Readable Stream |
| 656 | */ |
| 657 | proto.KillSwitchServiceClient.prototype.deleteAuthorizedUser = |
| 658 | function(request, metadata, callback) { |
| 659 | return this.client_.rpcCall(this.hostname_ + |
| 660 | '/KillSwitchService/DeleteAuthorizedUser', |
| 661 | request, |
| 662 | metadata || {}, |
| 663 | methodDescriptor_KillSwitchService_DeleteAuthorizedUser, |
| 664 | callback); |
| 665 | }; |
| 666 | |
| 667 | |
| 668 | /** |
| 669 | * @param {!proto.DeleteAuthorizedUserRequest} request The |
| 670 | * request proto |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 671 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 672 | * call metadata |
| 673 | * @return {!Promise<!proto.DeleteAuthorizedUserResponse>} |
| 674 | * Promise that resolves to the response |
| 675 | */ |
| 676 | proto.KillSwitchServicePromiseClient.prototype.deleteAuthorizedUser = |
| 677 | function(request, metadata) { |
| 678 | return this.client_.unaryCall(this.hostname_ + |
| 679 | '/KillSwitchService/DeleteAuthorizedUser', |
| 680 | request, |
| 681 | metadata || {}, |
| 682 | methodDescriptor_KillSwitchService_DeleteAuthorizedUser); |
| 683 | }; |
| 684 | |
| 685 | |
| 686 | module.exports = proto; |
| 687 | |