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