2019-01-11 19:33:44 +00:00
|
|
|
/**
|
|
|
|
* @fileoverview
|
|
|
|
* @enhanceable
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @public
|
|
|
|
*/
|
|
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
|
|
|
|
var jspb = require('google-protobuf');
|
|
|
|
var goog = jspb;
|
|
|
|
var global = Function('return this')();
|
|
|
|
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.exportSymbol('proto.CallbackMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.EventMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.FailMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.MethodMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.Module', null, global);
|
|
|
|
goog.exportSymbol('proto.NamedCallbackMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.NamedEventMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.NamedProxyMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.NumberedCallbackMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.NumberedEventMessage', null, global);
|
|
|
|
goog.exportSymbol('proto.NumberedProxyMessage', null, global);
|
2019-03-05 03:26:17 +00:00
|
|
|
goog.exportSymbol('proto.Ping', null, global);
|
|
|
|
goog.exportSymbol('proto.Pong', null, global);
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.exportSymbol('proto.SuccessMessage', null, global);
|
2019-01-11 19:33:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NamedProxyMessage.repeatedFields_, null);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.inherits(proto.NamedProxyMessage, jspb.Message);
|
2019-01-11 19:33:44 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.displayName = 'proto.NamedProxyMessage';
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.repeatedFields_ = [4];
|
2019-01-11 19:33:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NamedProxyMessage.toObject(opt_includeInstance, this);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NamedProxyMessage} msg The msg instance to transform.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @return {!Object}
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.toObject = function(includeInstance, msg) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f, obj = {
|
2019-02-19 16:17:03 +00:00
|
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2019-03-26 18:01:25 +00:00
|
|
|
module: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
method: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 4)
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.NamedProxyMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.deserializeBinary = function(bytes) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-03-26 18:01:25 +00:00
|
|
|
var msg = new proto.NamedProxyMessage;
|
|
|
|
return proto.NamedProxyMessage.deserializeBinaryFromReader(msg, reader);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NamedProxyMessage} msg The message object to deserialize into.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.NamedProxyMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedProxyMessage.deserializeBinaryFromReader = function(msg, reader) {
|
2019-01-11 19:33:44 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setId(value);
|
|
|
|
break;
|
2019-03-26 18:01:25 +00:00
|
|
|
case 2:
|
|
|
|
var value = /** @type {!proto.Module} */ (reader.readEnum());
|
|
|
|
msg.setModule(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setMethod(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addArgs(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.NamedProxyMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.NamedProxyMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getModule();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getMethod();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getArgsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 id = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.getId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NamedProxyMessage.prototype.setId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional Module module = 2;
|
|
|
|
* @return {!proto.Module}
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.getModule = function() {
|
|
|
|
return /** @type {!proto.Module} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!proto.Module} value */
|
|
|
|
proto.NamedProxyMessage.prototype.setModule = function(value) {
|
|
|
|
jspb.Message.setProto3EnumField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string method = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.getMethod = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
|
|
|
proto.NamedProxyMessage.prototype.setMethod = function(value) {
|
|
|
|
jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 4;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.getArgsList = function() {
|
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
|
|
proto.NamedProxyMessage.prototype.setArgsList = function(value) {
|
|
|
|
jspb.Message.setField(this, 4, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
|
|
|
proto.NamedProxyMessage.prototype.addArgs = function(value, opt_index) {
|
|
|
|
jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.NamedProxyMessage.prototype.clearArgsList = function() {
|
|
|
|
this.setArgsList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.NumberedProxyMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NumberedProxyMessage.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.NumberedProxyMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.NumberedProxyMessage.displayName = 'proto.NumberedProxyMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.repeatedFields_ = [4];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NumberedProxyMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.NumberedProxyMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
proxyId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
method: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 4)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.NumberedProxyMessage}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.NumberedProxyMessage;
|
|
|
|
return proto.NumberedProxyMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.NumberedProxyMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.NumberedProxyMessage}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setId(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setProxyId(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setMethod(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addArgs(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.NumberedProxyMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.NumberedProxyMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProxyId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getMethod();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getArgsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 id = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.getId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NumberedProxyMessage.prototype.setId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 proxy_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.getProxyId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NumberedProxyMessage.prototype.setProxyId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string method = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.getMethod = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
|
|
|
proto.NumberedProxyMessage.prototype.setMethod = function(value) {
|
|
|
|
jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 4;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.getArgsList = function() {
|
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
|
|
proto.NumberedProxyMessage.prototype.setArgsList = function(value) {
|
|
|
|
jspb.Message.setField(this, 4, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
|
|
|
proto.NumberedProxyMessage.prototype.addArgs = function(value, opt_index) {
|
|
|
|
jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.NumberedProxyMessage.prototype.clearArgsList = function() {
|
|
|
|
this.setArgsList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.MethodMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.MethodMessage.oneofGroups_);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.MethodMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.MethodMessage.displayName = 'proto.MethodMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Oneof group definitions for this message. Each group defines the field
|
|
|
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
|
|
* @private {!Array<!Array<number>>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.oneofGroups_ = [[1,2]];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.MsgCase = {
|
|
|
|
MSG_NOT_SET: 0,
|
|
|
|
NAMED_PROXY: 1,
|
|
|
|
NUMBERED_PROXY: 2
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return {proto.MethodMessage.MsgCase}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.getMsgCase = function() {
|
|
|
|
return /** @type {proto.MethodMessage.MsgCase} */(jspb.Message.computeOneofCase(this, proto.MethodMessage.oneofGroups_[0]));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.MethodMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.MethodMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
namedProxy: (f = msg.getNamedProxy()) && proto.NamedProxyMessage.toObject(includeInstance, f),
|
|
|
|
numberedProxy: (f = msg.getNumberedProxy()) && proto.NumberedProxyMessage.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.MethodMessage}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.MethodMessage;
|
|
|
|
return proto.MethodMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.MethodMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.MethodMessage}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new proto.NamedProxyMessage;
|
|
|
|
reader.readMessage(value,proto.NamedProxyMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNamedProxy(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new proto.NumberedProxyMessage;
|
|
|
|
reader.readMessage(value,proto.NumberedProxyMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNumberedProxy(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.MethodMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.MethodMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getNamedProxy();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
proto.NamedProxyMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getNumberedProxy();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
proto.NumberedProxyMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NamedProxyMessage named_proxy = 1;
|
|
|
|
* @return {?proto.NamedProxyMessage}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.getNamedProxy = function() {
|
|
|
|
return /** @type{?proto.NamedProxyMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NamedProxyMessage, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NamedProxyMessage|undefined} value */
|
|
|
|
proto.MethodMessage.prototype.setNamedProxy = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 1, proto.MethodMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.MethodMessage.prototype.clearNamedProxy = function() {
|
|
|
|
this.setNamedProxy(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.hasNamedProxy = function() {
|
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NumberedProxyMessage numbered_proxy = 2;
|
|
|
|
* @return {?proto.NumberedProxyMessage}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.getNumberedProxy = function() {
|
|
|
|
return /** @type{?proto.NumberedProxyMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NumberedProxyMessage, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NumberedProxyMessage|undefined} value */
|
|
|
|
proto.MethodMessage.prototype.setNumberedProxy = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 2, proto.MethodMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.MethodMessage.prototype.clearNumberedProxy = function() {
|
|
|
|
this.setNumberedProxy(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.MethodMessage.prototype.hasNumberedProxy = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.CallbackMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CallbackMessage.oneofGroups_);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.CallbackMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.CallbackMessage.displayName = 'proto.CallbackMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Oneof group definitions for this message. Each group defines the field
|
|
|
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
|
|
* @private {!Array<!Array<number>>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.oneofGroups_ = [[1,2]];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.MsgCase = {
|
|
|
|
MSG_NOT_SET: 0,
|
|
|
|
NAMED_CALLBACK: 1,
|
|
|
|
NUMBERED_CALLBACK: 2
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return {proto.CallbackMessage.MsgCase}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.getMsgCase = function() {
|
|
|
|
return /** @type {proto.CallbackMessage.MsgCase} */(jspb.Message.computeOneofCase(this, proto.CallbackMessage.oneofGroups_[0]));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.CallbackMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.CallbackMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
namedCallback: (f = msg.getNamedCallback()) && proto.NamedCallbackMessage.toObject(includeInstance, f),
|
|
|
|
numberedCallback: (f = msg.getNumberedCallback()) && proto.NumberedCallbackMessage.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.CallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.CallbackMessage;
|
|
|
|
return proto.CallbackMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.CallbackMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.CallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new proto.NamedCallbackMessage;
|
|
|
|
reader.readMessage(value,proto.NamedCallbackMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNamedCallback(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new proto.NumberedCallbackMessage;
|
|
|
|
reader.readMessage(value,proto.NumberedCallbackMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNumberedCallback(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.CallbackMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.CallbackMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getNamedCallback();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
proto.NamedCallbackMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getNumberedCallback();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
proto.NumberedCallbackMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NamedCallbackMessage named_callback = 1;
|
|
|
|
* @return {?proto.NamedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.getNamedCallback = function() {
|
|
|
|
return /** @type{?proto.NamedCallbackMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NamedCallbackMessage, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NamedCallbackMessage|undefined} value */
|
|
|
|
proto.CallbackMessage.prototype.setNamedCallback = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 1, proto.CallbackMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.CallbackMessage.prototype.clearNamedCallback = function() {
|
|
|
|
this.setNamedCallback(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.hasNamedCallback = function() {
|
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NumberedCallbackMessage numbered_callback = 2;
|
|
|
|
* @return {?proto.NumberedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.getNumberedCallback = function() {
|
|
|
|
return /** @type{?proto.NumberedCallbackMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NumberedCallbackMessage, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NumberedCallbackMessage|undefined} value */
|
|
|
|
proto.CallbackMessage.prototype.setNumberedCallback = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 2, proto.CallbackMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.CallbackMessage.prototype.clearNumberedCallback = function() {
|
|
|
|
this.setNumberedCallback(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.CallbackMessage.prototype.hasNumberedCallback = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.NamedCallbackMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NamedCallbackMessage.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.NamedCallbackMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.NamedCallbackMessage.displayName = 'proto.NamedCallbackMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.repeatedFields_ = [3];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NamedCallbackMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.NamedCallbackMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
module: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
callbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 3)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.NamedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.NamedCallbackMessage;
|
|
|
|
return proto.NamedCallbackMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.NamedCallbackMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.NamedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {!proto.Module} */ (reader.readEnum());
|
|
|
|
msg.setModule(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setCallbackId(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addArgs(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.NamedCallbackMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.NamedCallbackMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getModule();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getCallbackId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getArgsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional Module module = 1;
|
|
|
|
* @return {!proto.Module}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.getModule = function() {
|
|
|
|
return /** @type {!proto.Module} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!proto.Module} value */
|
|
|
|
proto.NamedCallbackMessage.prototype.setModule = function(value) {
|
|
|
|
jspb.Message.setProto3EnumField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 callback_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.getCallbackId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NamedCallbackMessage.prototype.setCallbackId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 3;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.getArgsList = function() {
|
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
|
|
proto.NamedCallbackMessage.prototype.setArgsList = function(value) {
|
|
|
|
jspb.Message.setField(this, 3, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
|
|
|
proto.NamedCallbackMessage.prototype.addArgs = function(value, opt_index) {
|
|
|
|
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.NamedCallbackMessage.prototype.clearArgsList = function() {
|
|
|
|
this.setArgsList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.NumberedCallbackMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NumberedCallbackMessage.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.NumberedCallbackMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.NumberedCallbackMessage.displayName = 'proto.NumberedCallbackMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.repeatedFields_ = [3];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NumberedCallbackMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.NumberedCallbackMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
proxyId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
callbackId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 3)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.NumberedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.NumberedCallbackMessage;
|
|
|
|
return proto.NumberedCallbackMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.NumberedCallbackMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.NumberedCallbackMessage}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setProxyId(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setCallbackId(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addArgs(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.NumberedCallbackMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.NumberedCallbackMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getProxyId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getCallbackId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getArgsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 proxy_id = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.getProxyId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NumberedCallbackMessage.prototype.setProxyId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 callback_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.getCallbackId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {number} value */
|
|
|
|
proto.NumberedCallbackMessage.prototype.setCallbackId = function(value) {
|
|
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 3;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.getArgsList = function() {
|
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
|
|
proto.NumberedCallbackMessage.prototype.setArgsList = function(value) {
|
|
|
|
jspb.Message.setField(this, 3, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
|
|
|
proto.NumberedCallbackMessage.prototype.addArgs = function(value, opt_index) {
|
|
|
|
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.NumberedCallbackMessage.prototype.clearArgsList = function() {
|
|
|
|
this.setArgsList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.EventMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.EventMessage.oneofGroups_);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.EventMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.EventMessage.displayName = 'proto.EventMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Oneof group definitions for this message. Each group defines the field
|
|
|
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
|
|
* @private {!Array<!Array<number>>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.EventMessage.oneofGroups_ = [[1,2]];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.MsgCase = {
|
|
|
|
MSG_NOT_SET: 0,
|
|
|
|
NAMED_EVENT: 1,
|
|
|
|
NUMBERED_EVENT: 2
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return {proto.EventMessage.MsgCase}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.getMsgCase = function() {
|
|
|
|
return /** @type {proto.EventMessage.MsgCase} */(jspb.Message.computeOneofCase(this, proto.EventMessage.oneofGroups_[0]));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.EventMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.EventMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.EventMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
namedEvent: (f = msg.getNamedEvent()) && proto.NamedEventMessage.toObject(includeInstance, f),
|
|
|
|
numberedEvent: (f = msg.getNumberedEvent()) && proto.NumberedEventMessage.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.EventMessage}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.EventMessage;
|
|
|
|
return proto.EventMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.EventMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.EventMessage}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new proto.NamedEventMessage;
|
|
|
|
reader.readMessage(value,proto.NamedEventMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNamedEvent(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new proto.NumberedEventMessage;
|
|
|
|
reader.readMessage(value,proto.NumberedEventMessage.deserializeBinaryFromReader);
|
|
|
|
msg.setNumberedEvent(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.EventMessage.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.EventMessage} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.EventMessage.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getNamedEvent();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
proto.NamedEventMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getNumberedEvent();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
proto.NumberedEventMessage.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NamedEventMessage named_event = 1;
|
|
|
|
* @return {?proto.NamedEventMessage}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.getNamedEvent = function() {
|
|
|
|
return /** @type{?proto.NamedEventMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NamedEventMessage, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NamedEventMessage|undefined} value */
|
|
|
|
proto.EventMessage.prototype.setNamedEvent = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 1, proto.EventMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.EventMessage.prototype.clearNamedEvent = function() {
|
|
|
|
this.setNamedEvent(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.hasNamedEvent = function() {
|
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional NumberedEventMessage numbered_event = 2;
|
|
|
|
* @return {?proto.NumberedEventMessage}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.getNumberedEvent = function() {
|
|
|
|
return /** @type{?proto.NumberedEventMessage} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.NumberedEventMessage, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {?proto.NumberedEventMessage|undefined} value */
|
|
|
|
proto.EventMessage.prototype.setNumberedEvent = function(value) {
|
|
|
|
jspb.Message.setOneofWrapperField(this, 2, proto.EventMessage.oneofGroups_[0], value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
proto.EventMessage.prototype.clearNumberedEvent = function() {
|
|
|
|
this.setNumberedEvent(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {!boolean}
|
|
|
|
*/
|
|
|
|
proto.EventMessage.prototype.hasNumberedEvent = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.NamedEventMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NamedEventMessage.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.NamedEventMessage, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.NamedEventMessage.displayName = 'proto.NamedEventMessage';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.NamedEventMessage.repeatedFields_ = [3];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.NamedEventMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NamedEventMessage.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.NamedEventMessage} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.NamedEventMessage.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
module: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
event: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 3)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.NamedEventMessage}
|
|
|
|
*/
|
|
|
|
proto.NamedEventMessage.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.NamedEventMessage;
|
|
|
|
return proto.NamedEventMessage.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.NamedEventMessage} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.NamedEventMessage}
|
|
|
|
*/
|
|
|
|
proto.NamedEventMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {!proto.Module} */ (reader.readEnum());
|
|
|
|
msg.setModule(value);
|
|
|
|
break;
|
2019-01-11 19:33:44 +00:00
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-03-26 18:01:25 +00:00
|
|
|
msg.setEvent(value);
|
2019-01-11 19:33:44 +00:00
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-02-19 16:17:03 +00:00
|
|
|
msg.addArgs(value);
|
2019-01-11 19:33:44 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.serializeBinary = function() {
|
2019-01-11 19:33:44 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.serializeBinaryToWriter(this, writer);
|
2019-01-11 19:33:44 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-19 16:17:03 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NamedEventMessage} message
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.serializeBinaryToWriter = function(message, writer) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f = undefined;
|
2019-03-26 18:01:25 +00:00
|
|
|
f = message.getModule();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
2019-01-11 19:33:44 +00:00
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-03-26 18:01:25 +00:00
|
|
|
f = message.getEvent();
|
2019-01-11 19:33:44 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getArgsList();
|
2019-01-11 19:33:44 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-03-26 18:01:25 +00:00
|
|
|
* optional Module module = 1;
|
|
|
|
* @return {!proto.Module}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.getModule = function() {
|
|
|
|
return /** @type {!proto.Module} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-26 18:01:25 +00:00
|
|
|
/** @param {!proto.Module} value */
|
|
|
|
proto.NamedEventMessage.prototype.setModule = function(value) {
|
|
|
|
jspb.Message.setProto3EnumField(this, 1, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-03-26 18:01:25 +00:00
|
|
|
* optional string event = 2;
|
2019-01-11 19:33:44 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.getEvent = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {string} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.setEvent = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 3;
|
2019-02-19 16:17:03 +00:00
|
|
|
* @return {!Array<string>}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.getArgsList = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {!Array<string>} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.setArgsList = function(value) {
|
2019-01-11 19:33:44 +00:00
|
|
|
jspb.Message.setField(this, 3, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.addArgs = function(value, opt_index) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NamedEventMessage.prototype.clearArgsList = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
this.setArgsList([]);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-01-30 00:48:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.NumberedEventMessage.repeatedFields_, null);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.inherits(proto.NumberedEventMessage, jspb.Message);
|
2019-01-30 00:48:02 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.displayName = 'proto.NumberedEventMessage';
|
2019-01-30 00:48:02 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.repeatedFields_ = [3];
|
2019-01-30 00:48:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.NumberedEventMessage.toObject(opt_includeInstance, this);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NumberedEventMessage} msg The msg instance to transform.
|
2019-01-30 00:48:02 +00:00
|
|
|
* @return {!Object}
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-30 00:48:02 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.toObject = function(includeInstance, msg) {
|
2019-01-30 00:48:02 +00:00
|
|
|
var f, obj = {
|
2019-03-26 18:01:25 +00:00
|
|
|
proxyId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2019-02-19 16:17:03 +00:00
|
|
|
event: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
argsList: jspb.Message.getRepeatedField(msg, 3)
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.NumberedEventMessage}
|
2019-01-30 00:48:02 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.deserializeBinary = function(bytes) {
|
2019-01-30 00:48:02 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-03-26 18:01:25 +00:00
|
|
|
var msg = new proto.NumberedEventMessage;
|
|
|
|
return proto.NumberedEventMessage.deserializeBinaryFromReader(msg, reader);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NumberedEventMessage} msg The message object to deserialize into.
|
2019-01-30 00:48:02 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.NumberedEventMessage}
|
2019-01-30 00:48:02 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.deserializeBinaryFromReader = function(msg, reader) {
|
2019-01-30 00:48:02 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
2019-03-26 18:01:25 +00:00
|
|
|
msg.setProxyId(value);
|
2019-01-30 00:48:02 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setEvent(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-02-19 16:17:03 +00:00
|
|
|
msg.addArgs(value);
|
2019-01-30 00:48:02 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.serializeBinary = function() {
|
2019-01-30 00:48:02 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.serializeBinaryToWriter(this, writer);
|
2019-01-30 00:48:02 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-19 16:17:03 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.NumberedEventMessage} message
|
2019-01-30 00:48:02 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-30 00:48:02 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.serializeBinaryToWriter = function(message, writer) {
|
2019-01-30 00:48:02 +00:00
|
|
|
var f = undefined;
|
2019-03-26 18:01:25 +00:00
|
|
|
f = message.getProxyId();
|
2019-01-30 00:48:02 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getEvent();
|
2019-01-30 00:48:02 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getArgsList();
|
2019-01-30 00:48:02 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-03-26 18:01:25 +00:00
|
|
|
* optional uint64 proxy_id = 1;
|
2019-01-30 00:48:02 +00:00
|
|
|
* @return {number}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.getProxyId = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {number} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.setProxyId = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string event = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.getEvent = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {string} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.setEvent = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string args = 3;
|
2019-02-19 16:17:03 +00:00
|
|
|
* @return {!Array<string>}
|
2019-01-30 00:48:02 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.getArgsList = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {!Array<string>} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.setArgsList = function(value) {
|
2019-01-30 00:48:02 +00:00
|
|
|
jspb.Message.setField(this, 3, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/**
|
|
|
|
* @param {!string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.addArgs = function(value, opt_index) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.NumberedEventMessage.prototype.clearArgsList = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
this.setArgsList([]);
|
2019-01-30 00:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-01-11 19:33:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage = function(opt_data) {
|
2019-01-11 19:33:44 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.inherits(proto.FailMessage, jspb.Message);
|
2019-01-11 19:33:44 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.displayName = 'proto.FailMessage';
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.FailMessage.toObject(opt_includeInstance, this);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.FailMessage} msg The msg instance to transform.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @return {!Object}
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.toObject = function(includeInstance, msg) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f, obj = {
|
2019-02-19 16:17:03 +00:00
|
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2019-02-26 21:46:05 +00:00
|
|
|
response: jspb.Message.getFieldWithDefault(msg, 2, "")
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.FailMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.deserializeBinary = function(bytes) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-03-26 18:01:25 +00:00
|
|
|
var msg = new proto.FailMessage;
|
|
|
|
return proto.FailMessage.deserializeBinaryFromReader(msg, reader);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.FailMessage} msg The message object to deserialize into.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.FailMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.deserializeBinaryFromReader = function(msg, reader) {
|
2019-01-11 19:33:44 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setId(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-02-26 21:46:05 +00:00
|
|
|
msg.setResponse(value);
|
2019-01-11 19:33:44 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.serializeBinary = function() {
|
2019-01-11 19:33:44 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.serializeBinaryToWriter(this, writer);
|
2019-01-11 19:33:44 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-19 16:17:03 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.FailMessage} message
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.serializeBinaryToWriter = function(message, writer) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f = undefined;
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getId();
|
2019-01-11 19:33:44 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-02-26 21:46:05 +00:00
|
|
|
f = message.getResponse();
|
2019-01-11 19:33:44 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
2019-02-26 21:46:05 +00:00
|
|
|
2,
|
2019-01-11 19:33:44 +00:00
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 id = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.getId = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {number} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.setId = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-26 21:46:05 +00:00
|
|
|
* optional string response = 2;
|
2019-01-11 19:33:44 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.getResponse = function() {
|
2019-02-26 21:46:05 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {string} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.FailMessage.prototype.setResponse = function(value) {
|
2019-02-26 21:46:05 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage = function(opt_data) {
|
2019-01-11 19:33:44 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2019-03-26 18:01:25 +00:00
|
|
|
goog.inherits(proto.SuccessMessage, jspb.Message);
|
2019-01-11 19:33:44 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.displayName = 'proto.SuccessMessage';
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.SuccessMessage.toObject(opt_includeInstance, this);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.SuccessMessage} msg The msg instance to transform.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @return {!Object}
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.toObject = function(includeInstance, msg) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f, obj = {
|
2019-02-19 16:17:03 +00:00
|
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
response: jspb.Message.getFieldWithDefault(msg, 2, "")
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.SuccessMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.deserializeBinary = function(bytes) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-03-26 18:01:25 +00:00
|
|
|
var msg = new proto.SuccessMessage;
|
|
|
|
return proto.SuccessMessage.deserializeBinaryFromReader(msg, reader);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.SuccessMessage} msg The message object to deserialize into.
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @return {!proto.SuccessMessage}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.deserializeBinaryFromReader = function(msg, reader) {
|
2019-01-11 19:33:44 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
|
|
msg.setId(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
2019-02-19 16:17:03 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-01-11 19:33:44 +00:00
|
|
|
msg.setResponse(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.serializeBinary = function() {
|
2019-01-11 19:33:44 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.serializeBinaryToWriter(this, writer);
|
2019-01-11 19:33:44 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-19 16:17:03 +00:00
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-03-26 18:01:25 +00:00
|
|
|
* @param {!proto.SuccessMessage} message
|
2019-01-11 19:33:44 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
2019-02-19 16:17:03 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.serializeBinaryToWriter = function(message, writer) {
|
2019-01-11 19:33:44 +00:00
|
|
|
var f = undefined;
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getId();
|
2019-01-11 19:33:44 +00:00
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeUint64(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-02-19 16:17:03 +00:00
|
|
|
f = message.getResponse();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
2019-01-11 19:33:44 +00:00
|
|
|
2,
|
2019-02-19 16:17:03 +00:00
|
|
|
f
|
2019-01-11 19:33:44 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional uint64 id = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.getId = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {number} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.setId = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-19 16:17:03 +00:00
|
|
|
* optional string response = 2;
|
|
|
|
* @return {string}
|
2019-01-11 19:33:44 +00:00
|
|
|
*/
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.getResponse = function() {
|
2019-02-19 16:17:03 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-19 16:17:03 +00:00
|
|
|
/** @param {string} value */
|
2019-03-26 18:01:25 +00:00
|
|
|
proto.SuccessMessage.prototype.setResponse = function(value) {
|
2019-02-19 16:17:03 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
2019-01-11 19:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-05 03:26:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.Ping = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.Ping, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.Ping.displayName = 'proto.Ping';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.Ping.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.Ping.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.Ping} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.Ping.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.Ping}
|
|
|
|
*/
|
|
|
|
proto.Ping.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.Ping;
|
|
|
|
return proto.Ping.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.Ping} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.Ping}
|
|
|
|
*/
|
|
|
|
proto.Ping.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.Ping.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.Ping.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.Ping} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.Ping.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.Pong = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.Pong, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
proto.Pong.displayName = 'proto.Pong';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.Pong.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.Pong.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.Pong} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.Pong.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.Pong}
|
|
|
|
*/
|
|
|
|
proto.Pong.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.Pong;
|
|
|
|
return proto.Pong.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.Pong} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.Pong}
|
|
|
|
*/
|
|
|
|
proto.Pong.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.Pong.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.Pong.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.Pong} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.Pong.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-26 18:01:25 +00:00
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
proto.Module = {
|
|
|
|
CHILDPROCESS: 0,
|
|
|
|
FS: 1,
|
|
|
|
NET: 2,
|
|
|
|
NODEPTY: 3,
|
|
|
|
SPDLOG: 4,
|
|
|
|
TRASH: 5
|
|
|
|
};
|
|
|
|
|
2019-01-11 19:33:44 +00:00
|
|
|
goog.object.extend(exports, proto);
|