@pureweb/platform-streaming-agent
Version:
The PureWeb platform streaming agent enables your game to communicate and stream through the PureWeb Platform
1,264 lines (1,263 loc) • 136 kB
JavaScript
// source: sidecar.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 = (function () {
if (this) {
return this;
}
if (typeof window !== 'undefined') {
return window;
}
if (typeof global !== 'undefined') {
return global;
}
if (typeof self !== 'undefined') {
return self;
}
return Function('return this')();
}.call(null));
goog.exportSymbol('proto.com.pureweb.agent.Agent', null, global);
goog.exportSymbol('proto.com.pureweb.agent.AgentEnvironment', null, global);
goog.exportSymbol('proto.com.pureweb.agent.AgentList', null, global);
goog.exportSymbol('proto.com.pureweb.agent.BroadcastMessage', null, global);
goog.exportSymbol('proto.com.pureweb.agent.GetRemoteAgentsRequest', null, global);
goog.exportSymbol('proto.com.pureweb.agent.HeartBeatRequest', null, global);
goog.exportSymbol('proto.com.pureweb.agent.HeartBeatResponse', null, global);
goog.exportSymbol('proto.com.pureweb.agent.IncomingMessage', null, global);
goog.exportSymbol('proto.com.pureweb.agent.Key', null, global);
goog.exportSymbol('proto.com.pureweb.agent.KeyList', null, global);
goog.exportSymbol('proto.com.pureweb.agent.KeyValue', null, global);
goog.exportSymbol('proto.com.pureweb.agent.Message', null, global);
goog.exportSymbol('proto.com.pureweb.agent.MessagingSubscription', null, global);
goog.exportSymbol('proto.com.pureweb.agent.MessagingSubscription.SubscriptionType', null, global);
goog.exportSymbol('proto.com.pureweb.agent.PresenceEvent', null, global);
goog.exportSymbol('proto.com.pureweb.agent.PresenceEvent.PresenceType', null, global);
goog.exportSymbol('proto.com.pureweb.agent.PresenceSubscription', null, global);
goog.exportSymbol('proto.com.pureweb.agent.PrivateMessage', null, global);
goog.exportSymbol('proto.com.pureweb.agent.RemoveKeyResponse', null, global);
goog.exportSymbol('proto.com.pureweb.agent.RetrieveAllKeysRequest', null, global);
goog.exportSymbol('proto.com.pureweb.agent.SendBroadcastMessageResponse', null, global);
goog.exportSymbol('proto.com.pureweb.agent.SendDirectMessageResponse', null, global);
goog.exportSymbol('proto.com.pureweb.agent.StorageEvent', null, global);
goog.exportSymbol('proto.com.pureweb.agent.StorageEvent.StorageType', null, global);
goog.exportSymbol('proto.com.pureweb.agent.StorageSubscription', null, global);
goog.exportSymbol('proto.com.pureweb.agent.StoreKeyResponse', 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.com.pureweb.agent.HeartBeatRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.HeartBeatRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.HeartBeatRequest.displayName = 'proto.com.pureweb.agent.HeartBeatRequest';
}
/**
* 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.com.pureweb.agent.HeartBeatResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.HeartBeatResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.HeartBeatResponse.displayName = 'proto.com.pureweb.agent.HeartBeatResponse';
}
/**
* 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.com.pureweb.agent.Key = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.Key, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.Key.displayName = 'proto.com.pureweb.agent.Key';
}
/**
* 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.com.pureweb.agent.KeyList = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.pureweb.agent.KeyList.repeatedFields_, null);
};
goog.inherits(proto.com.pureweb.agent.KeyList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.KeyList.displayName = 'proto.com.pureweb.agent.KeyList';
}
/**
* 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.com.pureweb.agent.KeyValue = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.KeyValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.KeyValue.displayName = 'proto.com.pureweb.agent.KeyValue';
}
/**
* 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.com.pureweb.agent.StorageSubscription = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.StorageSubscription, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.StorageSubscription.displayName = 'proto.com.pureweb.agent.StorageSubscription';
}
/**
* 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.com.pureweb.agent.StorageEvent = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.StorageEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.StorageEvent.displayName = 'proto.com.pureweb.agent.StorageEvent';
}
/**
* 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.com.pureweb.agent.RetrieveAllKeysRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.RetrieveAllKeysRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.RetrieveAllKeysRequest.displayName = 'proto.com.pureweb.agent.RetrieveAllKeysRequest';
}
/**
* 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.com.pureweb.agent.StoreKeyResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.StoreKeyResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.StoreKeyResponse.displayName = 'proto.com.pureweb.agent.StoreKeyResponse';
}
/**
* 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.com.pureweb.agent.RemoveKeyResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.RemoveKeyResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.RemoveKeyResponse.displayName = 'proto.com.pureweb.agent.RemoveKeyResponse';
}
/**
* 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.com.pureweb.agent.Agent = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.Agent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.Agent.displayName = 'proto.com.pureweb.agent.Agent';
}
/**
* 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.com.pureweb.agent.AgentEnvironment = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.AgentEnvironment, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.AgentEnvironment.displayName = 'proto.com.pureweb.agent.AgentEnvironment';
}
/**
* 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.com.pureweb.agent.AgentList = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.pureweb.agent.AgentList.repeatedFields_, null);
};
goog.inherits(proto.com.pureweb.agent.AgentList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.AgentList.displayName = 'proto.com.pureweb.agent.AgentList';
}
/**
* 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.com.pureweb.agent.PresenceSubscription = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.PresenceSubscription, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.PresenceSubscription.displayName = 'proto.com.pureweb.agent.PresenceSubscription';
}
/**
* 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.com.pureweb.agent.PresenceEvent = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.PresenceEvent, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.PresenceEvent.displayName = 'proto.com.pureweb.agent.PresenceEvent';
}
/**
* 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.com.pureweb.agent.GetRemoteAgentsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.GetRemoteAgentsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.GetRemoteAgentsRequest.displayName = 'proto.com.pureweb.agent.GetRemoteAgentsRequest';
}
/**
* 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.com.pureweb.agent.Message = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.Message, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.Message.displayName = 'proto.com.pureweb.agent.Message';
}
/**
* 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.com.pureweb.agent.MessagingSubscription = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.MessagingSubscription, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.MessagingSubscription.displayName = 'proto.com.pureweb.agent.MessagingSubscription';
}
/**
* 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.com.pureweb.agent.IncomingMessage = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.IncomingMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.IncomingMessage.displayName = 'proto.com.pureweb.agent.IncomingMessage';
}
/**
* 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.com.pureweb.agent.BroadcastMessage = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.BroadcastMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.BroadcastMessage.displayName = 'proto.com.pureweb.agent.BroadcastMessage';
}
/**
* 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.com.pureweb.agent.PrivateMessage = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.PrivateMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.PrivateMessage.displayName = 'proto.com.pureweb.agent.PrivateMessage';
}
/**
* 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.com.pureweb.agent.SendBroadcastMessageResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.SendBroadcastMessageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.SendBroadcastMessageResponse.displayName = 'proto.com.pureweb.agent.SendBroadcastMessageResponse';
}
/**
* 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.com.pureweb.agent.SendDirectMessageResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.com.pureweb.agent.SendDirectMessageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.com.pureweb.agent.SendDirectMessageResponse.displayName = 'proto.com.pureweb.agent.SendDirectMessageResponse';
}
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.com.pureweb.agent.HeartBeatRequest.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.HeartBeatRequest.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.com.pureweb.agent.HeartBeatRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.HeartBeatRequest.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.com.pureweb.agent.HeartBeatRequest}
*/
proto.com.pureweb.agent.HeartBeatRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.HeartBeatRequest;
return proto.com.pureweb.agent.HeartBeatRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.HeartBeatRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.HeartBeatRequest}
*/
proto.com.pureweb.agent.HeartBeatRequest.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.com.pureweb.agent.HeartBeatRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.com.pureweb.agent.HeartBeatRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.com.pureweb.agent.HeartBeatRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.HeartBeatRequest.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.com.pureweb.agent.HeartBeatResponse.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.HeartBeatResponse.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.com.pureweb.agent.HeartBeatResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.HeartBeatResponse.toObject = function (includeInstance, msg) {
var f, obj = {
agent: (f = msg.getAgent()) && proto.com.pureweb.agent.Agent.toObject(includeInstance, f),
environment: (f = msg.getEnvironment()) && proto.com.pureweb.agent.AgentEnvironment.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.com.pureweb.agent.HeartBeatResponse}
*/
proto.com.pureweb.agent.HeartBeatResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.HeartBeatResponse;
return proto.com.pureweb.agent.HeartBeatResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.HeartBeatResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.HeartBeatResponse}
*/
proto.com.pureweb.agent.HeartBeatResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.com.pureweb.agent.Agent;
reader.readMessage(value, proto.com.pureweb.agent.Agent.deserializeBinaryFromReader);
msg.setAgent(value);
break;
case 2:
var value = new proto.com.pureweb.agent.AgentEnvironment;
reader.readMessage(value, proto.com.pureweb.agent.AgentEnvironment.deserializeBinaryFromReader);
msg.setEnvironment(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.com.pureweb.agent.HeartBeatResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.com.pureweb.agent.HeartBeatResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.HeartBeatResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getAgent();
if (f != null) {
writer.writeMessage(1, f, proto.com.pureweb.agent.Agent.serializeBinaryToWriter);
}
f = message.getEnvironment();
if (f != null) {
writer.writeMessage(2, f, proto.com.pureweb.agent.AgentEnvironment.serializeBinaryToWriter);
}
};
/**
* optional Agent agent = 1;
* @return {?proto.com.pureweb.agent.Agent}
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.getAgent = function () {
return /** @type{?proto.com.pureweb.agent.Agent} */ (jspb.Message.getWrapperField(this, proto.com.pureweb.agent.Agent, 1));
};
/**
* @param {?proto.com.pureweb.agent.Agent|undefined} value
* @return {!proto.com.pureweb.agent.HeartBeatResponse} returns this
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.setAgent = function (value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.com.pureweb.agent.HeartBeatResponse} returns this
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.clearAgent = function () {
return this.setAgent(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.hasAgent = function () {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional AgentEnvironment environment = 2;
* @return {?proto.com.pureweb.agent.AgentEnvironment}
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.getEnvironment = function () {
return /** @type{?proto.com.pureweb.agent.AgentEnvironment} */ (jspb.Message.getWrapperField(this, proto.com.pureweb.agent.AgentEnvironment, 2));
};
/**
* @param {?proto.com.pureweb.agent.AgentEnvironment|undefined} value
* @return {!proto.com.pureweb.agent.HeartBeatResponse} returns this
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.setEnvironment = function (value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.com.pureweb.agent.HeartBeatResponse} returns this
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.clearEnvironment = function () {
return this.setEnvironment(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.com.pureweb.agent.HeartBeatResponse.prototype.hasEnvironment = 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.com.pureweb.agent.Key.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.Key.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.com.pureweb.agent.Key} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.Key.toObject = function (includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
agent: (f = msg.getAgent()) && proto.com.pureweb.agent.Agent.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.com.pureweb.agent.Key}
*/
proto.com.pureweb.agent.Key.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.Key;
return proto.com.pureweb.agent.Key.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.Key} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.Key}
*/
proto.com.pureweb.agent.Key.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = new proto.com.pureweb.agent.Agent;
reader.readMessage(value, proto.com.pureweb.agent.Agent.deserializeBinaryFromReader);
msg.setAgent(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.com.pureweb.agent.Key.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.com.pureweb.agent.Key.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.com.pureweb.agent.Key} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.Key.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getAgent();
if (f != null) {
writer.writeMessage(2, f, proto.com.pureweb.agent.Agent.serializeBinaryToWriter);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.com.pureweb.agent.Key.prototype.getName = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.com.pureweb.agent.Key} returns this
*/
proto.com.pureweb.agent.Key.prototype.setName = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional Agent agent = 2;
* @return {?proto.com.pureweb.agent.Agent}
*/
proto.com.pureweb.agent.Key.prototype.getAgent = function () {
return /** @type{?proto.com.pureweb.agent.Agent} */ (jspb.Message.getWrapperField(this, proto.com.pureweb.agent.Agent, 2));
};
/**
* @param {?proto.com.pureweb.agent.Agent|undefined} value
* @return {!proto.com.pureweb.agent.Key} returns this
*/
proto.com.pureweb.agent.Key.prototype.setAgent = function (value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.com.pureweb.agent.Key} returns this
*/
proto.com.pureweb.agent.Key.prototype.clearAgent = function () {
return this.setAgent(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.com.pureweb.agent.Key.prototype.hasAgent = function () {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.com.pureweb.agent.KeyList.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.com.pureweb.agent.KeyList.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.KeyList.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.com.pureweb.agent.KeyList} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.KeyList.toObject = function (includeInstance, msg) {
var f, obj = {
keysList: jspb.Message.toObjectList(msg.getKeysList(), proto.com.pureweb.agent.Key.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.com.pureweb.agent.KeyList}
*/
proto.com.pureweb.agent.KeyList.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.KeyList;
return proto.com.pureweb.agent.KeyList.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.KeyList} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.KeyList}
*/
proto.com.pureweb.agent.KeyList.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.com.pureweb.agent.Key;
reader.readMessage(value, proto.com.pureweb.agent.Key.deserializeBinaryFromReader);
msg.addKeys(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.com.pureweb.agent.KeyList.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.com.pureweb.agent.KeyList.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.com.pureweb.agent.KeyList} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.KeyList.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getKeysList();
if (f.length > 0) {
writer.writeRepeatedMessage(1, f, proto.com.pureweb.agent.Key.serializeBinaryToWriter);
}
};
/**
* repeated Key keys = 1;
* @return {!Array<!proto.com.pureweb.agent.Key>}
*/
proto.com.pureweb.agent.KeyList.prototype.getKeysList = function () {
return /** @type{!Array<!proto.com.pureweb.agent.Key>} */ (jspb.Message.getRepeatedWrapperField(this, proto.com.pureweb.agent.Key, 1));
};
/**
* @param {!Array<!proto.com.pureweb.agent.Key>} value
* @return {!proto.com.pureweb.agent.KeyList} returns this
*/
proto.com.pureweb.agent.KeyList.prototype.setKeysList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.com.pureweb.agent.Key=} opt_value
* @param {number=} opt_index
* @return {!proto.com.pureweb.agent.Key}
*/
proto.com.pureweb.agent.KeyList.prototype.addKeys = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.pureweb.agent.Key, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.com.pureweb.agent.KeyList} returns this
*/
proto.com.pureweb.agent.KeyList.prototype.clearKeysList = function () {
return this.setKeysList([]);
};
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.com.pureweb.agent.KeyValue.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.KeyValue.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.com.pureweb.agent.KeyValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.KeyValue.toObject = function (includeInstance, msg) {
var f, obj = {
key: (f = msg.getKey()) && proto.com.pureweb.agent.Key.toObject(includeInstance, f),
value: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.com.pureweb.agent.KeyValue}
*/
proto.com.pureweb.agent.KeyValue.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.KeyValue;
return proto.com.pureweb.agent.KeyValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.KeyValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.KeyValue}
*/
proto.com.pureweb.agent.KeyValue.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.com.pureweb.agent.Key;
reader.readMessage(value, proto.com.pureweb.agent.Key.deserializeBinaryFromReader);
msg.setKey(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.com.pureweb.agent.KeyValue.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.com.pureweb.agent.KeyValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.com.pureweb.agent.KeyValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.KeyValue.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getKey();
if (f != null) {
writer.writeMessage(1, f, proto.com.pureweb.agent.Key.serializeBinaryToWriter);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(2, f);
}
};
/**
* optional Key key = 1;
* @return {?proto.com.pureweb.agent.Key}
*/
proto.com.pureweb.agent.KeyValue.prototype.getKey = function () {
return /** @type{?proto.com.pureweb.agent.Key} */ (jspb.Message.getWrapperField(this, proto.com.pureweb.agent.Key, 1));
};
/**
* @param {?proto.com.pureweb.agent.Key|undefined} value
* @return {!proto.com.pureweb.agent.KeyValue} returns this
*/
proto.com.pureweb.agent.KeyValue.prototype.setKey = function (value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.com.pureweb.agent.KeyValue} returns this
*/
proto.com.pureweb.agent.KeyValue.prototype.clearKey = function () {
return this.setKey(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.com.pureweb.agent.KeyValue.prototype.hasKey = function () {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string value = 2;
* @return {string}
*/
proto.com.pureweb.agent.KeyValue.prototype.getValue = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.com.pureweb.agent.KeyValue} returns this
*/
proto.com.pureweb.agent.KeyValue.prototype.setValue = function (value) {
return jspb.Message.setProto3StringField(this, 2, 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.com.pureweb.agent.StorageSubscription.prototype.toObject = function (opt_includeInstance) {
return proto.com.pureweb.agent.StorageSubscription.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.com.pureweb.agent.StorageSubscription} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.com.pureweb.agent.StorageSubscription.toObject = function (includeInstance, msg) {
var f, obj = {
key: (f = msg.getKey()) && proto.com.pureweb.agent.Key.toObject(includeInstance, f),
type: jspb.Message.getFieldWithDefault(msg, 2, 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.com.pureweb.agent.StorageSubscription}
*/
proto.com.pureweb.agent.StorageSubscription.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.com.pureweb.agent.StorageSubscription;
return proto.com.pureweb.agent.StorageSubscription.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.com.pureweb.agent.StorageSubscription} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.com.pureweb.agent.StorageSubscription}
*/
proto.com.pureweb.agent.StorageSubscription.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.com.pureweb.agent.Key;
reader.readMessage(value, proto.com.pureweb.agent.Key.deserializeBinaryFromReader);