blob: a5b2c1eccbd6b5fe07de0f3410f8ede895bf39ed [file] [log] [blame]
// source: api_proto/kill_switch.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var api_proto_common_pb = require('../api_proto/common_pb.js');
goog.object.extend(proto, api_proto_common_pb);
var api_proto_kill_switch_objects_pb = require('../api_proto/kill_switch_objects_pb.js');
goog.object.extend(proto, api_proto_kill_switch_objects_pb);
goog.exportSymbol('proto.AddAuthorizedUserRequest', null, global);
goog.exportSymbol('proto.AddAuthorizedUserResponse', null, global);
goog.exportSymbol('proto.DeleteAuthorizedUserRequest', null, global);
goog.exportSymbol('proto.DeleteAuthorizedUserResponse', null, global);
goog.exportSymbol('proto.DisableKillSwitchRequest', null, global);
goog.exportSymbol('proto.DisableKillSwitchResponse', null, global);
goog.exportSymbol('proto.EnableKillSwitchRequest', null, global);
goog.exportSymbol('proto.EnableKillSwitchResponse', null, global);
goog.exportSymbol('proto.GetKillSwitchOverviewRequest', null, global);
goog.exportSymbol('proto.GetKillSwitchOverviewResponse', null, global);
goog.exportSymbol('proto.GetKillSwitchStatusRequest', null, global);
goog.exportSymbol('proto.GetKillSwitchStatusResponse', null, global);
goog.exportSymbol('proto.ListAuthorizedUsersRequest', null, global);
goog.exportSymbol('proto.ListAuthorizedUsersResponse', null, global);
goog.exportSymbol('proto.ListFeaturesRequest', null, global);
goog.exportSymbol('proto.ListFeaturesResponse', null, global);
goog.exportSymbol('proto.SyncFeaturesRequest', null, global);
goog.exportSymbol('proto.SyncFeaturesResponse', null, global);
goog.exportSymbol('proto.UpdateAuthorizedUserRequest', null, global);
goog.exportSymbol('proto.UpdateAuthorizedUserResponse', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.GetKillSwitchStatusRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.GetKillSwitchStatusRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.GetKillSwitchStatusRequest.displayName = 'proto.GetKillSwitchStatusRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.GetKillSwitchStatusResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetKillSwitchStatusResponse.repeatedFields_, null);
};
goog.inherits(proto.GetKillSwitchStatusResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.GetKillSwitchStatusResponse.displayName = 'proto.GetKillSwitchStatusResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.GetKillSwitchOverviewRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.GetKillSwitchOverviewRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.GetKillSwitchOverviewRequest.displayName = 'proto.GetKillSwitchOverviewRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.GetKillSwitchOverviewResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetKillSwitchOverviewResponse.repeatedFields_, null);
};
goog.inherits(proto.GetKillSwitchOverviewResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.GetKillSwitchOverviewResponse.displayName = 'proto.GetKillSwitchOverviewResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ListFeaturesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ListFeaturesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ListFeaturesRequest.displayName = 'proto.ListFeaturesRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ListFeaturesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ListFeaturesResponse.repeatedFields_, null);
};
goog.inherits(proto.ListFeaturesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ListFeaturesResponse.displayName = 'proto.ListFeaturesResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.SyncFeaturesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.SyncFeaturesRequest.repeatedFields_, null);
};
goog.inherits(proto.SyncFeaturesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.SyncFeaturesRequest.displayName = 'proto.SyncFeaturesRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.SyncFeaturesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.SyncFeaturesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.SyncFeaturesResponse.displayName = 'proto.SyncFeaturesResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.EnableKillSwitchRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.EnableKillSwitchRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EnableKillSwitchRequest.displayName = 'proto.EnableKillSwitchRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.EnableKillSwitchResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.EnableKillSwitchResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EnableKillSwitchResponse.displayName = 'proto.EnableKillSwitchResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.DisableKillSwitchRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.DisableKillSwitchRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.DisableKillSwitchRequest.displayName = 'proto.DisableKillSwitchRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.DisableKillSwitchResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.DisableKillSwitchResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.DisableKillSwitchResponse.displayName = 'proto.DisableKillSwitchResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ListAuthorizedUsersRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ListAuthorizedUsersRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ListAuthorizedUsersRequest.displayName = 'proto.ListAuthorizedUsersRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.ListAuthorizedUsersResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ListAuthorizedUsersResponse.repeatedFields_, null);
};
goog.inherits(proto.ListAuthorizedUsersResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ListAuthorizedUsersResponse.displayName = 'proto.ListAuthorizedUsersResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.AddAuthorizedUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.AddAuthorizedUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AddAuthorizedUserRequest.displayName = 'proto.AddAuthorizedUserRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.AddAuthorizedUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.AddAuthorizedUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AddAuthorizedUserResponse.displayName = 'proto.AddAuthorizedUserResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.UpdateAuthorizedUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.UpdateAuthorizedUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.UpdateAuthorizedUserRequest.displayName = 'proto.UpdateAuthorizedUserRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.UpdateAuthorizedUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.UpdateAuthorizedUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.UpdateAuthorizedUserResponse.displayName = 'proto.UpdateAuthorizedUserResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.DeleteAuthorizedUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.DeleteAuthorizedUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.DeleteAuthorizedUserRequest.displayName = 'proto.DeleteAuthorizedUserRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.DeleteAuthorizedUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.DeleteAuthorizedUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.DeleteAuthorizedUserResponse.displayName = 'proto.DeleteAuthorizedUserResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.GetKillSwitchStatusRequest.prototype.toObject = function(opt_includeInstance) {
return proto.GetKillSwitchStatusRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.GetKillSwitchStatusRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchStatusRequest.toObject = function(includeInstance, msg) {
var f, obj = {
environment: (f = msg.getEnvironment()) && api_proto_common_pb.Environment.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.GetKillSwitchStatusRequest}
*/
proto.GetKillSwitchStatusRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.GetKillSwitchStatusRequest;
return proto.GetKillSwitchStatusRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.GetKillSwitchStatusRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.GetKillSwitchStatusRequest}
*/
proto.GetKillSwitchStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_common_pb.Environment;
reader.readMessage(value,api_proto_common_pb.Environment.deserializeBinaryFromReader);
msg.setEnvironment(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.GetKillSwitchStatusRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.GetKillSwitchStatusRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.GetKillSwitchStatusRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchStatusRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEnvironment();
if (f != null) {
writer.writeMessage(
1,
f,
api_proto_common_pb.Environment.serializeBinaryToWriter
);
}
};
/**
* optional Environment environment = 1;
* @return {?proto.Environment}
*/
proto.GetKillSwitchStatusRequest.prototype.getEnvironment = function() {
return /** @type{?proto.Environment} */ (
jspb.Message.getWrapperField(this, api_proto_common_pb.Environment, 1));
};
/**
* @param {?proto.Environment|undefined} value
* @return {!proto.GetKillSwitchStatusRequest} returns this
*/
proto.GetKillSwitchStatusRequest.prototype.setEnvironment = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.GetKillSwitchStatusRequest} returns this
*/
proto.GetKillSwitchStatusRequest.prototype.clearEnvironment = function() {
return this.setEnvironment(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.GetKillSwitchStatusRequest.prototype.hasEnvironment = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.GetKillSwitchStatusResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.GetKillSwitchStatusResponse.prototype.toObject = function(opt_includeInstance) {
return proto.GetKillSwitchStatusResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.GetKillSwitchStatusResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchStatusResponse.toObject = function(includeInstance, msg) {
var f, obj = {
killSwitchesList: jspb.Message.toObjectList(msg.getKillSwitchesList(),
api_proto_kill_switch_objects_pb.KillSwitch.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.GetKillSwitchStatusResponse}
*/
proto.GetKillSwitchStatusResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.GetKillSwitchStatusResponse;
return proto.GetKillSwitchStatusResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.GetKillSwitchStatusResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.GetKillSwitchStatusResponse}
*/
proto.GetKillSwitchStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.KillSwitch;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader);
msg.addKillSwitches(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.GetKillSwitchStatusResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.GetKillSwitchStatusResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.GetKillSwitchStatusResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchStatusResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKillSwitchesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter
);
}
};
/**
* repeated KillSwitch kill_switches = 1;
* @return {!Array<!proto.KillSwitch>}
*/
proto.GetKillSwitchStatusResponse.prototype.getKillSwitchesList = function() {
return /** @type{!Array<!proto.KillSwitch>} */ (
jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1));
};
/**
* @param {!Array<!proto.KillSwitch>} value
* @return {!proto.GetKillSwitchStatusResponse} returns this
*/
proto.GetKillSwitchStatusResponse.prototype.setKillSwitchesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.KillSwitch=} opt_value
* @param {number=} opt_index
* @return {!proto.KillSwitch}
*/
proto.GetKillSwitchStatusResponse.prototype.addKillSwitches = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitch, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.GetKillSwitchStatusResponse} returns this
*/
proto.GetKillSwitchStatusResponse.prototype.clearKillSwitchesList = function() {
return this.setKillSwitchesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.GetKillSwitchOverviewRequest.prototype.toObject = function(opt_includeInstance) {
return proto.GetKillSwitchOverviewRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.GetKillSwitchOverviewRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchOverviewRequest.toObject = function(includeInstance, msg) {
var f, obj = {
withNonactiveKillSwitches: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.GetKillSwitchOverviewRequest}
*/
proto.GetKillSwitchOverviewRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.GetKillSwitchOverviewRequest;
return proto.GetKillSwitchOverviewRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.GetKillSwitchOverviewRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.GetKillSwitchOverviewRequest}
*/
proto.GetKillSwitchOverviewRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setWithNonactiveKillSwitches(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.GetKillSwitchOverviewRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.GetKillSwitchOverviewRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.GetKillSwitchOverviewRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchOverviewRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWithNonactiveKillSwitches();
if (f) {
writer.writeBool(
1,
f
);
}
};
/**
* optional bool with_nonactive_kill_switches = 1;
* @return {boolean}
*/
proto.GetKillSwitchOverviewRequest.prototype.getWithNonactiveKillSwitches = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.GetKillSwitchOverviewRequest} returns this
*/
proto.GetKillSwitchOverviewRequest.prototype.setWithNonactiveKillSwitches = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.GetKillSwitchOverviewResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.GetKillSwitchOverviewResponse.prototype.toObject = function(opt_includeInstance) {
return proto.GetKillSwitchOverviewResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.GetKillSwitchOverviewResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchOverviewResponse.toObject = function(includeInstance, msg) {
var f, obj = {
killSwitchesList: jspb.Message.toObjectList(msg.getKillSwitchesList(),
api_proto_kill_switch_objects_pb.KillSwitch.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.GetKillSwitchOverviewResponse}
*/
proto.GetKillSwitchOverviewResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.GetKillSwitchOverviewResponse;
return proto.GetKillSwitchOverviewResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.GetKillSwitchOverviewResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.GetKillSwitchOverviewResponse}
*/
proto.GetKillSwitchOverviewResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.KillSwitch;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader);
msg.addKillSwitches(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.GetKillSwitchOverviewResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.GetKillSwitchOverviewResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.GetKillSwitchOverviewResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.GetKillSwitchOverviewResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKillSwitchesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter
);
}
};
/**
* repeated KillSwitch kill_switches = 1;
* @return {!Array<!proto.KillSwitch>}
*/
proto.GetKillSwitchOverviewResponse.prototype.getKillSwitchesList = function() {
return /** @type{!Array<!proto.KillSwitch>} */ (
jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1));
};
/**
* @param {!Array<!proto.KillSwitch>} value
* @return {!proto.GetKillSwitchOverviewResponse} returns this
*/
proto.GetKillSwitchOverviewResponse.prototype.setKillSwitchesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.KillSwitch=} opt_value
* @param {number=} opt_index
* @return {!proto.KillSwitch}
*/
proto.GetKillSwitchOverviewResponse.prototype.addKillSwitches = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitch, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.GetKillSwitchOverviewResponse} returns this
*/
proto.GetKillSwitchOverviewResponse.prototype.clearKillSwitchesList = function() {
return this.setKillSwitchesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ListFeaturesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ListFeaturesRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ListFeaturesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListFeaturesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
withDeprecatedFeatures: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ListFeaturesRequest}
*/
proto.ListFeaturesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ListFeaturesRequest;
return proto.ListFeaturesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ListFeaturesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ListFeaturesRequest}
*/
proto.ListFeaturesRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setWithDeprecatedFeatures(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ListFeaturesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ListFeaturesRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ListFeaturesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListFeaturesRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWithDeprecatedFeatures();
if (f) {
writer.writeBool(
1,
f
);
}
};
/**
* optional bool with_deprecated_features = 1;
* @return {boolean}
*/
proto.ListFeaturesRequest.prototype.getWithDeprecatedFeatures = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.ListFeaturesRequest} returns this
*/
proto.ListFeaturesRequest.prototype.setWithDeprecatedFeatures = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ListFeaturesResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ListFeaturesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ListFeaturesResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ListFeaturesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListFeaturesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
featuresList: jspb.Message.toObjectList(msg.getFeaturesList(),
api_proto_kill_switch_objects_pb.Feature.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ListFeaturesResponse}
*/
proto.ListFeaturesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ListFeaturesResponse;
return proto.ListFeaturesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ListFeaturesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ListFeaturesResponse}
*/
proto.ListFeaturesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.Feature;
reader.readMessage(value,api_proto_kill_switch_objects_pb.Feature.deserializeBinaryFromReader);
msg.addFeatures(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ListFeaturesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ListFeaturesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ListFeaturesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListFeaturesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFeaturesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
api_proto_kill_switch_objects_pb.Feature.serializeBinaryToWriter
);
}
};
/**
* repeated Feature features = 1;
* @return {!Array<!proto.Feature>}
*/
proto.ListFeaturesResponse.prototype.getFeaturesList = function() {
return /** @type{!Array<!proto.Feature>} */ (
jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.Feature, 1));
};
/**
* @param {!Array<!proto.Feature>} value
* @return {!proto.ListFeaturesResponse} returns this
*/
proto.ListFeaturesResponse.prototype.setFeaturesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.Feature=} opt_value
* @param {number=} opt_index
* @return {!proto.Feature}
*/
proto.ListFeaturesResponse.prototype.addFeatures = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Feature, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ListFeaturesResponse} returns this
*/
proto.ListFeaturesResponse.prototype.clearFeaturesList = function() {
return this.setFeaturesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.SyncFeaturesRequest.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.SyncFeaturesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.SyncFeaturesRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.SyncFeaturesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.SyncFeaturesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
featuresList: jspb.Message.toObjectList(msg.getFeaturesList(),
api_proto_kill_switch_objects_pb.Feature.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.SyncFeaturesRequest}
*/
proto.SyncFeaturesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.SyncFeaturesRequest;
return proto.SyncFeaturesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.SyncFeaturesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.SyncFeaturesRequest}
*/
proto.SyncFeaturesRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.Feature;
reader.readMessage(value,api_proto_kill_switch_objects_pb.Feature.deserializeBinaryFromReader);
msg.addFeatures(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.SyncFeaturesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.SyncFeaturesRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.SyncFeaturesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.SyncFeaturesRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFeaturesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
api_proto_kill_switch_objects_pb.Feature.serializeBinaryToWriter
);
}
};
/**
* repeated Feature features = 1;
* @return {!Array<!proto.Feature>}
*/
proto.SyncFeaturesRequest.prototype.getFeaturesList = function() {
return /** @type{!Array<!proto.Feature>} */ (
jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.Feature, 1));
};
/**
* @param {!Array<!proto.Feature>} value
* @return {!proto.SyncFeaturesRequest} returns this
*/
proto.SyncFeaturesRequest.prototype.setFeaturesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.Feature=} opt_value
* @param {number=} opt_index
* @return {!proto.Feature}
*/
proto.SyncFeaturesRequest.prototype.addFeatures = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Feature, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.SyncFeaturesRequest} returns this
*/
proto.SyncFeaturesRequest.prototype.clearFeaturesList = function() {
return this.setFeaturesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.SyncFeaturesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.SyncFeaturesResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.SyncFeaturesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.SyncFeaturesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.SyncFeaturesResponse}
*/
proto.SyncFeaturesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.SyncFeaturesResponse;
return proto.SyncFeaturesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.SyncFeaturesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.SyncFeaturesResponse}
*/
proto.SyncFeaturesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.SyncFeaturesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.SyncFeaturesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.SyncFeaturesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.SyncFeaturesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EnableKillSwitchRequest.prototype.toObject = function(opt_includeInstance) {
return proto.EnableKillSwitchRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EnableKillSwitchRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EnableKillSwitchRequest.toObject = function(includeInstance, msg) {
var f, obj = {
killSwitch: (f = msg.getKillSwitch()) && api_proto_kill_switch_objects_pb.KillSwitch.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EnableKillSwitchRequest}
*/
proto.EnableKillSwitchRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EnableKillSwitchRequest;
return proto.EnableKillSwitchRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EnableKillSwitchRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EnableKillSwitchRequest}
*/
proto.EnableKillSwitchRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.KillSwitch;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitch.deserializeBinaryFromReader);
msg.setKillSwitch(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EnableKillSwitchRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EnableKillSwitchRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EnableKillSwitchRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EnableKillSwitchRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKillSwitch();
if (f != null) {
writer.writeMessage(
1,
f,
api_proto_kill_switch_objects_pb.KillSwitch.serializeBinaryToWriter
);
}
};
/**
* optional KillSwitch kill_switch = 1;
* @return {?proto.KillSwitch}
*/
proto.EnableKillSwitchRequest.prototype.getKillSwitch = function() {
return /** @type{?proto.KillSwitch} */ (
jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitch, 1));
};
/**
* @param {?proto.KillSwitch|undefined} value
* @return {!proto.EnableKillSwitchRequest} returns this
*/
proto.EnableKillSwitchRequest.prototype.setKillSwitch = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.EnableKillSwitchRequest} returns this
*/
proto.EnableKillSwitchRequest.prototype.clearKillSwitch = function() {
return this.setKillSwitch(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.EnableKillSwitchRequest.prototype.hasKillSwitch = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EnableKillSwitchResponse.prototype.toObject = function(opt_includeInstance) {
return proto.EnableKillSwitchResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EnableKillSwitchResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EnableKillSwitchResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EnableKillSwitchResponse}
*/
proto.EnableKillSwitchResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EnableKillSwitchResponse;
return proto.EnableKillSwitchResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EnableKillSwitchResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EnableKillSwitchResponse}
*/
proto.EnableKillSwitchResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EnableKillSwitchResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EnableKillSwitchResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EnableKillSwitchResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EnableKillSwitchResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.DisableKillSwitchRequest.prototype.toObject = function(opt_includeInstance) {
return proto.DisableKillSwitchRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.DisableKillSwitchRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DisableKillSwitchRequest.toObject = function(includeInstance, msg) {
var f, obj = {
killSwitchId: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.DisableKillSwitchRequest}
*/
proto.DisableKillSwitchRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.DisableKillSwitchRequest;
return proto.DisableKillSwitchRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.DisableKillSwitchRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.DisableKillSwitchRequest}
*/
proto.DisableKillSwitchRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setKillSwitchId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.DisableKillSwitchRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.DisableKillSwitchRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.DisableKillSwitchRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DisableKillSwitchRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKillSwitchId();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
};
/**
* optional int32 kill_switch_id = 1;
* @return {number}
*/
proto.DisableKillSwitchRequest.prototype.getKillSwitchId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.DisableKillSwitchRequest} returns this
*/
proto.DisableKillSwitchRequest.prototype.setKillSwitchId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.DisableKillSwitchResponse.prototype.toObject = function(opt_includeInstance) {
return proto.DisableKillSwitchResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.DisableKillSwitchResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DisableKillSwitchResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.DisableKillSwitchResponse}
*/
proto.DisableKillSwitchResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.DisableKillSwitchResponse;
return proto.DisableKillSwitchResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.DisableKillSwitchResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.DisableKillSwitchResponse}
*/
proto.DisableKillSwitchResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.DisableKillSwitchResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.DisableKillSwitchResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.DisableKillSwitchResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DisableKillSwitchResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ListAuthorizedUsersRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ListAuthorizedUsersRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ListAuthorizedUsersRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListAuthorizedUsersRequest.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ListAuthorizedUsersRequest}
*/
proto.ListAuthorizedUsersRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ListAuthorizedUsersRequest;
return proto.ListAuthorizedUsersRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ListAuthorizedUsersRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ListAuthorizedUsersRequest}
*/
proto.ListAuthorizedUsersRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ListAuthorizedUsersRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ListAuthorizedUsersRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ListAuthorizedUsersRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListAuthorizedUsersRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ListAuthorizedUsersResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ListAuthorizedUsersResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ListAuthorizedUsersResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ListAuthorizedUsersResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListAuthorizedUsersResponse.toObject = function(includeInstance, msg) {
var f, obj = {
usersList: jspb.Message.toObjectList(msg.getUsersList(),
api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ListAuthorizedUsersResponse}
*/
proto.ListAuthorizedUsersResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ListAuthorizedUsersResponse;
return proto.ListAuthorizedUsersResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ListAuthorizedUsersResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ListAuthorizedUsersResponse}
*/
proto.ListAuthorizedUsersResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader);
msg.addUsers(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ListAuthorizedUsersResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ListAuthorizedUsersResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ListAuthorizedUsersResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ListAuthorizedUsersResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUsersList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter
);
}
};
/**
* repeated KillSwitchAuthorizedUser users = 1;
* @return {!Array<!proto.KillSwitchAuthorizedUser>}
*/
proto.ListAuthorizedUsersResponse.prototype.getUsersList = function() {
return /** @type{!Array<!proto.KillSwitchAuthorizedUser>} */ (
jspb.Message.getRepeatedWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 1));
};
/**
* @param {!Array<!proto.KillSwitchAuthorizedUser>} value
* @return {!proto.ListAuthorizedUsersResponse} returns this
*/
proto.ListAuthorizedUsersResponse.prototype.setUsersList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.KillSwitchAuthorizedUser=} opt_value
* @param {number=} opt_index
* @return {!proto.KillSwitchAuthorizedUser}
*/
proto.ListAuthorizedUsersResponse.prototype.addUsers = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.KillSwitchAuthorizedUser, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ListAuthorizedUsersResponse} returns this
*/
proto.ListAuthorizedUsersResponse.prototype.clearUsersList = function() {
return this.setUsersList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AddAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.AddAuthorizedUserRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AddAuthorizedUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AddAuthorizedUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
user: (f = msg.getUser()) && api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AddAuthorizedUserRequest}
*/
proto.AddAuthorizedUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AddAuthorizedUserRequest;
return proto.AddAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AddAuthorizedUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AddAuthorizedUserRequest}
*/
proto.AddAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader);
msg.setUser(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AddAuthorizedUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AddAuthorizedUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AddAuthorizedUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AddAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUser();
if (f != null) {
writer.writeMessage(
1,
f,
api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter
);
}
};
/**
* optional KillSwitchAuthorizedUser user = 1;
* @return {?proto.KillSwitchAuthorizedUser}
*/
proto.AddAuthorizedUserRequest.prototype.getUser = function() {
return /** @type{?proto.KillSwitchAuthorizedUser} */ (
jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 1));
};
/**
* @param {?proto.KillSwitchAuthorizedUser|undefined} value
* @return {!proto.AddAuthorizedUserRequest} returns this
*/
proto.AddAuthorizedUserRequest.prototype.setUser = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.AddAuthorizedUserRequest} returns this
*/
proto.AddAuthorizedUserRequest.prototype.clearUser = function() {
return this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.AddAuthorizedUserRequest.prototype.hasUser = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AddAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.AddAuthorizedUserResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AddAuthorizedUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AddAuthorizedUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AddAuthorizedUserResponse}
*/
proto.AddAuthorizedUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AddAuthorizedUserResponse;
return proto.AddAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AddAuthorizedUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AddAuthorizedUserResponse}
*/
proto.AddAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AddAuthorizedUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AddAuthorizedUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AddAuthorizedUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AddAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.UpdateAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.UpdateAuthorizedUserRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.UpdateAuthorizedUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdateAuthorizedUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
user: (f = msg.getUser()) && api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.UpdateAuthorizedUserRequest}
*/
proto.UpdateAuthorizedUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.UpdateAuthorizedUserRequest;
return proto.UpdateAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.UpdateAuthorizedUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.UpdateAuthorizedUserRequest}
*/
proto.UpdateAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setUserId(value);
break;
case 2:
var value = new api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser;
reader.readMessage(value,api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.deserializeBinaryFromReader);
msg.setUser(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.UpdateAuthorizedUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.UpdateAuthorizedUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.UpdateAuthorizedUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdateAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUserId();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getUser();
if (f != null) {
writer.writeMessage(
2,
f,
api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser.serializeBinaryToWriter
);
}
};
/**
* optional int32 user_id = 1;
* @return {number}
*/
proto.UpdateAuthorizedUserRequest.prototype.getUserId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.UpdateAuthorizedUserRequest} returns this
*/
proto.UpdateAuthorizedUserRequest.prototype.setUserId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional KillSwitchAuthorizedUser user = 2;
* @return {?proto.KillSwitchAuthorizedUser}
*/
proto.UpdateAuthorizedUserRequest.prototype.getUser = function() {
return /** @type{?proto.KillSwitchAuthorizedUser} */ (
jspb.Message.getWrapperField(this, api_proto_kill_switch_objects_pb.KillSwitchAuthorizedUser, 2));
};
/**
* @param {?proto.KillSwitchAuthorizedUser|undefined} value
* @return {!proto.UpdateAuthorizedUserRequest} returns this
*/
proto.UpdateAuthorizedUserRequest.prototype.setUser = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.UpdateAuthorizedUserRequest} returns this
*/
proto.UpdateAuthorizedUserRequest.prototype.clearUser = function() {
return this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.UpdateAuthorizedUserRequest.prototype.hasUser = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.UpdateAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.UpdateAuthorizedUserResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.UpdateAuthorizedUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdateAuthorizedUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.UpdateAuthorizedUserResponse}
*/
proto.UpdateAuthorizedUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.UpdateAuthorizedUserResponse;
return proto.UpdateAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.UpdateAuthorizedUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.UpdateAuthorizedUserResponse}
*/
proto.UpdateAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.UpdateAuthorizedUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.UpdateAuthorizedUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.UpdateAuthorizedUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdateAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.DeleteAuthorizedUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.DeleteAuthorizedUserRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.DeleteAuthorizedUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DeleteAuthorizedUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.DeleteAuthorizedUserRequest}
*/
proto.DeleteAuthorizedUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.DeleteAuthorizedUserRequest;
return proto.DeleteAuthorizedUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.DeleteAuthorizedUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.DeleteAuthorizedUserRequest}
*/
proto.DeleteAuthorizedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setUserId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.DeleteAuthorizedUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.DeleteAuthorizedUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.DeleteAuthorizedUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DeleteAuthorizedUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUserId();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
};
/**
* optional int32 user_id = 1;
* @return {number}
*/
proto.DeleteAuthorizedUserRequest.prototype.getUserId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.DeleteAuthorizedUserRequest} returns this
*/
proto.DeleteAuthorizedUserRequest.prototype.setUserId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.DeleteAuthorizedUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.DeleteAuthorizedUserResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.DeleteAuthorizedUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DeleteAuthorizedUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.DeleteAuthorizedUserResponse}
*/
proto.DeleteAuthorizedUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.DeleteAuthorizedUserResponse;
return proto.DeleteAuthorizedUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.DeleteAuthorizedUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.DeleteAuthorizedUserResponse}
*/
proto.DeleteAuthorizedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.DeleteAuthorizedUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.DeleteAuthorizedUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.DeleteAuthorizedUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.DeleteAuthorizedUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
goog.object.extend(exports, proto);