Created
April 25, 2020 00:32
-
-
Save mstange/2e31934083ba04bed8f2d88596a22a57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: simplerperf_report.proto | |
/** | |
* @fileoverview | |
* @enhanceable | |
* @suppress {messageConventions} JS Compiler reports an error if a variable or | |
* field starts with 'MSG_' and isn't a translatable message. | |
* @public | |
*/ | |
// GENERATED CODE -- DO NOT EDIT! | |
var jspb = require('google-protobuf'); | |
var goog = jspb; | |
var proto = {}; | |
goog.exportSymbol('simpleperf_report_proto.File', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.LostSituation', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.MetaInfo', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.Record', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.Record.RecordDataCase', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.Sample', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.Sample.CallChainEntry', null, proto); | |
goog.exportSymbol('simpleperf_report_proto.Thread', null, proto); | |
/** | |
* 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.simpleperf_report_proto.Sample = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, proto.simpleperf_report_proto.Sample.repeatedFields_, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.Sample, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.Sample.displayName = 'proto.simpleperf_report_proto.Sample'; | |
} | |
/** | |
* 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.simpleperf_report_proto.Sample.CallChainEntry = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.Sample.CallChainEntry, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.displayName = 'proto.simpleperf_report_proto.Sample.CallChainEntry'; | |
} | |
/** | |
* 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.simpleperf_report_proto.LostSituation = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.LostSituation, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.LostSituation.displayName = 'proto.simpleperf_report_proto.LostSituation'; | |
} | |
/** | |
* 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.simpleperf_report_proto.File = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, proto.simpleperf_report_proto.File.repeatedFields_, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.File, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.File.displayName = 'proto.simpleperf_report_proto.File'; | |
} | |
/** | |
* 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.simpleperf_report_proto.MetaInfo = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, proto.simpleperf_report_proto.MetaInfo.repeatedFields_, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.MetaInfo, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.displayName = 'proto.simpleperf_report_proto.MetaInfo'; | |
} | |
/** | |
* 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.simpleperf_report_proto.Thread = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.Thread, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.Thread.displayName = 'proto.simpleperf_report_proto.Thread'; | |
} | |
/** | |
* 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.simpleperf_report_proto.Record = function(opt_data) { | |
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.simpleperf_report_proto.Record.oneofGroups_); | |
}; | |
goog.inherits(proto.simpleperf_report_proto.Record, jspb.Message); | |
if (goog.DEBUG && !COMPILED) { | |
/** | |
* @public | |
* @override | |
*/ | |
proto.simpleperf_report_proto.Record.displayName = 'proto.simpleperf_report_proto.Record'; | |
} | |
/** | |
* List of repeated fields within this message type. | |
* @private {!Array<number>} | |
* @const | |
*/ | |
proto.simpleperf_report_proto.Sample.repeatedFields_ = [3]; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.Sample.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.Sample} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Sample.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
time: jspb.Message.getFieldWithDefault(msg, 1, 0), | |
threadId: jspb.Message.getFieldWithDefault(msg, 2, 0), | |
callchainList: jspb.Message.toObjectList(msg.getCallchainList(), | |
proto.simpleperf_report_proto.Sample.CallChainEntry.toObject, includeInstance), | |
eventCount: jspb.Message.getFieldWithDefault(msg, 4, 0), | |
eventTypeId: jspb.Message.getFieldWithDefault(msg, 5, 0) | |
}; | |
if (includeInstance) { | |
obj.$jspbMessageInstance = msg; | |
} | |
return obj; | |
}; | |
} | |
/** | |
* Deserializes binary data (in protobuf wire format). | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.simpleperf_report_proto.Sample} | |
*/ | |
proto.simpleperf_report_proto.Sample.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.Sample; | |
return proto.simpleperf_report_proto.Sample.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.Sample} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.Sample} | |
*/ | |
proto.simpleperf_report_proto.Sample.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.setTime(value); | |
break; | |
case 2: | |
var value = /** @type {number} */ (reader.readInt32()); | |
msg.setThreadId(value); | |
break; | |
case 3: | |
var value = new proto.simpleperf_report_proto.Sample.CallChainEntry; | |
reader.readMessage(value,proto.simpleperf_report_proto.Sample.CallChainEntry.deserializeBinaryFromReader); | |
msg.addCallchain(value); | |
break; | |
case 4: | |
var value = /** @type {number} */ (reader.readUint64()); | |
msg.setEventCount(value); | |
break; | |
case 5: | |
var value = /** @type {number} */ (reader.readUint32()); | |
msg.setEventTypeId(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.Sample.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.Sample} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Sample.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getTime(); | |
if (f !== 0) { | |
writer.writeUint64( | |
1, | |
f | |
); | |
} | |
f = message.getThreadId(); | |
if (f !== 0) { | |
writer.writeInt32( | |
2, | |
f | |
); | |
} | |
f = message.getCallchainList(); | |
if (f.length > 0) { | |
writer.writeRepeatedMessage( | |
3, | |
f, | |
proto.simpleperf_report_proto.Sample.CallChainEntry.serializeBinaryToWriter | |
); | |
} | |
f = message.getEventCount(); | |
if (f !== 0) { | |
writer.writeUint64( | |
4, | |
f | |
); | |
} | |
f = message.getEventTypeId(); | |
if (f !== 0) { | |
writer.writeUint32( | |
5, | |
f | |
); | |
} | |
}; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.Sample.CallChainEntry.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.Sample.CallChainEntry} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
vaddrInFile: jspb.Message.getFieldWithDefault(msg, 1, 0), | |
fileId: jspb.Message.getFieldWithDefault(msg, 2, 0), | |
symbolId: jspb.Message.getFieldWithDefault(msg, 3, 0) | |
}; | |
if (includeInstance) { | |
obj.$jspbMessageInstance = msg; | |
} | |
return obj; | |
}; | |
} | |
/** | |
* Deserializes binary data (in protobuf wire format). | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.Sample.CallChainEntry; | |
return proto.simpleperf_report_proto.Sample.CallChainEntry.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.Sample.CallChainEntry} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.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.setVaddrInFile(value); | |
break; | |
case 2: | |
var value = /** @type {number} */ (reader.readUint32()); | |
msg.setFileId(value); | |
break; | |
case 3: | |
var value = /** @type {number} */ (reader.readInt32()); | |
msg.setSymbolId(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.Sample.CallChainEntry.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.Sample.CallChainEntry} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getVaddrInFile(); | |
if (f !== 0) { | |
writer.writeUint64( | |
1, | |
f | |
); | |
} | |
f = message.getFileId(); | |
if (f !== 0) { | |
writer.writeUint32( | |
2, | |
f | |
); | |
} | |
f = message.getSymbolId(); | |
if (f !== 0) { | |
writer.writeInt32( | |
3, | |
f | |
); | |
} | |
}; | |
/** | |
* optional uint64 vaddr_in_file = 1; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.getVaddrInFile = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.setVaddrInFile = function(value) { | |
return jspb.Message.setProto3IntField(this, 1, value); | |
}; | |
/** | |
* optional uint32 file_id = 2; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.getFileId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.setFileId = function(value) { | |
return jspb.Message.setProto3IntField(this, 2, value); | |
}; | |
/** | |
* optional int32 symbol_id = 3; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.getSymbolId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.CallChainEntry.prototype.setSymbolId = function(value) { | |
return jspb.Message.setProto3IntField(this, 3, value); | |
}; | |
/** | |
* optional uint64 time = 1; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.getTime = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.setTime = function(value) { | |
return jspb.Message.setProto3IntField(this, 1, value); | |
}; | |
/** | |
* optional int32 thread_id = 2; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.getThreadId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.setThreadId = function(value) { | |
return jspb.Message.setProto3IntField(this, 2, value); | |
}; | |
/** | |
* repeated CallChainEntry callchain = 3; | |
* @return {!Array<!proto.simpleperf_report_proto.Sample.CallChainEntry>} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.getCallchainList = function() { | |
return /** @type{!Array<!proto.simpleperf_report_proto.Sample.CallChainEntry>} */ ( | |
jspb.Message.getRepeatedWrapperField(this, proto.simpleperf_report_proto.Sample.CallChainEntry, 3)); | |
}; | |
/** | |
* @param {!Array<!proto.simpleperf_report_proto.Sample.CallChainEntry>} value | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.setCallchainList = function(value) { | |
return jspb.Message.setRepeatedWrapperField(this, 3, value); | |
}; | |
/** | |
* @param {!proto.simpleperf_report_proto.Sample.CallChainEntry=} opt_value | |
* @param {number=} opt_index | |
* @return {!proto.simpleperf_report_proto.Sample.CallChainEntry} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.addCallchain = function(opt_value, opt_index) { | |
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.simpleperf_report_proto.Sample.CallChainEntry, opt_index); | |
}; | |
/** | |
* Clears the list making it empty but non-null. | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.clearCallchainList = function() { | |
return this.setCallchainList([]); | |
}; | |
/** | |
* optional uint64 event_count = 4; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.getEventCount = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.setEventCount = function(value) { | |
return jspb.Message.setProto3IntField(this, 4, value); | |
}; | |
/** | |
* optional uint32 event_type_id = 5; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.getEventTypeId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Sample} returns this | |
*/ | |
proto.simpleperf_report_proto.Sample.prototype.setEventTypeId = function(value) { | |
return jspb.Message.setProto3IntField(this, 5, value); | |
}; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.LostSituation.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.LostSituation} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.LostSituation.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
sampleCount: jspb.Message.getFieldWithDefault(msg, 1, 0), | |
lostCount: jspb.Message.getFieldWithDefault(msg, 2, 0) | |
}; | |
if (includeInstance) { | |
obj.$jspbMessageInstance = msg; | |
} | |
return obj; | |
}; | |
} | |
/** | |
* Deserializes binary data (in protobuf wire format). | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.simpleperf_report_proto.LostSituation} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.LostSituation; | |
return proto.simpleperf_report_proto.LostSituation.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.LostSituation} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.LostSituation} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.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.setSampleCount(value); | |
break; | |
case 2: | |
var value = /** @type {number} */ (reader.readUint64()); | |
msg.setLostCount(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.LostSituation.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.LostSituation} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.LostSituation.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getSampleCount(); | |
if (f !== 0) { | |
writer.writeUint64( | |
1, | |
f | |
); | |
} | |
f = message.getLostCount(); | |
if (f !== 0) { | |
writer.writeUint64( | |
2, | |
f | |
); | |
} | |
}; | |
/** | |
* optional uint64 sample_count = 1; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.getSampleCount = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.LostSituation} returns this | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.setSampleCount = function(value) { | |
return jspb.Message.setProto3IntField(this, 1, value); | |
}; | |
/** | |
* optional uint64 lost_count = 2; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.getLostCount = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.LostSituation} returns this | |
*/ | |
proto.simpleperf_report_proto.LostSituation.prototype.setLostCount = function(value) { | |
return jspb.Message.setProto3IntField(this, 2, value); | |
}; | |
/** | |
* List of repeated fields within this message type. | |
* @private {!Array<number>} | |
* @const | |
*/ | |
proto.simpleperf_report_proto.File.repeatedFields_ = [3]; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.File.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.File.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.File} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.File.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
id: jspb.Message.getFieldWithDefault(msg, 1, 0), | |
path: jspb.Message.getFieldWithDefault(msg, 2, ""), | |
symbolList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : 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.simpleperf_report_proto.File} | |
*/ | |
proto.simpleperf_report_proto.File.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.File; | |
return proto.simpleperf_report_proto.File.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.File} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.File} | |
*/ | |
proto.simpleperf_report_proto.File.deserializeBinaryFromReader = function(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
} | |
var field = reader.getFieldNumber(); | |
switch (field) { | |
case 1: | |
var value = /** @type {number} */ (reader.readUint32()); | |
msg.setId(value); | |
break; | |
case 2: | |
var value = /** @type {string} */ (reader.readString()); | |
msg.setPath(value); | |
break; | |
case 3: | |
var value = /** @type {string} */ (reader.readString()); | |
msg.addSymbol(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.File.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.File.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.File} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.File.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getId(); | |
if (f !== 0) { | |
writer.writeUint32( | |
1, | |
f | |
); | |
} | |
f = message.getPath(); | |
if (f.length > 0) { | |
writer.writeString( | |
2, | |
f | |
); | |
} | |
f = message.getSymbolList(); | |
if (f.length > 0) { | |
writer.writeRepeatedString( | |
3, | |
f | |
); | |
} | |
}; | |
/** | |
* optional uint32 id = 1; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.File.prototype.getId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.File} returns this | |
*/ | |
proto.simpleperf_report_proto.File.prototype.setId = function(value) { | |
return jspb.Message.setProto3IntField(this, 1, value); | |
}; | |
/** | |
* optional string path = 2; | |
* @return {string} | |
*/ | |
proto.simpleperf_report_proto.File.prototype.getPath = function() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | |
}; | |
/** | |
* @param {string} value | |
* @return {!proto.simpleperf_report_proto.File} returns this | |
*/ | |
proto.simpleperf_report_proto.File.prototype.setPath = function(value) { | |
return jspb.Message.setProto3StringField(this, 2, value); | |
}; | |
/** | |
* repeated string symbol = 3; | |
* @return {!Array<string>} | |
*/ | |
proto.simpleperf_report_proto.File.prototype.getSymbolList = function() { | |
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); | |
}; | |
/** | |
* @param {!Array<string>} value | |
* @return {!proto.simpleperf_report_proto.File} returns this | |
*/ | |
proto.simpleperf_report_proto.File.prototype.setSymbolList = function(value) { | |
return jspb.Message.setField(this, 3, value || []); | |
}; | |
/** | |
* @param {string} value | |
* @param {number=} opt_index | |
* @return {!proto.simpleperf_report_proto.File} returns this | |
*/ | |
proto.simpleperf_report_proto.File.prototype.addSymbol = function(value, opt_index) { | |
return jspb.Message.addToRepeatedField(this, 3, value, opt_index); | |
}; | |
/** | |
* Clears the list making it empty but non-null. | |
* @return {!proto.simpleperf_report_proto.File} returns this | |
*/ | |
proto.simpleperf_report_proto.File.prototype.clearSymbolList = function() { | |
return this.setSymbolList([]); | |
}; | |
/** | |
* List of repeated fields within this message type. | |
* @private {!Array<number>} | |
* @const | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.repeatedFields_ = [1]; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.MetaInfo.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.MetaInfo} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
eventTypeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, | |
appPackageName: jspb.Message.getFieldWithDefault(msg, 2, "") | |
}; | |
if (includeInstance) { | |
obj.$jspbMessageInstance = msg; | |
} | |
return obj; | |
}; | |
} | |
/** | |
* Deserializes binary data (in protobuf wire format). | |
* @param {jspb.ByteSource} bytes The bytes to deserialize. | |
* @return {!proto.simpleperf_report_proto.MetaInfo} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.MetaInfo; | |
return proto.simpleperf_report_proto.MetaInfo.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.MetaInfo} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.MetaInfo} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.deserializeBinaryFromReader = function(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
} | |
var field = reader.getFieldNumber(); | |
switch (field) { | |
case 1: | |
var value = /** @type {string} */ (reader.readString()); | |
msg.addEventType(value); | |
break; | |
case 2: | |
var value = /** @type {string} */ (reader.readString()); | |
msg.setAppPackageName(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.MetaInfo.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.MetaInfo} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getEventTypeList(); | |
if (f.length > 0) { | |
writer.writeRepeatedString( | |
1, | |
f | |
); | |
} | |
f = message.getAppPackageName(); | |
if (f.length > 0) { | |
writer.writeString( | |
2, | |
f | |
); | |
} | |
}; | |
/** | |
* repeated string event_type = 1; | |
* @return {!Array<string>} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.getEventTypeList = function() { | |
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); | |
}; | |
/** | |
* @param {!Array<string>} value | |
* @return {!proto.simpleperf_report_proto.MetaInfo} returns this | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.setEventTypeList = function(value) { | |
return jspb.Message.setField(this, 1, value || []); | |
}; | |
/** | |
* @param {string} value | |
* @param {number=} opt_index | |
* @return {!proto.simpleperf_report_proto.MetaInfo} returns this | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.addEventType = function(value, opt_index) { | |
return jspb.Message.addToRepeatedField(this, 1, value, opt_index); | |
}; | |
/** | |
* Clears the list making it empty but non-null. | |
* @return {!proto.simpleperf_report_proto.MetaInfo} returns this | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.clearEventTypeList = function() { | |
return this.setEventTypeList([]); | |
}; | |
/** | |
* optional string app_package_name = 2; | |
* @return {string} | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.getAppPackageName = function() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | |
}; | |
/** | |
* @param {string} value | |
* @return {!proto.simpleperf_report_proto.MetaInfo} returns this | |
*/ | |
proto.simpleperf_report_proto.MetaInfo.prototype.setAppPackageName = function(value) { | |
return jspb.Message.setProto3StringField(this, 2, value); | |
}; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.Thread.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.Thread} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Thread.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
threadId: jspb.Message.getFieldWithDefault(msg, 1, 0), | |
processId: jspb.Message.getFieldWithDefault(msg, 2, 0), | |
threadName: jspb.Message.getFieldWithDefault(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.simpleperf_report_proto.Thread} | |
*/ | |
proto.simpleperf_report_proto.Thread.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.Thread; | |
return proto.simpleperf_report_proto.Thread.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.Thread} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.Thread} | |
*/ | |
proto.simpleperf_report_proto.Thread.deserializeBinaryFromReader = function(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
} | |
var field = reader.getFieldNumber(); | |
switch (field) { | |
case 1: | |
var value = /** @type {number} */ (reader.readInt32()); | |
msg.setThreadId(value); | |
break; | |
case 2: | |
var value = /** @type {number} */ (reader.readInt32()); | |
msg.setProcessId(value); | |
break; | |
case 3: | |
var value = /** @type {string} */ (reader.readString()); | |
msg.setThreadName(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.Thread.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.Thread} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Thread.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getThreadId(); | |
if (f !== 0) { | |
writer.writeInt32( | |
1, | |
f | |
); | |
} | |
f = message.getProcessId(); | |
if (f !== 0) { | |
writer.writeInt32( | |
2, | |
f | |
); | |
} | |
f = message.getThreadName(); | |
if (f.length > 0) { | |
writer.writeString( | |
3, | |
f | |
); | |
} | |
}; | |
/** | |
* optional int32 thread_id = 1; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.getThreadId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Thread} returns this | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.setThreadId = function(value) { | |
return jspb.Message.setProto3IntField(this, 1, value); | |
}; | |
/** | |
* optional int32 process_id = 2; | |
* @return {number} | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.getProcessId = function() { | |
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); | |
}; | |
/** | |
* @param {number} value | |
* @return {!proto.simpleperf_report_proto.Thread} returns this | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.setProcessId = function(value) { | |
return jspb.Message.setProto3IntField(this, 2, value); | |
}; | |
/** | |
* optional string thread_name = 3; | |
* @return {string} | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.getThreadName = function() { | |
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); | |
}; | |
/** | |
* @param {string} value | |
* @return {!proto.simpleperf_report_proto.Thread} returns this | |
*/ | |
proto.simpleperf_report_proto.Thread.prototype.setThreadName = function(value) { | |
return jspb.Message.setProto3StringField(this, 3, value); | |
}; | |
/** | |
* 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.simpleperf_report_proto.Record.oneofGroups_ = [[1,2,3,4,5]]; | |
/** | |
* @enum {number} | |
*/ | |
proto.simpleperf_report_proto.Record.RecordDataCase = { | |
RECORD_DATA_NOT_SET: 0, | |
SAMPLE: 1, | |
LOST: 2, | |
FILE: 3, | |
THREAD: 4, | |
META_INFO: 5 | |
}; | |
/** | |
* @return {proto.simpleperf_report_proto.Record.RecordDataCase} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getRecordDataCase = function() { | |
return /** @type {proto.simpleperf_report_proto.Record.RecordDataCase} */(jspb.Message.computeOneofCase(this, proto.simpleperf_report_proto.Record.oneofGroups_[0])); | |
}; | |
if (jspb.Message.GENERATE_TO_OBJECT) { | |
/** | |
* Creates an object representation of this proto. | |
* Field names that are reserved in JavaScript and will be renamed to pb_name. | |
* Optional fields that are not set will be set to undefined. | |
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | |
* For the list of reserved names please see: | |
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | |
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | |
* JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @return {!Object} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.toObject = function(opt_includeInstance) { | |
return proto.simpleperf_report_proto.Record.toObject(opt_includeInstance, this); | |
}; | |
/** | |
* Static version of the {@see toObject} method. | |
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | |
* the JSPB instance for transitional soy proto support: | |
* http://goto/soy-param-migration | |
* @param {!proto.simpleperf_report_proto.Record} msg The msg instance to transform. | |
* @return {!Object} | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Record.toObject = function(includeInstance, msg) { | |
var f, obj = { | |
sample: (f = msg.getSample()) && proto.simpleperf_report_proto.Sample.toObject(includeInstance, f), | |
lost: (f = msg.getLost()) && proto.simpleperf_report_proto.LostSituation.toObject(includeInstance, f), | |
file: (f = msg.getFile()) && proto.simpleperf_report_proto.File.toObject(includeInstance, f), | |
thread: (f = msg.getThread()) && proto.simpleperf_report_proto.Thread.toObject(includeInstance, f), | |
metaInfo: (f = msg.getMetaInfo()) && proto.simpleperf_report_proto.MetaInfo.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.simpleperf_report_proto.Record} | |
*/ | |
proto.simpleperf_report_proto.Record.deserializeBinary = function(bytes) { | |
var reader = new jspb.BinaryReader(bytes); | |
var msg = new proto.simpleperf_report_proto.Record; | |
return proto.simpleperf_report_proto.Record.deserializeBinaryFromReader(msg, reader); | |
}; | |
/** | |
* Deserializes binary data (in protobuf wire format) from the | |
* given reader into the given message object. | |
* @param {!proto.simpleperf_report_proto.Record} msg The message object to deserialize into. | |
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | |
* @return {!proto.simpleperf_report_proto.Record} | |
*/ | |
proto.simpleperf_report_proto.Record.deserializeBinaryFromReader = function(msg, reader) { | |
while (reader.nextField()) { | |
if (reader.isEndGroup()) { | |
break; | |
} | |
var field = reader.getFieldNumber(); | |
switch (field) { | |
case 1: | |
var value = new proto.simpleperf_report_proto.Sample; | |
reader.readMessage(value,proto.simpleperf_report_proto.Sample.deserializeBinaryFromReader); | |
msg.setSample(value); | |
break; | |
case 2: | |
var value = new proto.simpleperf_report_proto.LostSituation; | |
reader.readMessage(value,proto.simpleperf_report_proto.LostSituation.deserializeBinaryFromReader); | |
msg.setLost(value); | |
break; | |
case 3: | |
var value = new proto.simpleperf_report_proto.File; | |
reader.readMessage(value,proto.simpleperf_report_proto.File.deserializeBinaryFromReader); | |
msg.setFile(value); | |
break; | |
case 4: | |
var value = new proto.simpleperf_report_proto.Thread; | |
reader.readMessage(value,proto.simpleperf_report_proto.Thread.deserializeBinaryFromReader); | |
msg.setThread(value); | |
break; | |
case 5: | |
var value = new proto.simpleperf_report_proto.MetaInfo; | |
reader.readMessage(value,proto.simpleperf_report_proto.MetaInfo.deserializeBinaryFromReader); | |
msg.setMetaInfo(value); | |
break; | |
default: | |
reader.skipField(); | |
break; | |
} | |
} | |
return msg; | |
}; | |
/** | |
* Serializes the message to binary data (in protobuf wire format). | |
* @return {!Uint8Array} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.serializeBinary = function() { | |
var writer = new jspb.BinaryWriter(); | |
proto.simpleperf_report_proto.Record.serializeBinaryToWriter(this, writer); | |
return writer.getResultBuffer(); | |
}; | |
/** | |
* Serializes the given message to binary data (in protobuf wire | |
* format), writing to the given BinaryWriter. | |
* @param {!proto.simpleperf_report_proto.Record} message | |
* @param {!jspb.BinaryWriter} writer | |
* @suppress {unusedLocalVariables} f is only used for nested messages | |
*/ | |
proto.simpleperf_report_proto.Record.serializeBinaryToWriter = function(message, writer) { | |
var f = undefined; | |
f = message.getSample(); | |
if (f != null) { | |
writer.writeMessage( | |
1, | |
f, | |
proto.simpleperf_report_proto.Sample.serializeBinaryToWriter | |
); | |
} | |
f = message.getLost(); | |
if (f != null) { | |
writer.writeMessage( | |
2, | |
f, | |
proto.simpleperf_report_proto.LostSituation.serializeBinaryToWriter | |
); | |
} | |
f = message.getFile(); | |
if (f != null) { | |
writer.writeMessage( | |
3, | |
f, | |
proto.simpleperf_report_proto.File.serializeBinaryToWriter | |
); | |
} | |
f = message.getThread(); | |
if (f != null) { | |
writer.writeMessage( | |
4, | |
f, | |
proto.simpleperf_report_proto.Thread.serializeBinaryToWriter | |
); | |
} | |
f = message.getMetaInfo(); | |
if (f != null) { | |
writer.writeMessage( | |
5, | |
f, | |
proto.simpleperf_report_proto.MetaInfo.serializeBinaryToWriter | |
); | |
} | |
}; | |
/** | |
* optional Sample sample = 1; | |
* @return {?proto.simpleperf_report_proto.Sample} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getSample = function() { | |
return /** @type{?proto.simpleperf_report_proto.Sample} */ ( | |
jspb.Message.getWrapperField(this, proto.simpleperf_report_proto.Sample, 1)); | |
}; | |
/** | |
* @param {?proto.simpleperf_report_proto.Sample|undefined} value | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.setSample = function(value) { | |
return jspb.Message.setOneofWrapperField(this, 1, proto.simpleperf_report_proto.Record.oneofGroups_[0], value); | |
}; | |
/** | |
* Clears the message field making it undefined. | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.clearSample = function() { | |
return this.setSample(undefined); | |
}; | |
/** | |
* Returns whether this field is set. | |
* @return {boolean} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.hasSample = function() { | |
return jspb.Message.getField(this, 1) != null; | |
}; | |
/** | |
* optional LostSituation lost = 2; | |
* @return {?proto.simpleperf_report_proto.LostSituation} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getLost = function() { | |
return /** @type{?proto.simpleperf_report_proto.LostSituation} */ ( | |
jspb.Message.getWrapperField(this, proto.simpleperf_report_proto.LostSituation, 2)); | |
}; | |
/** | |
* @param {?proto.simpleperf_report_proto.LostSituation|undefined} value | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.setLost = function(value) { | |
return jspb.Message.setOneofWrapperField(this, 2, proto.simpleperf_report_proto.Record.oneofGroups_[0], value); | |
}; | |
/** | |
* Clears the message field making it undefined. | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.clearLost = function() { | |
return this.setLost(undefined); | |
}; | |
/** | |
* Returns whether this field is set. | |
* @return {boolean} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.hasLost = function() { | |
return jspb.Message.getField(this, 2) != null; | |
}; | |
/** | |
* optional File file = 3; | |
* @return {?proto.simpleperf_report_proto.File} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getFile = function() { | |
return /** @type{?proto.simpleperf_report_proto.File} */ ( | |
jspb.Message.getWrapperField(this, proto.simpleperf_report_proto.File, 3)); | |
}; | |
/** | |
* @param {?proto.simpleperf_report_proto.File|undefined} value | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.setFile = function(value) { | |
return jspb.Message.setOneofWrapperField(this, 3, proto.simpleperf_report_proto.Record.oneofGroups_[0], value); | |
}; | |
/** | |
* Clears the message field making it undefined. | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.clearFile = function() { | |
return this.setFile(undefined); | |
}; | |
/** | |
* Returns whether this field is set. | |
* @return {boolean} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.hasFile = function() { | |
return jspb.Message.getField(this, 3) != null; | |
}; | |
/** | |
* optional Thread thread = 4; | |
* @return {?proto.simpleperf_report_proto.Thread} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getThread = function() { | |
return /** @type{?proto.simpleperf_report_proto.Thread} */ ( | |
jspb.Message.getWrapperField(this, proto.simpleperf_report_proto.Thread, 4)); | |
}; | |
/** | |
* @param {?proto.simpleperf_report_proto.Thread|undefined} value | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.setThread = function(value) { | |
return jspb.Message.setOneofWrapperField(this, 4, proto.simpleperf_report_proto.Record.oneofGroups_[0], value); | |
}; | |
/** | |
* Clears the message field making it undefined. | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.clearThread = function() { | |
return this.setThread(undefined); | |
}; | |
/** | |
* Returns whether this field is set. | |
* @return {boolean} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.hasThread = function() { | |
return jspb.Message.getField(this, 4) != null; | |
}; | |
/** | |
* optional MetaInfo meta_info = 5; | |
* @return {?proto.simpleperf_report_proto.MetaInfo} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.getMetaInfo = function() { | |
return /** @type{?proto.simpleperf_report_proto.MetaInfo} */ ( | |
jspb.Message.getWrapperField(this, proto.simpleperf_report_proto.MetaInfo, 5)); | |
}; | |
/** | |
* @param {?proto.simpleperf_report_proto.MetaInfo|undefined} value | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.setMetaInfo = function(value) { | |
return jspb.Message.setOneofWrapperField(this, 5, proto.simpleperf_report_proto.Record.oneofGroups_[0], value); | |
}; | |
/** | |
* Clears the message field making it undefined. | |
* @return {!proto.simpleperf_report_proto.Record} returns this | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.clearMetaInfo = function() { | |
return this.setMetaInfo(undefined); | |
}; | |
/** | |
* Returns whether this field is set. | |
* @return {boolean} | |
*/ | |
proto.simpleperf_report_proto.Record.prototype.hasMetaInfo = function() { | |
return jspb.Message.getField(this, 5) != null; | |
}; | |
goog.object.extend(exports, proto); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment