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 | |
Adrià Vilanova Martínez | 7c99ad1 | 2023-04-15 17:27:09 +0200 | [diff] [blame] | 7 | // Code generated by protoc-gen-grpc-web. DO NOT EDIT. |
| 8 | // versions: |
| 9 | // protoc-gen-grpc-web v1.4.2 |
Adrià Vilanova Martínez | 78dcfdf | 2024-02-26 02:02:22 +0100 | [diff] [blame] | 10 | // protoc v4.24.4 |
Adrià Vilanova Martínez | 7c99ad1 | 2023-04-15 17:27:09 +0200 | [diff] [blame] | 11 | // source: api_proto/kill_switch.proto |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 12 | |
| 13 | |
| 14 | /* eslint-disable */ |
| 15 | // @ts-nocheck |
| 16 | |
| 17 | |
| 18 | |
| 19 | const grpc = {}; |
| 20 | grpc.web = require('grpc-web'); |
| 21 | |
| 22 | |
| 23 | var api_proto_common_pb = require('../api_proto/common_pb.js') |
| 24 | |
| 25 | var api_proto_kill_switch_objects_pb = require('../api_proto/kill_switch_objects_pb.js') |
| 26 | const proto = require('./kill_switch_pb.js'); |
| 27 | |
| 28 | /** |
| 29 | * @param {string} hostname |
| 30 | * @param {?Object} credentials |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 31 | * @param {?grpc.web.ClientOptions} options |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 32 | * @constructor |
| 33 | * @struct |
| 34 | * @final |
| 35 | */ |
| 36 | proto.KillSwitchServiceClient = |
| 37 | function(hostname, credentials, options) { |
| 38 | if (!options) options = {}; |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 39 | options.format = 'text'; |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 40 | |
| 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ínez | 7c99ad1 | 2023-04-15 17:27:09 +0200 | [diff] [blame] | 49 | this.hostname_ = hostname.replace(/\/+$/, ''); |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 50 | |
| 51 | }; |
| 52 | |
| 53 | |
| 54 | /** |
| 55 | * @param {string} hostname |
| 56 | * @param {?Object} credentials |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 57 | * @param {?grpc.web.ClientOptions} options |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 58 | * @constructor |
| 59 | * @struct |
| 60 | * @final |
| 61 | */ |
| 62 | proto.KillSwitchServicePromiseClient = |
| 63 | function(hostname, credentials, options) { |
| 64 | if (!options) options = {}; |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 65 | options.format = 'text'; |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 66 | |
| 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ínez | 7c99ad1 | 2023-04-15 17:27:09 +0200 | [diff] [blame] | 75 | this.hostname_ = hostname.replace(/\/+$/, ''); |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 76 | |
| 77 | }; |
| 78 | |
| 79 | |
| 80 | /** |
| 81 | * @const |
| 82 | * @type {!grpc.web.MethodDescriptor< |
| 83 | * !proto.GetKillSwitchStatusRequest, |
| 84 | * !proto.GetKillSwitchStatusResponse>} |
| 85 | */ |
| 86 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 103 | * @param {!proto.GetKillSwitchStatusRequest} request The |
| 104 | * request proto |
| 105 | * @param {?Object<string, string>} metadata User defined |
| 106 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 107 | * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchStatusResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 108 | * callback The callback function(error, response) |
| 109 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchStatusResponse>|undefined} |
| 110 | * The XHR Node Readable Stream |
| 111 | */ |
| 112 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 126 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 127 | * call metadata |
| 128 | * @return {!Promise<!proto.GetKillSwitchStatusResponse>} |
| 129 | * Promise that resolves to the response |
| 130 | */ |
| 131 | proto.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 | */ |
| 147 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 164 | * @param {!proto.GetKillSwitchOverviewRequest} request The |
| 165 | * request proto |
| 166 | * @param {?Object<string, string>} metadata User defined |
| 167 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 168 | * @param {function(?grpc.web.RpcError, ?proto.GetKillSwitchOverviewResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 169 | * callback The callback function(error, response) |
| 170 | * @return {!grpc.web.ClientReadableStream<!proto.GetKillSwitchOverviewResponse>|undefined} |
| 171 | * The XHR Node Readable Stream |
| 172 | */ |
| 173 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 187 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 188 | * call metadata |
| 189 | * @return {!Promise<!proto.GetKillSwitchOverviewResponse>} |
| 190 | * Promise that resolves to the response |
| 191 | */ |
| 192 | proto.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 | */ |
| 208 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 225 | * @param {!proto.ListFeaturesRequest} request The |
| 226 | * request proto |
| 227 | * @param {?Object<string, string>} metadata User defined |
| 228 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 229 | * @param {function(?grpc.web.RpcError, ?proto.ListFeaturesResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 230 | * callback The callback function(error, response) |
| 231 | * @return {!grpc.web.ClientReadableStream<!proto.ListFeaturesResponse>|undefined} |
| 232 | * The XHR Node Readable Stream |
| 233 | */ |
| 234 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 248 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 249 | * call metadata |
| 250 | * @return {!Promise<!proto.ListFeaturesResponse>} |
| 251 | * Promise that resolves to the response |
| 252 | */ |
| 253 | proto.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 | */ |
| 269 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 286 | * @param {!proto.SyncFeaturesRequest} request The |
| 287 | * request proto |
| 288 | * @param {?Object<string, string>} metadata User defined |
| 289 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 290 | * @param {function(?grpc.web.RpcError, ?proto.SyncFeaturesResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 291 | * callback The callback function(error, response) |
| 292 | * @return {!grpc.web.ClientReadableStream<!proto.SyncFeaturesResponse>|undefined} |
| 293 | * The XHR Node Readable Stream |
| 294 | */ |
| 295 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 309 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 310 | * call metadata |
| 311 | * @return {!Promise<!proto.SyncFeaturesResponse>} |
| 312 | * Promise that resolves to the response |
| 313 | */ |
| 314 | proto.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 | */ |
| 330 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 347 | * @param {!proto.EnableKillSwitchRequest} request The |
| 348 | * request proto |
| 349 | * @param {?Object<string, string>} metadata User defined |
| 350 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 351 | * @param {function(?grpc.web.RpcError, ?proto.EnableKillSwitchResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 352 | * callback The callback function(error, response) |
| 353 | * @return {!grpc.web.ClientReadableStream<!proto.EnableKillSwitchResponse>|undefined} |
| 354 | * The XHR Node Readable Stream |
| 355 | */ |
| 356 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 370 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 371 | * call metadata |
| 372 | * @return {!Promise<!proto.EnableKillSwitchResponse>} |
| 373 | * Promise that resolves to the response |
| 374 | */ |
| 375 | proto.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 | */ |
| 391 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 408 | * @param {!proto.DisableKillSwitchRequest} request The |
| 409 | * request proto |
| 410 | * @param {?Object<string, string>} metadata User defined |
| 411 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 412 | * @param {function(?grpc.web.RpcError, ?proto.DisableKillSwitchResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 413 | * callback The callback function(error, response) |
| 414 | * @return {!grpc.web.ClientReadableStream<!proto.DisableKillSwitchResponse>|undefined} |
| 415 | * The XHR Node Readable Stream |
| 416 | */ |
| 417 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 431 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 432 | * call metadata |
| 433 | * @return {!Promise<!proto.DisableKillSwitchResponse>} |
| 434 | * Promise that resolves to the response |
| 435 | */ |
| 436 | proto.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 | */ |
| 452 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 469 | * @param {!proto.ListAuthorizedUsersRequest} request The |
| 470 | * request proto |
| 471 | * @param {?Object<string, string>} metadata User defined |
| 472 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 473 | * @param {function(?grpc.web.RpcError, ?proto.ListAuthorizedUsersResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 474 | * callback The callback function(error, response) |
| 475 | * @return {!grpc.web.ClientReadableStream<!proto.ListAuthorizedUsersResponse>|undefined} |
| 476 | * The XHR Node Readable Stream |
| 477 | */ |
| 478 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 492 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 493 | * call metadata |
| 494 | * @return {!Promise<!proto.ListAuthorizedUsersResponse>} |
| 495 | * Promise that resolves to the response |
| 496 | */ |
| 497 | proto.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 | */ |
| 513 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 530 | * @param {!proto.AddAuthorizedUserRequest} request The |
| 531 | * request proto |
| 532 | * @param {?Object<string, string>} metadata User defined |
| 533 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 534 | * @param {function(?grpc.web.RpcError, ?proto.AddAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 535 | * callback The callback function(error, response) |
| 536 | * @return {!grpc.web.ClientReadableStream<!proto.AddAuthorizedUserResponse>|undefined} |
| 537 | * The XHR Node Readable Stream |
| 538 | */ |
| 539 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 553 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 554 | * call metadata |
| 555 | * @return {!Promise<!proto.AddAuthorizedUserResponse>} |
| 556 | * Promise that resolves to the response |
| 557 | */ |
| 558 | proto.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 | */ |
| 574 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 591 | * @param {!proto.UpdateAuthorizedUserRequest} request The |
| 592 | * request proto |
| 593 | * @param {?Object<string, string>} metadata User defined |
| 594 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 595 | * @param {function(?grpc.web.RpcError, ?proto.UpdateAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 596 | * callback The callback function(error, response) |
| 597 | * @return {!grpc.web.ClientReadableStream<!proto.UpdateAuthorizedUserResponse>|undefined} |
| 598 | * The XHR Node Readable Stream |
| 599 | */ |
| 600 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 614 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 615 | * call metadata |
| 616 | * @return {!Promise<!proto.UpdateAuthorizedUserResponse>} |
| 617 | * Promise that resolves to the response |
| 618 | */ |
| 619 | proto.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 | */ |
| 635 | const 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ínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 652 | * @param {!proto.DeleteAuthorizedUserRequest} request The |
| 653 | * request proto |
| 654 | * @param {?Object<string, string>} metadata User defined |
| 655 | * call metadata |
Adrià Vilanova Martínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 656 | * @param {function(?grpc.web.RpcError, ?proto.DeleteAuthorizedUserResponse)} |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 657 | * callback The callback function(error, response) |
| 658 | * @return {!grpc.web.ClientReadableStream<!proto.DeleteAuthorizedUserResponse>|undefined} |
| 659 | * The XHR Node Readable Stream |
| 660 | */ |
| 661 | proto.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ínez | 50435f8 | 2022-01-21 19:33:36 +0100 | [diff] [blame] | 675 | * @param {?Object<string, string>=} metadata User defined |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 676 | * call metadata |
| 677 | * @return {!Promise<!proto.DeleteAuthorizedUserResponse>} |
| 678 | * Promise that resolves to the response |
| 679 | */ |
| 680 | proto.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 | |
| 690 | module.exports = proto; |
| 691 | |