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