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