mirror of
https://github.com/metrico/qryn.git
synced 2025-03-14 10:07:18 +00:00
2666 lines
75 KiB
JavaScript
2666 lines
75 KiB
JavaScript
// source: proto/profile.proto
|
|
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {missingRequire} reports error on implicit type usages.
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
var jspb = require('google-protobuf');
|
|
var goog = jspb;
|
|
var global =
|
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
(typeof window !== 'undefined' && window) ||
|
|
(typeof global !== 'undefined' && global) ||
|
|
(typeof self !== 'undefined' && self) ||
|
|
(function () { return this; }).call(null) ||
|
|
Function('return this')();
|
|
|
|
goog.exportSymbol('proto.perftools.profiles.Function', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Label', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Line', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Location', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Mapping', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Profile', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.Sample', null, global);
|
|
goog.exportSymbol('proto.perftools.profiles.ValueType', null, global);
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.perftools.profiles.Profile = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.perftools.profiles.Profile.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Profile, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Profile.displayName = 'proto.perftools.profiles.Profile';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.ValueType = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.ValueType, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.ValueType.displayName = 'proto.perftools.profiles.ValueType';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.Sample = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.perftools.profiles.Sample.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Sample, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Sample.displayName = 'proto.perftools.profiles.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.perftools.profiles.Label = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Label, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Label.displayName = 'proto.perftools.profiles.Label';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.Mapping = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Mapping, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Mapping.displayName = 'proto.perftools.profiles.Mapping';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.Location = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.perftools.profiles.Location.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Location, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Location.displayName = 'proto.perftools.profiles.Location';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.Line = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Line, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Line.displayName = 'proto.perftools.profiles.Line';
|
|
}
|
|
/**
|
|
* 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.perftools.profiles.Function = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.perftools.profiles.Function, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.perftools.profiles.Function.displayName = 'proto.perftools.profiles.Function';
|
|
}
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.perftools.profiles.Profile.repeatedFields_ = [1,2,3,4,5,6,13];
|
|
|
|
|
|
|
|
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.perftools.profiles.Profile.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Profile.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.perftools.profiles.Profile} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Profile.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
sampleTypeList: jspb.Message.toObjectList(msg.getSampleTypeList(),
|
|
proto.perftools.profiles.ValueType.toObject, includeInstance),
|
|
sampleList: jspb.Message.toObjectList(msg.getSampleList(),
|
|
proto.perftools.profiles.Sample.toObject, includeInstance),
|
|
mappingList: jspb.Message.toObjectList(msg.getMappingList(),
|
|
proto.perftools.profiles.Mapping.toObject, includeInstance),
|
|
locationList: jspb.Message.toObjectList(msg.getLocationList(),
|
|
proto.perftools.profiles.Location.toObject, includeInstance),
|
|
functionList: jspb.Message.toObjectList(msg.getFunctionList(),
|
|
proto.perftools.profiles.Function.toObject, includeInstance),
|
|
stringTableList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
dropFrames: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
keepFrames: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
timeNanos: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
durationNanos: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
periodType: (f = msg.getPeriodType()) && proto.perftools.profiles.ValueType.toObject(includeInstance, f),
|
|
period: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
commentList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
|
|
defaultSampleType: jspb.Message.getFieldWithDefault(msg, 14, 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.perftools.profiles.Profile}
|
|
*/
|
|
proto.perftools.profiles.Profile.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Profile;
|
|
return proto.perftools.profiles.Profile.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Profile} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Profile}
|
|
*/
|
|
proto.perftools.profiles.Profile.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new proto.perftools.profiles.ValueType;
|
|
reader.readMessage(value,proto.perftools.profiles.ValueType.deserializeBinaryFromReader);
|
|
msg.addSampleType(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.perftools.profiles.Sample;
|
|
reader.readMessage(value,proto.perftools.profiles.Sample.deserializeBinaryFromReader);
|
|
msg.addSample(value);
|
|
break;
|
|
case 3:
|
|
var value = new proto.perftools.profiles.Mapping;
|
|
reader.readMessage(value,proto.perftools.profiles.Mapping.deserializeBinaryFromReader);
|
|
msg.addMapping(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.perftools.profiles.Location;
|
|
reader.readMessage(value,proto.perftools.profiles.Location.deserializeBinaryFromReader);
|
|
msg.addLocation(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.perftools.profiles.Function;
|
|
reader.readMessage(value,proto.perftools.profiles.Function.deserializeBinaryFromReader);
|
|
msg.addFunction(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addStringTable(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setDropFrames(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setKeepFrames(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setTimeNanos(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setDurationNanos(value);
|
|
break;
|
|
case 11:
|
|
var value = new proto.perftools.profiles.ValueType;
|
|
reader.readMessage(value,proto.perftools.profiles.ValueType.deserializeBinaryFromReader);
|
|
msg.setPeriodType(value);
|
|
break;
|
|
case 12:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setPeriod(value);
|
|
break;
|
|
case 13:
|
|
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
|
|
for (var i = 0; i < values.length; i++) {
|
|
msg.addComment(values[i]);
|
|
}
|
|
break;
|
|
case 14:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setDefaultSampleType(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Profile.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Profile} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Profile.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getSampleTypeList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
1,
|
|
f,
|
|
proto.perftools.profiles.ValueType.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSampleList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
proto.perftools.profiles.Sample.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getMappingList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
proto.perftools.profiles.Mapping.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getLocationList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.perftools.profiles.Location.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getFunctionList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
5,
|
|
f,
|
|
proto.perftools.profiles.Function.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getStringTableList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropFrames();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getKeepFrames();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTimeNanos();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDurationNanos();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPeriodType();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
11,
|
|
f,
|
|
proto.perftools.profiles.ValueType.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getPeriod();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
12,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCommentList();
|
|
if (f.length > 0) {
|
|
writer.writePackedInt64(
|
|
13,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDefaultSampleType();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
14,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated ValueType sample_type = 1;
|
|
* @return {!Array<!proto.perftools.profiles.ValueType>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getSampleTypeList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.ValueType>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.ValueType, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.ValueType>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setSampleTypeList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.ValueType=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.ValueType}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addSampleType = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.perftools.profiles.ValueType, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearSampleTypeList = function() {
|
|
return this.setSampleTypeList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Sample sample = 2;
|
|
* @return {!Array<!proto.perftools.profiles.Sample>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getSampleList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Sample>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Sample, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Sample>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setSampleList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Sample=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Sample}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addSample = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.perftools.profiles.Sample, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearSampleList = function() {
|
|
return this.setSampleList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Mapping mapping = 3;
|
|
* @return {!Array<!proto.perftools.profiles.Mapping>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getMappingList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Mapping>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Mapping, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Mapping>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setMappingList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Mapping=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Mapping}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addMapping = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.perftools.profiles.Mapping, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearMappingList = function() {
|
|
return this.setMappingList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Location location = 4;
|
|
* @return {!Array<!proto.perftools.profiles.Location>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getLocationList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Location>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Location, 4));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Location>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setLocationList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Location=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Location}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addLocation = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.perftools.profiles.Location, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearLocationList = function() {
|
|
return this.setLocationList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Function function = 5;
|
|
* @return {!Array<!proto.perftools.profiles.Function>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getFunctionList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Function>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Function, 5));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Function>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setFunctionList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Function=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Function}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addFunction = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.perftools.profiles.Function, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearFunctionList = function() {
|
|
return this.setFunctionList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string string_table = 6;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getStringTableList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<string>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setStringTableList = function(value) {
|
|
return jspb.Message.setField(this, 6, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addStringTable = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearStringTableList = function() {
|
|
return this.setStringTableList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 drop_frames = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getDropFrames = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setDropFrames = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 keep_frames = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getKeepFrames = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setKeepFrames = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 time_nanos = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getTimeNanos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setTimeNanos = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 duration_nanos = 10;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getDurationNanos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setDurationNanos = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 10, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional ValueType period_type = 11;
|
|
* @return {?proto.perftools.profiles.ValueType}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getPeriodType = function() {
|
|
return /** @type{?proto.perftools.profiles.ValueType} */ (
|
|
jspb.Message.getWrapperField(this, proto.perftools.profiles.ValueType, 11));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.perftools.profiles.ValueType|undefined} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setPeriodType = function(value) {
|
|
return jspb.Message.setWrapperField(this, 11, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearPeriodType = function() {
|
|
return this.setPeriodType(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.hasPeriodType = function() {
|
|
return jspb.Message.getField(this, 11) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 period = 12;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getPeriod = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setPeriod = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 12, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated int64 comment = 13;
|
|
* @return {!Array<number>}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getCommentList = function() {
|
|
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 13));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<number>} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setCommentList = function(value) {
|
|
return jspb.Message.setField(this, 13, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.addComment = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.clearCommentList = function() {
|
|
return this.setCommentList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 default_sample_type = 14;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.getDefaultSampleType = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Profile} returns this
|
|
*/
|
|
proto.perftools.profiles.Profile.prototype.setDefaultSampleType = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 14, 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.perftools.profiles.ValueType.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.ValueType.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.perftools.profiles.ValueType} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.ValueType.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
unit: 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.perftools.profiles.ValueType}
|
|
*/
|
|
proto.perftools.profiles.ValueType.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.ValueType;
|
|
return proto.perftools.profiles.ValueType.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.ValueType} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.ValueType}
|
|
*/
|
|
proto.perftools.profiles.ValueType.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setType(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setUnit(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.ValueType.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.ValueType.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.ValueType} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.ValueType.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getType();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getUnit();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 type = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.ValueType.prototype.getType = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.ValueType} returns this
|
|
*/
|
|
proto.perftools.profiles.ValueType.prototype.setType = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 unit = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.ValueType.prototype.getUnit = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.ValueType} returns this
|
|
*/
|
|
proto.perftools.profiles.ValueType.prototype.setUnit = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.perftools.profiles.Sample.repeatedFields_ = [1,2,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.perftools.profiles.Sample.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.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.perftools.profiles.Sample} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Sample.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
locationIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
valueList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
labelList: jspb.Message.toObjectList(msg.getLabelList(),
|
|
proto.perftools.profiles.Label.toObject, includeInstance)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.perftools.profiles.Sample}
|
|
*/
|
|
proto.perftools.profiles.Sample.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Sample;
|
|
return proto.perftools.profiles.Sample.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Sample} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Sample}
|
|
*/
|
|
proto.perftools.profiles.Sample.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
for (var i = 0; i < values.length; i++) {
|
|
msg.addLocationId(values[i]);
|
|
}
|
|
break;
|
|
case 2:
|
|
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
|
|
for (var i = 0; i < values.length; i++) {
|
|
msg.addValue(values[i]);
|
|
}
|
|
break;
|
|
case 3:
|
|
var value = new proto.perftools.profiles.Label;
|
|
reader.readMessage(value,proto.perftools.profiles.Label.deserializeBinaryFromReader);
|
|
msg.addLabel(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.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.perftools.profiles.Sample} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Sample.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getLocationIdList();
|
|
if (f.length > 0) {
|
|
writer.writePackedUint64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getValueList();
|
|
if (f.length > 0) {
|
|
writer.writePackedInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLabelList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
proto.perftools.profiles.Label.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated uint64 location_id = 1;
|
|
* @return {!Array<number>}
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.getLocationIdList = function() {
|
|
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<number>} value
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.setLocationIdList = function(value) {
|
|
return jspb.Message.setField(this, 1, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.addLocationId = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.clearLocationIdList = function() {
|
|
return this.setLocationIdList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated int64 value = 2;
|
|
* @return {!Array<number>}
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.getValueList = function() {
|
|
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<number>} value
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.setValueList = function(value) {
|
|
return jspb.Message.setField(this, 2, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.addValue = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.clearValueList = function() {
|
|
return this.setValueList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Label label = 3;
|
|
* @return {!Array<!proto.perftools.profiles.Label>}
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.getLabelList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Label>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Label, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Label>} value
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.setLabelList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Label=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Label}
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.addLabel = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.perftools.profiles.Label, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Sample} returns this
|
|
*/
|
|
proto.perftools.profiles.Sample.prototype.clearLabelList = function() {
|
|
return this.setLabelList([]);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.perftools.profiles.Label.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Label.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.perftools.profiles.Label} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Label.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
key: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
str: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
num: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
numUnit: jspb.Message.getFieldWithDefault(msg, 4, 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.perftools.profiles.Label}
|
|
*/
|
|
proto.perftools.profiles.Label.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Label;
|
|
return proto.perftools.profiles.Label.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Label} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Label}
|
|
*/
|
|
proto.perftools.profiles.Label.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setKey(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setStr(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setNum(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setNumUnit(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Label.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Label} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Label.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getKey();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStr();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getNum();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getNumUnit();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 key = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.getKey = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Label} returns this
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.setKey = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 str = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.getStr = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Label} returns this
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.setStr = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 num = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.getNum = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Label} returns this
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.setNum = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 num_unit = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.getNumUnit = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Label} returns this
|
|
*/
|
|
proto.perftools.profiles.Label.prototype.setNumUnit = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, 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.perftools.profiles.Mapping.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Mapping.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.perftools.profiles.Mapping} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Mapping.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
memoryStart: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
memoryLimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
fileOffset: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
filename: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
buildId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
hasFunctions: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
hasFilenames: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
hasLineNumbers: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
hasInlineFrames: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.perftools.profiles.Mapping}
|
|
*/
|
|
proto.perftools.profiles.Mapping.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Mapping;
|
|
return proto.perftools.profiles.Mapping.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Mapping} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Mapping}
|
|
*/
|
|
proto.perftools.profiles.Mapping.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.setMemoryStart(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
msg.setMemoryLimit(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
msg.setFileOffset(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setFilename(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setBuildId(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setHasFunctions(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setHasFilenames(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setHasLineNumbers(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setHasInlineFrames(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Mapping.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Mapping} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Mapping.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMemoryStart();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMemoryLimit();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFileOffset();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFilename();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBuildId();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHasFunctions();
|
|
if (f) {
|
|
writer.writeBool(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHasFilenames();
|
|
if (f) {
|
|
writer.writeBool(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHasLineNumbers();
|
|
if (f) {
|
|
writer.writeBool(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHasInlineFrames();
|
|
if (f) {
|
|
writer.writeBool(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 id = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 memory_start = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getMemoryStart = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setMemoryStart = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 memory_limit = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getMemoryLimit = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setMemoryLimit = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 file_offset = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getFileOffset = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setFileOffset = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 filename = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getFilename = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setFilename = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 build_id = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getBuildId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setBuildId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool has_functions = 7;
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getHasFunctions = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setHasFunctions = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool has_filenames = 8;
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getHasFilenames = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setHasFilenames = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool has_line_numbers = 9;
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getHasLineNumbers = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setHasLineNumbers = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool has_inline_frames = 10;
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.getHasInlineFrames = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.perftools.profiles.Mapping} returns this
|
|
*/
|
|
proto.perftools.profiles.Mapping.prototype.setHasInlineFrames = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.perftools.profiles.Location.repeatedFields_ = [4];
|
|
|
|
|
|
|
|
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.perftools.profiles.Location.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Location.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.perftools.profiles.Location} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Location.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
mappingId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
address: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
lineList: jspb.Message.toObjectList(msg.getLineList(),
|
|
proto.perftools.profiles.Line.toObject, includeInstance),
|
|
isFolded: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.perftools.profiles.Location}
|
|
*/
|
|
proto.perftools.profiles.Location.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Location;
|
|
return proto.perftools.profiles.Location.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Location} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Location}
|
|
*/
|
|
proto.perftools.profiles.Location.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.setMappingId(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
msg.setAddress(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.perftools.profiles.Line;
|
|
reader.readMessage(value,proto.perftools.profiles.Line.deserializeBinaryFromReader);
|
|
msg.addLine(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setIsFolded(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Location.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Location} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Location.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMappingId();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAddress();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLineList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.perftools.profiles.Line.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getIsFolded();
|
|
if (f) {
|
|
writer.writeBool(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 id = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.getId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.setId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 mapping_id = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.getMappingId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.setMappingId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 address = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.getAddress = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.setAddress = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Line line = 4;
|
|
* @return {!Array<!proto.perftools.profiles.Line>}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.getLineList = function() {
|
|
return /** @type{!Array<!proto.perftools.profiles.Line>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.perftools.profiles.Line, 4));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.perftools.profiles.Line>} value
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.setLineList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.perftools.profiles.Line=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.perftools.profiles.Line}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.addLine = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.perftools.profiles.Line, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.clearLineList = function() {
|
|
return this.setLineList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool is_folded = 5;
|
|
* @return {boolean}
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.getIsFolded = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.perftools.profiles.Location} returns this
|
|
*/
|
|
proto.perftools.profiles.Location.prototype.setIsFolded = function(value) {
|
|
return jspb.Message.setProto3BooleanField(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.perftools.profiles.Line.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Line.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.perftools.profiles.Line} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Line.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
functionId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
line: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
column: 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.perftools.profiles.Line}
|
|
*/
|
|
proto.perftools.profiles.Line.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Line;
|
|
return proto.perftools.profiles.Line.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Line} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Line}
|
|
*/
|
|
proto.perftools.profiles.Line.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.setFunctionId(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setLine(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setColumn(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Line.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Line} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Line.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getFunctionId();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLine();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getColumn();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 function_id = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.getFunctionId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Line} returns this
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.setFunctionId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 line = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.getLine = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Line} returns this
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.setLine = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 column = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.getColumn = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Line} returns this
|
|
*/
|
|
proto.perftools.profiles.Line.prototype.setColumn = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, 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.perftools.profiles.Function.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.perftools.profiles.Function.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.perftools.profiles.Function} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Function.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
name: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
systemName: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
filename: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
startLine: 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.perftools.profiles.Function}
|
|
*/
|
|
proto.perftools.profiles.Function.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.perftools.profiles.Function;
|
|
return proto.perftools.profiles.Function.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.perftools.profiles.Function} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.perftools.profiles.Function}
|
|
*/
|
|
proto.perftools.profiles.Function.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.readInt64());
|
|
msg.setName(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setSystemName(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setFilename(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setStartLine(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.perftools.profiles.Function.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.perftools.profiles.Function} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.perftools.profiles.Function.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f !== 0) {
|
|
writer.writeUint64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getName();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSystemName();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFilename();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStartLine();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional uint64 id = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.getId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Function} returns this
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.setId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 name = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.getName = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Function} returns this
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.setName = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 system_name = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.getSystemName = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Function} returns this
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.setSystemName = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 filename = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.getFilename = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Function} returns this
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.setFilename = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 start_line = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.getStartLine = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.perftools.profiles.Function} returns this
|
|
*/
|
|
proto.perftools.profiles.Function.prototype.setStartLine = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto.perftools.profiles);
|