UNPKG

pinpoint-node-agent

Version:
601 lines (521 loc) 16.8 kB
// source: v1/Log.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); goog.exportSymbol('proto.v1.PLogDemand', null, global); goog.exportSymbol('proto.v1.PLogPile', null, global); goog.exportSymbol('proto.v1.PLogRecord', 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.v1.PLogPile = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PLogPile.repeatedFields_, null); }; goog.inherits(proto.v1.PLogPile, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.v1.PLogPile.displayName = 'proto.v1.PLogPile'; } /** * 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.v1.PLogRecord = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.v1.PLogRecord, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.v1.PLogRecord.displayName = 'proto.v1.PLogRecord'; } /** * 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.v1.PLogDemand = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.v1.PLogDemand, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.v1.PLogDemand.displayName = 'proto.v1.PLogDemand'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.v1.PLogPile.repeatedFields_ = [2]; 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.v1.PLogPile.prototype.toObject = function(opt_includeInstance) { return proto.v1.PLogPile.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.v1.PLogPile} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogPile.toObject = function(includeInstance, msg) { var f, obj = { seq: jspb.Message.getFieldWithDefault(msg, 1, 0), recordsList: jspb.Message.toObjectList(msg.getRecordsList(), proto.v1.PLogRecord.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.v1.PLogPile} */ proto.v1.PLogPile.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.v1.PLogPile; return proto.v1.PLogPile.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.v1.PLogPile} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.v1.PLogPile} */ proto.v1.PLogPile.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.setSeq(value); break; case 2: var value = new proto.v1.PLogRecord; reader.readMessage(value,proto.v1.PLogRecord.deserializeBinaryFromReader); msg.addRecords(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.v1.PLogPile.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.v1.PLogPile.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.v1.PLogPile} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogPile.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSeq(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getRecordsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.v1.PLogRecord.serializeBinaryToWriter ); } }; /** * optional int64 seq = 1; * @return {number} */ proto.v1.PLogPile.prototype.getSeq = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.v1.PLogPile} returns this */ proto.v1.PLogPile.prototype.setSeq = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated PLogRecord records = 2; * @return {!Array<!proto.v1.PLogRecord>} */ proto.v1.PLogPile.prototype.getRecordsList = function() { return /** @type{!Array<!proto.v1.PLogRecord>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.v1.PLogRecord, 2)); }; /** * @param {!Array<!proto.v1.PLogRecord>} value * @return {!proto.v1.PLogPile} returns this */ proto.v1.PLogPile.prototype.setRecordsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.v1.PLogRecord=} opt_value * @param {number=} opt_index * @return {!proto.v1.PLogRecord} */ proto.v1.PLogPile.prototype.addRecords = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PLogRecord, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.v1.PLogPile} returns this */ proto.v1.PLogPile.prototype.clearRecordsList = function() { return this.setRecordsList([]); }; 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.v1.PLogRecord.prototype.toObject = function(opt_includeInstance) { return proto.v1.PLogRecord.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.v1.PLogRecord} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogRecord.toObject = function(includeInstance, msg) { var f, obj = { seq: jspb.Message.getFieldWithDefault(msg, 1, 0), timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0), message: 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.v1.PLogRecord} */ proto.v1.PLogRecord.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.v1.PLogRecord; return proto.v1.PLogRecord.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.v1.PLogRecord} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.v1.PLogRecord} */ proto.v1.PLogRecord.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.setSeq(value); break; case 2: var value = /** @type {number} */ (reader.readInt64()); msg.setTimestamp(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setMessage(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.v1.PLogRecord.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.v1.PLogRecord.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.v1.PLogRecord} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogRecord.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSeq(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeInt64( 2, f ); } f = message.getMessage(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional int64 seq = 1; * @return {number} */ proto.v1.PLogRecord.prototype.getSeq = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.v1.PLogRecord} returns this */ proto.v1.PLogRecord.prototype.setSeq = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int64 timestamp = 2; * @return {number} */ proto.v1.PLogRecord.prototype.getTimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.v1.PLogRecord} returns this */ proto.v1.PLogRecord.prototype.setTimestamp = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional string message = 3; * @return {string} */ proto.v1.PLogRecord.prototype.getMessage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.v1.PLogRecord} returns this */ proto.v1.PLogRecord.prototype.setMessage = function(value) { return jspb.Message.setProto3StringField(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.v1.PLogDemand.prototype.toObject = function(opt_includeInstance) { return proto.v1.PLogDemand.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.v1.PLogDemand} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogDemand.toObject = function(includeInstance, msg) { var f, obj = { durationmillis: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.v1.PLogDemand} */ proto.v1.PLogDemand.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.v1.PLogDemand; return proto.v1.PLogDemand.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.v1.PLogDemand} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.v1.PLogDemand} */ proto.v1.PLogDemand.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.setDurationmillis(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.v1.PLogDemand.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.v1.PLogDemand.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.v1.PLogDemand} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.v1.PLogDemand.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDurationmillis(); if (f !== 0) { writer.writeInt64( 1, f ); } }; /** * optional int64 durationMillis = 1; * @return {number} */ proto.v1.PLogDemand.prototype.getDurationmillis = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.v1.PLogDemand} returns this */ proto.v1.PLogDemand.prototype.setDurationmillis = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; goog.object.extend(exports, proto.v1);