pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
1,665 lines (1,510 loc) • 202 kB
JavaScript
// source: v1/Stat.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));
var v1_ThreadDump_pb = require('../v1/ThreadDump_pb.js');
goog.object.extend(proto, v1_ThreadDump_pb);
goog.exportSymbol('proto.v1.PActiveTrace', null, global);
goog.exportSymbol('proto.v1.PActiveTraceHistogram', null, global);
goog.exportSymbol('proto.v1.PAgentInfo', null, global);
goog.exportSymbol('proto.v1.PAgentStat', null, global);
goog.exportSymbol('proto.v1.PAgentStatBatch', null, global);
goog.exportSymbol('proto.v1.PAgentUriStat', null, global);
goog.exportSymbol('proto.v1.PCpuLoad', null, global);
goog.exportSymbol('proto.v1.PDataSource', null, global);
goog.exportSymbol('proto.v1.PDataSourceList', null, global);
goog.exportSymbol('proto.v1.PDeadlock', null, global);
goog.exportSymbol('proto.v1.PDirectBuffer', null, global);
goog.exportSymbol('proto.v1.PEachUriStat', null, global);
goog.exportSymbol('proto.v1.PFileDescriptor', null, global);
goog.exportSymbol('proto.v1.PJvmGc', null, global);
goog.exportSymbol('proto.v1.PJvmGcDetailed', null, global);
goog.exportSymbol('proto.v1.PJvmGcType', null, global);
goog.exportSymbol('proto.v1.PJvmInfo', null, global);
goog.exportSymbol('proto.v1.PLoadedClass', null, global);
goog.exportSymbol('proto.v1.PPing', null, global);
goog.exportSymbol('proto.v1.PProfilerMetric', null, global);
goog.exportSymbol('proto.v1.PProfilerMetricField', null, global);
goog.exportSymbol('proto.v1.PProfilerMetricField.ValueCase', null, global);
goog.exportSymbol('proto.v1.PResponseTime', null, global);
goog.exportSymbol('proto.v1.PServerMetaData', null, global);
goog.exportSymbol('proto.v1.PServiceInfo', null, global);
goog.exportSymbol('proto.v1.PStatMessage', null, global);
goog.exportSymbol('proto.v1.PStatMessage.FieldCase', null, global);
goog.exportSymbol('proto.v1.PTotalThread', null, global);
goog.exportSymbol('proto.v1.PTransaction', null, global);
goog.exportSymbol('proto.v1.PUriHistogram', 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.PPing = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PPing, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PPing.displayName = 'proto.v1.PPing';
}
/**
* 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.PStatMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PStatMessage.oneofGroups_);
};
goog.inherits(proto.v1.PStatMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PStatMessage.displayName = 'proto.v1.PStatMessage';
}
/**
* 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.PAgentInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PAgentInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAgentInfo.displayName = 'proto.v1.PAgentInfo';
}
/**
* 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.PServerMetaData = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PServerMetaData.repeatedFields_, null);
};
goog.inherits(proto.v1.PServerMetaData, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PServerMetaData.displayName = 'proto.v1.PServerMetaData';
}
/**
* 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.PServiceInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PServiceInfo.repeatedFields_, null);
};
goog.inherits(proto.v1.PServiceInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PServiceInfo.displayName = 'proto.v1.PServiceInfo';
}
/**
* 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.PJvmInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PJvmInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PJvmInfo.displayName = 'proto.v1.PJvmInfo';
}
/**
* 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.PAgentStat = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PAgentStat, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAgentStat.displayName = 'proto.v1.PAgentStat';
}
/**
* 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.PProfilerMetric = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PProfilerMetric.repeatedFields_, null);
};
goog.inherits(proto.v1.PProfilerMetric, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PProfilerMetric.displayName = 'proto.v1.PProfilerMetric';
}
/**
* 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.PProfilerMetricField = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PProfilerMetricField.oneofGroups_);
};
goog.inherits(proto.v1.PProfilerMetricField, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PProfilerMetricField.displayName = 'proto.v1.PProfilerMetricField';
}
/**
* 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.PAgentStatBatch = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PAgentStatBatch.repeatedFields_, null);
};
goog.inherits(proto.v1.PAgentStatBatch, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAgentStatBatch.displayName = 'proto.v1.PAgentStatBatch';
}
/**
* 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.PDataSource = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PDataSource, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PDataSource.displayName = 'proto.v1.PDataSource';
}
/**
* 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.PDataSourceList = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PDataSourceList.repeatedFields_, null);
};
goog.inherits(proto.v1.PDataSourceList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PDataSourceList.displayName = 'proto.v1.PDataSourceList';
}
/**
* 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.PFileDescriptor = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PFileDescriptor, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PFileDescriptor.displayName = 'proto.v1.PFileDescriptor';
}
/**
* 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.PJvmGc = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PJvmGc, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PJvmGc.displayName = 'proto.v1.PJvmGc';
}
/**
* 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.PJvmGcDetailed = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PJvmGcDetailed, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PJvmGcDetailed.displayName = 'proto.v1.PJvmGcDetailed';
}
/**
* 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.PCpuLoad = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PCpuLoad, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PCpuLoad.displayName = 'proto.v1.PCpuLoad';
}
/**
* 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.PTransaction = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PTransaction, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PTransaction.displayName = 'proto.v1.PTransaction';
}
/**
* 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.PActiveTraceHistogram = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PActiveTraceHistogram.repeatedFields_, null);
};
goog.inherits(proto.v1.PActiveTraceHistogram, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PActiveTraceHistogram.displayName = 'proto.v1.PActiveTraceHistogram';
}
/**
* 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.PActiveTrace = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PActiveTrace, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PActiveTrace.displayName = 'proto.v1.PActiveTrace';
}
/**
* 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.PResponseTime = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PResponseTime, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PResponseTime.displayName = 'proto.v1.PResponseTime';
}
/**
* 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.PDeadlock = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PDeadlock.repeatedFields_, null);
};
goog.inherits(proto.v1.PDeadlock, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PDeadlock.displayName = 'proto.v1.PDeadlock';
}
/**
* 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.PDirectBuffer = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PDirectBuffer, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PDirectBuffer.displayName = 'proto.v1.PDirectBuffer';
}
/**
* 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.PTotalThread = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PTotalThread, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PTotalThread.displayName = 'proto.v1.PTotalThread';
}
/**
* 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.PLoadedClass = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PLoadedClass, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PLoadedClass.displayName = 'proto.v1.PLoadedClass';
}
/**
* 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.PAgentUriStat = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PAgentUriStat.repeatedFields_, null);
};
goog.inherits(proto.v1.PAgentUriStat, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAgentUriStat.displayName = 'proto.v1.PAgentUriStat';
}
/**
* 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.PEachUriStat = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PEachUriStat, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PEachUriStat.displayName = 'proto.v1.PEachUriStat';
}
/**
* 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.PUriHistogram = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PUriHistogram.repeatedFields_, null);
};
goog.inherits(proto.v1.PUriHistogram, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PUriHistogram.displayName = 'proto.v1.PUriHistogram';
}
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.PPing.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PPing.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.PPing} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PPing.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.v1.PPing}
*/
proto.v1.PPing.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PPing;
return proto.v1.PPing.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PPing} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PPing}
*/
proto.v1.PPing.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PPing.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PPing.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.PPing} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PPing.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.v1.PStatMessage.oneofGroups_ = [[1,2,3,4]];
/**
* @enum {number}
*/
proto.v1.PStatMessage.FieldCase = {
FIELD_NOT_SET: 0,
AGENTSTAT: 1,
AGENTSTATBATCH: 2,
AGENTURISTAT: 3,
PROFILERMETRIC: 4
};
/**
* @return {proto.v1.PStatMessage.FieldCase}
*/
proto.v1.PStatMessage.prototype.getFieldCase = function() {
return /** @type {proto.v1.PStatMessage.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PStatMessage.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.v1.PStatMessage.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PStatMessage.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.PStatMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PStatMessage.toObject = function(includeInstance, msg) {
var f, obj = {
agentstat: (f = msg.getAgentstat()) && proto.v1.PAgentStat.toObject(includeInstance, f),
agentstatbatch: (f = msg.getAgentstatbatch()) && proto.v1.PAgentStatBatch.toObject(includeInstance, f),
agenturistat: (f = msg.getAgenturistat()) && proto.v1.PAgentUriStat.toObject(includeInstance, f),
profilermetric: (f = msg.getProfilermetric()) && proto.v1.PProfilerMetric.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.v1.PStatMessage}
*/
proto.v1.PStatMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PStatMessage;
return proto.v1.PStatMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PStatMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PStatMessage}
*/
proto.v1.PStatMessage.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.v1.PAgentStat;
reader.readMessage(value,proto.v1.PAgentStat.deserializeBinaryFromReader);
msg.setAgentstat(value);
break;
case 2:
var value = new proto.v1.PAgentStatBatch;
reader.readMessage(value,proto.v1.PAgentStatBatch.deserializeBinaryFromReader);
msg.setAgentstatbatch(value);
break;
case 3:
var value = new proto.v1.PAgentUriStat;
reader.readMessage(value,proto.v1.PAgentUriStat.deserializeBinaryFromReader);
msg.setAgenturistat(value);
break;
case 4:
var value = new proto.v1.PProfilerMetric;
reader.readMessage(value,proto.v1.PProfilerMetric.deserializeBinaryFromReader);
msg.setProfilermetric(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PStatMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PStatMessage.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.PStatMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PStatMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAgentstat();
if (f != null) {
writer.writeMessage(
1,
f,
proto.v1.PAgentStat.serializeBinaryToWriter
);
}
f = message.getAgentstatbatch();
if (f != null) {
writer.writeMessage(
2,
f,
proto.v1.PAgentStatBatch.serializeBinaryToWriter
);
}
f = message.getAgenturistat();
if (f != null) {
writer.writeMessage(
3,
f,
proto.v1.PAgentUriStat.serializeBinaryToWriter
);
}
f = message.getProfilermetric();
if (f != null) {
writer.writeMessage(
4,
f,
proto.v1.PProfilerMetric.serializeBinaryToWriter
);
}
};
/**
* optional PAgentStat agentStat = 1;
* @return {?proto.v1.PAgentStat}
*/
proto.v1.PStatMessage.prototype.getAgentstat = function() {
return /** @type{?proto.v1.PAgentStat} */ (
jspb.Message.getWrapperField(this, proto.v1.PAgentStat, 1));
};
/**
* @param {?proto.v1.PAgentStat|undefined} value
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.setAgentstat = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.v1.PStatMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.clearAgentstat = function() {
return this.setAgentstat(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStatMessage.prototype.hasAgentstat = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional PAgentStatBatch agentStatBatch = 2;
* @return {?proto.v1.PAgentStatBatch}
*/
proto.v1.PStatMessage.prototype.getAgentstatbatch = function() {
return /** @type{?proto.v1.PAgentStatBatch} */ (
jspb.Message.getWrapperField(this, proto.v1.PAgentStatBatch, 2));
};
/**
* @param {?proto.v1.PAgentStatBatch|undefined} value
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.setAgentstatbatch = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.v1.PStatMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.clearAgentstatbatch = function() {
return this.setAgentstatbatch(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStatMessage.prototype.hasAgentstatbatch = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional PAgentUriStat agentUriStat = 3;
* @return {?proto.v1.PAgentUriStat}
*/
proto.v1.PStatMessage.prototype.getAgenturistat = function() {
return /** @type{?proto.v1.PAgentUriStat} */ (
jspb.Message.getWrapperField(this, proto.v1.PAgentUriStat, 3));
};
/**
* @param {?proto.v1.PAgentUriStat|undefined} value
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.setAgenturistat = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.v1.PStatMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.clearAgenturistat = function() {
return this.setAgenturistat(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStatMessage.prototype.hasAgenturistat = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional PProfilerMetric profilerMetric = 4;
* @return {?proto.v1.PProfilerMetric}
*/
proto.v1.PStatMessage.prototype.getProfilermetric = function() {
return /** @type{?proto.v1.PProfilerMetric} */ (
jspb.Message.getWrapperField(this, proto.v1.PProfilerMetric, 4));
};
/**
* @param {?proto.v1.PProfilerMetric|undefined} value
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.setProfilermetric = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.v1.PStatMessage.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStatMessage} returns this
*/
proto.v1.PStatMessage.prototype.clearProfilermetric = function() {
return this.setProfilermetric(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStatMessage.prototype.hasProfilermetric = function() {
return jspb.Message.getField(this, 4) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.v1.PAgentInfo.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PAgentInfo.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.PAgentInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PAgentInfo.toObject = function(includeInstance, msg) {
var f, obj = {
hostname: jspb.Message.getFieldWithDefault(msg, 1, ""),
ip: jspb.Message.getFieldWithDefault(msg, 2, ""),
ports: jspb.Message.getFieldWithDefault(msg, 3, ""),
servicetype: jspb.Message.getFieldWithDefault(msg, 4, 0),
pid: jspb.Message.getFieldWithDefault(msg, 5, 0),
agentversion: jspb.Message.getFieldWithDefault(msg, 6, ""),
vmversion: jspb.Message.getFieldWithDefault(msg, 7, ""),
endtimestamp: jspb.Message.getFieldWithDefault(msg, 8, 0),
endstatus: jspb.Message.getFieldWithDefault(msg, 9, 0),
servermetadata: (f = msg.getServermetadata()) && proto.v1.PServerMetaData.toObject(includeInstance, f),
jvminfo: (f = msg.getJvminfo()) && proto.v1.PJvmInfo.toObject(includeInstance, f),
container: jspb.Message.getBooleanFieldWithDefault(msg, 12, 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.v1.PAgentInfo}
*/
proto.v1.PAgentInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PAgentInfo;
return proto.v1.PAgentInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PAgentInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PAgentInfo}
*/
proto.v1.PAgentInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setHostname(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setIp(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPorts(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setServicetype(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setPid(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setAgentversion(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setVmversion(value);
break;
case 8:
var value = /** @type {number} */ (reader.readInt64());
msg.setEndtimestamp(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt32());
msg.setEndstatus(value);
break;
case 10:
var value = new proto.v1.PServerMetaData;
reader.readMessage(value,proto.v1.PServerMetaData.deserializeBinaryFromReader);
msg.setServermetadata(value);
break;
case 11:
var value = new proto.v1.PJvmInfo;
reader.readMessage(value,proto.v1.PJvmInfo.deserializeBinaryFromReader);
msg.setJvminfo(value);
break;
case 12:
var value = /** @type {boolean} */ (reader.readBool());
msg.setContainer(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PAgentInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PAgentInfo.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.PAgentInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PAgentInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHostname();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getIp();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPorts();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getServicetype();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getPid();
if (f !== 0) {
writer.writeInt32(
5,
f
);
}
f = message.getAgentversion();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getVmversion();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getEndtimestamp();
if (f !== 0) {
writer.writeInt64(
8,
f
);
}
f = message.getEndstatus();
if (f !== 0) {
writer.writeInt32(
9,
f
);
}
f = message.getServermetadata();
if (f != null) {
writer.writeMessage(
10,
f,
proto.v1.PServerMetaData.serializeBinaryToWriter
);
}
f = message.getJvminfo();
if (f != null) {
writer.writeMessage(
11,
f,
proto.v1.PJvmInfo.serializeBinaryToWriter
);
}
f = message.getContainer();
if (f) {
writer.writeBool(
12,
f
);
}
};
/**
* optional string hostname = 1;
* @return {string}
*/
proto.v1.PAgentInfo.prototype.getHostname = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setHostname = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string ip = 2;
* @return {string}
*/
proto.v1.PAgentInfo.prototype.getIp = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setIp = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string ports = 3;
* @return {string}
*/
proto.v1.PAgentInfo.prototype.getPorts = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setPorts = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional int32 serviceType = 4;
* @return {number}
*/
proto.v1.PAgentInfo.prototype.getServicetype = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setServicetype = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional int32 pid = 5;
* @return {number}
*/
proto.v1.PAgentInfo.prototype.getPid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setPid = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional string agentVersion = 6;
* @return {string}
*/
proto.v1.PAgentInfo.prototype.getAgentversion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setAgentversion = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string vmVersion = 7;
* @return {string}
*/
proto.v1.PAgentInfo.prototype.getVmversion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setVmversion = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional int64 endTimestamp = 8;
* @return {number}
*/
proto.v1.PAgentInfo.prototype.getEndtimestamp = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setEndtimestamp = function(value) {
return jspb.Message.setProto3IntField(this, 8, value);
};
/**
* optional int32 endStatus = 9;
* @return {number}
*/
proto.v1.PAgentInfo.prototype.getEndstatus = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setEndstatus = function(value) {
return jspb.Message.setProto3IntField(this, 9, value);
};
/**
* optional PServerMetaData serverMetaData = 10;
* @return {?proto.v1.PServerMetaData}
*/
proto.v1.PAgentInfo.prototype.getServermetadata = function() {
return /** @type{?proto.v1.PServerMetaData} */ (
jspb.Message.getWrapperField(this, proto.v1.PServerMetaData, 10));
};
/**
* @param {?proto.v1.PServerMetaData|undefined} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setServermetadata = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.clearServermetadata = function() {
return this.setServermetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PAgentInfo.prototype.hasServermetadata = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional PJvmInfo jvmInfo = 11;
* @return {?proto.v1.PJvmInfo}
*/
proto.v1.PAgentInfo.prototype.getJvminfo = function() {
return /** @type{?proto.v1.PJvmInfo} */ (
jspb.Message.getWrapperField(this, proto.v1.PJvmInfo, 11));
};
/**
* @param {?proto.v1.PJvmInfo|undefined} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setJvminfo = function(value) {
return jspb.Message.setWrapperField(this, 11, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.clearJvminfo = function() {
return this.setJvminfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PAgentInfo.prototype.hasJvminfo = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional bool container = 12;
* @return {boolean}
*/
proto.v1.PAgentInfo.prototype.getContainer = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
};
/**
* @param {boolean} value
* @return {!proto.v1.PAgentInfo} returns this
*/
proto.v1.PAgentInfo.prototype.setContainer = function(value) {
return jspb.Message.setProto3BooleanField(this, 12, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.v1.PServerMetaData.repeatedFields_ = [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.v1.PServerMetaData.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PServerMetaData.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.PServerMetaData} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PServerMetaData.toObject = function(includeInstance, msg) {
var f, obj = {
serverinfo: jspb.Message.getFieldWithDefault(msg, 1, ""),
vmargList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
serviceinfoList: jspb.Message.toObjectList(msg.getServiceinfoList(),
proto.v1.PServiceInfo.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.PServerMetaData}
*/
proto.v1.PServerMetaData.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PServerMetaData;
return proto.v1.PServerMetaData.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PServerMetaData} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PServerMetaData}
*/
proto.v1.PServerMetaData.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setServerinfo(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addVmarg(value);
break;
case 3:
var value = new proto.v1.PServiceInfo;
reader.readMessage(value,proto.v1.PServiceInfo.deserializeBinaryFromReader);
msg.addServiceinfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PServerMetaData.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PServerMetaData.serializeBinaryToWriter(