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