Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 1 | // source: api_proto/kill_switch.proto |
| 2 | /** |
| 3 | * @fileoverview |
| 4 | * @enhanceable |
| 5 | * @suppress {missingRequire} reports error on implicit type usages. |
| 6 | * @suppress {messageConventions} JS Compiler reports an error if a variable or |
| 7 | * field starts with 'MSG_' and isn't a translatable message. |
| 8 | * @public |
| 9 | */ |
| 10 | // GENERATED CODE -- DO NOT EDIT! |
| 11 | /* eslint-disable */ |
| 12 | // @ts-nocheck |
| 13 | |
| 14 | var jspb = require('google-protobuf'); |
| 15 | var goog = jspb; |
Adrià Vilanova Martínez | dc5d29f | 2023-04-15 17:22:13 +0200 | [diff] [blame] | 16 | var global = |
| 17 | (typeof globalThis !== 'undefined' && globalThis) || |
| 18 | (typeof window !== 'undefined' && window) || |
| 19 | (typeof global !== 'undefined' && global) || |
| 20 | (typeof self !== 'undefined' && self) || |
| 21 | (function () { return this; }).call(null) || |
| 22 | Function('return this')(); |
Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 23 | |
| 24 | var api_proto_common_pb = require('../api_proto/common_pb.js'); |
| 25 | goog.object.extend(proto, api_proto_common_pb); |
| 26 | var api_proto_kill_switch_objects_pb = require('../api_proto/kill_switch_objects_pb.js'); |
| 27 | goog.object.extend(proto, api_proto_kill_switch_objects_pb); |
| 28 | goog.exportSymbol('proto.AddAuthorizedUserRequest', null, global); |
| 29 | goog.exportSymbol('proto.AddAuthorizedUserResponse', null, global); |
| 30 | goog.exportSymbol('proto.DeleteAuthorizedUserRequest', null, global); |
| 31 | goog.exportSymbol('proto.DeleteAuthorizedUserResponse', null, global); |
| 32 | goog.exportSymbol('proto.DisableKillSwitchRequest', null, global); |
| 33 | goog.exportSymbol('proto.DisableKillSwitchResponse', null, global); |
| 34 | goog.exportSymbol('proto.EnableKillSwitchRequest', null, global); |
| 35 | goog.exportSymbol('proto.EnableKillSwitchResponse', null, global); |
| 36 | goog.exportSymbol('proto.GetKillSwitchOverviewRequest', null, global); |
| 37 | goog.exportSymbol('proto.GetKillSwitchOverviewResponse', null, global); |
| 38 | goog.exportSymbol('proto.GetKillSwitchStatusRequest', null, global); |
| 39 | goog.exportSymbol('proto.GetKillSwitchStatusResponse', null, global); |
| 40 | goog.exportSymbol('proto.ListAuthorizedUsersRequest', null, global); |
| 41 | goog.exportSymbol('proto.ListAuthorizedUsersResponse', null, global); |
| 42 | goog.exportSymbol('proto.ListFeaturesRequest', null, global); |
| 43 | goog.exportSymbol('proto.ListFeaturesResponse', null, global); |
| 44 | goog.exportSymbol('proto.SyncFeaturesRequest', null, global); |
| 45 | goog.exportSymbol('proto.SyncFeaturesResponse', null, global); |
| 46 | goog.exportSymbol('proto.UpdateAuthorizedUserRequest', null, global); |
| 47 | goog.exportSymbol('proto.UpdateAuthorizedUserResponse', null, global); |
| 48 | /** |
| 49 | * Generated by JsPbCodeGenerator. |
| 50 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 51 | * server response, or constructed directly in Javascript. The array is used |
| 52 | * in place and becomes part of the constructed object. It is not cloned. |
| 53 | * If no data is provided, the constructed object will be empty, but still |
| 54 | * valid. |
| 55 | * @extends {jspb.Message} |
| 56 | * @constructor |
| 57 | */ |
| 58 | proto.GetKillSwitchStatusRequest = function(opt_data) { |
| 59 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 60 | }; |
| 61 | goog.inherits(proto.GetKillSwitchStatusRequest, jspb.Message); |
| 62 | if (goog.DEBUG && !COMPILED) { |
| 63 | /** |
| 64 | * @public |
| 65 | * @override |
| 66 | */ |
| 67 | proto.GetKillSwitchStatusRequest.displayName = 'proto.GetKillSwitchStatusRequest'; |
| 68 | } |
| 69 | /** |
| 70 | * Generated by JsPbCodeGenerator. |
| 71 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 72 | * server response, or constructed directly in Javascript. The array is used |
| 73 | * in place and becomes part of the constructed object. It is not cloned. |
| 74 | * If no data is provided, the constructed object will be empty, but still |
| 75 | * valid. |
| 76 | * @extends {jspb.Message} |
| 77 | * @constructor |
| 78 | */ |
| 79 | proto.GetKillSwitchStatusResponse = function(opt_data) { |
| 80 | jspb.Message.initialize(this, opt_data, 0, -1, proto.GetKillSwitchStatusResponse.repeatedFields_, null); |
| 81 | }; |
| 82 | goog.inherits(proto.GetKillSwitchStatusResponse, jspb.Message); |
| 83 | if (goog.DEBUG && !COMPILED) { |
| 84 | /** |
| 85 | * @public |
| 86 | * @override |
| 87 | */ |
| 88 | proto.GetKillSwitchStatusResponse.displayName = 'proto.GetKillSwitchStatusResponse'; |
| 89 | } |
| 90 | /** |
| 91 | * Generated by JsPbCodeGenerator. |
| 92 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 93 | * server response, or constructed directly in Javascript. The array is used |
| 94 | * in place and becomes part of the constructed object. It is not cloned. |
| 95 | * If no data is provided, the constructed object will be empty, but still |
| 96 | * valid. |
| 97 | * @extends {jspb.Message} |
| 98 | * @constructor |
| 99 | */ |
| 100 | proto.GetKillSwitchOverviewRequest = function(opt_data) { |
| 101 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 102 | }; |
| 103 | goog.inherits(proto.GetKillSwitchOverviewRequest, jspb.Message); |
| 104 | if (goog.DEBUG && !COMPILED) { |
| 105 | /** |
| 106 | * @public |
| 107 | * @override |
| 108 | */ |
| 109 | proto.GetKillSwitchOverviewRequest.displayName = 'proto.GetKillSwitchOverviewRequest'; |
| 110 | } |
| 111 | /** |
| 112 | * Generated by JsPbCodeGenerator. |
| 113 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 114 | * server response, or constructed directly in Javascript. The array is used |
| 115 | * in place and becomes part of the constructed object. It is not cloned. |
| 116 | * If no data is provided, the constructed object will be empty, but still |
| 117 | * valid. |
| 118 | * @extends {jspb.Message} |
| 119 | * @constructor |
| 120 | */ |
| 121 | proto.GetKillSwitchOverviewResponse = function(opt_data) { |
| 122 | jspb.Message.initialize(this, opt_data, 0, -1, proto.GetKillSwitchOverviewResponse.repeatedFields_, null); |
| 123 | }; |
| 124 | goog.inherits(proto.GetKillSwitchOverviewResponse, jspb.Message); |
| 125 | if (goog.DEBUG && !COMPILED) { |
| 126 | /** |
| 127 | * @public |
| 128 | * @override |
| 129 | */ |
| 130 | proto.GetKillSwitchOverviewResponse.displayName = 'proto.GetKillSwitchOverviewResponse'; |
| 131 | } |
| 132 | /** |
| 133 | * Generated by JsPbCodeGenerator. |
| 134 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 135 | * server response, or constructed directly in Javascript. The array is used |
| 136 | * in place and becomes part of the constructed object. It is not cloned. |
| 137 | * If no data is provided, the constructed object will be empty, but still |
| 138 | * valid. |
| 139 | * @extends {jspb.Message} |
| 140 | * @constructor |
| 141 | */ |
| 142 | proto.ListFeaturesRequest = function(opt_data) { |
| 143 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 144 | }; |
| 145 | goog.inherits(proto.ListFeaturesRequest, jspb.Message); |
| 146 | if (goog.DEBUG && !COMPILED) { |
| 147 | /** |
| 148 | * @public |
| 149 | * @override |
| 150 | */ |
| 151 | proto.ListFeaturesRequest.displayName = 'proto.ListFeaturesRequest'; |
| 152 | } |
| 153 | /** |
| 154 | * Generated by JsPbCodeGenerator. |
| 155 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 156 | * server response, or constructed directly in Javascript. The array is used |
| 157 | * in place and becomes part of the constructed object. It is not cloned. |
| 158 | * If no data is provided, the constructed object will be empty, but still |
| 159 | * valid. |
| 160 | * @extends {jspb.Message} |
| 161 | * @constructor |
| 162 | */ |
| 163 | proto.ListFeaturesResponse = function(opt_data) { |
| 164 | jspb.Message.initialize(this, opt_data, 0, -1, proto.ListFeaturesResponse.repeatedFields_, null); |
| 165 | }; |
| 166 | goog.inherits(proto.ListFeaturesResponse, jspb.Message); |
| 167 | if (goog.DEBUG && !COMPILED) { |
| 168 | /** |
| 169 | * @public |
| 170 | * @override |
| 171 | */ |
| 172 | proto.ListFeaturesResponse.displayName = 'proto.ListFeaturesResponse'; |
| 173 | } |
| 174 | /** |
| 175 | * Generated by JsPbCodeGenerator. |
| 176 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 177 | * server response, or constructed directly in Javascript. The array is used |
| 178 | * in place and becomes part of the constructed object. It is not cloned. |
| 179 | * If no data is provided, the constructed object will be empty, but still |
| 180 | * valid. |
| 181 | * @extends {jspb.Message} |
| 182 | * @constructor |
| 183 | */ |
| 184 | proto.SyncFeaturesRequest = function(opt_data) { |
| 185 | jspb.Message.initialize(this, opt_data, 0, -1, proto.SyncFeaturesRequest.repeatedFields_, null); |
| 186 | }; |
| 187 | goog.inherits(proto.SyncFeaturesRequest, jspb.Message); |
| 188 | if (goog.DEBUG && !COMPILED) { |
| 189 | /** |
| 190 | * @public |
| 191 | * @override |
| 192 | */ |
| 193 | proto.SyncFeaturesRequest.displayName = 'proto.SyncFeaturesRequest'; |
| 194 | } |
| 195 | /** |
| 196 | * Generated by JsPbCodeGenerator. |
| 197 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 198 | * server response, or constructed directly in Javascript. The array is used |
| 199 | * in place and becomes part of the constructed object. It is not cloned. |
| 200 | * If no data is provided, the constructed object will be empty, but still |
| 201 | * valid. |
| 202 | * @extends {jspb.Message} |
| 203 | * @constructor |
| 204 | */ |
| 205 | proto.SyncFeaturesResponse = function(opt_data) { |
| 206 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 207 | }; |
| 208 | goog.inherits(proto.SyncFeaturesResponse, jspb.Message); |
| 209 | if (goog.DEBUG && !COMPILED) { |
| 210 | /** |
| 211 | * @public |
| 212 | * @override |
| 213 | */ |
| 214 | proto.SyncFeaturesResponse.displayName = 'proto.SyncFeaturesResponse'; |
| 215 | } |
| 216 | /** |
| 217 | * Generated by JsPbCodeGenerator. |
| 218 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 219 | * server response, or constructed directly in Javascript. The array is used |
| 220 | * in place and becomes part of the constructed object. It is not cloned. |
| 221 | * If no data is provided, the constructed object will be empty, but still |
| 222 | * valid. |
| 223 | * @extends {jspb.Message} |
| 224 | * @constructor |
| 225 | */ |
| 226 | proto.EnableKillSwitchRequest = function(opt_data) { |
| 227 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 228 | }; |
| 229 | goog.inherits(proto.EnableKillSwitchRequest, jspb.Message); |
| 230 | if (goog.DEBUG && !COMPILED) { |
| 231 | /** |
| 232 | * @public |
| 233 | * @override |
| 234 | */ |
| 235 | proto.EnableKillSwitchRequest.displayName = 'proto.EnableKillSwitchRequest'; |
| 236 | } |
| 237 | /** |
| 238 | * Generated by JsPbCodeGenerator. |
| 239 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 240 | * server response, or constructed directly in Javascript. The array is used |
| 241 | * in place and becomes part of the constructed object. It is not cloned. |
| 242 | * If no data is provided, the constructed object will be empty, but still |
| 243 | * valid. |
| 244 | * @extends {jspb.Message} |
| 245 | * @constructor |
| 246 | */ |
| 247 | proto.EnableKillSwitchResponse = function(opt_data) { |
| 248 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 249 | }; |
| 250 | goog.inherits(proto.EnableKillSwitchResponse, jspb.Message); |
| 251 | if (goog.DEBUG && !COMPILED) { |
| 252 | /** |
| 253 | * @public |
| 254 | * @override |
| 255 | */ |
| 256 | proto.EnableKillSwitchResponse.displayName = 'proto.EnableKillSwitchResponse'; |
| 257 | } |
| 258 | /** |
| 259 | * Generated by JsPbCodeGenerator. |
| 260 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 261 | * server response, or constructed directly in Javascript. The array is used |
| 262 | * in place and becomes part of the constructed object. It is not cloned. |
| 263 | * If no data is provided, the constructed object will be empty, but still |
| 264 | * valid. |
| 265 | * @extends {jspb.Message} |
| 266 | * @constructor |
| 267 | */ |
| 268 | proto.DisableKillSwitchRequest = function(opt_data) { |
| 269 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 270 | }; |
| 271 | goog.inherits(proto.DisableKillSwitchRequest, jspb.Message); |
| 272 | if (goog.DEBUG && !COMPILED) { |
| 273 | /** |
| 274 | * @public |
| 275 | * @override |
| 276 | */ |
| 277 | proto.DisableKillSwitchRequest.displayName = 'proto.DisableKillSwitchRequest'; |
| 278 | } |
| 279 | /** |
| 280 | * Generated by JsPbCodeGenerator. |
| 281 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 282 | * server response, or constructed directly in Javascript. The array is used |
| 283 | * in place and becomes part of the constructed object. It is not cloned. |
| 284 | * If no data is provided, the constructed object will be empty, but still |
| 285 | * valid. |
| 286 | * @extends {jspb.Message} |
| 287 | * @constructor |
| 288 | */ |
| 289 | proto.DisableKillSwitchResponse = function(opt_data) { |
| 290 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 291 | }; |
| 292 | goog.inherits(proto.DisableKillSwitchResponse, jspb.Message); |
| 293 | if (goog.DEBUG && !COMPILED) { |
| 294 | /** |
| 295 | * @public |
| 296 | * @override |
| 297 | */ |
| 298 | proto.DisableKillSwitchResponse.displayName = 'proto.DisableKillSwitchResponse'; |
| 299 | } |
| 300 | /** |
| 301 | * Generated by JsPbCodeGenerator. |
| 302 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 303 | * server response, or constructed directly in Javascript. The array is used |
| 304 | * in place and becomes part of the constructed object. It is not cloned. |
| 305 | * If no data is provided, the constructed object will be empty, but still |
| 306 | * valid. |
| 307 | * @extends {jspb.Message} |
| 308 | * @constructor |
| 309 | */ |
| 310 | proto.ListAuthorizedUsersRequest = function(opt_data) { |
| 311 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 312 | }; |
| 313 | goog.inherits(proto.ListAuthorizedUsersRequest, jspb.Message); |
| 314 | if (goog.DEBUG && !COMPILED) { |
| 315 | /** |
| 316 | * @public |
| 317 | * @override |
| 318 | */ |
| 319 | proto.ListAuthorizedUsersRequest.displayName = 'proto.ListAuthorizedUsersRequest'; |
| 320 | } |
| 321 | /** |
| 322 | * Generated by JsPbCodeGenerator. |
| 323 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 324 | * server response, or constructed directly in Javascript. The array is used |
| 325 | * in place and becomes part of the constructed object. It is not cloned. |
| 326 | * If no data is provided, the constructed object will be empty, but still |
| 327 | * valid. |
| 328 | * @extends {jspb.Message} |
| 329 | * @constructor |
| 330 | */ |
| 331 | proto.ListAuthorizedUsersResponse = function(opt_data) { |
| 332 | jspb.Message.initialize(this, opt_data, 0, -1, proto.ListAuthorizedUsersResponse.repeatedFields_, null); |
| 333 | }; |
| 334 | goog.inherits(proto.ListAuthorizedUsersResponse, jspb.Message); |
| 335 | if (goog.DEBUG && !COMPILED) { |
| 336 | /** |
| 337 | * @public |
| 338 | * @override |
| 339 | */ |
| 340 | proto.ListAuthorizedUsersResponse.displayName = 'proto.ListAuthorizedUsersResponse'; |
| 341 | } |
| 342 | /** |
| 343 | * Generated by JsPbCodeGenerator. |
| 344 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 345 | * server response, or constructed directly in Javascript. The array is used |
| 346 | * in place and becomes part of the constructed object. It is not cloned. |
| 347 | * If no data is provided, the constructed object will be empty, but still |
| 348 | * valid. |
| 349 | * @extends {jspb.Message} |
| 350 | * @constructor |
| 351 | */ |
| 352 | proto.AddAuthorizedUserRequest = function(opt_data) { |
| 353 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 354 | }; |
| 355 | goog.inherits(proto.AddAuthorizedUserRequest, jspb.Message); |
| 356 | if (goog.DEBUG && !COMPILED) { |
| 357 | /** |
| 358 | * @public |
| 359 | * @override |
| 360 | */ |
| 361 | proto.AddAuthorizedUserRequest.displayName = 'proto.AddAuthorizedUserRequest'; |
| 362 | } |
| 363 | /** |
| 364 | * Generated by JsPbCodeGenerator. |
| 365 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 366 | * server response, or constructed directly in Javascript. The array is used |
| 367 | * in place and becomes part of the constructed object. It is not cloned. |
| 368 | * If no data is provided, the constructed object will be empty, but still |
| 369 | * valid. |
| 370 | * @extends {jspb.Message} |
| 371 | * @constructor |
| 372 | */ |
| 373 | proto.AddAuthorizedUserResponse = function(opt_data) { |
| 374 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 375 | }; |
| 376 | goog.inherits(proto.AddAuthorizedUserResponse, jspb.Message); |
| 377 | if (goog.DEBUG && !COMPILED) { |
| 378 | /** |
| 379 | * @public |
| 380 | * @override |
| 381 | */ |
| 382 | proto.AddAuthorizedUserResponse.displayName = 'proto.AddAuthorizedUserResponse'; |
| 383 | } |
| 384 | /** |
| 385 | * Generated by JsPbCodeGenerator. |
| 386 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 387 | * server response, or constructed directly in Javascript. The array is used |
| 388 | * in place and becomes part of the constructed object. It is not cloned. |
| 389 | * If no data is provided, the constructed object will be empty, but still |
| 390 | * valid. |
| 391 | * @extends {jspb.Message} |
| 392 | * @constructor |
| 393 | */ |
| 394 | proto.UpdateAuthorizedUserRequest = function(opt_data) { |
| 395 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 396 | }; |
| 397 | goog.inherits(proto.UpdateAuthorizedUserRequest, jspb.Message); |
| 398 | if (goog.DEBUG && !COMPILED) { |
| 399 | /** |
| 400 | * @public |
| 401 | * @override |
| 402 | */ |
| 403 | proto.UpdateAuthorizedUserRequest.displayName = 'proto.UpdateAuthorizedUserRequest'; |
| 404 | } |
| 405 | /** |
| 406 | * Generated by JsPbCodeGenerator. |
| 407 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 408 | * server response, or constructed directly in Javascript. The array is used |
| 409 | * in place and becomes part of the constructed object. It is not cloned. |
| 410 | * If no data is provided, the constructed object will be empty, but still |
| 411 | * valid. |
| 412 | * @extends {jspb.Message} |
| 413 | * @constructor |
| 414 | */ |
| 415 | proto.UpdateAuthorizedUserResponse = function(opt_data) { |
| 416 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 417 | }; |
| 418 | goog.inherits(proto.UpdateAuthorizedUserResponse, jspb.Message); |
| 419 | if (goog.DEBUG && !COMPILED) { |
| 420 | /** |
| 421 | * @public |
| 422 | * @override |
| 423 | */ |
| 424 | proto.UpdateAuthorizedUserResponse.displayName = 'proto.UpdateAuthorizedUserResponse'; |
| 425 | } |
| 426 | /** |
| 427 | * Generated by JsPbCodeGenerator. |
| 428 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 429 | * server response, or constructed directly in Javascript. The array is used |
| 430 | * in place and becomes part of the constructed object. It is not cloned. |
| 431 | * If no data is provided, the constructed object will be empty, but still |
| 432 | * valid. |
| 433 | * @extends {jspb.Message} |
| 434 | * @constructor |
| 435 | */ |
| 436 | proto.DeleteAuthorizedUserRequest = function(opt_data) { |
| 437 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 438 | }; |
| 439 | goog.inherits(proto.DeleteAuthorizedUserRequest, jspb.Message); |
| 440 | if (goog.DEBUG && !COMPILED) { |
| 441 | /** |
| 442 | * @public |
| 443 | * @override |
| 444 | */ |
| 445 | proto.DeleteAuthorizedUserRequest.displayName = 'proto.DeleteAuthorizedUserRequest'; |
| 446 | } |
| 447 | /** |
| 448 | * Generated by JsPbCodeGenerator. |
| 449 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 450 | * server response, or constructed directly in Javascript. The array is used |
| 451 | * in place and becomes part of the constructed object. It is not cloned. |
| 452 | * If no data is provided, the constructed object will be empty, but still |
| 453 | * valid. |
| 454 | * @extends {jspb.Message} |
| 455 | * @constructor |
| 456 | */ |
| 457 | proto.DeleteAuthorizedUserResponse = function(opt_data) { |
| 458 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 459 | }; |
| 460 | goog.inherits(proto.DeleteAuthorizedUserResponse, jspb.Message); |
| 461 | if (goog.DEBUG && !COMPILED) { |
| 462 | /** |
| 463 | * @public |
| 464 | * @override |
| 465 | */ |
| 466 | proto.DeleteAuthorizedUserResponse.displayName = 'proto.DeleteAuthorizedUserResponse'; |
| 467 | } |
| 468 | |
| 469 | |
| 470 | |
| 471 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 472 | /** |
| 473 | * Creates an object representation of this proto. |
| 474 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 475 | * Optional fields that are not set will be set to undefined. |
| 476 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 477 | * For the list of reserved names please see: |
| 478 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 479 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 480 | * JSPB instance for transitional soy proto support: |
| 481 | * http://goto/soy-param-migration |
| 482 | * @return {!Object} |
| 483 | */ |
| 484 | proto.GetKillSwitchStatusRequest.prototype.toObject = function(opt_includeInstance) { |
| 485 | return proto.GetKillSwitchStatusRequest.toObject(opt_includeInstance, this); |
| 486 | }; |
| 487 | |
| 488 | |
| 489 | /** |
| 490 | * Static version of the {@see toObject} method. |
| 491 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 492 | * the JSPB instance for transitional soy proto support: |
| 493 | * http://goto/soy-param-migration |
| 494 | * @param {!proto.GetKillSwitchStatusRequest} msg The msg instance to transform. |
| 495 | * @return {!Object} |
| 496 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 497 | */ |
| 498 | proto.GetKillSwitchStatusRequest.toObject = function(includeInstance, msg) { |
| 499 | var f, obj = { |
| 500 | environment: (f = msg.getEnvironment()) && api_proto_common_pb.Environment.toObject(includeInstance, f) |
| 501 | }; |
| 502 | |
| 503 | if (includeInstance) { |
| 504 | obj.$jspbMessageInstance = msg; |
| 505 | } |
| 506 | return obj; |
| 507 | }; |
| 508 | } |
| 509 | |
| 510 | |
| 511 | /** |
| 512 | * Deserializes binary data (in protobuf wire format). |
| 513 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 514 | * @return {!proto.GetKillSwitchStatusRequest} |
| 515 | */ |
| 516 | proto.GetKillSwitchStatusRequest.deserializeBinary = function(bytes) { |
| 517 | var reader = new jspb.BinaryReader(bytes); |
| 518 | var msg = new proto.GetKillSwitchStatusRequest; |
| 519 | return proto.GetKillSwitchStatusRequest.deserializeBinaryFromReader(msg, reader); |
| 520 | }; |
| 521 | |
| 522 | |
| 523 | /** |
| 524 | * Deserializes binary data (in protobuf wire format) from the |
| 525 | * given reader into the given message object. |
| 526 | * @param {!proto.GetKillSwitchStatusRequest} msg The message object to deserialize into. |
| 527 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 528 | * @return {!proto.GetKillSwitchStatusRequest} |
| 529 | */ |
| 530 | proto.GetKillSwitchStatusRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 531 | while (reader.nextField()) { |
| 532 | if (reader.isEndGroup()) { |
| 533 | break; |
| 534 | } |
| 535 | var field = reader.getFieldNumber(); |
| 536 | switch (field) { |
| 537 | case 1: |
| 538 | var value = new api_proto_common_pb.Environment; |
| 539 | reader.readMessage(value,api_proto_common_pb.Environment.deserializeBinaryFromReader); |
| 540 | msg.setEnvironment(value); |
| 541 | break; |
| 542 | default: |
| 543 | reader.skipField(); |
| 544 | break; |
| 545 | } |
| 546 | } |
| 547 | return msg; |
| 548 | }; |
| 549 | |
| 550 | |
| 551 | /** |
| 552 | * Serializes the message to binary data (in protobuf wire format). |
| 553 | * @return {!Uint8Array} |
| 554 | */ |
| 555 | proto.GetKillSwitchStatusRequest.prototype.serializeBinary = function() { |
| 556 | var writer = new jspb.BinaryWriter(); |
| 557 | proto.GetKillSwitchStatusRequest.serializeBinaryToWriter(this, writer); |
| 558 | return writer.getResultBuffer(); |
| 559 | }; |
| 560 | |
| 561 | |
| 562 | /** |
| 563 | * Serializes the given message to binary data (in protobuf wire |
| 564 | * format), writing to the given BinaryWriter. |
| 565 | * @param {!proto.GetKillSwitchStatusRequest} message |
| 566 | * @param {!jspb.BinaryWriter} writer |
| 567 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 568 | */ |
| 569 | proto.GetKillSwitchStatusRequest.serializeBinaryToWriter = function(message, writer) { |
| 570 | var f = undefined; |
| 571 | f = message.getEnvironment(); |
| 572 | if (f != null) { |
| 573 | writer.writeMessage( |
| 574 | 1, |
| 575 | f, |
| 576 | api_proto_common_pb.Environment.serializeBinaryToWriter |
| 577 | ); |
| 578 | } |
| 579 | }; |
| 580 | |
| 581 | |
| 582 | /** |
| 583 | * optional Environment environment = 1; |
| 584 | * @return {?proto.Environment} |
| 585 | */ |
| 586 | proto.GetKillSwitchStatusRequest.prototype.getEnvironment = function() { |
| 587 | return /** @type{?proto.Environment} */ ( |
| 588 | jspb.Message.getWrapperField(this, api_proto_common_pb.Environment, 1)); |
| 589 | }; |
| 590 | |
| 591 | |
| 592 | /** |
| 593 | * @param {?proto.Environment|undefined} value |
| 594 | * @return {!proto.GetKillSwitchStatusRequest} returns this |
| 595 | */ |
| 596 | proto.GetKillSwitchStatusRequest.prototype.setEnvironment = function(value) { |
| 597 | return jspb.Message.setWrapperField(this, 1, value); |
| 598 | }; |
| 599 | |
| 600 | |
| 601 | /** |
| 602 | * Clears the message field making it undefined. |
| 603 | * @return {!proto.GetKillSwitchStatusRequest} returns this |
| 604 | */ |
| 605 | proto.GetKillSwitchStatusRequest.prototype.clearEnvironment = function() { |
| 606 | return this.setEnvironment(undefined); |
| 607 | }; |
| 608 | |
| 609 | |
| 610 | /** |
| 611 | * Returns whether this field is set. |
| 612 | * @return {boolean} |
| 613 | */ |
| 614 | proto.GetKillSwitchStatusRequest.prototype.hasEnvironment = function() { |
| 615 | return jspb.Message.getField(this, 1) != null; |
| 616 | }; |
| 617 | |
| 618 | |
| 619 | |
| 620 | /** |
| 621 | * List of repeated fields within this message type. |
| 622 | * @private {!Array<number>} |
| 623 | * @const |
| 624 | */ |
| 625 | proto.GetKillSwitchStatusResponse.repeatedFields_ = [1]; |
| 626 | |
| 627 | |
| 628 | |
| 629 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 630 | /** |
| 631 | * Creates an object representation of this proto. |
| 632 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 633 | * Optional fields that are not set will be set to undefined. |
| 634 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 635 | * For the list of reserved names please see: |
| 636 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 637 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 638 | * JSPB instance for transitional soy proto support: |
| 639 | * http://goto/soy-param-migration |
| 640 | * @return {!Object} |
| 641 | */ |
| 642 | proto.GetKillSwitchStatusResponse.prototype.toObject = function(opt_includeInstance) { |
| 643 | return proto.GetKillSwitchStatusResponse.toObject(opt_includeInstance, this); |
| 644 | }; |
| 645 | |
| 646 | |
| 647 | /** |
| 648 | * Static version of the {@see toObject} method. |
| 649 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 650 | * the JSPB instance for transitional soy proto support: |
| 651 | * http://goto/soy-param-migration |
| 652 | * @param {!proto.GetKillSwitchStatusResponse} msg The msg instance to transform. |
| 653 | * @return {!Object} |
| 654 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 655 | */ |
| 656 | proto.GetKillSwitchStatusResponse.toObject = function(includeInstance, msg) { |
| 657 | var f, obj = { |
| 658 | killSwitchesList: jspb.Message.toObjectList(msg.getKillSwitchesList(), |
| 659 | api_proto_kill_switch_objects_pb.KillSwitch.toObject, includeInstance) |
| 660 | }; |
| 661 | |
| 662 | if (includeInstance) { |
| 663 | obj.$jspbMessageInstance = msg; |
| 664 | } |
| 665 | return obj; |
| 666 | }; |
| 667 | } |
| 668 | |
| 669 | |
| 670 | /** |
| 671 | * Deserializes binary data (in protobuf wire format). |
| 672 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 673 | * @return {!proto.GetKillSwitchStatusResponse} |
| 674 | */ |
| 675 | proto.GetKillSwitchStatusResponse.deserializeBinary = function(bytes) { |
| 676 | var reader = new jspb.BinaryReader(bytes); |
| 677 | var msg = new proto.GetKillSwitchStatusResponse; |
| 678 | return proto.GetKillSwitchStatusResponse.deserializeBinaryFromReader(msg, reader); |
| 679 | }; |
| 680 | |
| 681 | |
| 682 | /** |
| 683 | * Deserializes binary data (in protobuf wire format) from the |
| 684 | * given reader into the given message object. |
| 685 | * @param {!proto.GetKillSwitchStatusResponse} msg The message object to deserialize into. |
| 686 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 687 | * @return {!proto.GetKillSwitchStatusResponse} |
| 688 | */ |
| 689 | proto.GetKillSwitchStatusResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 690 | while (reader.nextField()) { |
| 691 | if (reader.isEndGroup()) { |
| 692 | break; |
| 693 | } |
| 694 | var field = reader.getFieldNumber(); |
| 695 | switch (field) { |
| 696 | case 1: |
| 697 | var value = new api_proto_kill_switch_objects_pb.KillSwitch; |
| 698 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader); |
| 699 | msg.addKillSwitches(value); |
| 700 | break; |
| 701 | default: |
| 702 | reader.skipField(); |
| 703 | break; |
| 704 | } |
| 705 | } |
| 706 | return msg; |
| 707 | }; |
| 708 | |
| 709 | |
| 710 | /** |
| 711 | * Serializes the message to binary data (in protobuf wire format). |
| 712 | * @return {!Uint8Array} |
| 713 | */ |
| 714 | proto.GetKillSwitchStatusResponse.prototype.serializeBinary = function() { |
| 715 | var writer = new jspb.BinaryWriter(); |
| 716 | proto.GetKillSwitchStatusResponse.serializeBinaryToWriter(this, writer); |
| 717 | return writer.getResultBuffer(); |
| 718 | }; |
| 719 | |
| 720 | |
| 721 | /** |
| 722 | * Serializes the given message to binary data (in protobuf wire |
| 723 | * format), writing to the given BinaryWriter. |
| 724 | * @param {!proto.GetKillSwitchStatusResponse} message |
| 725 | * @param {!jspb.BinaryWriter} writer |
| 726 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 727 | */ |
| 728 | proto.GetKillSwitchStatusResponse.serializeBinaryToWriter = function(message, writer) { |
| 729 | var f = undefined; |
| 730 | f = message.getKillSwitchesList(); |
| 731 | if (f.length > 0) { |
| 732 | writer.writeRepeatedMessage( |
| 733 | 1, |
| 734 | f, |
| 735 | api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter |
| 736 | ); |
| 737 | } |
| 738 | }; |
| 739 | |
| 740 | |
| 741 | /** |
| 742 | * repeated KillSwitch kill_switches = 1; |
| 743 | * @return {!Array<!proto.KillSwitch>} |
| 744 | */ |
| 745 | proto.GetKillSwitchStatusResponse.prototype.getKillSwitchesList = function() { |
| 746 | return /** @type{!Array<!proto.KillSwitch>} */ ( |
| 747 | jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1)); |
| 748 | }; |
| 749 | |
| 750 | |
| 751 | /** |
| 752 | * @param {!Array<!proto.KillSwitch>} value |
| 753 | * @return {!proto.GetKillSwitchStatusResponse} returns this |
| 754 | */ |
| 755 | proto.GetKillSwitchStatusResponse.prototype.setKillSwitchesList = function(value) { |
| 756 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 757 | }; |
| 758 | |
| 759 | |
| 760 | /** |
| 761 | * @param {!proto.KillSwitch=} opt_value |
| 762 | * @param {number=} opt_index |
| 763 | * @return {!proto.KillSwitch} |
| 764 | */ |
| 765 | proto.GetKillSwitchStatusResponse.prototype.addKillSwitches = function(opt_value, opt_index) { |
| 766 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitch, opt_index); |
| 767 | }; |
| 768 | |
| 769 | |
| 770 | /** |
| 771 | * Clears the list making it empty but non-null. |
| 772 | * @return {!proto.GetKillSwitchStatusResponse} returns this |
| 773 | */ |
| 774 | proto.GetKillSwitchStatusResponse.prototype.clearKillSwitchesList = function() { |
| 775 | return this.setKillSwitchesList([]); |
| 776 | }; |
| 777 | |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 783 | /** |
| 784 | * Creates an object representation of this proto. |
| 785 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 786 | * Optional fields that are not set will be set to undefined. |
| 787 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 788 | * For the list of reserved names please see: |
| 789 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 790 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 791 | * JSPB instance for transitional soy proto support: |
| 792 | * http://goto/soy-param-migration |
| 793 | * @return {!Object} |
| 794 | */ |
| 795 | proto.GetKillSwitchOverviewRequest.prototype.toObject = function(opt_includeInstance) { |
| 796 | return proto.GetKillSwitchOverviewRequest.toObject(opt_includeInstance, this); |
| 797 | }; |
| 798 | |
| 799 | |
| 800 | /** |
| 801 | * Static version of the {@see toObject} method. |
| 802 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 803 | * the JSPB instance for transitional soy proto support: |
| 804 | * http://goto/soy-param-migration |
| 805 | * @param {!proto.GetKillSwitchOverviewRequest} msg The msg instance to transform. |
| 806 | * @return {!Object} |
| 807 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 808 | */ |
| 809 | proto.GetKillSwitchOverviewRequest.toObject = function(includeInstance, msg) { |
| 810 | var f, obj = { |
Adrià Vilanova Martínez | 8610314 | 2021-09-03 15:13:20 +0200 | [diff] [blame] | 811 | withNonactiveKillSwitches: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) |
Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 812 | }; |
| 813 | |
| 814 | if (includeInstance) { |
| 815 | obj.$jspbMessageInstance = msg; |
| 816 | } |
| 817 | return obj; |
| 818 | }; |
| 819 | } |
| 820 | |
| 821 | |
| 822 | /** |
| 823 | * Deserializes binary data (in protobuf wire format). |
| 824 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 825 | * @return {!proto.GetKillSwitchOverviewRequest} |
| 826 | */ |
| 827 | proto.GetKillSwitchOverviewRequest.deserializeBinary = function(bytes) { |
| 828 | var reader = new jspb.BinaryReader(bytes); |
| 829 | var msg = new proto.GetKillSwitchOverviewRequest; |
| 830 | return proto.GetKillSwitchOverviewRequest.deserializeBinaryFromReader(msg, reader); |
| 831 | }; |
| 832 | |
| 833 | |
| 834 | /** |
| 835 | * Deserializes binary data (in protobuf wire format) from the |
| 836 | * given reader into the given message object. |
| 837 | * @param {!proto.GetKillSwitchOverviewRequest} msg The message object to deserialize into. |
| 838 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 839 | * @return {!proto.GetKillSwitchOverviewRequest} |
| 840 | */ |
| 841 | proto.GetKillSwitchOverviewRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 842 | while (reader.nextField()) { |
| 843 | if (reader.isEndGroup()) { |
| 844 | break; |
| 845 | } |
| 846 | var field = reader.getFieldNumber(); |
| 847 | switch (field) { |
Adrià Vilanova Martínez | 8610314 | 2021-09-03 15:13:20 +0200 | [diff] [blame] | 848 | case 1: |
| 849 | var value = /** @type {boolean} */ (reader.readBool()); |
| 850 | msg.setWithNonactiveKillSwitches(value); |
| 851 | break; |
Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 852 | default: |
| 853 | reader.skipField(); |
| 854 | break; |
| 855 | } |
| 856 | } |
| 857 | return msg; |
| 858 | }; |
| 859 | |
| 860 | |
| 861 | /** |
| 862 | * Serializes the message to binary data (in protobuf wire format). |
| 863 | * @return {!Uint8Array} |
| 864 | */ |
| 865 | proto.GetKillSwitchOverviewRequest.prototype.serializeBinary = function() { |
| 866 | var writer = new jspb.BinaryWriter(); |
| 867 | proto.GetKillSwitchOverviewRequest.serializeBinaryToWriter(this, writer); |
| 868 | return writer.getResultBuffer(); |
| 869 | }; |
| 870 | |
| 871 | |
| 872 | /** |
| 873 | * Serializes the given message to binary data (in protobuf wire |
| 874 | * format), writing to the given BinaryWriter. |
| 875 | * @param {!proto.GetKillSwitchOverviewRequest} message |
| 876 | * @param {!jspb.BinaryWriter} writer |
| 877 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 878 | */ |
| 879 | proto.GetKillSwitchOverviewRequest.serializeBinaryToWriter = function(message, writer) { |
| 880 | var f = undefined; |
Adrià Vilanova Martínez | 8610314 | 2021-09-03 15:13:20 +0200 | [diff] [blame] | 881 | f = message.getWithNonactiveKillSwitches(); |
| 882 | if (f) { |
| 883 | writer.writeBool( |
| 884 | 1, |
| 885 | f |
| 886 | ); |
| 887 | } |
| 888 | }; |
| 889 | |
| 890 | |
| 891 | /** |
| 892 | * optional bool with_nonactive_kill_switches = 1; |
| 893 | * @return {boolean} |
| 894 | */ |
| 895 | proto.GetKillSwitchOverviewRequest.prototype.getWithNonactiveKillSwitches = function() { |
| 896 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); |
| 897 | }; |
| 898 | |
| 899 | |
| 900 | /** |
| 901 | * @param {boolean} value |
| 902 | * @return {!proto.GetKillSwitchOverviewRequest} returns this |
| 903 | */ |
| 904 | proto.GetKillSwitchOverviewRequest.prototype.setWithNonactiveKillSwitches = function(value) { |
| 905 | return jspb.Message.setProto3BooleanField(this, 1, value); |
Adrià Vilanova Martínez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 906 | }; |
| 907 | |
| 908 | |
| 909 | |
| 910 | /** |
| 911 | * List of repeated fields within this message type. |
| 912 | * @private {!Array<number>} |
| 913 | * @const |
| 914 | */ |
| 915 | proto.GetKillSwitchOverviewResponse.repeatedFields_ = [1]; |
| 916 | |
| 917 | |
| 918 | |
| 919 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 920 | /** |
| 921 | * Creates an object representation of this proto. |
| 922 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 923 | * Optional fields that are not set will be set to undefined. |
| 924 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 925 | * For the list of reserved names please see: |
| 926 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 927 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 928 | * JSPB instance for transitional soy proto support: |
| 929 | * http://goto/soy-param-migration |
| 930 | * @return {!Object} |
| 931 | */ |
| 932 | proto.GetKillSwitchOverviewResponse.prototype.toObject = function(opt_includeInstance) { |
| 933 | return proto.GetKillSwitchOverviewResponse.toObject(opt_includeInstance, this); |
| 934 | }; |
| 935 | |
| 936 | |
| 937 | /** |
| 938 | * Static version of the {@see toObject} method. |
| 939 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 940 | * the JSPB instance for transitional soy proto support: |
| 941 | * http://goto/soy-param-migration |
| 942 | * @param {!proto.GetKillSwitchOverviewResponse} msg The msg instance to transform. |
| 943 | * @return {!Object} |
| 944 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 945 | */ |
| 946 | proto.GetKillSwitchOverviewResponse.toObject = function(includeInstance, msg) { |
| 947 | var f, obj = { |
| 948 | killSwitchesList: jspb.Message.toObjectList(msg.getKillSwitchesList(), |
| 949 | api_proto_kill_switch_objects_pb.KillSwitch.toObject, includeInstance) |
| 950 | }; |
| 951 | |
| 952 | if (includeInstance) { |
| 953 | obj.$jspbMessageInstance = msg; |
| 954 | } |
| 955 | return obj; |
| 956 | }; |
| 957 | } |
| 958 | |
| 959 | |
| 960 | /** |
| 961 | * Deserializes binary data (in protobuf wire format). |
| 962 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 963 | * @return {!proto.GetKillSwitchOverviewResponse} |
| 964 | */ |
| 965 | proto.GetKillSwitchOverviewResponse.deserializeBinary = function(bytes) { |
| 966 | var reader = new jspb.BinaryReader(bytes); |
| 967 | var msg = new proto.GetKillSwitchOverviewResponse; |
| 968 | return proto.GetKillSwitchOverviewResponse.deserializeBinaryFromReader(msg, reader); |
| 969 | }; |
| 970 | |
| 971 | |
| 972 | /** |
| 973 | * Deserializes binary data (in protobuf wire format) from the |
| 974 | * given reader into the given message object. |
| 975 | * @param {!proto.GetKillSwitchOverviewResponse} msg The message object to deserialize into. |
| 976 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 977 | * @return {!proto.GetKillSwitchOverviewResponse} |
| 978 | */ |
| 979 | proto.GetKillSwitchOverviewResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 980 | while (reader.nextField()) { |
| 981 | if (reader.isEndGroup()) { |
| 982 | break; |
| 983 | } |
| 984 | var field = reader.getFieldNumber(); |
| 985 | switch (field) { |
| 986 | case 1: |
| 987 | var value = new api_proto_kill_switch_objects_pb.KillSwitch; |
| 988 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader); |
| 989 | msg.addKillSwitches(value); |
| 990 | break; |
| 991 | default: |
| 992 | reader.skipField(); |
| 993 | break; |
| 994 | } |
| 995 | } |
| 996 | return msg; |
| 997 | }; |
| 998 | |
| 999 | |
| 1000 | /** |
| 1001 | * Serializes the message to binary data (in protobuf wire format). |
| 1002 | * @return {!Uint8Array} |
| 1003 | */ |
| 1004 | proto.GetKillSwitchOverviewResponse.prototype.serializeBinary = function() { |
| 1005 | var writer = new jspb.BinaryWriter(); |
| 1006 | proto.GetKillSwitchOverviewResponse.serializeBinaryToWriter(this, writer); |
| 1007 | return writer.getResultBuffer(); |
| 1008 | }; |
| 1009 | |
| 1010 | |
| 1011 | /** |
| 1012 | * Serializes the given message to binary data (in protobuf wire |
| 1013 | * format), writing to the given BinaryWriter. |
| 1014 | * @param {!proto.GetKillSwitchOverviewResponse} message |
| 1015 | * @param {!jspb.BinaryWriter} writer |
| 1016 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1017 | */ |
| 1018 | proto.GetKillSwitchOverviewResponse.serializeBinaryToWriter = function(message, writer) { |
| 1019 | var f = undefined; |
| 1020 | f = message.getKillSwitchesList(); |
| 1021 | if (f.length > 0) { |
| 1022 | writer.writeRepeatedMessage( |
| 1023 | 1, |
| 1024 | f, |
| 1025 | api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter |
| 1026 | ); |
| 1027 | } |
| 1028 | }; |
| 1029 | |
| 1030 | |
| 1031 | /** |
| 1032 | * repeated KillSwitch kill_switches = 1; |
| 1033 | * @return {!Array<!proto.KillSwitch>} |
| 1034 | */ |
| 1035 | proto.GetKillSwitchOverviewResponse.prototype.getKillSwitchesList = function() { |
| 1036 | return /** @type{!Array<!proto.KillSwitch>} */ ( |
| 1037 | jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1)); |
| 1038 | }; |
| 1039 | |
| 1040 | |
| 1041 | /** |
| 1042 | * @param {!Array<!proto.KillSwitch>} value |
| 1043 | * @return {!proto.GetKillSwitchOverviewResponse} returns this |
| 1044 | */ |
| 1045 | proto.GetKillSwitchOverviewResponse.prototype.setKillSwitchesList = function(value) { |
| 1046 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 1047 | }; |
| 1048 | |
| 1049 | |
| 1050 | /** |
| 1051 | * @param {!proto.KillSwitch=} opt_value |
| 1052 | * @param {number=} opt_index |
| 1053 | * @return {!proto.KillSwitch} |
| 1054 | */ |
| 1055 | proto.GetKillSwitchOverviewResponse.prototype.addKillSwitches = function(opt_value, opt_index) { |
| 1056 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitch, opt_index); |
| 1057 | }; |
| 1058 | |
| 1059 | |
| 1060 | /** |
| 1061 | * Clears the list making it empty but non-null. |
| 1062 | * @return {!proto.GetKillSwitchOverviewResponse} returns this |
| 1063 | */ |
| 1064 | proto.GetKillSwitchOverviewResponse.prototype.clearKillSwitchesList = function() { |
| 1065 | return this.setKillSwitchesList([]); |
| 1066 | }; |
| 1067 | |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1073 | /** |
| 1074 | * Creates an object representation of this proto. |
| 1075 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1076 | * Optional fields that are not set will be set to undefined. |
| 1077 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1078 | * For the list of reserved names please see: |
| 1079 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1080 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1081 | * JSPB instance for transitional soy proto support: |
| 1082 | * http://goto/soy-param-migration |
| 1083 | * @return {!Object} |
| 1084 | */ |
| 1085 | proto.ListFeaturesRequest.prototype.toObject = function(opt_includeInstance) { |
| 1086 | return proto.ListFeaturesRequest.toObject(opt_includeInstance, this); |
| 1087 | }; |
| 1088 | |
| 1089 | |
| 1090 | /** |
| 1091 | * Static version of the {@see toObject} method. |
| 1092 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1093 | * the JSPB instance for transitional soy proto support: |
| 1094 | * http://goto/soy-param-migration |
| 1095 | * @param {!proto.ListFeaturesRequest} msg The msg instance to transform. |
| 1096 | * @return {!Object} |
| 1097 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1098 | */ |
| 1099 | proto.ListFeaturesRequest.toObject = function(includeInstance, msg) { |
| 1100 | var f, obj = { |
| 1101 | withDeprecatedFeatures: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) |
| 1102 | }; |
| 1103 | |
| 1104 | if (includeInstance) { |
| 1105 | obj.$jspbMessageInstance = msg; |
| 1106 | } |
| 1107 | return obj; |
| 1108 | }; |
| 1109 | } |
| 1110 | |
| 1111 | |
| 1112 | /** |
| 1113 | * Deserializes binary data (in protobuf wire format). |
| 1114 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1115 | * @return {!proto.ListFeaturesRequest} |
| 1116 | */ |
| 1117 | proto.ListFeaturesRequest.deserializeBinary = function(bytes) { |
| 1118 | var reader = new jspb.BinaryReader(bytes); |
| 1119 | var msg = new proto.ListFeaturesRequest; |
| 1120 | return proto.ListFeaturesRequest.deserializeBinaryFromReader(msg, reader); |
| 1121 | }; |
| 1122 | |
| 1123 | |
| 1124 | /** |
| 1125 | * Deserializes binary data (in protobuf wire format) from the |
| 1126 | * given reader into the given message object. |
| 1127 | * @param {!proto.ListFeaturesRequest} msg The message object to deserialize into. |
| 1128 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1129 | * @return {!proto.ListFeaturesRequest} |
| 1130 | */ |
| 1131 | proto.ListFeaturesRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 1132 | while (reader.nextField()) { |
| 1133 | if (reader.isEndGroup()) { |
| 1134 | break; |
| 1135 | } |
| 1136 | var field = reader.getFieldNumber(); |
| 1137 | switch (field) { |
| 1138 | case 1: |
| 1139 | var value = /** @type {boolean} */ (reader.readBool()); |
| 1140 | msg.setWithDeprecatedFeatures(value); |
| 1141 | break; |
| 1142 | default: |
| 1143 | reader.skipField(); |
| 1144 | break; |
| 1145 | } |
| 1146 | } |
| 1147 | return msg; |
| 1148 | }; |
| 1149 | |
| 1150 | |
| 1151 | /** |
| 1152 | * Serializes the message to binary data (in protobuf wire format). |
| 1153 | * @return {!Uint8Array} |
| 1154 | */ |
| 1155 | proto.ListFeaturesRequest.prototype.serializeBinary = function() { |
| 1156 | var writer = new jspb.BinaryWriter(); |
| 1157 | proto.ListFeaturesRequest.serializeBinaryToWriter(this, writer); |
| 1158 | return writer.getResultBuffer(); |
| 1159 | }; |
| 1160 | |
| 1161 | |
| 1162 | /** |
| 1163 | * Serializes the given message to binary data (in protobuf wire |
| 1164 | * format), writing to the given BinaryWriter. |
| 1165 | * @param {!proto.ListFeaturesRequest} message |
| 1166 | * @param {!jspb.BinaryWriter} writer |
| 1167 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1168 | */ |
| 1169 | proto.ListFeaturesRequest.serializeBinaryToWriter = function(message, writer) { |
| 1170 | var f = undefined; |
| 1171 | f = message.getWithDeprecatedFeatures(); |
| 1172 | if (f) { |
| 1173 | writer.writeBool( |
| 1174 | 1, |
| 1175 | f |
| 1176 | ); |
| 1177 | } |
| 1178 | }; |
| 1179 | |
| 1180 | |
| 1181 | /** |
| 1182 | * optional bool with_deprecated_features = 1; |
| 1183 | * @return {boolean} |
| 1184 | */ |
| 1185 | proto.ListFeaturesRequest.prototype.getWithDeprecatedFeatures = function() { |
| 1186 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); |
| 1187 | }; |
| 1188 | |
| 1189 | |
| 1190 | /** |
| 1191 | * @param {boolean} value |
| 1192 | * @return {!proto.ListFeaturesRequest} returns this |
| 1193 | */ |
| 1194 | proto.ListFeaturesRequest.prototype.setWithDeprecatedFeatures = function(value) { |
| 1195 | return jspb.Message.setProto3BooleanField(this, 1, value); |
| 1196 | }; |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | /** |
| 1201 | * List of repeated fields within this message type. |
| 1202 | * @private {!Array<number>} |
| 1203 | * @const |
| 1204 | */ |
| 1205 | proto.ListFeaturesResponse.repeatedFields_ = [1]; |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1210 | /** |
| 1211 | * Creates an object representation of this proto. |
| 1212 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1213 | * Optional fields that are not set will be set to undefined. |
| 1214 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1215 | * For the list of reserved names please see: |
| 1216 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1217 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1218 | * JSPB instance for transitional soy proto support: |
| 1219 | * http://goto/soy-param-migration |
| 1220 | * @return {!Object} |
| 1221 | */ |
| 1222 | proto.ListFeaturesResponse.prototype.toObject = function(opt_includeInstance) { |
| 1223 | return proto.ListFeaturesResponse.toObject(opt_includeInstance, this); |
| 1224 | }; |
| 1225 | |
| 1226 | |
| 1227 | /** |
| 1228 | * Static version of the {@see toObject} method. |
| 1229 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1230 | * the JSPB instance for transitional soy proto support: |
| 1231 | * http://goto/soy-param-migration |
| 1232 | * @param {!proto.ListFeaturesResponse} msg The msg instance to transform. |
| 1233 | * @return {!Object} |
| 1234 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1235 | */ |
| 1236 | proto.ListFeaturesResponse.toObject = function(includeInstance, msg) { |
| 1237 | var f, obj = { |
| 1238 | featuresList: jspb.Message.toObjectList(msg.getFeaturesList(), |
| 1239 | api_proto_kill_switch_objects_pb.Feature.toObject, includeInstance) |
| 1240 | }; |
| 1241 | |
| 1242 | if (includeInstance) { |
| 1243 | obj.$jspbMessageInstance = msg; |
| 1244 | } |
| 1245 | return obj; |
| 1246 | }; |
| 1247 | } |
| 1248 | |
| 1249 | |
| 1250 | /** |
| 1251 | * Deserializes binary data (in protobuf wire format). |
| 1252 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1253 | * @return {!proto.ListFeaturesResponse} |
| 1254 | */ |
| 1255 | proto.ListFeaturesResponse.deserializeBinary = function(bytes) { |
| 1256 | var reader = new jspb.BinaryReader(bytes); |
| 1257 | var msg = new proto.ListFeaturesResponse; |
| 1258 | return proto.ListFeaturesResponse.deserializeBinaryFromReader(msg, reader); |
| 1259 | }; |
| 1260 | |
| 1261 | |
| 1262 | /** |
| 1263 | * Deserializes binary data (in protobuf wire format) from the |
| 1264 | * given reader into the given message object. |
| 1265 | * @param {!proto.ListFeaturesResponse} msg The message object to deserialize into. |
| 1266 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1267 | * @return {!proto.ListFeaturesResponse} |
| 1268 | */ |
| 1269 | proto.ListFeaturesResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 1270 | while (reader.nextField()) { |
| 1271 | if (reader.isEndGroup()) { |
| 1272 | break; |
| 1273 | } |
| 1274 | var field = reader.getFieldNumber(); |
| 1275 | switch (field) { |
| 1276 | case 1: |
| 1277 | var value = new api_proto_kill_switch_objects_pb.Feature; |
| 1278 | reader.readMessage(value,api_proto_kill_switch_objects_pb.Feature.deserializeBinaryFromReader); |
| 1279 | msg.addFeatures(value); |
| 1280 | break; |
| 1281 | default: |
| 1282 | reader.skipField(); |
| 1283 | break; |
| 1284 | } |
| 1285 | } |
| 1286 | return msg; |
| 1287 | }; |
| 1288 | |
| 1289 | |
| 1290 | /** |
| 1291 | * Serializes the message to binary data (in protobuf wire format). |
| 1292 | * @return {!Uint8Array} |
| 1293 | */ |
| 1294 | proto.ListFeaturesResponse.prototype.serializeBinary = function() { |
| 1295 | var writer = new jspb.BinaryWriter(); |
| 1296 | proto.ListFeaturesResponse.serializeBinaryToWriter(this, writer); |
| 1297 | return writer.getResultBuffer(); |
| 1298 | }; |
| 1299 | |
| 1300 | |
| 1301 | /** |
| 1302 | * Serializes the given message to binary data (in protobuf wire |
| 1303 | * format), writing to the given BinaryWriter. |
| 1304 | * @param {!proto.ListFeaturesResponse} message |
| 1305 | * @param {!jspb.BinaryWriter} writer |
| 1306 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1307 | */ |
| 1308 | proto.ListFeaturesResponse.serializeBinaryToWriter = function(message, writer) { |
| 1309 | var f = undefined; |
| 1310 | f = message.getFeaturesList(); |
| 1311 | if (f.length > 0) { |
| 1312 | writer.writeRepeatedMessage( |
| 1313 | 1, |
| 1314 | f, |
| 1315 | api_proto_kill_switch_objects_pb.Feature.serializeBinaryToWriter |
| 1316 | ); |
| 1317 | } |
| 1318 | }; |
| 1319 | |
| 1320 | |
| 1321 | /** |
| 1322 | * repeated Feature features = 1; |
| 1323 | * @return {!Array<!proto.Feature>} |
| 1324 | */ |
| 1325 | proto.ListFeaturesResponse.prototype.getFeaturesList = function() { |
| 1326 | return /** @type{!Array<!proto.Feature>} */ ( |
| 1327 | jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.Feature, 1)); |
| 1328 | }; |
| 1329 | |
| 1330 | |
| 1331 | /** |
| 1332 | * @param {!Array<!proto.Feature>} value |
| 1333 | * @return {!proto.ListFeaturesResponse} returns this |
| 1334 | */ |
| 1335 | proto.ListFeaturesResponse.prototype.setFeaturesList = function(value) { |
| 1336 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 1337 | }; |
| 1338 | |
| 1339 | |
| 1340 | /** |
| 1341 | * @param {!proto.Feature=} opt_value |
| 1342 | * @param {number=} opt_index |
| 1343 | * @return {!proto.Feature} |
| 1344 | */ |
| 1345 | proto.ListFeaturesResponse.prototype.addFeatures = function(opt_value, opt_index) { |
| 1346 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Feature, opt_index); |
| 1347 | }; |
| 1348 | |
| 1349 | |
| 1350 | /** |
| 1351 | * Clears the list making it empty but non-null. |
| 1352 | * @return {!proto.ListFeaturesResponse} returns this |
| 1353 | */ |
| 1354 | proto.ListFeaturesResponse.prototype.clearFeaturesList = function() { |
| 1355 | return this.setFeaturesList([]); |
| 1356 | }; |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 | /** |
| 1361 | * List of repeated fields within this message type. |
| 1362 | * @private {!Array<number>} |
| 1363 | * @const |
| 1364 | */ |
| 1365 | proto.SyncFeaturesRequest.repeatedFields_ = [1]; |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1370 | /** |
| 1371 | * Creates an object representation of this proto. |
| 1372 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1373 | * Optional fields that are not set will be set to undefined. |
| 1374 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1375 | * For the list of reserved names please see: |
| 1376 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1377 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1378 | * JSPB instance for transitional soy proto support: |
| 1379 | * http://goto/soy-param-migration |
| 1380 | * @return {!Object} |
| 1381 | */ |
| 1382 | proto.SyncFeaturesRequest.prototype.toObject = function(opt_includeInstance) { |
| 1383 | return proto.SyncFeaturesRequest.toObject(opt_includeInstance, this); |
| 1384 | }; |
| 1385 | |
| 1386 | |
| 1387 | /** |
| 1388 | * Static version of the {@see toObject} method. |
| 1389 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1390 | * the JSPB instance for transitional soy proto support: |
| 1391 | * http://goto/soy-param-migration |
| 1392 | * @param {!proto.SyncFeaturesRequest} msg The msg instance to transform. |
| 1393 | * @return {!Object} |
| 1394 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1395 | */ |
| 1396 | proto.SyncFeaturesRequest.toObject = function(includeInstance, msg) { |
| 1397 | var f, obj = { |
| 1398 | featuresList: jspb.Message.toObjectList(msg.getFeaturesList(), |
| 1399 | api_proto_kill_switch_objects_pb.Feature.toObject, includeInstance) |
| 1400 | }; |
| 1401 | |
| 1402 | if (includeInstance) { |
| 1403 | obj.$jspbMessageInstance = msg; |
| 1404 | } |
| 1405 | return obj; |
| 1406 | }; |
| 1407 | } |
| 1408 | |
| 1409 | |
| 1410 | /** |
| 1411 | * Deserializes binary data (in protobuf wire format). |
| 1412 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1413 | * @return {!proto.SyncFeaturesRequest} |
| 1414 | */ |
| 1415 | proto.SyncFeaturesRequest.deserializeBinary = function(bytes) { |
| 1416 | var reader = new jspb.BinaryReader(bytes); |
| 1417 | var msg = new proto.SyncFeaturesRequest; |
| 1418 | return proto.SyncFeaturesRequest.deserializeBinaryFromReader(msg, reader); |
| 1419 | }; |
| 1420 | |
| 1421 | |
| 1422 | /** |
| 1423 | * Deserializes binary data (in protobuf wire format) from the |
| 1424 | * given reader into the given message object. |
| 1425 | * @param {!proto.SyncFeaturesRequest} msg The message object to deserialize into. |
| 1426 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1427 | * @return {!proto.SyncFeaturesRequest} |
| 1428 | */ |
| 1429 | proto.SyncFeaturesRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 1430 | while (reader.nextField()) { |
| 1431 | if (reader.isEndGroup()) { |
| 1432 | break; |
| 1433 | } |
| 1434 | var field = reader.getFieldNumber(); |
| 1435 | switch (field) { |
| 1436 | case 1: |
| 1437 | var value = new api_proto_kill_switch_objects_pb.Feature; |
| 1438 | reader.readMessage(value,api_proto_kill_switch_objects_pb.Feature.deserializeBinaryFromReader); |
| 1439 | msg.addFeatures(value); |
| 1440 | break; |
| 1441 | default: |
| 1442 | reader.skipField(); |
| 1443 | break; |
| 1444 | } |
| 1445 | } |
| 1446 | return msg; |
| 1447 | }; |
| 1448 | |
| 1449 | |
| 1450 | /** |
| 1451 | * Serializes the message to binary data (in protobuf wire format). |
| 1452 | * @return {!Uint8Array} |
| 1453 | */ |
| 1454 | proto.SyncFeaturesRequest.prototype.serializeBinary = function() { |
| 1455 | var writer = new jspb.BinaryWriter(); |
| 1456 | proto.SyncFeaturesRequest.serializeBinaryToWriter(this, writer); |
| 1457 | return writer.getResultBuffer(); |
| 1458 | }; |
| 1459 | |
| 1460 | |
| 1461 | /** |
| 1462 | * Serializes the given message to binary data (in protobuf wire |
| 1463 | * format), writing to the given BinaryWriter. |
| 1464 | * @param {!proto.SyncFeaturesRequest} message |
| 1465 | * @param {!jspb.BinaryWriter} writer |
| 1466 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1467 | */ |
| 1468 | proto.SyncFeaturesRequest.serializeBinaryToWriter = function(message, writer) { |
| 1469 | var f = undefined; |
| 1470 | f = message.getFeaturesList(); |
| 1471 | if (f.length > 0) { |
| 1472 | writer.writeRepeatedMessage( |
| 1473 | 1, |
| 1474 | f, |
| 1475 | api_proto_kill_switch_objects_pb.Feature.serializeBinaryToWriter |
| 1476 | ); |
| 1477 | } |
| 1478 | }; |
| 1479 | |
| 1480 | |
| 1481 | /** |
| 1482 | * repeated Feature features = 1; |
| 1483 | * @return {!Array<!proto.Feature>} |
| 1484 | */ |
| 1485 | proto.SyncFeaturesRequest.prototype.getFeaturesList = function() { |
| 1486 | return /** @type{!Array<!proto.Feature>} */ ( |
| 1487 | jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.Feature, 1)); |
| 1488 | }; |
| 1489 | |
| 1490 | |
| 1491 | /** |
| 1492 | * @param {!Array<!proto.Feature>} value |
| 1493 | * @return {!proto.SyncFeaturesRequest} returns this |
| 1494 | */ |
| 1495 | proto.SyncFeaturesRequest.prototype.setFeaturesList = function(value) { |
| 1496 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 1497 | }; |
| 1498 | |
| 1499 | |
| 1500 | /** |
| 1501 | * @param {!proto.Feature=} opt_value |
| 1502 | * @param {number=} opt_index |
| 1503 | * @return {!proto.Feature} |
| 1504 | */ |
| 1505 | proto.SyncFeaturesRequest.prototype.addFeatures = function(opt_value, opt_index) { |
| 1506 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Feature, opt_index); |
| 1507 | }; |
| 1508 | |
| 1509 | |
| 1510 | /** |
| 1511 | * Clears the list making it empty but non-null. |
| 1512 | * @return {!proto.SyncFeaturesRequest} returns this |
| 1513 | */ |
| 1514 | proto.SyncFeaturesRequest.prototype.clearFeaturesList = function() { |
| 1515 | return this.setFeaturesList([]); |
| 1516 | }; |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1523 | /** |
| 1524 | * Creates an object representation of this proto. |
| 1525 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1526 | * Optional fields that are not set will be set to undefined. |
| 1527 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1528 | * For the list of reserved names please see: |
| 1529 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1530 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1531 | * JSPB instance for transitional soy proto support: |
| 1532 | * http://goto/soy-param-migration |
| 1533 | * @return {!Object} |
| 1534 | */ |
| 1535 | proto.SyncFeaturesResponse.prototype.toObject = function(opt_includeInstance) { |
| 1536 | return proto.SyncFeaturesResponse.toObject(opt_includeInstance, this); |
| 1537 | }; |
| 1538 | |
| 1539 | |
| 1540 | /** |
| 1541 | * Static version of the {@see toObject} method. |
| 1542 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1543 | * the JSPB instance for transitional soy proto support: |
| 1544 | * http://goto/soy-param-migration |
| 1545 | * @param {!proto.SyncFeaturesResponse} msg The msg instance to transform. |
| 1546 | * @return {!Object} |
| 1547 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1548 | */ |
| 1549 | proto.SyncFeaturesResponse.toObject = function(includeInstance, msg) { |
| 1550 | var f, obj = { |
| 1551 | |
| 1552 | }; |
| 1553 | |
| 1554 | if (includeInstance) { |
| 1555 | obj.$jspbMessageInstance = msg; |
| 1556 | } |
| 1557 | return obj; |
| 1558 | }; |
| 1559 | } |
| 1560 | |
| 1561 | |
| 1562 | /** |
| 1563 | * Deserializes binary data (in protobuf wire format). |
| 1564 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1565 | * @return {!proto.SyncFeaturesResponse} |
| 1566 | */ |
| 1567 | proto.SyncFeaturesResponse.deserializeBinary = function(bytes) { |
| 1568 | var reader = new jspb.BinaryReader(bytes); |
| 1569 | var msg = new proto.SyncFeaturesResponse; |
| 1570 | return proto.SyncFeaturesResponse.deserializeBinaryFromReader(msg, reader); |
| 1571 | }; |
| 1572 | |
| 1573 | |
| 1574 | /** |
| 1575 | * Deserializes binary data (in protobuf wire format) from the |
| 1576 | * given reader into the given message object. |
| 1577 | * @param {!proto.SyncFeaturesResponse} msg The message object to deserialize into. |
| 1578 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1579 | * @return {!proto.SyncFeaturesResponse} |
| 1580 | */ |
| 1581 | proto.SyncFeaturesResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 1582 | while (reader.nextField()) { |
| 1583 | if (reader.isEndGroup()) { |
| 1584 | break; |
| 1585 | } |
| 1586 | var field = reader.getFieldNumber(); |
| 1587 | switch (field) { |
| 1588 | default: |
| 1589 | reader.skipField(); |
| 1590 | break; |
| 1591 | } |
| 1592 | } |
| 1593 | return msg; |
| 1594 | }; |
| 1595 | |
| 1596 | |
| 1597 | /** |
| 1598 | * Serializes the message to binary data (in protobuf wire format). |
| 1599 | * @return {!Uint8Array} |
| 1600 | */ |
| 1601 | proto.SyncFeaturesResponse.prototype.serializeBinary = function() { |
| 1602 | var writer = new jspb.BinaryWriter(); |
| 1603 | proto.SyncFeaturesResponse.serializeBinaryToWriter(this, writer); |
| 1604 | return writer.getResultBuffer(); |
| 1605 | }; |
| 1606 | |
| 1607 | |
| 1608 | /** |
| 1609 | * Serializes the given message to binary data (in protobuf wire |
| 1610 | * format), writing to the given BinaryWriter. |
| 1611 | * @param {!proto.SyncFeaturesResponse} message |
| 1612 | * @param {!jspb.BinaryWriter} writer |
| 1613 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1614 | */ |
| 1615 | proto.SyncFeaturesResponse.serializeBinaryToWriter = function(message, writer) { |
| 1616 | var f = undefined; |
| 1617 | }; |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1624 | /** |
| 1625 | * Creates an object representation of this proto. |
| 1626 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1627 | * Optional fields that are not set will be set to undefined. |
| 1628 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1629 | * For the list of reserved names please see: |
| 1630 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1631 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1632 | * JSPB instance for transitional soy proto support: |
| 1633 | * http://goto/soy-param-migration |
| 1634 | * @return {!Object} |
| 1635 | */ |
| 1636 | proto.EnableKillSwitchRequest.prototype.toObject = function(opt_includeInstance) { |
| 1637 | return proto.EnableKillSwitchRequest.toObject(opt_includeInstance, this); |
| 1638 | }; |
| 1639 | |
| 1640 | |
| 1641 | /** |
| 1642 | * Static version of the {@see toObject} method. |
| 1643 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1644 | * the JSPB instance for transitional soy proto support: |
| 1645 | * http://goto/soy-param-migration |
| 1646 | * @param {!proto.EnableKillSwitchRequest} msg The msg instance to transform. |
| 1647 | * @return {!Object} |
| 1648 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1649 | */ |
| 1650 | proto.EnableKillSwitchRequest.toObject = function(includeInstance, msg) { |
| 1651 | var f, obj = { |
| 1652 | killSwitch: (f = msg.getKillSwitch()) && api_proto_kill_switch_objects_pb.KillSwitch.toObject(includeInstance, f) |
| 1653 | }; |
| 1654 | |
| 1655 | if (includeInstance) { |
| 1656 | obj.$jspbMessageInstance = msg; |
| 1657 | } |
| 1658 | return obj; |
| 1659 | }; |
| 1660 | } |
| 1661 | |
| 1662 | |
| 1663 | /** |
| 1664 | * Deserializes binary data (in protobuf wire format). |
| 1665 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1666 | * @return {!proto.EnableKillSwitchRequest} |
| 1667 | */ |
| 1668 | proto.EnableKillSwitchRequest.deserializeBinary = function(bytes) { |
| 1669 | var reader = new jspb.BinaryReader(bytes); |
| 1670 | var msg = new proto.EnableKillSwitchRequest; |
| 1671 | return proto.EnableKillSwitchRequest.deserializeBinaryFromReader(msg, reader); |
| 1672 | }; |
| 1673 | |
| 1674 | |
| 1675 | /** |
| 1676 | * Deserializes binary data (in protobuf wire format) from the |
| 1677 | * given reader into the given message object. |
| 1678 | * @param {!proto.EnableKillSwitchRequest} msg The message object to deserialize into. |
| 1679 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1680 | * @return {!proto.EnableKillSwitchRequest} |
| 1681 | */ |
| 1682 | proto.EnableKillSwitchRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 1683 | while (reader.nextField()) { |
| 1684 | if (reader.isEndGroup()) { |
| 1685 | break; |
| 1686 | } |
| 1687 | var field = reader.getFieldNumber(); |
| 1688 | switch (field) { |
| 1689 | case 1: |
| 1690 | var value = new api_proto_kill_switch_objects_pb.KillSwitch; |
| 1691 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader); |
| 1692 | msg.setKillSwitch(value); |
| 1693 | break; |
| 1694 | default: |
| 1695 | reader.skipField(); |
| 1696 | break; |
| 1697 | } |
| 1698 | } |
| 1699 | return msg; |
| 1700 | }; |
| 1701 | |
| 1702 | |
| 1703 | /** |
| 1704 | * Serializes the message to binary data (in protobuf wire format). |
| 1705 | * @return {!Uint8Array} |
| 1706 | */ |
| 1707 | proto.EnableKillSwitchRequest.prototype.serializeBinary = function() { |
| 1708 | var writer = new jspb.BinaryWriter(); |
| 1709 | proto.EnableKillSwitchRequest.serializeBinaryToWriter(this, writer); |
| 1710 | return writer.getResultBuffer(); |
| 1711 | }; |
| 1712 | |
| 1713 | |
| 1714 | /** |
| 1715 | * Serializes the given message to binary data (in protobuf wire |
| 1716 | * format), writing to the given BinaryWriter. |
| 1717 | * @param {!proto.EnableKillSwitchRequest} message |
| 1718 | * @param {!jspb.BinaryWriter} writer |
| 1719 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1720 | */ |
| 1721 | proto.EnableKillSwitchRequest.serializeBinaryToWriter = function(message, writer) { |
| 1722 | var f = undefined; |
| 1723 | f = message.getKillSwitch(); |
| 1724 | if (f != null) { |
| 1725 | writer.writeMessage( |
| 1726 | 1, |
| 1727 | f, |
| 1728 | api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter |
| 1729 | ); |
| 1730 | } |
| 1731 | }; |
| 1732 | |
| 1733 | |
| 1734 | /** |
| 1735 | * optional KillSwitch kill_switch = 1; |
| 1736 | * @return {?proto.KillSwitch} |
| 1737 | */ |
| 1738 | proto.EnableKillSwitchRequest.prototype.getKillSwitch = function() { |
| 1739 | return /** @type{?proto.KillSwitch} */ ( |
| 1740 | jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1)); |
| 1741 | }; |
| 1742 | |
| 1743 | |
| 1744 | /** |
| 1745 | * @param {?proto.KillSwitch|undefined} value |
| 1746 | * @return {!proto.EnableKillSwitchRequest} returns this |
| 1747 | */ |
| 1748 | proto.EnableKillSwitchRequest.prototype.setKillSwitch = function(value) { |
| 1749 | return jspb.Message.setWrapperField(this, 1, value); |
| 1750 | }; |
| 1751 | |
| 1752 | |
| 1753 | /** |
| 1754 | * Clears the message field making it undefined. |
| 1755 | * @return {!proto.EnableKillSwitchRequest} returns this |
| 1756 | */ |
| 1757 | proto.EnableKillSwitchRequest.prototype.clearKillSwitch = function() { |
| 1758 | return this.setKillSwitch(undefined); |
| 1759 | }; |
| 1760 | |
| 1761 | |
| 1762 | /** |
| 1763 | * Returns whether this field is set. |
| 1764 | * @return {boolean} |
| 1765 | */ |
| 1766 | proto.EnableKillSwitchRequest.prototype.hasKillSwitch = function() { |
| 1767 | return jspb.Message.getField(this, 1) != null; |
| 1768 | }; |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1775 | /** |
| 1776 | * Creates an object representation of this proto. |
| 1777 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1778 | * Optional fields that are not set will be set to undefined. |
| 1779 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1780 | * For the list of reserved names please see: |
| 1781 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1782 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1783 | * JSPB instance for transitional soy proto support: |
| 1784 | * http://goto/soy-param-migration |
| 1785 | * @return {!Object} |
| 1786 | */ |
| 1787 | proto.EnableKillSwitchResponse.prototype.toObject = function(opt_includeInstance) { |
| 1788 | return proto.EnableKillSwitchResponse.toObject(opt_includeInstance, this); |
| 1789 | }; |
| 1790 | |
| 1791 | |
| 1792 | /** |
| 1793 | * Static version of the {@see toObject} method. |
| 1794 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1795 | * the JSPB instance for transitional soy proto support: |
| 1796 | * http://goto/soy-param-migration |
| 1797 | * @param {!proto.EnableKillSwitchResponse} msg The msg instance to transform. |
| 1798 | * @return {!Object} |
| 1799 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1800 | */ |
| 1801 | proto.EnableKillSwitchResponse.toObject = function(includeInstance, msg) { |
| 1802 | var f, obj = { |
| 1803 | |
| 1804 | }; |
| 1805 | |
| 1806 | if (includeInstance) { |
| 1807 | obj.$jspbMessageInstance = msg; |
| 1808 | } |
| 1809 | return obj; |
| 1810 | }; |
| 1811 | } |
| 1812 | |
| 1813 | |
| 1814 | /** |
| 1815 | * Deserializes binary data (in protobuf wire format). |
| 1816 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1817 | * @return {!proto.EnableKillSwitchResponse} |
| 1818 | */ |
| 1819 | proto.EnableKillSwitchResponse.deserializeBinary = function(bytes) { |
| 1820 | var reader = new jspb.BinaryReader(bytes); |
| 1821 | var msg = new proto.EnableKillSwitchResponse; |
| 1822 | return proto.EnableKillSwitchResponse.deserializeBinaryFromReader(msg, reader); |
| 1823 | }; |
| 1824 | |
| 1825 | |
| 1826 | /** |
| 1827 | * Deserializes binary data (in protobuf wire format) from the |
| 1828 | * given reader into the given message object. |
| 1829 | * @param {!proto.EnableKillSwitchResponse} msg The message object to deserialize into. |
| 1830 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1831 | * @return {!proto.EnableKillSwitchResponse} |
| 1832 | */ |
| 1833 | proto.EnableKillSwitchResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 1834 | while (reader.nextField()) { |
| 1835 | if (reader.isEndGroup()) { |
| 1836 | break; |
| 1837 | } |
| 1838 | var field = reader.getFieldNumber(); |
| 1839 | switch (field) { |
| 1840 | default: |
| 1841 | reader.skipField(); |
| 1842 | break; |
| 1843 | } |
| 1844 | } |
| 1845 | return msg; |
| 1846 | }; |
| 1847 | |
| 1848 | |
| 1849 | /** |
| 1850 | * Serializes the message to binary data (in protobuf wire format). |
| 1851 | * @return {!Uint8Array} |
| 1852 | */ |
| 1853 | proto.EnableKillSwitchResponse.prototype.serializeBinary = function() { |
| 1854 | var writer = new jspb.BinaryWriter(); |
| 1855 | proto.EnableKillSwitchResponse.serializeBinaryToWriter(this, writer); |
| 1856 | return writer.getResultBuffer(); |
| 1857 | }; |
| 1858 | |
| 1859 | |
| 1860 | /** |
| 1861 | * Serializes the given message to binary data (in protobuf wire |
| 1862 | * format), writing to the given BinaryWriter. |
| 1863 | * @param {!proto.EnableKillSwitchResponse} message |
| 1864 | * @param {!jspb.BinaryWriter} writer |
| 1865 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1866 | */ |
| 1867 | proto.EnableKillSwitchResponse.serializeBinaryToWriter = function(message, writer) { |
| 1868 | var f = undefined; |
| 1869 | }; |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1876 | /** |
| 1877 | * Creates an object representation of this proto. |
| 1878 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1879 | * Optional fields that are not set will be set to undefined. |
| 1880 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1881 | * For the list of reserved names please see: |
| 1882 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1883 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1884 | * JSPB instance for transitional soy proto support: |
| 1885 | * http://goto/soy-param-migration |
| 1886 | * @return {!Object} |
| 1887 | */ |
| 1888 | proto.DisableKillSwitchRequest.prototype.toObject = function(opt_includeInstance) { |
| 1889 | return proto.DisableKillSwitchRequest.toObject(opt_includeInstance, this); |
| 1890 | }; |
| 1891 | |
| 1892 | |
| 1893 | /** |
| 1894 | * Static version of the {@see toObject} method. |
| 1895 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1896 | * the JSPB instance for transitional soy proto support: |
| 1897 | * http://goto/soy-param-migration |
| 1898 | * @param {!proto.DisableKillSwitchRequest} msg The msg instance to transform. |
| 1899 | * @return {!Object} |
| 1900 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1901 | */ |
| 1902 | proto.DisableKillSwitchRequest.toObject = function(includeInstance, msg) { |
| 1903 | var f, obj = { |
| 1904 | killSwitchId: jspb.Message.getFieldWithDefault(msg, 1, 0) |
| 1905 | }; |
| 1906 | |
| 1907 | if (includeInstance) { |
| 1908 | obj.$jspbMessageInstance = msg; |
| 1909 | } |
| 1910 | return obj; |
| 1911 | }; |
| 1912 | } |
| 1913 | |
| 1914 | |
| 1915 | /** |
| 1916 | * Deserializes binary data (in protobuf wire format). |
| 1917 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1918 | * @return {!proto.DisableKillSwitchRequest} |
| 1919 | */ |
| 1920 | proto.DisableKillSwitchRequest.deserializeBinary = function(bytes) { |
| 1921 | var reader = new jspb.BinaryReader(bytes); |
| 1922 | var msg = new proto.DisableKillSwitchRequest; |
| 1923 | return proto.DisableKillSwitchRequest.deserializeBinaryFromReader(msg, reader); |
| 1924 | }; |
| 1925 | |
| 1926 | |
| 1927 | /** |
| 1928 | * Deserializes binary data (in protobuf wire format) from the |
| 1929 | * given reader into the given message object. |
| 1930 | * @param {!proto.DisableKillSwitchRequest} msg The message object to deserialize into. |
| 1931 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1932 | * @return {!proto.DisableKillSwitchRequest} |
| 1933 | */ |
| 1934 | proto.DisableKillSwitchRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 1935 | while (reader.nextField()) { |
| 1936 | if (reader.isEndGroup()) { |
| 1937 | break; |
| 1938 | } |
| 1939 | var field = reader.getFieldNumber(); |
| 1940 | switch (field) { |
| 1941 | case 1: |
| 1942 | var value = /** @type {number} */ (reader.readInt32()); |
| 1943 | msg.setKillSwitchId(value); |
| 1944 | break; |
| 1945 | default: |
| 1946 | reader.skipField(); |
| 1947 | break; |
| 1948 | } |
| 1949 | } |
| 1950 | return msg; |
| 1951 | }; |
| 1952 | |
| 1953 | |
| 1954 | /** |
| 1955 | * Serializes the message to binary data (in protobuf wire format). |
| 1956 | * @return {!Uint8Array} |
| 1957 | */ |
| 1958 | proto.DisableKillSwitchRequest.prototype.serializeBinary = function() { |
| 1959 | var writer = new jspb.BinaryWriter(); |
| 1960 | proto.DisableKillSwitchRequest.serializeBinaryToWriter(this, writer); |
| 1961 | return writer.getResultBuffer(); |
| 1962 | }; |
| 1963 | |
| 1964 | |
| 1965 | /** |
| 1966 | * Serializes the given message to binary data (in protobuf wire |
| 1967 | * format), writing to the given BinaryWriter. |
| 1968 | * @param {!proto.DisableKillSwitchRequest} message |
| 1969 | * @param {!jspb.BinaryWriter} writer |
| 1970 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1971 | */ |
| 1972 | proto.DisableKillSwitchRequest.serializeBinaryToWriter = function(message, writer) { |
| 1973 | var f = undefined; |
| 1974 | f = message.getKillSwitchId(); |
| 1975 | if (f !== 0) { |
| 1976 | writer.writeInt32( |
| 1977 | 1, |
| 1978 | f |
| 1979 | ); |
| 1980 | } |
| 1981 | }; |
| 1982 | |
| 1983 | |
| 1984 | /** |
| 1985 | * optional int32 kill_switch_id = 1; |
| 1986 | * @return {number} |
| 1987 | */ |
| 1988 | proto.DisableKillSwitchRequest.prototype.getKillSwitchId = function() { |
| 1989 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 1990 | }; |
| 1991 | |
| 1992 | |
| 1993 | /** |
| 1994 | * @param {number} value |
| 1995 | * @return {!proto.DisableKillSwitchRequest} returns this |
| 1996 | */ |
| 1997 | proto.DisableKillSwitchRequest.prototype.setKillSwitchId = function(value) { |
| 1998 | return jspb.Message.setProto3IntField(this, 1, value); |
| 1999 | }; |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2006 | /** |
| 2007 | * Creates an object representation of this proto. |
| 2008 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2009 | * Optional fields that are not set will be set to undefined. |
| 2010 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2011 | * For the list of reserved names please see: |
| 2012 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2013 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2014 | * JSPB instance for transitional soy proto support: |
| 2015 | * http://goto/soy-param-migration |
| 2016 | * @return {!Object} |
| 2017 | */ |
| 2018 | proto.DisableKillSwitchResponse.prototype.toObject = function(opt_includeInstance) { |
| 2019 | return proto.DisableKillSwitchResponse.toObject(opt_includeInstance, this); |
| 2020 | }; |
| 2021 | |
| 2022 | |
| 2023 | /** |
| 2024 | * Static version of the {@see toObject} method. |
| 2025 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2026 | * the JSPB instance for transitional soy proto support: |
| 2027 | * http://goto/soy-param-migration |
| 2028 | * @param {!proto.DisableKillSwitchResponse} msg The msg instance to transform. |
| 2029 | * @return {!Object} |
| 2030 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2031 | */ |
| 2032 | proto.DisableKillSwitchResponse.toObject = function(includeInstance, msg) { |
| 2033 | var f, obj = { |
| 2034 | |
| 2035 | }; |
| 2036 | |
| 2037 | if (includeInstance) { |
| 2038 | obj.$jspbMessageInstance = msg; |
| 2039 | } |
| 2040 | return obj; |
| 2041 | }; |
| 2042 | } |
| 2043 | |
| 2044 | |
| 2045 | /** |
| 2046 | * Deserializes binary data (in protobuf wire format). |
| 2047 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2048 | * @return {!proto.DisableKillSwitchResponse} |
| 2049 | */ |
| 2050 | proto.DisableKillSwitchResponse.deserializeBinary = function(bytes) { |
| 2051 | var reader = new jspb.BinaryReader(bytes); |
| 2052 | var msg = new proto.DisableKillSwitchResponse; |
| 2053 | return proto.DisableKillSwitchResponse.deserializeBinaryFromReader(msg, reader); |
| 2054 | }; |
| 2055 | |
| 2056 | |
| 2057 | /** |
| 2058 | * Deserializes binary data (in protobuf wire format) from the |
| 2059 | * given reader into the given message object. |
| 2060 | * @param {!proto.DisableKillSwitchResponse} msg The message object to deserialize into. |
| 2061 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2062 | * @return {!proto.DisableKillSwitchResponse} |
| 2063 | */ |
| 2064 | proto.DisableKillSwitchResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 2065 | while (reader.nextField()) { |
| 2066 | if (reader.isEndGroup()) { |
| 2067 | break; |
| 2068 | } |
| 2069 | var field = reader.getFieldNumber(); |
| 2070 | switch (field) { |
| 2071 | default: |
| 2072 | reader.skipField(); |
| 2073 | break; |
| 2074 | } |
| 2075 | } |
| 2076 | return msg; |
| 2077 | }; |
| 2078 | |
| 2079 | |
| 2080 | /** |
| 2081 | * Serializes the message to binary data (in protobuf wire format). |
| 2082 | * @return {!Uint8Array} |
| 2083 | */ |
| 2084 | proto.DisableKillSwitchResponse.prototype.serializeBinary = function() { |
| 2085 | var writer = new jspb.BinaryWriter(); |
| 2086 | proto.DisableKillSwitchResponse.serializeBinaryToWriter(this, writer); |
| 2087 | return writer.getResultBuffer(); |
| 2088 | }; |
| 2089 | |
| 2090 | |
| 2091 | /** |
| 2092 | * Serializes the given message to binary data (in protobuf wire |
| 2093 | * format), writing to the given BinaryWriter. |
| 2094 | * @param {!proto.DisableKillSwitchResponse} message |
| 2095 | * @param {!jspb.BinaryWriter} writer |
| 2096 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2097 | */ |
| 2098 | proto.DisableKillSwitchResponse.serializeBinaryToWriter = function(message, writer) { |
| 2099 | var f = undefined; |
| 2100 | }; |
| 2101 | |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | |
| 2106 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2107 | /** |
| 2108 | * Creates an object representation of this proto. |
| 2109 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2110 | * Optional fields that are not set will be set to undefined. |
| 2111 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2112 | * For the list of reserved names please see: |
| 2113 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2114 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2115 | * JSPB instance for transitional soy proto support: |
| 2116 | * http://goto/soy-param-migration |
| 2117 | * @return {!Object} |
| 2118 | */ |
| 2119 | proto.ListAuthorizedUsersRequest.prototype.toObject = function(opt_includeInstance) { |
| 2120 | return proto.ListAuthorizedUsersRequest.toObject(opt_includeInstance, this); |
| 2121 | }; |
| 2122 | |
| 2123 | |
| 2124 | /** |
| 2125 | * Static version of the {@see toObject} method. |
| 2126 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2127 | * the JSPB instance for transitional soy proto support: |
| 2128 | * http://goto/soy-param-migration |
| 2129 | * @param {!proto.ListAuthorizedUsersRequest} msg The msg instance to transform. |
| 2130 | * @return {!Object} |
| 2131 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2132 | */ |
| 2133 | proto.ListAuthorizedUsersRequest.toObject = function(includeInstance, msg) { |
| 2134 | var f, obj = { |
| 2135 | |
| 2136 | }; |
| 2137 | |
| 2138 | if (includeInstance) { |
| 2139 | obj.$jspbMessageInstance = msg; |
| 2140 | } |
| 2141 | return obj; |
| 2142 | }; |
| 2143 | } |
| 2144 | |
| 2145 | |
| 2146 | /** |
| 2147 | * Deserializes binary data (in protobuf wire format). |
| 2148 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2149 | * @return {!proto.ListAuthorizedUsersRequest} |
| 2150 | */ |
| 2151 | proto.ListAuthorizedUsersRequest.deserializeBinary = function(bytes) { |
| 2152 | var reader = new jspb.BinaryReader(bytes); |
| 2153 | var msg = new proto.ListAuthorizedUsersRequest; |
| 2154 | return proto.ListAuthorizedUsersRequest.deserializeBinaryFromReader(msg, reader); |
| 2155 | }; |
| 2156 | |
| 2157 | |
| 2158 | /** |
| 2159 | * Deserializes binary data (in protobuf wire format) from the |
| 2160 | * given reader into the given message object. |
| 2161 | * @param {!proto.ListAuthorizedUsersRequest} msg The message object to deserialize into. |
| 2162 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2163 | * @return {!proto.ListAuthorizedUsersRequest} |
| 2164 | */ |
| 2165 | proto.ListAuthorizedUsersRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 2166 | while (reader.nextField()) { |
| 2167 | if (reader.isEndGroup()) { |
| 2168 | break; |
| 2169 | } |
| 2170 | var field = reader.getFieldNumber(); |
| 2171 | switch (field) { |
| 2172 | default: |
| 2173 | reader.skipField(); |
| 2174 | break; |
| 2175 | } |
| 2176 | } |
| 2177 | return msg; |
| 2178 | }; |
| 2179 | |
| 2180 | |
| 2181 | /** |
| 2182 | * Serializes the message to binary data (in protobuf wire format). |
| 2183 | * @return {!Uint8Array} |
| 2184 | */ |
| 2185 | proto.ListAuthorizedUsersRequest.prototype.serializeBinary = function() { |
| 2186 | var writer = new jspb.BinaryWriter(); |
| 2187 | proto.ListAuthorizedUsersRequest.serializeBinaryToWriter(this, writer); |
| 2188 | return writer.getResultBuffer(); |
| 2189 | }; |
| 2190 | |
| 2191 | |
| 2192 | /** |
| 2193 | * Serializes the given message to binary data (in protobuf wire |
| 2194 | * format), writing to the given BinaryWriter. |
| 2195 | * @param {!proto.ListAuthorizedUsersRequest} message |
| 2196 | * @param {!jspb.BinaryWriter} writer |
| 2197 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2198 | */ |
| 2199 | proto.ListAuthorizedUsersRequest.serializeBinaryToWriter = function(message, writer) { |
| 2200 | var f = undefined; |
| 2201 | }; |
| 2202 | |
| 2203 | |
| 2204 | |
| 2205 | /** |
| 2206 | * List of repeated fields within this message type. |
| 2207 | * @private {!Array<number>} |
| 2208 | * @const |
| 2209 | */ |
| 2210 | proto.ListAuthorizedUsersResponse.repeatedFields_ = [1]; |
| 2211 | |
| 2212 | |
| 2213 | |
| 2214 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2215 | /** |
| 2216 | * Creates an object representation of this proto. |
| 2217 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2218 | * Optional fields that are not set will be set to undefined. |
| 2219 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2220 | * For the list of reserved names please see: |
| 2221 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2222 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2223 | * JSPB instance for transitional soy proto support: |
| 2224 | * http://goto/soy-param-migration |
| 2225 | * @return {!Object} |
| 2226 | */ |
| 2227 | proto.ListAuthorizedUsersResponse.prototype.toObject = function(opt_includeInstance) { |
| 2228 | return proto.ListAuthorizedUsersResponse.toObject(opt_includeInstance, this); |
| 2229 | }; |
| 2230 | |
| 2231 | |
| 2232 | /** |
| 2233 | * Static version of the {@see toObject} method. |
| 2234 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2235 | * the JSPB instance for transitional soy proto support: |
| 2236 | * http://goto/soy-param-migration |
| 2237 | * @param {!proto.ListAuthorizedUsersResponse} msg The msg instance to transform. |
| 2238 | * @return {!Object} |
| 2239 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2240 | */ |
| 2241 | proto.ListAuthorizedUsersResponse.toObject = function(includeInstance, msg) { |
| 2242 | var f, obj = { |
| 2243 | usersList: jspb.Message.toObjectList(msg.getUsersList(), |
| 2244 | api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject, includeInstance) |
| 2245 | }; |
| 2246 | |
| 2247 | if (includeInstance) { |
| 2248 | obj.$jspbMessageInstance = msg; |
| 2249 | } |
| 2250 | return obj; |
| 2251 | }; |
| 2252 | } |
| 2253 | |
| 2254 | |
| 2255 | /** |
| 2256 | * Deserializes binary data (in protobuf wire format). |
| 2257 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2258 | * @return {!proto.ListAuthorizedUsersResponse} |
| 2259 | */ |
| 2260 | proto.ListAuthorizedUsersResponse.deserializeBinary = function(bytes) { |
| 2261 | var reader = new jspb.BinaryReader(bytes); |
| 2262 | var msg = new proto.ListAuthorizedUsersResponse; |
| 2263 | return proto.ListAuthorizedUsersResponse.deserializeBinaryFromReader(msg, reader); |
| 2264 | }; |
| 2265 | |
| 2266 | |
| 2267 | /** |
| 2268 | * Deserializes binary data (in protobuf wire format) from the |
| 2269 | * given reader into the given message object. |
| 2270 | * @param {!proto.ListAuthorizedUsersResponse} msg The message object to deserialize into. |
| 2271 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2272 | * @return {!proto.ListAuthorizedUsersResponse} |
| 2273 | */ |
| 2274 | proto.ListAuthorizedUsersResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 2275 | while (reader.nextField()) { |
| 2276 | if (reader.isEndGroup()) { |
| 2277 | break; |
| 2278 | } |
| 2279 | var field = reader.getFieldNumber(); |
| 2280 | switch (field) { |
| 2281 | case 1: |
| 2282 | var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser; |
| 2283 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader); |
| 2284 | msg.addUsers(value); |
| 2285 | break; |
| 2286 | default: |
| 2287 | reader.skipField(); |
| 2288 | break; |
| 2289 | } |
| 2290 | } |
| 2291 | return msg; |
| 2292 | }; |
| 2293 | |
| 2294 | |
| 2295 | /** |
| 2296 | * Serializes the message to binary data (in protobuf wire format). |
| 2297 | * @return {!Uint8Array} |
| 2298 | */ |
| 2299 | proto.ListAuthorizedUsersResponse.prototype.serializeBinary = function() { |
| 2300 | var writer = new jspb.BinaryWriter(); |
| 2301 | proto.ListAuthorizedUsersResponse.serializeBinaryToWriter(this, writer); |
| 2302 | return writer.getResultBuffer(); |
| 2303 | }; |
| 2304 | |
| 2305 | |
| 2306 | /** |
| 2307 | * Serializes the given message to binary data (in protobuf wire |
| 2308 | * format), writing to the given BinaryWriter. |
| 2309 | * @param {!proto.ListAuthorizedUsersResponse} message |
| 2310 | * @param {!jspb.BinaryWriter} writer |
| 2311 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2312 | */ |
| 2313 | proto.ListAuthorizedUsersResponse.serializeBinaryToWriter = function(message, writer) { |
| 2314 | var f = undefined; |
| 2315 | f = message.getUsersList(); |
| 2316 | if (f.length > 0) { |
| 2317 | writer.writeRepeatedMessage( |
| 2318 | 1, |
| 2319 | f, |
| 2320 | api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter |
| 2321 | ); |
| 2322 | } |
| 2323 | }; |
| 2324 | |
| 2325 | |
| 2326 | /** |
| 2327 | * repeated KillSwitchAuthorizedUser users = 1; |
| 2328 | * @return {!Array<!proto.KillSwitchAuthorizedUser>} |
| 2329 | */ |
| 2330 | proto.ListAuthorizedUsersResponse.prototype.getUsersList = function() { |
| 2331 | return /** @type{!Array<!proto.KillSwitchAuthorizedUser>} */ ( |
| 2332 | jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 1)); |
| 2333 | }; |
| 2334 | |
| 2335 | |
| 2336 | /** |
| 2337 | * @param {!Array<!proto.KillSwitchAuthorizedUser>} value |
| 2338 | * @return {!proto.ListAuthorizedUsersResponse} returns this |
| 2339 | */ |
| 2340 | proto.ListAuthorizedUsersResponse.prototype.setUsersList = function(value) { |
| 2341 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 2342 | }; |
| 2343 | |
| 2344 | |
| 2345 | /** |
| 2346 | * @param {!proto.KillSwitchAuthorizedUser=} opt_value |
| 2347 | * @param {number=} opt_index |
| 2348 | * @return {!proto.KillSwitchAuthorizedUser} |
| 2349 | */ |
| 2350 | proto.ListAuthorizedUsersResponse.prototype.addUsers = function(opt_value, opt_index) { |
| 2351 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitchAuthorizedUser, opt_index); |
| 2352 | }; |
| 2353 | |
| 2354 | |
| 2355 | /** |
| 2356 | * Clears the list making it empty but non-null. |
| 2357 | * @return {!proto.ListAuthorizedUsersResponse} returns this |
| 2358 | */ |
| 2359 | proto.ListAuthorizedUsersResponse.prototype.clearUsersList = function() { |
| 2360 | return this.setUsersList([]); |
| 2361 | }; |
| 2362 | |
| 2363 | |
| 2364 | |
| 2365 | |
| 2366 | |
| 2367 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2368 | /** |
| 2369 | * Creates an object representation of this proto. |
| 2370 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2371 | * Optional fields that are not set will be set to undefined. |
| 2372 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2373 | * For the list of reserved names please see: |
| 2374 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2375 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2376 | * JSPB instance for transitional soy proto support: |
| 2377 | * http://goto/soy-param-migration |
| 2378 | * @return {!Object} |
| 2379 | */ |
| 2380 | proto.AddAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) { |
| 2381 | return proto.AddAuthorizedUserRequest.toObject(opt_includeInstance, this); |
| 2382 | }; |
| 2383 | |
| 2384 | |
| 2385 | /** |
| 2386 | * Static version of the {@see toObject} method. |
| 2387 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2388 | * the JSPB instance for transitional soy proto support: |
| 2389 | * http://goto/soy-param-migration |
| 2390 | * @param {!proto.AddAuthorizedUserRequest} msg The msg instance to transform. |
| 2391 | * @return {!Object} |
| 2392 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2393 | */ |
| 2394 | proto.AddAuthorizedUserRequest.toObject = function(includeInstance, msg) { |
| 2395 | var f, obj = { |
| 2396 | user: (f = msg.getUser()) && api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject(includeInstance, f) |
| 2397 | }; |
| 2398 | |
| 2399 | if (includeInstance) { |
| 2400 | obj.$jspbMessageInstance = msg; |
| 2401 | } |
| 2402 | return obj; |
| 2403 | }; |
| 2404 | } |
| 2405 | |
| 2406 | |
| 2407 | /** |
| 2408 | * Deserializes binary data (in protobuf wire format). |
| 2409 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2410 | * @return {!proto.AddAuthorizedUserRequest} |
| 2411 | */ |
| 2412 | proto.AddAuthorizedUserRequest.deserializeBinary = function(bytes) { |
| 2413 | var reader = new jspb.BinaryReader(bytes); |
| 2414 | var msg = new proto.AddAuthorizedUserRequest; |
| 2415 | return proto.AddAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader); |
| 2416 | }; |
| 2417 | |
| 2418 | |
| 2419 | /** |
| 2420 | * Deserializes binary data (in protobuf wire format) from the |
| 2421 | * given reader into the given message object. |
| 2422 | * @param {!proto.AddAuthorizedUserRequest} msg The message object to deserialize into. |
| 2423 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2424 | * @return {!proto.AddAuthorizedUserRequest} |
| 2425 | */ |
| 2426 | proto.AddAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 2427 | while (reader.nextField()) { |
| 2428 | if (reader.isEndGroup()) { |
| 2429 | break; |
| 2430 | } |
| 2431 | var field = reader.getFieldNumber(); |
| 2432 | switch (field) { |
| 2433 | case 1: |
| 2434 | var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser; |
| 2435 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader); |
| 2436 | msg.setUser(value); |
| 2437 | break; |
| 2438 | default: |
| 2439 | reader.skipField(); |
| 2440 | break; |
| 2441 | } |
| 2442 | } |
| 2443 | return msg; |
| 2444 | }; |
| 2445 | |
| 2446 | |
| 2447 | /** |
| 2448 | * Serializes the message to binary data (in protobuf wire format). |
| 2449 | * @return {!Uint8Array} |
| 2450 | */ |
| 2451 | proto.AddAuthorizedUserRequest.prototype.serializeBinary = function() { |
| 2452 | var writer = new jspb.BinaryWriter(); |
| 2453 | proto.AddAuthorizedUserRequest.serializeBinaryToWriter(this, writer); |
| 2454 | return writer.getResultBuffer(); |
| 2455 | }; |
| 2456 | |
| 2457 | |
| 2458 | /** |
| 2459 | * Serializes the given message to binary data (in protobuf wire |
| 2460 | * format), writing to the given BinaryWriter. |
| 2461 | * @param {!proto.AddAuthorizedUserRequest} message |
| 2462 | * @param {!jspb.BinaryWriter} writer |
| 2463 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2464 | */ |
| 2465 | proto.AddAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) { |
| 2466 | var f = undefined; |
| 2467 | f = message.getUser(); |
| 2468 | if (f != null) { |
| 2469 | writer.writeMessage( |
| 2470 | 1, |
| 2471 | f, |
| 2472 | api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter |
| 2473 | ); |
| 2474 | } |
| 2475 | }; |
| 2476 | |
| 2477 | |
| 2478 | /** |
| 2479 | * optional KillSwitchAuthorizedUser user = 1; |
| 2480 | * @return {?proto.KillSwitchAuthorizedUser} |
| 2481 | */ |
| 2482 | proto.AddAuthorizedUserRequest.prototype.getUser = function() { |
| 2483 | return /** @type{?proto.KillSwitchAuthorizedUser} */ ( |
| 2484 | jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 1)); |
| 2485 | }; |
| 2486 | |
| 2487 | |
| 2488 | /** |
| 2489 | * @param {?proto.KillSwitchAuthorizedUser|undefined} value |
| 2490 | * @return {!proto.AddAuthorizedUserRequest} returns this |
| 2491 | */ |
| 2492 | proto.AddAuthorizedUserRequest.prototype.setUser = function(value) { |
| 2493 | return jspb.Message.setWrapperField(this, 1, value); |
| 2494 | }; |
| 2495 | |
| 2496 | |
| 2497 | /** |
| 2498 | * Clears the message field making it undefined. |
| 2499 | * @return {!proto.AddAuthorizedUserRequest} returns this |
| 2500 | */ |
| 2501 | proto.AddAuthorizedUserRequest.prototype.clearUser = function() { |
| 2502 | return this.setUser(undefined); |
| 2503 | }; |
| 2504 | |
| 2505 | |
| 2506 | /** |
| 2507 | * Returns whether this field is set. |
| 2508 | * @return {boolean} |
| 2509 | */ |
| 2510 | proto.AddAuthorizedUserRequest.prototype.hasUser = function() { |
| 2511 | return jspb.Message.getField(this, 1) != null; |
| 2512 | }; |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
| 2518 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2519 | /** |
| 2520 | * Creates an object representation of this proto. |
| 2521 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2522 | * Optional fields that are not set will be set to undefined. |
| 2523 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2524 | * For the list of reserved names please see: |
| 2525 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2526 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2527 | * JSPB instance for transitional soy proto support: |
| 2528 | * http://goto/soy-param-migration |
| 2529 | * @return {!Object} |
| 2530 | */ |
| 2531 | proto.AddAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) { |
| 2532 | return proto.AddAuthorizedUserResponse.toObject(opt_includeInstance, this); |
| 2533 | }; |
| 2534 | |
| 2535 | |
| 2536 | /** |
| 2537 | * Static version of the {@see toObject} method. |
| 2538 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2539 | * the JSPB instance for transitional soy proto support: |
| 2540 | * http://goto/soy-param-migration |
| 2541 | * @param {!proto.AddAuthorizedUserResponse} msg The msg instance to transform. |
| 2542 | * @return {!Object} |
| 2543 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2544 | */ |
| 2545 | proto.AddAuthorizedUserResponse.toObject = function(includeInstance, msg) { |
| 2546 | var f, obj = { |
| 2547 | |
| 2548 | }; |
| 2549 | |
| 2550 | if (includeInstance) { |
| 2551 | obj.$jspbMessageInstance = msg; |
| 2552 | } |
| 2553 | return obj; |
| 2554 | }; |
| 2555 | } |
| 2556 | |
| 2557 | |
| 2558 | /** |
| 2559 | * Deserializes binary data (in protobuf wire format). |
| 2560 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2561 | * @return {!proto.AddAuthorizedUserResponse} |
| 2562 | */ |
| 2563 | proto.AddAuthorizedUserResponse.deserializeBinary = function(bytes) { |
| 2564 | var reader = new jspb.BinaryReader(bytes); |
| 2565 | var msg = new proto.AddAuthorizedUserResponse; |
| 2566 | return proto.AddAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader); |
| 2567 | }; |
| 2568 | |
| 2569 | |
| 2570 | /** |
| 2571 | * Deserializes binary data (in protobuf wire format) from the |
| 2572 | * given reader into the given message object. |
| 2573 | * @param {!proto.AddAuthorizedUserResponse} msg The message object to deserialize into. |
| 2574 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2575 | * @return {!proto.AddAuthorizedUserResponse} |
| 2576 | */ |
| 2577 | proto.AddAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 2578 | while (reader.nextField()) { |
| 2579 | if (reader.isEndGroup()) { |
| 2580 | break; |
| 2581 | } |
| 2582 | var field = reader.getFieldNumber(); |
| 2583 | switch (field) { |
| 2584 | default: |
| 2585 | reader.skipField(); |
| 2586 | break; |
| 2587 | } |
| 2588 | } |
| 2589 | return msg; |
| 2590 | }; |
| 2591 | |
| 2592 | |
| 2593 | /** |
| 2594 | * Serializes the message to binary data (in protobuf wire format). |
| 2595 | * @return {!Uint8Array} |
| 2596 | */ |
| 2597 | proto.AddAuthorizedUserResponse.prototype.serializeBinary = function() { |
| 2598 | var writer = new jspb.BinaryWriter(); |
| 2599 | proto.AddAuthorizedUserResponse.serializeBinaryToWriter(this, writer); |
| 2600 | return writer.getResultBuffer(); |
| 2601 | }; |
| 2602 | |
| 2603 | |
| 2604 | /** |
| 2605 | * Serializes the given message to binary data (in protobuf wire |
| 2606 | * format), writing to the given BinaryWriter. |
| 2607 | * @param {!proto.AddAuthorizedUserResponse} message |
| 2608 | * @param {!jspb.BinaryWriter} writer |
| 2609 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2610 | */ |
| 2611 | proto.AddAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) { |
| 2612 | var f = undefined; |
| 2613 | }; |
| 2614 | |
| 2615 | |
| 2616 | |
| 2617 | |
| 2618 | |
| 2619 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2620 | /** |
| 2621 | * Creates an object representation of this proto. |
| 2622 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2623 | * Optional fields that are not set will be set to undefined. |
| 2624 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2625 | * For the list of reserved names please see: |
| 2626 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2627 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2628 | * JSPB instance for transitional soy proto support: |
| 2629 | * http://goto/soy-param-migration |
| 2630 | * @return {!Object} |
| 2631 | */ |
| 2632 | proto.UpdateAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) { |
| 2633 | return proto.UpdateAuthorizedUserRequest.toObject(opt_includeInstance, this); |
| 2634 | }; |
| 2635 | |
| 2636 | |
| 2637 | /** |
| 2638 | * Static version of the {@see toObject} method. |
| 2639 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2640 | * the JSPB instance for transitional soy proto support: |
| 2641 | * http://goto/soy-param-migration |
| 2642 | * @param {!proto.UpdateAuthorizedUserRequest} msg The msg instance to transform. |
| 2643 | * @return {!Object} |
| 2644 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2645 | */ |
| 2646 | proto.UpdateAuthorizedUserRequest.toObject = function(includeInstance, msg) { |
| 2647 | var f, obj = { |
| 2648 | userId: jspb.Message.getFieldWithDefault(msg, 1, 0), |
| 2649 | user: (f = msg.getUser()) && api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject(includeInstance, f) |
| 2650 | }; |
| 2651 | |
| 2652 | if (includeInstance) { |
| 2653 | obj.$jspbMessageInstance = msg; |
| 2654 | } |
| 2655 | return obj; |
| 2656 | }; |
| 2657 | } |
| 2658 | |
| 2659 | |
| 2660 | /** |
| 2661 | * Deserializes binary data (in protobuf wire format). |
| 2662 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2663 | * @return {!proto.UpdateAuthorizedUserRequest} |
| 2664 | */ |
| 2665 | proto.UpdateAuthorizedUserRequest.deserializeBinary = function(bytes) { |
| 2666 | var reader = new jspb.BinaryReader(bytes); |
| 2667 | var msg = new proto.UpdateAuthorizedUserRequest; |
| 2668 | return proto.UpdateAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader); |
| 2669 | }; |
| 2670 | |
| 2671 | |
| 2672 | /** |
| 2673 | * Deserializes binary data (in protobuf wire format) from the |
| 2674 | * given reader into the given message object. |
| 2675 | * @param {!proto.UpdateAuthorizedUserRequest} msg The message object to deserialize into. |
| 2676 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2677 | * @return {!proto.UpdateAuthorizedUserRequest} |
| 2678 | */ |
| 2679 | proto.UpdateAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 2680 | while (reader.nextField()) { |
| 2681 | if (reader.isEndGroup()) { |
| 2682 | break; |
| 2683 | } |
| 2684 | var field = reader.getFieldNumber(); |
| 2685 | switch (field) { |
| 2686 | case 1: |
| 2687 | var value = /** @type {number} */ (reader.readInt32()); |
| 2688 | msg.setUserId(value); |
| 2689 | break; |
| 2690 | case 2: |
| 2691 | var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser; |
| 2692 | reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader); |
| 2693 | msg.setUser(value); |
| 2694 | break; |
| 2695 | default: |
| 2696 | reader.skipField(); |
| 2697 | break; |
| 2698 | } |
| 2699 | } |
| 2700 | return msg; |
| 2701 | }; |
| 2702 | |
| 2703 | |
| 2704 | /** |
| 2705 | * Serializes the message to binary data (in protobuf wire format). |
| 2706 | * @return {!Uint8Array} |
| 2707 | */ |
| 2708 | proto.UpdateAuthorizedUserRequest.prototype.serializeBinary = function() { |
| 2709 | var writer = new jspb.BinaryWriter(); |
| 2710 | proto.UpdateAuthorizedUserRequest.serializeBinaryToWriter(this, writer); |
| 2711 | return writer.getResultBuffer(); |
| 2712 | }; |
| 2713 | |
| 2714 | |
| 2715 | /** |
| 2716 | * Serializes the given message to binary data (in protobuf wire |
| 2717 | * format), writing to the given BinaryWriter. |
| 2718 | * @param {!proto.UpdateAuthorizedUserRequest} message |
| 2719 | * @param {!jspb.BinaryWriter} writer |
| 2720 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2721 | */ |
| 2722 | proto.UpdateAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) { |
| 2723 | var f = undefined; |
| 2724 | f = message.getUserId(); |
| 2725 | if (f !== 0) { |
| 2726 | writer.writeInt32( |
| 2727 | 1, |
| 2728 | f |
| 2729 | ); |
| 2730 | } |
| 2731 | f = message.getUser(); |
| 2732 | if (f != null) { |
| 2733 | writer.writeMessage( |
| 2734 | 2, |
| 2735 | f, |
| 2736 | api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter |
| 2737 | ); |
| 2738 | } |
| 2739 | }; |
| 2740 | |
| 2741 | |
| 2742 | /** |
| 2743 | * optional int32 user_id = 1; |
| 2744 | * @return {number} |
| 2745 | */ |
| 2746 | proto.UpdateAuthorizedUserRequest.prototype.getUserId = function() { |
| 2747 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 2748 | }; |
| 2749 | |
| 2750 | |
| 2751 | /** |
| 2752 | * @param {number} value |
| 2753 | * @return {!proto.UpdateAuthorizedUserRequest} returns this |
| 2754 | */ |
| 2755 | proto.UpdateAuthorizedUserRequest.prototype.setUserId = function(value) { |
| 2756 | return jspb.Message.setProto3IntField(this, 1, value); |
| 2757 | }; |
| 2758 | |
| 2759 | |
| 2760 | /** |
| 2761 | * optional KillSwitchAuthorizedUser user = 2; |
| 2762 | * @return {?proto.KillSwitchAuthorizedUser} |
| 2763 | */ |
| 2764 | proto.UpdateAuthorizedUserRequest.prototype.getUser = function() { |
| 2765 | return /** @type{?proto.KillSwitchAuthorizedUser} */ ( |
| 2766 | jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 2)); |
| 2767 | }; |
| 2768 | |
| 2769 | |
| 2770 | /** |
| 2771 | * @param {?proto.KillSwitchAuthorizedUser|undefined} value |
| 2772 | * @return {!proto.UpdateAuthorizedUserRequest} returns this |
| 2773 | */ |
| 2774 | proto.UpdateAuthorizedUserRequest.prototype.setUser = function(value) { |
| 2775 | return jspb.Message.setWrapperField(this, 2, value); |
| 2776 | }; |
| 2777 | |
| 2778 | |
| 2779 | /** |
| 2780 | * Clears the message field making it undefined. |
| 2781 | * @return {!proto.UpdateAuthorizedUserRequest} returns this |
| 2782 | */ |
| 2783 | proto.UpdateAuthorizedUserRequest.prototype.clearUser = function() { |
| 2784 | return this.setUser(undefined); |
| 2785 | }; |
| 2786 | |
| 2787 | |
| 2788 | /** |
| 2789 | * Returns whether this field is set. |
| 2790 | * @return {boolean} |
| 2791 | */ |
| 2792 | proto.UpdateAuthorizedUserRequest.prototype.hasUser = function() { |
| 2793 | return jspb.Message.getField(this, 2) != null; |
| 2794 | }; |
| 2795 | |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2801 | /** |
| 2802 | * Creates an object representation of this proto. |
| 2803 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2804 | * Optional fields that are not set will be set to undefined. |
| 2805 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2806 | * For the list of reserved names please see: |
| 2807 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2808 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2809 | * JSPB instance for transitional soy proto support: |
| 2810 | * http://goto/soy-param-migration |
| 2811 | * @return {!Object} |
| 2812 | */ |
| 2813 | proto.UpdateAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) { |
| 2814 | return proto.UpdateAuthorizedUserResponse.toObject(opt_includeInstance, this); |
| 2815 | }; |
| 2816 | |
| 2817 | |
| 2818 | /** |
| 2819 | * Static version of the {@see toObject} method. |
| 2820 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2821 | * the JSPB instance for transitional soy proto support: |
| 2822 | * http://goto/soy-param-migration |
| 2823 | * @param {!proto.UpdateAuthorizedUserResponse} msg The msg instance to transform. |
| 2824 | * @return {!Object} |
| 2825 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2826 | */ |
| 2827 | proto.UpdateAuthorizedUserResponse.toObject = function(includeInstance, msg) { |
| 2828 | var f, obj = { |
| 2829 | |
| 2830 | }; |
| 2831 | |
| 2832 | if (includeInstance) { |
| 2833 | obj.$jspbMessageInstance = msg; |
| 2834 | } |
| 2835 | return obj; |
| 2836 | }; |
| 2837 | } |
| 2838 | |
| 2839 | |
| 2840 | /** |
| 2841 | * Deserializes binary data (in protobuf wire format). |
| 2842 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2843 | * @return {!proto.UpdateAuthorizedUserResponse} |
| 2844 | */ |
| 2845 | proto.UpdateAuthorizedUserResponse.deserializeBinary = function(bytes) { |
| 2846 | var reader = new jspb.BinaryReader(bytes); |
| 2847 | var msg = new proto.UpdateAuthorizedUserResponse; |
| 2848 | return proto.UpdateAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader); |
| 2849 | }; |
| 2850 | |
| 2851 | |
| 2852 | /** |
| 2853 | * Deserializes binary data (in protobuf wire format) from the |
| 2854 | * given reader into the given message object. |
| 2855 | * @param {!proto.UpdateAuthorizedUserResponse} msg The message object to deserialize into. |
| 2856 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2857 | * @return {!proto.UpdateAuthorizedUserResponse} |
| 2858 | */ |
| 2859 | proto.UpdateAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 2860 | while (reader.nextField()) { |
| 2861 | if (reader.isEndGroup()) { |
| 2862 | break; |
| 2863 | } |
| 2864 | var field = reader.getFieldNumber(); |
| 2865 | switch (field) { |
| 2866 | default: |
| 2867 | reader.skipField(); |
| 2868 | break; |
| 2869 | } |
| 2870 | } |
| 2871 | return msg; |
| 2872 | }; |
| 2873 | |
| 2874 | |
| 2875 | /** |
| 2876 | * Serializes the message to binary data (in protobuf wire format). |
| 2877 | * @return {!Uint8Array} |
| 2878 | */ |
| 2879 | proto.UpdateAuthorizedUserResponse.prototype.serializeBinary = function() { |
| 2880 | var writer = new jspb.BinaryWriter(); |
| 2881 | proto.UpdateAuthorizedUserResponse.serializeBinaryToWriter(this, writer); |
| 2882 | return writer.getResultBuffer(); |
| 2883 | }; |
| 2884 | |
| 2885 | |
| 2886 | /** |
| 2887 | * Serializes the given message to binary data (in protobuf wire |
| 2888 | * format), writing to the given BinaryWriter. |
| 2889 | * @param {!proto.UpdateAuthorizedUserResponse} message |
| 2890 | * @param {!jspb.BinaryWriter} writer |
| 2891 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2892 | */ |
| 2893 | proto.UpdateAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) { |
| 2894 | var f = undefined; |
| 2895 | }; |
| 2896 | |
| 2897 | |
| 2898 | |
| 2899 | |
| 2900 | |
| 2901 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2902 | /** |
| 2903 | * Creates an object representation of this proto. |
| 2904 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2905 | * Optional fields that are not set will be set to undefined. |
| 2906 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2907 | * For the list of reserved names please see: |
| 2908 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2909 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2910 | * JSPB instance for transitional soy proto support: |
| 2911 | * http://goto/soy-param-migration |
| 2912 | * @return {!Object} |
| 2913 | */ |
| 2914 | proto.DeleteAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) { |
| 2915 | return proto.DeleteAuthorizedUserRequest.toObject(opt_includeInstance, this); |
| 2916 | }; |
| 2917 | |
| 2918 | |
| 2919 | /** |
| 2920 | * Static version of the {@see toObject} method. |
| 2921 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2922 | * the JSPB instance for transitional soy proto support: |
| 2923 | * http://goto/soy-param-migration |
| 2924 | * @param {!proto.DeleteAuthorizedUserRequest} msg The msg instance to transform. |
| 2925 | * @return {!Object} |
| 2926 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2927 | */ |
| 2928 | proto.DeleteAuthorizedUserRequest.toObject = function(includeInstance, msg) { |
| 2929 | var f, obj = { |
| 2930 | userId: jspb.Message.getFieldWithDefault(msg, 1, 0) |
| 2931 | }; |
| 2932 | |
| 2933 | if (includeInstance) { |
| 2934 | obj.$jspbMessageInstance = msg; |
| 2935 | } |
| 2936 | return obj; |
| 2937 | }; |
| 2938 | } |
| 2939 | |
| 2940 | |
| 2941 | /** |
| 2942 | * Deserializes binary data (in protobuf wire format). |
| 2943 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2944 | * @return {!proto.DeleteAuthorizedUserRequest} |
| 2945 | */ |
| 2946 | proto.DeleteAuthorizedUserRequest.deserializeBinary = function(bytes) { |
| 2947 | var reader = new jspb.BinaryReader(bytes); |
| 2948 | var msg = new proto.DeleteAuthorizedUserRequest; |
| 2949 | return proto.DeleteAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader); |
| 2950 | }; |
| 2951 | |
| 2952 | |
| 2953 | /** |
| 2954 | * Deserializes binary data (in protobuf wire format) from the |
| 2955 | * given reader into the given message object. |
| 2956 | * @param {!proto.DeleteAuthorizedUserRequest} msg The message object to deserialize into. |
| 2957 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2958 | * @return {!proto.DeleteAuthorizedUserRequest} |
| 2959 | */ |
| 2960 | proto.DeleteAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) { |
| 2961 | while (reader.nextField()) { |
| 2962 | if (reader.isEndGroup()) { |
| 2963 | break; |
| 2964 | } |
| 2965 | var field = reader.getFieldNumber(); |
| 2966 | switch (field) { |
| 2967 | case 1: |
| 2968 | var value = /** @type {number} */ (reader.readInt32()); |
| 2969 | msg.setUserId(value); |
| 2970 | break; |
| 2971 | default: |
| 2972 | reader.skipField(); |
| 2973 | break; |
| 2974 | } |
| 2975 | } |
| 2976 | return msg; |
| 2977 | }; |
| 2978 | |
| 2979 | |
| 2980 | /** |
| 2981 | * Serializes the message to binary data (in protobuf wire format). |
| 2982 | * @return {!Uint8Array} |
| 2983 | */ |
| 2984 | proto.DeleteAuthorizedUserRequest.prototype.serializeBinary = function() { |
| 2985 | var writer = new jspb.BinaryWriter(); |
| 2986 | proto.DeleteAuthorizedUserRequest.serializeBinaryToWriter(this, writer); |
| 2987 | return writer.getResultBuffer(); |
| 2988 | }; |
| 2989 | |
| 2990 | |
| 2991 | /** |
| 2992 | * Serializes the given message to binary data (in protobuf wire |
| 2993 | * format), writing to the given BinaryWriter. |
| 2994 | * @param {!proto.DeleteAuthorizedUserRequest} message |
| 2995 | * @param {!jspb.BinaryWriter} writer |
| 2996 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2997 | */ |
| 2998 | proto.DeleteAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) { |
| 2999 | var f = undefined; |
| 3000 | f = message.getUserId(); |
| 3001 | if (f !== 0) { |
| 3002 | writer.writeInt32( |
| 3003 | 1, |
| 3004 | f |
| 3005 | ); |
| 3006 | } |
| 3007 | }; |
| 3008 | |
| 3009 | |
| 3010 | /** |
| 3011 | * optional int32 user_id = 1; |
| 3012 | * @return {number} |
| 3013 | */ |
| 3014 | proto.DeleteAuthorizedUserRequest.prototype.getUserId = function() { |
| 3015 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 3016 | }; |
| 3017 | |
| 3018 | |
| 3019 | /** |
| 3020 | * @param {number} value |
| 3021 | * @return {!proto.DeleteAuthorizedUserRequest} returns this |
| 3022 | */ |
| 3023 | proto.DeleteAuthorizedUserRequest.prototype.setUserId = function(value) { |
| 3024 | return jspb.Message.setProto3IntField(this, 1, value); |
| 3025 | }; |
| 3026 | |
| 3027 | |
| 3028 | |
| 3029 | |
| 3030 | |
| 3031 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 3032 | /** |
| 3033 | * Creates an object representation of this proto. |
| 3034 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 3035 | * Optional fields that are not set will be set to undefined. |
| 3036 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 3037 | * For the list of reserved names please see: |
| 3038 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 3039 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 3040 | * JSPB instance for transitional soy proto support: |
| 3041 | * http://goto/soy-param-migration |
| 3042 | * @return {!Object} |
| 3043 | */ |
| 3044 | proto.DeleteAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) { |
| 3045 | return proto.DeleteAuthorizedUserResponse.toObject(opt_includeInstance, this); |
| 3046 | }; |
| 3047 | |
| 3048 | |
| 3049 | /** |
| 3050 | * Static version of the {@see toObject} method. |
| 3051 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 3052 | * the JSPB instance for transitional soy proto support: |
| 3053 | * http://goto/soy-param-migration |
| 3054 | * @param {!proto.DeleteAuthorizedUserResponse} msg The msg instance to transform. |
| 3055 | * @return {!Object} |
| 3056 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3057 | */ |
| 3058 | proto.DeleteAuthorizedUserResponse.toObject = function(includeInstance, msg) { |
| 3059 | var f, obj = { |
| 3060 | |
| 3061 | }; |
| 3062 | |
| 3063 | if (includeInstance) { |
| 3064 | obj.$jspbMessageInstance = msg; |
| 3065 | } |
| 3066 | return obj; |
| 3067 | }; |
| 3068 | } |
| 3069 | |
| 3070 | |
| 3071 | /** |
| 3072 | * Deserializes binary data (in protobuf wire format). |
| 3073 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 3074 | * @return {!proto.DeleteAuthorizedUserResponse} |
| 3075 | */ |
| 3076 | proto.DeleteAuthorizedUserResponse.deserializeBinary = function(bytes) { |
| 3077 | var reader = new jspb.BinaryReader(bytes); |
| 3078 | var msg = new proto.DeleteAuthorizedUserResponse; |
| 3079 | return proto.DeleteAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader); |
| 3080 | }; |
| 3081 | |
| 3082 | |
| 3083 | /** |
| 3084 | * Deserializes binary data (in protobuf wire format) from the |
| 3085 | * given reader into the given message object. |
| 3086 | * @param {!proto.DeleteAuthorizedUserResponse} msg The message object to deserialize into. |
| 3087 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 3088 | * @return {!proto.DeleteAuthorizedUserResponse} |
| 3089 | */ |
| 3090 | proto.DeleteAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) { |
| 3091 | while (reader.nextField()) { |
| 3092 | if (reader.isEndGroup()) { |
| 3093 | break; |
| 3094 | } |
| 3095 | var field = reader.getFieldNumber(); |
| 3096 | switch (field) { |
| 3097 | default: |
| 3098 | reader.skipField(); |
| 3099 | break; |
| 3100 | } |
| 3101 | } |
| 3102 | return msg; |
| 3103 | }; |
| 3104 | |
| 3105 | |
| 3106 | /** |
| 3107 | * Serializes the message to binary data (in protobuf wire format). |
| 3108 | * @return {!Uint8Array} |
| 3109 | */ |
| 3110 | proto.DeleteAuthorizedUserResponse.prototype.serializeBinary = function() { |
| 3111 | var writer = new jspb.BinaryWriter(); |
| 3112 | proto.DeleteAuthorizedUserResponse.serializeBinaryToWriter(this, writer); |
| 3113 | return writer.getResultBuffer(); |
| 3114 | }; |
| 3115 | |
| 3116 | |
| 3117 | /** |
| 3118 | * Serializes the given message to binary data (in protobuf wire |
| 3119 | * format), writing to the given BinaryWriter. |
| 3120 | * @param {!proto.DeleteAuthorizedUserResponse} message |
| 3121 | * @param {!jspb.BinaryWriter} writer |
| 3122 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3123 | */ |
| 3124 | proto.DeleteAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) { |
| 3125 | var f = undefined; |
| 3126 | }; |
| 3127 | |
| 3128 | |
| 3129 | goog.object.extend(exports, proto); |