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