diff --git a/lib/data/v1/Annotation_grpc_pb.js b/lib/data/v1/Annotation_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/Annotation_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/Annotation_pb.js b/lib/data/v1/Annotation_pb.js new file mode 100644 index 00000000..8e3f1b0d --- /dev/null +++ b/lib/data/v1/Annotation_pb.js @@ -0,0 +1,2291 @@ +// source: v1/Annotation.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); +goog.object.extend(proto, google_protobuf_wrappers_pb); +goog.exportSymbol('proto.v1.PAnnotation', null, global); +goog.exportSymbol('proto.v1.PAnnotationValue', null, global); +goog.exportSymbol('proto.v1.PAnnotationValue.FieldCase', null, global); +goog.exportSymbol('proto.v1.PIntBooleanIntBooleanValue', null, global); +goog.exportSymbol('proto.v1.PIntStringStringValue', null, global); +goog.exportSymbol('proto.v1.PIntStringValue', null, global); +goog.exportSymbol('proto.v1.PLongIntIntByteByteStringValue', null, global); +goog.exportSymbol('proto.v1.PStringStringValue', 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.PIntStringValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PIntStringValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntStringValue.displayName = 'proto.v1.PIntStringValue'; +} +/** + * 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.PIntStringStringValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PIntStringStringValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntStringStringValue.displayName = 'proto.v1.PIntStringStringValue'; +} +/** + * 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.PLongIntIntByteByteStringValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PLongIntIntByteByteStringValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PLongIntIntByteByteStringValue.displayName = 'proto.v1.PLongIntIntByteByteStringValue'; +} +/** + * 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.PIntBooleanIntBooleanValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PIntBooleanIntBooleanValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntBooleanIntBooleanValue.displayName = 'proto.v1.PIntBooleanIntBooleanValue'; +} +/** + * 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.PStringStringValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PStringStringValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PStringStringValue.displayName = 'proto.v1.PStringStringValue'; +} +/** + * 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.PAnnotationValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PAnnotationValue.oneofGroups_); +}; +goog.inherits(proto.v1.PAnnotationValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PAnnotationValue.displayName = 'proto.v1.PAnnotationValue'; +} +/** + * 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.PAnnotation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PAnnotation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PAnnotation.displayName = 'proto.v1.PAnnotation'; +} + + + +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_, 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.PIntStringValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntStringValue.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.PIntStringValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntStringValue.toObject = function(includeInstance, msg) { + var f, obj = { + intvalue: jspb.Message.getFieldWithDefault(msg, 1, 0), + stringvalue: (f = msg.getStringvalue()) && google_protobuf_wrappers_pb.StringValue.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.PIntStringValue} + */ +proto.v1.PIntStringValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntStringValue; + return proto.v1.PIntStringValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntStringValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntStringValue} + */ +proto.v1.PIntStringValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue(value); + break; + case 2: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntStringValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntStringValue.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.PIntStringValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntStringValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntvalue(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getStringvalue(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 intValue = 1; + * @return {number} + */ +proto.v1.PIntStringValue.prototype.getIntvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PIntStringValue} returns this + */ +proto.v1.PIntStringValue.prototype.setIntvalue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional google.protobuf.StringValue stringValue = 2; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PIntStringValue.prototype.getStringvalue = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PIntStringValue} returns this +*/ +proto.v1.PIntStringValue.prototype.setStringvalue = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PIntStringValue} returns this + */ +proto.v1.PIntStringValue.prototype.clearStringvalue = function() { + return this.setStringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PIntStringValue.prototype.hasStringvalue = function() { + return jspb.Message.getField(this, 2) != 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_, 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.PIntStringStringValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntStringStringValue.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.PIntStringStringValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntStringStringValue.toObject = function(includeInstance, msg) { + var f, obj = { + intvalue: jspb.Message.getFieldWithDefault(msg, 1, 0), + stringvalue1: (f = msg.getStringvalue1()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), + stringvalue2: (f = msg.getStringvalue2()) && google_protobuf_wrappers_pb.StringValue.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.PIntStringStringValue} + */ +proto.v1.PIntStringStringValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntStringStringValue; + return proto.v1.PIntStringStringValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntStringStringValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntStringStringValue} + */ +proto.v1.PIntStringStringValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue(value); + break; + case 2: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue1(value); + break; + case 3: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue2(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntStringStringValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntStringStringValue.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.PIntStringStringValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntStringStringValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntvalue(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getStringvalue1(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } + f = message.getStringvalue2(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 intValue = 1; + * @return {number} + */ +proto.v1.PIntStringStringValue.prototype.getIntvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PIntStringStringValue} returns this + */ +proto.v1.PIntStringStringValue.prototype.setIntvalue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional google.protobuf.StringValue stringValue1 = 2; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PIntStringStringValue.prototype.getStringvalue1 = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PIntStringStringValue} returns this +*/ +proto.v1.PIntStringStringValue.prototype.setStringvalue1 = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PIntStringStringValue} returns this + */ +proto.v1.PIntStringStringValue.prototype.clearStringvalue1 = function() { + return this.setStringvalue1(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PIntStringStringValue.prototype.hasStringvalue1 = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.StringValue stringValue2 = 3; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PIntStringStringValue.prototype.getStringvalue2 = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PIntStringStringValue} returns this +*/ +proto.v1.PIntStringStringValue.prototype.setStringvalue2 = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PIntStringStringValue} returns this + */ +proto.v1.PIntStringStringValue.prototype.clearStringvalue2 = function() { + return this.setStringvalue2(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PIntStringStringValue.prototype.hasStringvalue2 = function() { + return jspb.Message.getField(this, 3) != 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_, 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.PLongIntIntByteByteStringValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLongIntIntByteByteStringValue.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.PLongIntIntByteByteStringValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongIntIntByteByteStringValue.toObject = function(includeInstance, msg) { + var f, obj = { + longvalue: jspb.Message.getFieldWithDefault(msg, 1, 0), + intvalue1: jspb.Message.getFieldWithDefault(msg, 2, 0), + intvalue2: jspb.Message.getFieldWithDefault(msg, 3, 0), + bytevalue1: jspb.Message.getFieldWithDefault(msg, 4, 0), + bytevalue2: jspb.Message.getFieldWithDefault(msg, 5, 0), + stringvalue: (f = msg.getStringvalue()) && google_protobuf_wrappers_pb.StringValue.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.PLongIntIntByteByteStringValue} + */ +proto.v1.PLongIntIntByteByteStringValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLongIntIntByteByteStringValue; + return proto.v1.PLongIntIntByteByteStringValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLongIntIntByteByteStringValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLongIntIntByteByteStringValue} + */ +proto.v1.PLongIntIntByteByteStringValue.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.setLongvalue(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue1(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue2(value); + break; + case 4: + var value = /** @type {number} */ (reader.readSint32()); + msg.setBytevalue1(value); + break; + case 5: + var value = /** @type {number} */ (reader.readSint32()); + msg.setBytevalue2(value); + break; + case 6: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLongIntIntByteByteStringValue.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.PLongIntIntByteByteStringValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongIntIntByteByteStringValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLongvalue(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getIntvalue1(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getIntvalue2(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getBytevalue1(); + if (f !== 0) { + writer.writeSint32( + 4, + f + ); + } + f = message.getBytevalue2(); + if (f !== 0) { + writer.writeSint32( + 5, + f + ); + } + f = message.getStringvalue(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int64 longValue = 1; + * @return {number} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getLongvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.setLongvalue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 intValue1 = 2; + * @return {number} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getIntvalue1 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.setIntvalue1 = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 intValue2 = 3; + * @return {number} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getIntvalue2 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.setIntvalue2 = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional sint32 byteValue1 = 4; + * @return {number} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getBytevalue1 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.setBytevalue1 = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional sint32 byteValue2 = 5; + * @return {number} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getBytevalue2 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.setBytevalue2 = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional google.protobuf.StringValue stringValue = 6; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.getStringvalue = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this +*/ +proto.v1.PLongIntIntByteByteStringValue.prototype.setStringvalue = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PLongIntIntByteByteStringValue} returns this + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.clearStringvalue = function() { + return this.setStringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PLongIntIntByteByteStringValue.prototype.hasStringvalue = function() { + return jspb.Message.getField(this, 6) != 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_, 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.PIntBooleanIntBooleanValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntBooleanIntBooleanValue.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.PIntBooleanIntBooleanValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntBooleanIntBooleanValue.toObject = function(includeInstance, msg) { + var f, obj = { + intvalue1: jspb.Message.getFieldWithDefault(msg, 1, 0), + boolvalue1: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + intvalue2: jspb.Message.getFieldWithDefault(msg, 3, 0), + boolvalue2: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.PIntBooleanIntBooleanValue} + */ +proto.v1.PIntBooleanIntBooleanValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntBooleanIntBooleanValue; + return proto.v1.PIntBooleanIntBooleanValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntBooleanIntBooleanValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntBooleanIntBooleanValue} + */ +proto.v1.PIntBooleanIntBooleanValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue1(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBoolvalue1(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue2(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBoolvalue2(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntBooleanIntBooleanValue.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.PIntBooleanIntBooleanValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntBooleanIntBooleanValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntvalue1(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getBoolvalue1(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getIntvalue2(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getBoolvalue2(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional int32 intValue1 = 1; + * @return {number} + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.getIntvalue1 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PIntBooleanIntBooleanValue} returns this + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.setIntvalue1 = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool boolValue1 = 2; + * @return {boolean} + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.getBoolvalue1 = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PIntBooleanIntBooleanValue} returns this + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.setBoolvalue1 = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional int32 intValue2 = 3; + * @return {number} + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.getIntvalue2 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PIntBooleanIntBooleanValue} returns this + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.setIntvalue2 = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool boolValue2 = 4; + * @return {boolean} + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.getBoolvalue2 = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PIntBooleanIntBooleanValue} returns this + */ +proto.v1.PIntBooleanIntBooleanValue.prototype.setBoolvalue2 = function(value) { + return jspb.Message.setProto3BooleanField(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_, 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.PStringStringValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PStringStringValue.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.PStringStringValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PStringStringValue.toObject = function(includeInstance, msg) { + var f, obj = { + stringvalue1: (f = msg.getStringvalue1()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), + stringvalue2: (f = msg.getStringvalue2()) && google_protobuf_wrappers_pb.StringValue.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.PStringStringValue} + */ +proto.v1.PStringStringValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PStringStringValue; + return proto.v1.PStringStringValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PStringStringValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PStringStringValue} + */ +proto.v1.PStringStringValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue1(value); + break; + case 2: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setStringvalue2(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PStringStringValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PStringStringValue.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.PStringStringValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PStringStringValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStringvalue1(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } + f = message.getStringvalue2(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.StringValue stringValue1 = 1; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PStringStringValue.prototype.getStringvalue1 = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PStringStringValue} returns this +*/ +proto.v1.PStringStringValue.prototype.setStringvalue1 = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PStringStringValue} returns this + */ +proto.v1.PStringStringValue.prototype.clearStringvalue1 = function() { + return this.setStringvalue1(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PStringStringValue.prototype.hasStringvalue1 = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional google.protobuf.StringValue stringValue2 = 2; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PStringStringValue.prototype.getStringvalue2 = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PStringStringValue} returns this +*/ +proto.v1.PStringStringValue.prototype.setStringvalue2 = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PStringStringValue} returns this + */ +proto.v1.PStringStringValue.prototype.clearStringvalue2 = function() { + return this.setStringvalue2(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PStringStringValue.prototype.hasStringvalue2 = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.v1.PAnnotationValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13]]; + +/** + * @enum {number} + */ +proto.v1.PAnnotationValue.FieldCase = { + FIELD_NOT_SET: 0, + STRINGVALUE: 1, + BOOLVALUE: 2, + INTVALUE: 3, + LONGVALUE: 4, + SHORTVALUE: 5, + DOUBLEVALUE: 6, + BINARYVALUE: 7, + BYTEVALUE: 8, + INTSTRINGVALUE: 9, + STRINGSTRINGVALUE: 10, + INTSTRINGSTRINGVALUE: 11, + LONGINTINTBYTEBYTESTRINGVALUE: 12, + INTBOOLEANINTBOOLEANVALUE: 13 +}; + +/** + * @return {proto.v1.PAnnotationValue.FieldCase} + */ +proto.v1.PAnnotationValue.prototype.getFieldCase = function() { + return /** @type {proto.v1.PAnnotationValue.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PAnnotationValue.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_, 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.PAnnotationValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAnnotationValue.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.PAnnotationValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAnnotationValue.toObject = function(includeInstance, msg) { + var f, obj = { + stringvalue: jspb.Message.getFieldWithDefault(msg, 1, ""), + boolvalue: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + intvalue: jspb.Message.getFieldWithDefault(msg, 3, 0), + longvalue: jspb.Message.getFieldWithDefault(msg, 4, 0), + shortvalue: jspb.Message.getFieldWithDefault(msg, 5, 0), + doublevalue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), + binaryvalue: msg.getBinaryvalue_asB64(), + bytevalue: jspb.Message.getFieldWithDefault(msg, 8, 0), + intstringvalue: (f = msg.getIntstringvalue()) && proto.v1.PIntStringValue.toObject(includeInstance, f), + stringstringvalue: (f = msg.getStringstringvalue()) && proto.v1.PStringStringValue.toObject(includeInstance, f), + intstringstringvalue: (f = msg.getIntstringstringvalue()) && proto.v1.PIntStringStringValue.toObject(includeInstance, f), + longintintbytebytestringvalue: (f = msg.getLongintintbytebytestringvalue()) && proto.v1.PLongIntIntByteByteStringValue.toObject(includeInstance, f), + intbooleanintbooleanvalue: (f = msg.getIntbooleanintbooleanvalue()) && proto.v1.PIntBooleanIntBooleanValue.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.PAnnotationValue} + */ +proto.v1.PAnnotationValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAnnotationValue; + return proto.v1.PAnnotationValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAnnotationValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAnnotationValue} + */ +proto.v1.PAnnotationValue.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.setStringvalue(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBoolvalue(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIntvalue(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLongvalue(value); + break; + case 5: + var value = /** @type {number} */ (reader.readSint32()); + msg.setShortvalue(value); + break; + case 6: + var value = /** @type {number} */ (reader.readDouble()); + msg.setDoublevalue(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBinaryvalue(value); + break; + case 8: + var value = /** @type {number} */ (reader.readSint32()); + msg.setBytevalue(value); + break; + case 9: + var value = new proto.v1.PIntStringValue; + reader.readMessage(value,proto.v1.PIntStringValue.deserializeBinaryFromReader); + msg.setIntstringvalue(value); + break; + case 10: + var value = new proto.v1.PStringStringValue; + reader.readMessage(value,proto.v1.PStringStringValue.deserializeBinaryFromReader); + msg.setStringstringvalue(value); + break; + case 11: + var value = new proto.v1.PIntStringStringValue; + reader.readMessage(value,proto.v1.PIntStringStringValue.deserializeBinaryFromReader); + msg.setIntstringstringvalue(value); + break; + case 12: + var value = new proto.v1.PLongIntIntByteByteStringValue; + reader.readMessage(value,proto.v1.PLongIntIntByteByteStringValue.deserializeBinaryFromReader); + msg.setLongintintbytebytestringvalue(value); + break; + case 13: + var value = new proto.v1.PIntBooleanIntBooleanValue; + reader.readMessage(value,proto.v1.PIntBooleanIntBooleanValue.deserializeBinaryFromReader); + msg.setIntbooleanintbooleanvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAnnotationValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAnnotationValue.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.PAnnotationValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAnnotationValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeInt32( + 3, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeInt64( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeSint32( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeDouble( + 6, + f + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBytes( + 7, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeSint32( + 8, + f + ); + } + f = message.getIntstringvalue(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.v1.PIntStringValue.serializeBinaryToWriter + ); + } + f = message.getStringstringvalue(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.v1.PStringStringValue.serializeBinaryToWriter + ); + } + f = message.getIntstringstringvalue(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.v1.PIntStringStringValue.serializeBinaryToWriter + ); + } + f = message.getLongintintbytebytestringvalue(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.v1.PLongIntIntByteByteStringValue.serializeBinaryToWriter + ); + } + f = message.getIntbooleanintbooleanvalue(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.v1.PIntBooleanIntBooleanValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stringValue = 1; + * @return {string} + */ +proto.v1.PAnnotationValue.prototype.getStringvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setStringvalue = function(value) { + return jspb.Message.setOneofField(this, 1, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearStringvalue = function() { + return jspb.Message.setOneofField(this, 1, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasStringvalue = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool boolValue = 2; + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.getBoolvalue = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setBoolvalue = function(value) { + return jspb.Message.setOneofField(this, 2, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearBoolvalue = function() { + return jspb.Message.setOneofField(this, 2, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasBoolvalue = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 intValue = 3; + * @return {number} + */ +proto.v1.PAnnotationValue.prototype.getIntvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setIntvalue = function(value) { + return jspb.Message.setOneofField(this, 3, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearIntvalue = function() { + return jspb.Message.setOneofField(this, 3, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasIntvalue = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional int64 longValue = 4; + * @return {number} + */ +proto.v1.PAnnotationValue.prototype.getLongvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setLongvalue = function(value) { + return jspb.Message.setOneofField(this, 4, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearLongvalue = function() { + return jspb.Message.setOneofField(this, 4, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasLongvalue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional sint32 shortValue = 5; + * @return {number} + */ +proto.v1.PAnnotationValue.prototype.getShortvalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setShortvalue = function(value) { + return jspb.Message.setOneofField(this, 5, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearShortvalue = function() { + return jspb.Message.setOneofField(this, 5, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasShortvalue = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional double doubleValue = 6; + * @return {number} + */ +proto.v1.PAnnotationValue.prototype.getDoublevalue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setDoublevalue = function(value) { + return jspb.Message.setOneofField(this, 6, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearDoublevalue = function() { + return jspb.Message.setOneofField(this, 6, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasDoublevalue = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional bytes binaryValue = 7; + * @return {!(string|Uint8Array)} + */ +proto.v1.PAnnotationValue.prototype.getBinaryvalue = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * optional bytes binaryValue = 7; + * This is a type-conversion wrapper around `getBinaryvalue()` + * @return {string} + */ +proto.v1.PAnnotationValue.prototype.getBinaryvalue_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBinaryvalue())); +}; + + +/** + * optional bytes binaryValue = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBinaryvalue()` + * @return {!Uint8Array} + */ +proto.v1.PAnnotationValue.prototype.getBinaryvalue_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBinaryvalue())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setBinaryvalue = function(value) { + return jspb.Message.setOneofField(this, 7, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearBinaryvalue = function() { + return jspb.Message.setOneofField(this, 7, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasBinaryvalue = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional sint32 byteValue = 8; + * @return {number} + */ +proto.v1.PAnnotationValue.prototype.getBytevalue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.setBytevalue = function(value) { + return jspb.Message.setOneofField(this, 8, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearBytevalue = function() { + return jspb.Message.setOneofField(this, 8, proto.v1.PAnnotationValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasBytevalue = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional PIntStringValue intStringValue = 9; + * @return {?proto.v1.PIntStringValue} + */ +proto.v1.PAnnotationValue.prototype.getIntstringvalue = function() { + return /** @type{?proto.v1.PIntStringValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PIntStringValue, 9)); +}; + + +/** + * @param {?proto.v1.PIntStringValue|undefined} value + * @return {!proto.v1.PAnnotationValue} returns this +*/ +proto.v1.PAnnotationValue.prototype.setIntstringvalue = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearIntstringvalue = function() { + return this.setIntstringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasIntstringvalue = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional PStringStringValue stringStringValue = 10; + * @return {?proto.v1.PStringStringValue} + */ +proto.v1.PAnnotationValue.prototype.getStringstringvalue = function() { + return /** @type{?proto.v1.PStringStringValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PStringStringValue, 10)); +}; + + +/** + * @param {?proto.v1.PStringStringValue|undefined} value + * @return {!proto.v1.PAnnotationValue} returns this +*/ +proto.v1.PAnnotationValue.prototype.setStringstringvalue = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearStringstringvalue = function() { + return this.setStringstringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasStringstringvalue = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional PIntStringStringValue intStringStringValue = 11; + * @return {?proto.v1.PIntStringStringValue} + */ +proto.v1.PAnnotationValue.prototype.getIntstringstringvalue = function() { + return /** @type{?proto.v1.PIntStringStringValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PIntStringStringValue, 11)); +}; + + +/** + * @param {?proto.v1.PIntStringStringValue|undefined} value + * @return {!proto.v1.PAnnotationValue} returns this +*/ +proto.v1.PAnnotationValue.prototype.setIntstringstringvalue = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearIntstringstringvalue = function() { + return this.setIntstringstringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasIntstringstringvalue = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional PLongIntIntByteByteStringValue longIntIntByteByteStringValue = 12; + * @return {?proto.v1.PLongIntIntByteByteStringValue} + */ +proto.v1.PAnnotationValue.prototype.getLongintintbytebytestringvalue = function() { + return /** @type{?proto.v1.PLongIntIntByteByteStringValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PLongIntIntByteByteStringValue, 12)); +}; + + +/** + * @param {?proto.v1.PLongIntIntByteByteStringValue|undefined} value + * @return {!proto.v1.PAnnotationValue} returns this +*/ +proto.v1.PAnnotationValue.prototype.setLongintintbytebytestringvalue = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearLongintintbytebytestringvalue = function() { + return this.setLongintintbytebytestringvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasLongintintbytebytestringvalue = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional PIntBooleanIntBooleanValue intBooleanIntBooleanValue = 13; + * @return {?proto.v1.PIntBooleanIntBooleanValue} + */ +proto.v1.PAnnotationValue.prototype.getIntbooleanintbooleanvalue = function() { + return /** @type{?proto.v1.PIntBooleanIntBooleanValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PIntBooleanIntBooleanValue, 13)); +}; + + +/** + * @param {?proto.v1.PIntBooleanIntBooleanValue|undefined} value + * @return {!proto.v1.PAnnotationValue} returns this +*/ +proto.v1.PAnnotationValue.prototype.setIntbooleanintbooleanvalue = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.v1.PAnnotationValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotationValue} returns this + */ +proto.v1.PAnnotationValue.prototype.clearIntbooleanintbooleanvalue = function() { + return this.setIntbooleanintbooleanvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotationValue.prototype.hasIntbooleanintbooleanvalue = function() { + return jspb.Message.getField(this, 13) != 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_, 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.PAnnotation.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAnnotation.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.PAnnotation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAnnotation.toObject = function(includeInstance, msg) { + var f, obj = { + key: jspb.Message.getFieldWithDefault(msg, 1, 0), + value: (f = msg.getValue()) && proto.v1.PAnnotationValue.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.PAnnotation} + */ +proto.v1.PAnnotation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAnnotation; + return proto.v1.PAnnotation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAnnotation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAnnotation} + */ +proto.v1.PAnnotation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setKey(value); + break; + case 2: + var value = new proto.v1.PAnnotationValue; + reader.readMessage(value,proto.v1.PAnnotationValue.deserializeBinaryFromReader); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAnnotation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAnnotation.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.PAnnotation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAnnotation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKey(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getValue(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PAnnotationValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 key = 1; + * @return {number} + */ +proto.v1.PAnnotation.prototype.getKey = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAnnotation} returns this + */ +proto.v1.PAnnotation.prototype.setKey = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional PAnnotationValue value = 2; + * @return {?proto.v1.PAnnotationValue} + */ +proto.v1.PAnnotation.prototype.getValue = function() { + return /** @type{?proto.v1.PAnnotationValue} */ ( + jspb.Message.getWrapperField(this, proto.v1.PAnnotationValue, 2)); +}; + + +/** + * @param {?proto.v1.PAnnotationValue|undefined} value + * @return {!proto.v1.PAnnotation} returns this +*/ +proto.v1.PAnnotation.prototype.setValue = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAnnotation} returns this + */ +proto.v1.PAnnotation.prototype.clearValue = function() { + return this.setValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAnnotation.prototype.hasValue = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.v1); diff --git a/lib/data/v1/Cmd_grpc_pb.js b/lib/data/v1/Cmd_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/Cmd_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/Cmd_pb.js b/lib/data/v1/Cmd_pb.js new file mode 100644 index 00000000..d7b9fbb5 --- /dev/null +++ b/lib/data/v1/Cmd_pb.js @@ -0,0 +1,3250 @@ +// source: v1/Cmd.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); +goog.object.extend(proto, google_protobuf_wrappers_pb); +var v1_ThreadDump_pb = require('../v1/ThreadDump_pb.js'); +goog.object.extend(proto, v1_ThreadDump_pb); +goog.exportSymbol('proto.v1.PCmdActiveThreadCount', null, global); +goog.exportSymbol('proto.v1.PCmdActiveThreadCountRes', null, global); +goog.exportSymbol('proto.v1.PCmdActiveThreadDump', null, global); +goog.exportSymbol('proto.v1.PCmdActiveThreadDumpRes', null, global); +goog.exportSymbol('proto.v1.PCmdActiveThreadLightDump', null, global); +goog.exportSymbol('proto.v1.PCmdActiveThreadLightDumpRes', null, global); +goog.exportSymbol('proto.v1.PCmdEcho', null, global); +goog.exportSymbol('proto.v1.PCmdEchoResponse', null, global); +goog.exportSymbol('proto.v1.PCmdMessage', null, global); +goog.exportSymbol('proto.v1.PCmdMessage.MessageCase', null, global); +goog.exportSymbol('proto.v1.PCmdRequest', null, global); +goog.exportSymbol('proto.v1.PCmdRequest.CommandCase', null, global); +goog.exportSymbol('proto.v1.PCmdResponse', null, global); +goog.exportSymbol('proto.v1.PCmdServiceHandshake', null, global); +goog.exportSymbol('proto.v1.PCmdStreamResponse', null, global); +goog.exportSymbol('proto.v1.PCommandType', 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.PCmdMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PCmdMessage.oneofGroups_); +}; +goog.inherits(proto.v1.PCmdMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdMessage.displayName = 'proto.v1.PCmdMessage'; +} +/** + * 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.PCmdServiceHandshake = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdServiceHandshake.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdServiceHandshake, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdServiceHandshake.displayName = 'proto.v1.PCmdServiceHandshake'; +} +/** + * 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.PCmdResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PCmdResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdResponse.displayName = 'proto.v1.PCmdResponse'; +} +/** + * 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.PCmdStreamResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PCmdStreamResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdStreamResponse.displayName = 'proto.v1.PCmdStreamResponse'; +} +/** + * 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.PCmdRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, 500, null, proto.v1.PCmdRequest.oneofGroups_); +}; +goog.inherits(proto.v1.PCmdRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdRequest.displayName = 'proto.v1.PCmdRequest'; +} +/** + * 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.PCmdEcho = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PCmdEcho, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdEcho.displayName = 'proto.v1.PCmdEcho'; +} +/** + * 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.PCmdEchoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PCmdEchoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdEchoResponse.displayName = 'proto.v1.PCmdEchoResponse'; +} +/** + * 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.PCmdActiveThreadDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdActiveThreadDump.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadDump.displayName = 'proto.v1.PCmdActiveThreadDump'; +} +/** + * 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.PCmdActiveThreadDumpRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdActiveThreadDumpRes.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadDumpRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadDumpRes.displayName = 'proto.v1.PCmdActiveThreadDumpRes'; +} +/** + * 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.PCmdActiveThreadLightDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdActiveThreadLightDump.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadLightDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadLightDump.displayName = 'proto.v1.PCmdActiveThreadLightDump'; +} +/** + * 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.PCmdActiveThreadLightDumpRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdActiveThreadLightDumpRes.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadLightDumpRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadLightDumpRes.displayName = 'proto.v1.PCmdActiveThreadLightDumpRes'; +} +/** + * 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.PCmdActiveThreadCount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadCount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadCount.displayName = 'proto.v1.PCmdActiveThreadCount'; +} +/** + * 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.PCmdActiveThreadCountRes = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCmdActiveThreadCountRes.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCmdActiveThreadCountRes, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCmdActiveThreadCountRes.displayName = 'proto.v1.PCmdActiveThreadCountRes'; +} + +/** + * 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>} + * @const + */ +proto.v1.PCmdMessage.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.v1.PCmdMessage.MessageCase = { + MESSAGE_NOT_SET: 0, + HANDSHAKEMESSAGE: 1, + FAILMESSAGE: 2 +}; + +/** + * @return {proto.v1.PCmdMessage.MessageCase} + */ +proto.v1.PCmdMessage.prototype.getMessageCase = function() { + return /** @type {proto.v1.PCmdMessage.MessageCase} */(jspb.Message.computeOneofCase(this, proto.v1.PCmdMessage.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_, 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.PCmdMessage.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdMessage.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.PCmdMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdMessage.toObject = function(includeInstance, msg) { + var f, obj = { + handshakemessage: (f = msg.getHandshakemessage()) && proto.v1.PCmdServiceHandshake.toObject(includeInstance, f), + failmessage: (f = msg.getFailmessage()) && proto.v1.PCmdResponse.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.PCmdMessage} + */ +proto.v1.PCmdMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdMessage; + return proto.v1.PCmdMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdMessage} + */ +proto.v1.PCmdMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PCmdServiceHandshake; + reader.readMessage(value,proto.v1.PCmdServiceHandshake.deserializeBinaryFromReader); + msg.setHandshakemessage(value); + break; + case 2: + var value = new proto.v1.PCmdResponse; + reader.readMessage(value,proto.v1.PCmdResponse.deserializeBinaryFromReader); + msg.setFailmessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdMessage.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.PCmdMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHandshakemessage(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PCmdServiceHandshake.serializeBinaryToWriter + ); + } + f = message.getFailmessage(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PCmdResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PCmdServiceHandshake handshakeMessage = 1; + * @return {?proto.v1.PCmdServiceHandshake} + */ +proto.v1.PCmdMessage.prototype.getHandshakemessage = function() { + return /** @type{?proto.v1.PCmdServiceHandshake} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdServiceHandshake, 1)); +}; + + +/** + * @param {?proto.v1.PCmdServiceHandshake|undefined} value + * @return {!proto.v1.PCmdMessage} returns this +*/ +proto.v1.PCmdMessage.prototype.setHandshakemessage = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.v1.PCmdMessage.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdMessage} returns this + */ +proto.v1.PCmdMessage.prototype.clearHandshakemessage = function() { + return this.setHandshakemessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdMessage.prototype.hasHandshakemessage = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional PCmdResponse failMessage = 2; + * @return {?proto.v1.PCmdResponse} + */ +proto.v1.PCmdMessage.prototype.getFailmessage = function() { + return /** @type{?proto.v1.PCmdResponse} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdResponse, 2)); +}; + + +/** + * @param {?proto.v1.PCmdResponse|undefined} value + * @return {!proto.v1.PCmdMessage} returns this +*/ +proto.v1.PCmdMessage.prototype.setFailmessage = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.v1.PCmdMessage.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdMessage} returns this + */ +proto.v1.PCmdMessage.prototype.clearFailmessage = function() { + return this.setFailmessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdMessage.prototype.hasFailmessage = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdServiceHandshake.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PCmdServiceHandshake.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdServiceHandshake.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.PCmdServiceHandshake} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdServiceHandshake.toObject = function(includeInstance, msg) { + var f, obj = { + supportcommandservicekeyList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PCmdServiceHandshake} + */ +proto.v1.PCmdServiceHandshake.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdServiceHandshake; + return proto.v1.PCmdServiceHandshake.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdServiceHandshake} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdServiceHandshake} + */ +proto.v1.PCmdServiceHandshake.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addSupportcommandservicekey(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdServiceHandshake.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdServiceHandshake.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.PCmdServiceHandshake} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdServiceHandshake.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSupportcommandservicekeyList(); + if (f.length > 0) { + writer.writePackedInt32( + 1, + f + ); + } +}; + + +/** + * repeated int32 supportCommandServiceKey = 1; + * @return {!Array} + */ +proto.v1.PCmdServiceHandshake.prototype.getSupportcommandservicekeyList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdServiceHandshake} returns this + */ +proto.v1.PCmdServiceHandshake.prototype.setSupportcommandservicekeyList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdServiceHandshake} returns this + */ +proto.v1.PCmdServiceHandshake.prototype.addSupportcommandservicekey = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdServiceHandshake} returns this + */ +proto.v1.PCmdServiceHandshake.prototype.clearSupportcommandservicekeyList = function() { + return this.setSupportcommandservicekeyList([]); +}; + + + + + +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_, 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.PCmdResponse.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdResponse.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.PCmdResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdResponse.toObject = function(includeInstance, msg) { + var f, obj = { + responseid: jspb.Message.getFieldWithDefault(msg, 1, 0), + status: jspb.Message.getFieldWithDefault(msg, 2, 0), + message: (f = msg.getMessage()) && google_protobuf_wrappers_pb.StringValue.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.PCmdResponse} + */ +proto.v1.PCmdResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdResponse; + return proto.v1.PCmdResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdResponse} + */ +proto.v1.PCmdResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setResponseid(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStatus(value); + break; + case 3: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdResponse.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.PCmdResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResponseid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getStatus(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getMessage(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 responseId = 1; + * @return {number} + */ +proto.v1.PCmdResponse.prototype.getResponseid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdResponse} returns this + */ +proto.v1.PCmdResponse.prototype.setResponseid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 status = 2; + * @return {number} + */ +proto.v1.PCmdResponse.prototype.getStatus = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdResponse} returns this + */ +proto.v1.PCmdResponse.prototype.setStatus = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional google.protobuf.StringValue message = 3; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PCmdResponse.prototype.getMessage = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PCmdResponse} returns this +*/ +proto.v1.PCmdResponse.prototype.setMessage = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdResponse} returns this + */ +proto.v1.PCmdResponse.prototype.clearMessage = function() { + return this.setMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdResponse.prototype.hasMessage = function() { + return jspb.Message.getField(this, 3) != 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_, 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.PCmdStreamResponse.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdStreamResponse.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.PCmdStreamResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdStreamResponse.toObject = function(includeInstance, msg) { + var f, obj = { + responseid: jspb.Message.getFieldWithDefault(msg, 1, 0), + sequenceid: jspb.Message.getFieldWithDefault(msg, 2, 0), + message: (f = msg.getMessage()) && google_protobuf_wrappers_pb.StringValue.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.PCmdStreamResponse} + */ +proto.v1.PCmdStreamResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdStreamResponse; + return proto.v1.PCmdStreamResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdStreamResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdStreamResponse} + */ +proto.v1.PCmdStreamResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setResponseid(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSequenceid(value); + break; + case 3: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdStreamResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdStreamResponse.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.PCmdStreamResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdStreamResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResponseid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSequenceid(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getMessage(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 responseId = 1; + * @return {number} + */ +proto.v1.PCmdStreamResponse.prototype.getResponseid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdStreamResponse} returns this + */ +proto.v1.PCmdStreamResponse.prototype.setResponseid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 sequenceId = 2; + * @return {number} + */ +proto.v1.PCmdStreamResponse.prototype.getSequenceid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdStreamResponse} returns this + */ +proto.v1.PCmdStreamResponse.prototype.setSequenceid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional google.protobuf.StringValue message = 3; + * @return {?proto.google.protobuf.StringValue} + */ +proto.v1.PCmdStreamResponse.prototype.getMessage = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.v1.PCmdStreamResponse} returns this +*/ +proto.v1.PCmdStreamResponse.prototype.setMessage = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdStreamResponse} returns this + */ +proto.v1.PCmdStreamResponse.prototype.clearMessage = function() { + return this.setMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdStreamResponse.prototype.hasMessage = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * 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>} + * @const + */ +proto.v1.PCmdRequest.oneofGroups_ = [[710,730,740,750]]; + +/** + * @enum {number} + */ +proto.v1.PCmdRequest.CommandCase = { + COMMAND_NOT_SET: 0, + COMMANDECHO: 710, + COMMANDACTIVETHREADCOUNT: 730, + COMMANDACTIVETHREADDUMP: 740, + COMMANDACTIVETHREADLIGHTDUMP: 750 +}; + +/** + * @return {proto.v1.PCmdRequest.CommandCase} + */ +proto.v1.PCmdRequest.prototype.getCommandCase = function() { + return /** @type {proto.v1.PCmdRequest.CommandCase} */(jspb.Message.computeOneofCase(this, proto.v1.PCmdRequest.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_, 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.PCmdRequest.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdRequest.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.PCmdRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdRequest.toObject = function(includeInstance, msg) { + var f, obj = { + requestid: jspb.Message.getFieldWithDefault(msg, 1, 0), + commandecho: (f = msg.getCommandecho()) && proto.v1.PCmdEcho.toObject(includeInstance, f), + commandactivethreadcount: (f = msg.getCommandactivethreadcount()) && proto.v1.PCmdActiveThreadCount.toObject(includeInstance, f), + commandactivethreaddump: (f = msg.getCommandactivethreaddump()) && proto.v1.PCmdActiveThreadDump.toObject(includeInstance, f), + commandactivethreadlightdump: (f = msg.getCommandactivethreadlightdump()) && proto.v1.PCmdActiveThreadLightDump.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.PCmdRequest} + */ +proto.v1.PCmdRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdRequest; + return proto.v1.PCmdRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdRequest} + */ +proto.v1.PCmdRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRequestid(value); + break; + case 710: + var value = new proto.v1.PCmdEcho; + reader.readMessage(value,proto.v1.PCmdEcho.deserializeBinaryFromReader); + msg.setCommandecho(value); + break; + case 730: + var value = new proto.v1.PCmdActiveThreadCount; + reader.readMessage(value,proto.v1.PCmdActiveThreadCount.deserializeBinaryFromReader); + msg.setCommandactivethreadcount(value); + break; + case 740: + var value = new proto.v1.PCmdActiveThreadDump; + reader.readMessage(value,proto.v1.PCmdActiveThreadDump.deserializeBinaryFromReader); + msg.setCommandactivethreaddump(value); + break; + case 750: + var value = new proto.v1.PCmdActiveThreadLightDump; + reader.readMessage(value,proto.v1.PCmdActiveThreadLightDump.deserializeBinaryFromReader); + msg.setCommandactivethreadlightdump(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdRequest.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.PCmdRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequestid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getCommandecho(); + if (f != null) { + writer.writeMessage( + 710, + f, + proto.v1.PCmdEcho.serializeBinaryToWriter + ); + } + f = message.getCommandactivethreadcount(); + if (f != null) { + writer.writeMessage( + 730, + f, + proto.v1.PCmdActiveThreadCount.serializeBinaryToWriter + ); + } + f = message.getCommandactivethreaddump(); + if (f != null) { + writer.writeMessage( + 740, + f, + proto.v1.PCmdActiveThreadDump.serializeBinaryToWriter + ); + } + f = message.getCommandactivethreadlightdump(); + if (f != null) { + writer.writeMessage( + 750, + f, + proto.v1.PCmdActiveThreadLightDump.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 requestId = 1; + * @return {number} + */ +proto.v1.PCmdRequest.prototype.getRequestid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdRequest} returns this + */ +proto.v1.PCmdRequest.prototype.setRequestid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional PCmdEcho commandEcho = 710; + * @return {?proto.v1.PCmdEcho} + */ +proto.v1.PCmdRequest.prototype.getCommandecho = function() { + return /** @type{?proto.v1.PCmdEcho} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdEcho, 710)); +}; + + +/** + * @param {?proto.v1.PCmdEcho|undefined} value + * @return {!proto.v1.PCmdRequest} returns this +*/ +proto.v1.PCmdRequest.prototype.setCommandecho = function(value) { + return jspb.Message.setOneofWrapperField(this, 710, proto.v1.PCmdRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdRequest} returns this + */ +proto.v1.PCmdRequest.prototype.clearCommandecho = function() { + return this.setCommandecho(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdRequest.prototype.hasCommandecho = function() { + return jspb.Message.getField(this, 710) != null; +}; + + +/** + * optional PCmdActiveThreadCount commandActiveThreadCount = 730; + * @return {?proto.v1.PCmdActiveThreadCount} + */ +proto.v1.PCmdRequest.prototype.getCommandactivethreadcount = function() { + return /** @type{?proto.v1.PCmdActiveThreadCount} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdActiveThreadCount, 730)); +}; + + +/** + * @param {?proto.v1.PCmdActiveThreadCount|undefined} value + * @return {!proto.v1.PCmdRequest} returns this +*/ +proto.v1.PCmdRequest.prototype.setCommandactivethreadcount = function(value) { + return jspb.Message.setOneofWrapperField(this, 730, proto.v1.PCmdRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdRequest} returns this + */ +proto.v1.PCmdRequest.prototype.clearCommandactivethreadcount = function() { + return this.setCommandactivethreadcount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdRequest.prototype.hasCommandactivethreadcount = function() { + return jspb.Message.getField(this, 730) != null; +}; + + +/** + * optional PCmdActiveThreadDump commandActiveThreadDump = 740; + * @return {?proto.v1.PCmdActiveThreadDump} + */ +proto.v1.PCmdRequest.prototype.getCommandactivethreaddump = function() { + return /** @type{?proto.v1.PCmdActiveThreadDump} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdActiveThreadDump, 740)); +}; + + +/** + * @param {?proto.v1.PCmdActiveThreadDump|undefined} value + * @return {!proto.v1.PCmdRequest} returns this +*/ +proto.v1.PCmdRequest.prototype.setCommandactivethreaddump = function(value) { + return jspb.Message.setOneofWrapperField(this, 740, proto.v1.PCmdRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdRequest} returns this + */ +proto.v1.PCmdRequest.prototype.clearCommandactivethreaddump = function() { + return this.setCommandactivethreaddump(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdRequest.prototype.hasCommandactivethreaddump = function() { + return jspb.Message.getField(this, 740) != null; +}; + + +/** + * optional PCmdActiveThreadLightDump commandActiveThreadLightDump = 750; + * @return {?proto.v1.PCmdActiveThreadLightDump} + */ +proto.v1.PCmdRequest.prototype.getCommandactivethreadlightdump = function() { + return /** @type{?proto.v1.PCmdActiveThreadLightDump} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdActiveThreadLightDump, 750)); +}; + + +/** + * @param {?proto.v1.PCmdActiveThreadLightDump|undefined} value + * @return {!proto.v1.PCmdRequest} returns this +*/ +proto.v1.PCmdRequest.prototype.setCommandactivethreadlightdump = function(value) { + return jspb.Message.setOneofWrapperField(this, 750, proto.v1.PCmdRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdRequest} returns this + */ +proto.v1.PCmdRequest.prototype.clearCommandactivethreadlightdump = function() { + return this.setCommandactivethreadlightdump(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdRequest.prototype.hasCommandactivethreadlightdump = function() { + return jspb.Message.getField(this, 750) != 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_, 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.PCmdEcho.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdEcho.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.PCmdEcho} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdEcho.toObject = function(includeInstance, msg) { + var f, obj = { + message: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + 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.PCmdEcho} + */ +proto.v1.PCmdEcho.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdEcho; + return proto.v1.PCmdEcho.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdEcho} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdEcho} + */ +proto.v1.PCmdEcho.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.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdEcho.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdEcho.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.PCmdEcho} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdEcho.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string message = 1; + * @return {string} + */ +proto.v1.PCmdEcho.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdEcho} returns this + */ +proto.v1.PCmdEcho.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 1, 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_, 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.PCmdEchoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdEchoResponse.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.PCmdEchoResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdEchoResponse.toObject = function(includeInstance, msg) { + var f, obj = { + commonresponse: (f = msg.getCommonresponse()) && proto.v1.PCmdResponse.toObject(includeInstance, f), + message: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PCmdEchoResponse} + */ +proto.v1.PCmdEchoResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdEchoResponse; + return proto.v1.PCmdEchoResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdEchoResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdEchoResponse} + */ +proto.v1.PCmdEchoResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PCmdResponse; + reader.readMessage(value,proto.v1.PCmdResponse.deserializeBinaryFromReader); + msg.setCommonresponse(value); + break; + case 2: + 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.PCmdEchoResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdEchoResponse.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.PCmdEchoResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdEchoResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommonresponse(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PCmdResponse.serializeBinaryToWriter + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional PCmdResponse commonResponse = 1; + * @return {?proto.v1.PCmdResponse} + */ +proto.v1.PCmdEchoResponse.prototype.getCommonresponse = function() { + return /** @type{?proto.v1.PCmdResponse} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdResponse, 1)); +}; + + +/** + * @param {?proto.v1.PCmdResponse|undefined} value + * @return {!proto.v1.PCmdEchoResponse} returns this +*/ +proto.v1.PCmdEchoResponse.prototype.setCommonresponse = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdEchoResponse} returns this + */ +proto.v1.PCmdEchoResponse.prototype.clearCommonresponse = function() { + return this.setCommonresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdEchoResponse.prototype.hasCommonresponse = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.v1.PCmdEchoResponse.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdEchoResponse} returns this + */ +proto.v1.PCmdEchoResponse.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdActiveThreadDump.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_, 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.PCmdActiveThreadDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadDump.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.PCmdActiveThreadDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadDump.toObject = function(includeInstance, msg) { + var f, obj = { + limit: jspb.Message.getFieldWithDefault(msg, 1, 0), + threadnameList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + localtraceidList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PCmdActiveThreadDump} + */ +proto.v1.PCmdActiveThreadDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadDump; + return proto.v1.PCmdActiveThreadDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadDump} + */ +proto.v1.PCmdActiveThreadDump.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLimit(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addThreadname(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addLocaltraceid(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdActiveThreadDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadDump.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.PCmdActiveThreadDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLimit(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getThreadnameList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getLocaltraceidList(); + if (f.length > 0) { + writer.writePackedInt64( + 3, + f + ); + } +}; + + +/** + * optional int32 limit = 1; + * @return {number} + */ +proto.v1.PCmdActiveThreadDump.prototype.getLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.setLimit = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated string threadName = 2; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadDump.prototype.getThreadnameList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.setThreadnameList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.addThreadname = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.clearThreadnameList = function() { + return this.setThreadnameList([]); +}; + + +/** + * repeated int64 localTraceId = 3; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadDump.prototype.getLocaltraceidList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.setLocaltraceidList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.addLocaltraceid = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadDump} returns this + */ +proto.v1.PCmdActiveThreadDump.prototype.clearLocaltraceidList = function() { + return this.setLocaltraceidList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdActiveThreadDumpRes.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_, 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.PCmdActiveThreadDumpRes.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadDumpRes.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.PCmdActiveThreadDumpRes} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadDumpRes.toObject = function(includeInstance, msg) { + var f, obj = { + commonresponse: (f = msg.getCommonresponse()) && proto.v1.PCmdResponse.toObject(includeInstance, f), + threaddumpList: jspb.Message.toObjectList(msg.getThreaddumpList(), + v1_ThreadDump_pb.PActiveThreadDump.toObject, includeInstance), + type: jspb.Message.getFieldWithDefault(msg, 3, ""), + subtype: jspb.Message.getFieldWithDefault(msg, 4, ""), + version: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + 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.PCmdActiveThreadDumpRes} + */ +proto.v1.PCmdActiveThreadDumpRes.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadDumpRes; + return proto.v1.PCmdActiveThreadDumpRes.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadDumpRes} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadDumpRes} + */ +proto.v1.PCmdActiveThreadDumpRes.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PCmdResponse; + reader.readMessage(value,proto.v1.PCmdResponse.deserializeBinaryFromReader); + msg.setCommonresponse(value); + break; + case 2: + var value = new v1_ThreadDump_pb.PActiveThreadDump; + reader.readMessage(value,v1_ThreadDump_pb.PActiveThreadDump.deserializeBinaryFromReader); + msg.addThreaddump(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSubtype(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadDumpRes.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.PCmdActiveThreadDumpRes} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadDumpRes.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommonresponse(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PCmdResponse.serializeBinaryToWriter + ); + } + f = message.getThreaddumpList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + v1_ThreadDump_pb.PActiveThreadDump.serializeBinaryToWriter + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getSubtype(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional PCmdResponse commonResponse = 1; + * @return {?proto.v1.PCmdResponse} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.getCommonresponse = function() { + return /** @type{?proto.v1.PCmdResponse} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdResponse, 1)); +}; + + +/** + * @param {?proto.v1.PCmdResponse|undefined} value + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this +*/ +proto.v1.PCmdActiveThreadDumpRes.prototype.setCommonresponse = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.clearCommonresponse = function() { + return this.setCommonresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.hasCommonresponse = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated PActiveThreadDump threadDump = 2; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.getThreaddumpList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, v1_ThreadDump_pb.PActiveThreadDump, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this +*/ +proto.v1.PCmdActiveThreadDumpRes.prototype.setThreaddumpList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PActiveThreadDump=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PActiveThreadDump} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.addThreaddump = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PActiveThreadDump, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.clearThreaddumpList = function() { + return this.setThreaddumpList([]); +}; + + +/** + * optional string type = 3; + * @return {string} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string subType = 4; + * @return {string} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.getSubtype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.setSubtype = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string version = 5; + * @return {string} + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadDumpRes} returns this + */ +proto.v1.PCmdActiveThreadDumpRes.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdActiveThreadLightDump.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_, 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.PCmdActiveThreadLightDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadLightDump.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.PCmdActiveThreadLightDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadLightDump.toObject = function(includeInstance, msg) { + var f, obj = { + limit: jspb.Message.getFieldWithDefault(msg, 1, 0), + threadnameList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + localtraceidList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PCmdActiveThreadLightDump} + */ +proto.v1.PCmdActiveThreadLightDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadLightDump; + return proto.v1.PCmdActiveThreadLightDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadLightDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadLightDump} + */ +proto.v1.PCmdActiveThreadLightDump.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLimit(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addThreadname(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addLocaltraceid(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdActiveThreadLightDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadLightDump.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.PCmdActiveThreadLightDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadLightDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLimit(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getThreadnameList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getLocaltraceidList(); + if (f.length > 0) { + writer.writePackedInt64( + 3, + f + ); + } +}; + + +/** + * optional int32 limit = 1; + * @return {number} + */ +proto.v1.PCmdActiveThreadLightDump.prototype.getLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.setLimit = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated string threadName = 2; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadLightDump.prototype.getThreadnameList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.setThreadnameList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.addThreadname = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.clearThreadnameList = function() { + return this.setThreadnameList([]); +}; + + +/** + * repeated int64 localTraceId = 3; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadLightDump.prototype.getLocaltraceidList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.setLocaltraceidList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.addLocaltraceid = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadLightDump} returns this + */ +proto.v1.PCmdActiveThreadLightDump.prototype.clearLocaltraceidList = function() { + return this.setLocaltraceidList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdActiveThreadLightDumpRes.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_, 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.PCmdActiveThreadLightDumpRes.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadLightDumpRes.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.PCmdActiveThreadLightDumpRes} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadLightDumpRes.toObject = function(includeInstance, msg) { + var f, obj = { + commonresponse: (f = msg.getCommonresponse()) && proto.v1.PCmdResponse.toObject(includeInstance, f), + threaddumpList: jspb.Message.toObjectList(msg.getThreaddumpList(), + v1_ThreadDump_pb.PActiveThreadLightDump.toObject, includeInstance), + type: jspb.Message.getFieldWithDefault(msg, 3, ""), + subtype: jspb.Message.getFieldWithDefault(msg, 4, ""), + version: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + 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.PCmdActiveThreadLightDumpRes} + */ +proto.v1.PCmdActiveThreadLightDumpRes.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadLightDumpRes; + return proto.v1.PCmdActiveThreadLightDumpRes.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadLightDumpRes} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} + */ +proto.v1.PCmdActiveThreadLightDumpRes.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PCmdResponse; + reader.readMessage(value,proto.v1.PCmdResponse.deserializeBinaryFromReader); + msg.setCommonresponse(value); + break; + case 2: + var value = new v1_ThreadDump_pb.PActiveThreadLightDump; + reader.readMessage(value,v1_ThreadDump_pb.PActiveThreadLightDump.deserializeBinaryFromReader); + msg.addThreaddump(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSubtype(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadLightDumpRes.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.PCmdActiveThreadLightDumpRes} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadLightDumpRes.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommonresponse(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PCmdResponse.serializeBinaryToWriter + ); + } + f = message.getThreaddumpList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + v1_ThreadDump_pb.PActiveThreadLightDump.serializeBinaryToWriter + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getSubtype(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional PCmdResponse commonResponse = 1; + * @return {?proto.v1.PCmdResponse} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.getCommonresponse = function() { + return /** @type{?proto.v1.PCmdResponse} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdResponse, 1)); +}; + + +/** + * @param {?proto.v1.PCmdResponse|undefined} value + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this +*/ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.setCommonresponse = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.clearCommonresponse = function() { + return this.setCommonresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.hasCommonresponse = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated PActiveThreadLightDump threadDump = 2; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.getThreaddumpList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, v1_ThreadDump_pb.PActiveThreadLightDump, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this +*/ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.setThreaddumpList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PActiveThreadLightDump=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PActiveThreadLightDump} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.addThreaddump = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PActiveThreadLightDump, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.clearThreaddumpList = function() { + return this.setThreaddumpList([]); +}; + + +/** + * optional string type = 3; + * @return {string} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string subType = 4; + * @return {string} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.getSubtype = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.setSubtype = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string version = 5; + * @return {string} + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PCmdActiveThreadLightDumpRes} returns this + */ +proto.v1.PCmdActiveThreadLightDumpRes.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(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_, 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.PCmdActiveThreadCount.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadCount.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.PCmdActiveThreadCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadCount.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.PCmdActiveThreadCount} + */ +proto.v1.PCmdActiveThreadCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadCount; + return proto.v1.PCmdActiveThreadCount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadCount} + */ +proto.v1.PCmdActiveThreadCount.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.PCmdActiveThreadCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadCount.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.PCmdActiveThreadCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCmdActiveThreadCountRes.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PCmdActiveThreadCountRes.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCmdActiveThreadCountRes.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.PCmdActiveThreadCountRes} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadCountRes.toObject = function(includeInstance, msg) { + var f, obj = { + commonstreamresponse: (f = msg.getCommonstreamresponse()) && proto.v1.PCmdStreamResponse.toObject(includeInstance, f), + histogramschematype: jspb.Message.getFieldWithDefault(msg, 2, 0), + activethreadcountList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + timestamp: 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.v1.PCmdActiveThreadCountRes} + */ +proto.v1.PCmdActiveThreadCountRes.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCmdActiveThreadCountRes; + return proto.v1.PCmdActiveThreadCountRes.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCmdActiveThreadCountRes} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCmdActiveThreadCountRes} + */ +proto.v1.PCmdActiveThreadCountRes.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PCmdStreamResponse; + reader.readMessage(value,proto.v1.PCmdStreamResponse.deserializeBinaryFromReader); + msg.setCommonstreamresponse(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHistogramschematype(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addActivethreadcount(values[i]); + } + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCmdActiveThreadCountRes.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.PCmdActiveThreadCountRes} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCmdActiveThreadCountRes.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommonstreamresponse(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PCmdStreamResponse.serializeBinaryToWriter + ); + } + f = message.getHistogramschematype(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getActivethreadcountList(); + if (f.length > 0) { + writer.writePackedInt32( + 3, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional PCmdStreamResponse commonStreamResponse = 1; + * @return {?proto.v1.PCmdStreamResponse} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.getCommonstreamresponse = function() { + return /** @type{?proto.v1.PCmdStreamResponse} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCmdStreamResponse, 1)); +}; + + +/** + * @param {?proto.v1.PCmdStreamResponse|undefined} value + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this +*/ +proto.v1.PCmdActiveThreadCountRes.prototype.setCommonstreamresponse = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.clearCommonstreamresponse = function() { + return this.setCommonstreamresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.hasCommonstreamresponse = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int32 histogramSchemaType = 2; + * @return {number} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.getHistogramschematype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.setHistogramschematype = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated int32 activeThreadCount = 3; + * @return {!Array} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.getActivethreadcountList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.setActivethreadcountList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.addActivethreadcount = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.clearActivethreadcountList = function() { + return this.setActivethreadcountList([]); +}; + + +/** + * optional int64 timeStamp = 4; + * @return {number} + */ +proto.v1.PCmdActiveThreadCountRes.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCmdActiveThreadCountRes} returns this + */ +proto.v1.PCmdActiveThreadCountRes.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * @enum {number} + */ +proto.v1.PCommandType = { + NONE: 0, + PING: 100, + PONG: 101, + ECHO: 710, + ACTIVE_THREAD_COUNT: 730, + ACTIVE_THREAD_DUMP: 740, + ACTIVE_THREAD_LIGHT_DUMP: 750 +}; + +goog.object.extend(exports, proto.v1); diff --git a/lib/data/v1/CustomMetric_grpc_pb.js b/lib/data/v1/CustomMetric_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/CustomMetric_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/CustomMetric_pb.js b/lib/data/v1/CustomMetric_pb.js new file mode 100644 index 00000000..5a9ff715 --- /dev/null +++ b/lib/data/v1/CustomMetric_pb.js @@ -0,0 +1,2314 @@ +// source: v1/CustomMetric.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.v1.PCustomMetric', null, global); +goog.exportSymbol('proto.v1.PCustomMetric.FieldCase', null, global); +goog.exportSymbol('proto.v1.PCustomMetricMessage', null, global); +goog.exportSymbol('proto.v1.PDoubleValue', null, global); +goog.exportSymbol('proto.v1.PDouleGaugeMetric', null, global); +goog.exportSymbol('proto.v1.PIntCountMetric', null, global); +goog.exportSymbol('proto.v1.PIntGaugeMetric', null, global); +goog.exportSymbol('proto.v1.PIntValue', null, global); +goog.exportSymbol('proto.v1.PLongCountMetric', null, global); +goog.exportSymbol('proto.v1.PLongGaugeMetric', null, global); +goog.exportSymbol('proto.v1.PLongValue', 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.PCustomMetricMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PCustomMetricMessage.repeatedFields_, null); +}; +goog.inherits(proto.v1.PCustomMetricMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCustomMetricMessage.displayName = 'proto.v1.PCustomMetricMessage'; +} +/** + * 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.PCustomMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PCustomMetric.oneofGroups_); +}; +goog.inherits(proto.v1.PCustomMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PCustomMetric.displayName = 'proto.v1.PCustomMetric'; +} +/** + * 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.PIntCountMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PIntCountMetric.repeatedFields_, null); +}; +goog.inherits(proto.v1.PIntCountMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntCountMetric.displayName = 'proto.v1.PIntCountMetric'; +} +/** + * 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.PLongCountMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PLongCountMetric.repeatedFields_, null); +}; +goog.inherits(proto.v1.PLongCountMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PLongCountMetric.displayName = 'proto.v1.PLongCountMetric'; +} +/** + * 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.PIntGaugeMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PIntGaugeMetric.repeatedFields_, null); +}; +goog.inherits(proto.v1.PIntGaugeMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntGaugeMetric.displayName = 'proto.v1.PIntGaugeMetric'; +} +/** + * 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.PLongGaugeMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PLongGaugeMetric.repeatedFields_, null); +}; +goog.inherits(proto.v1.PLongGaugeMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PLongGaugeMetric.displayName = 'proto.v1.PLongGaugeMetric'; +} +/** + * 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.PDouleGaugeMetric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PDouleGaugeMetric.repeatedFields_, null); +}; +goog.inherits(proto.v1.PDouleGaugeMetric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PDouleGaugeMetric.displayName = 'proto.v1.PDouleGaugeMetric'; +} +/** + * 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.PIntValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PIntValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PIntValue.displayName = 'proto.v1.PIntValue'; +} +/** + * 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.PLongValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PLongValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PLongValue.displayName = 'proto.v1.PLongValue'; +} +/** + * 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.PDoubleValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PDoubleValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PDoubleValue.displayName = 'proto.v1.PDoubleValue'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PCustomMetricMessage.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_, 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.PCustomMetricMessage.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCustomMetricMessage.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.PCustomMetricMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCustomMetricMessage.toObject = function(includeInstance, msg) { + var f, obj = { + timestampList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + collectintervalList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + custommetricsList: jspb.Message.toObjectList(msg.getCustommetricsList(), + proto.v1.PCustomMetric.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.PCustomMetricMessage} + */ +proto.v1.PCustomMetricMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCustomMetricMessage; + return proto.v1.PCustomMetricMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCustomMetricMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCustomMetricMessage} + */ +proto.v1.PCustomMetricMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addTimestamp(values[i]); + } + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addCollectinterval(values[i]); + } + break; + case 3: + var value = new proto.v1.PCustomMetric; + reader.readMessage(value,proto.v1.PCustomMetric.deserializeBinaryFromReader); + msg.addCustommetrics(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCustomMetricMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCustomMetricMessage.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.PCustomMetricMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCustomMetricMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestampList(); + if (f.length > 0) { + writer.writePackedInt64( + 1, + f + ); + } + f = message.getCollectintervalList(); + if (f.length > 0) { + writer.writePackedInt64( + 2, + f + ); + } + f = message.getCustommetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.v1.PCustomMetric.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated int64 timestamp = 1; + * @return {!Array} + */ +proto.v1.PCustomMetricMessage.prototype.getTimestampList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.setTimestampList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.addTimestamp = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.clearTimestampList = function() { + return this.setTimestampList([]); +}; + + +/** + * repeated int64 collectInterval = 2; + * @return {!Array} + */ +proto.v1.PCustomMetricMessage.prototype.getCollectintervalList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.setCollectintervalList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.addCollectinterval = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.clearCollectintervalList = function() { + return this.setCollectintervalList([]); +}; + + +/** + * repeated PCustomMetric customMetrics = 3; + * @return {!Array} + */ +proto.v1.PCustomMetricMessage.prototype.getCustommetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PCustomMetric, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PCustomMetricMessage} returns this +*/ +proto.v1.PCustomMetricMessage.prototype.setCustommetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.v1.PCustomMetric=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PCustomMetric} + */ +proto.v1.PCustomMetricMessage.prototype.addCustommetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.v1.PCustomMetric, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PCustomMetricMessage} returns this + */ +proto.v1.PCustomMetricMessage.prototype.clearCustommetricsList = function() { + return this.setCustommetricsList([]); +}; + + + +/** + * 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>} + * @const + */ +proto.v1.PCustomMetric.oneofGroups_ = [[1,2,3,4,5]]; + +/** + * @enum {number} + */ +proto.v1.PCustomMetric.FieldCase = { + FIELD_NOT_SET: 0, + INTCOUNTMETRIC: 1, + LONGCOUNTMETRIC: 2, + INTGAUGEMETRIC: 3, + LONGGAUGEMETRIC: 4, + DOUBLEGAUGEMETRIC: 5 +}; + +/** + * @return {proto.v1.PCustomMetric.FieldCase} + */ +proto.v1.PCustomMetric.prototype.getFieldCase = function() { + return /** @type {proto.v1.PCustomMetric.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PCustomMetric.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_, 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.PCustomMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCustomMetric.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.PCustomMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCustomMetric.toObject = function(includeInstance, msg) { + var f, obj = { + intcountmetric: (f = msg.getIntcountmetric()) && proto.v1.PIntCountMetric.toObject(includeInstance, f), + longcountmetric: (f = msg.getLongcountmetric()) && proto.v1.PLongCountMetric.toObject(includeInstance, f), + intgaugemetric: (f = msg.getIntgaugemetric()) && proto.v1.PIntGaugeMetric.toObject(includeInstance, f), + longgaugemetric: (f = msg.getLonggaugemetric()) && proto.v1.PLongGaugeMetric.toObject(includeInstance, f), + doublegaugemetric: (f = msg.getDoublegaugemetric()) && proto.v1.PDouleGaugeMetric.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.PCustomMetric} + */ +proto.v1.PCustomMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCustomMetric; + return proto.v1.PCustomMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCustomMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCustomMetric} + */ +proto.v1.PCustomMetric.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PIntCountMetric; + reader.readMessage(value,proto.v1.PIntCountMetric.deserializeBinaryFromReader); + msg.setIntcountmetric(value); + break; + case 2: + var value = new proto.v1.PLongCountMetric; + reader.readMessage(value,proto.v1.PLongCountMetric.deserializeBinaryFromReader); + msg.setLongcountmetric(value); + break; + case 3: + var value = new proto.v1.PIntGaugeMetric; + reader.readMessage(value,proto.v1.PIntGaugeMetric.deserializeBinaryFromReader); + msg.setIntgaugemetric(value); + break; + case 4: + var value = new proto.v1.PLongGaugeMetric; + reader.readMessage(value,proto.v1.PLongGaugeMetric.deserializeBinaryFromReader); + msg.setLonggaugemetric(value); + break; + case 5: + var value = new proto.v1.PDouleGaugeMetric; + reader.readMessage(value,proto.v1.PDouleGaugeMetric.deserializeBinaryFromReader); + msg.setDoublegaugemetric(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCustomMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCustomMetric.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.PCustomMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCustomMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntcountmetric(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PIntCountMetric.serializeBinaryToWriter + ); + } + f = message.getLongcountmetric(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PLongCountMetric.serializeBinaryToWriter + ); + } + f = message.getIntgaugemetric(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.v1.PIntGaugeMetric.serializeBinaryToWriter + ); + } + f = message.getLonggaugemetric(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.v1.PLongGaugeMetric.serializeBinaryToWriter + ); + } + f = message.getDoublegaugemetric(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.v1.PDouleGaugeMetric.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PIntCountMetric intCountMetric = 1; + * @return {?proto.v1.PIntCountMetric} + */ +proto.v1.PCustomMetric.prototype.getIntcountmetric = function() { + return /** @type{?proto.v1.PIntCountMetric} */ ( + jspb.Message.getWrapperField(this, proto.v1.PIntCountMetric, 1)); +}; + + +/** + * @param {?proto.v1.PIntCountMetric|undefined} value + * @return {!proto.v1.PCustomMetric} returns this +*/ +proto.v1.PCustomMetric.prototype.setIntcountmetric = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.v1.PCustomMetric.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCustomMetric} returns this + */ +proto.v1.PCustomMetric.prototype.clearIntcountmetric = function() { + return this.setIntcountmetric(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCustomMetric.prototype.hasIntcountmetric = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional PLongCountMetric longCountMetric = 2; + * @return {?proto.v1.PLongCountMetric} + */ +proto.v1.PCustomMetric.prototype.getLongcountmetric = function() { + return /** @type{?proto.v1.PLongCountMetric} */ ( + jspb.Message.getWrapperField(this, proto.v1.PLongCountMetric, 2)); +}; + + +/** + * @param {?proto.v1.PLongCountMetric|undefined} value + * @return {!proto.v1.PCustomMetric} returns this +*/ +proto.v1.PCustomMetric.prototype.setLongcountmetric = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.v1.PCustomMetric.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCustomMetric} returns this + */ +proto.v1.PCustomMetric.prototype.clearLongcountmetric = function() { + return this.setLongcountmetric(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCustomMetric.prototype.hasLongcountmetric = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional PIntGaugeMetric intGaugeMetric = 3; + * @return {?proto.v1.PIntGaugeMetric} + */ +proto.v1.PCustomMetric.prototype.getIntgaugemetric = function() { + return /** @type{?proto.v1.PIntGaugeMetric} */ ( + jspb.Message.getWrapperField(this, proto.v1.PIntGaugeMetric, 3)); +}; + + +/** + * @param {?proto.v1.PIntGaugeMetric|undefined} value + * @return {!proto.v1.PCustomMetric} returns this +*/ +proto.v1.PCustomMetric.prototype.setIntgaugemetric = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.v1.PCustomMetric.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCustomMetric} returns this + */ +proto.v1.PCustomMetric.prototype.clearIntgaugemetric = function() { + return this.setIntgaugemetric(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCustomMetric.prototype.hasIntgaugemetric = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional PLongGaugeMetric longGaugeMetric = 4; + * @return {?proto.v1.PLongGaugeMetric} + */ +proto.v1.PCustomMetric.prototype.getLonggaugemetric = function() { + return /** @type{?proto.v1.PLongGaugeMetric} */ ( + jspb.Message.getWrapperField(this, proto.v1.PLongGaugeMetric, 4)); +}; + + +/** + * @param {?proto.v1.PLongGaugeMetric|undefined} value + * @return {!proto.v1.PCustomMetric} returns this +*/ +proto.v1.PCustomMetric.prototype.setLonggaugemetric = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.v1.PCustomMetric.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCustomMetric} returns this + */ +proto.v1.PCustomMetric.prototype.clearLonggaugemetric = function() { + return this.setLonggaugemetric(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCustomMetric.prototype.hasLonggaugemetric = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional PDouleGaugeMetric doubleGaugeMetric = 5; + * @return {?proto.v1.PDouleGaugeMetric} + */ +proto.v1.PCustomMetric.prototype.getDoublegaugemetric = function() { + return /** @type{?proto.v1.PDouleGaugeMetric} */ ( + jspb.Message.getWrapperField(this, proto.v1.PDouleGaugeMetric, 5)); +}; + + +/** + * @param {?proto.v1.PDouleGaugeMetric|undefined} value + * @return {!proto.v1.PCustomMetric} returns this +*/ +proto.v1.PCustomMetric.prototype.setDoublegaugemetric = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.v1.PCustomMetric.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PCustomMetric} returns this + */ +proto.v1.PCustomMetric.prototype.clearDoublegaugemetric = function() { + return this.setDoublegaugemetric(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PCustomMetric.prototype.hasDoublegaugemetric = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PIntCountMetric.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_, 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.PIntCountMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntCountMetric.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.PIntCountMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntCountMetric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.v1.PIntValue.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.PIntCountMetric} + */ +proto.v1.PIntCountMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntCountMetric; + return proto.v1.PIntCountMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntCountMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntCountMetric} + */ +proto.v1.PIntCountMetric.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.setName(value); + break; + case 2: + var value = new proto.v1.PIntValue; + reader.readMessage(value,proto.v1.PIntValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntCountMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntCountMetric.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.PIntCountMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntCountMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.v1.PIntValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.v1.PIntCountMetric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PIntCountMetric} returns this + */ +proto.v1.PIntCountMetric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated PIntValue values = 2; + * @return {!Array} + */ +proto.v1.PIntCountMetric.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PIntValue, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PIntCountMetric} returns this +*/ +proto.v1.PIntCountMetric.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PIntValue=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PIntValue} + */ +proto.v1.PIntCountMetric.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PIntValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PIntCountMetric} returns this + */ +proto.v1.PIntCountMetric.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PLongCountMetric.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_, 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.PLongCountMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLongCountMetric.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.PLongCountMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongCountMetric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.v1.PLongValue.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.PLongCountMetric} + */ +proto.v1.PLongCountMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLongCountMetric; + return proto.v1.PLongCountMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLongCountMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLongCountMetric} + */ +proto.v1.PLongCountMetric.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.setName(value); + break; + case 2: + var value = new proto.v1.PLongValue; + reader.readMessage(value,proto.v1.PLongValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLongCountMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLongCountMetric.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.PLongCountMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongCountMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.v1.PLongValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.v1.PLongCountMetric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PLongCountMetric} returns this + */ +proto.v1.PLongCountMetric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated PLongValue values = 2; + * @return {!Array} + */ +proto.v1.PLongCountMetric.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PLongValue, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PLongCountMetric} returns this +*/ +proto.v1.PLongCountMetric.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PLongValue=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PLongValue} + */ +proto.v1.PLongCountMetric.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PLongValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PLongCountMetric} returns this + */ +proto.v1.PLongCountMetric.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PIntGaugeMetric.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_, 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.PIntGaugeMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntGaugeMetric.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.PIntGaugeMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntGaugeMetric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.v1.PIntValue.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.PIntGaugeMetric} + */ +proto.v1.PIntGaugeMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntGaugeMetric; + return proto.v1.PIntGaugeMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntGaugeMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntGaugeMetric} + */ +proto.v1.PIntGaugeMetric.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.setName(value); + break; + case 2: + var value = new proto.v1.PIntValue; + reader.readMessage(value,proto.v1.PIntValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntGaugeMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntGaugeMetric.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.PIntGaugeMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntGaugeMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.v1.PIntValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.v1.PIntGaugeMetric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PIntGaugeMetric} returns this + */ +proto.v1.PIntGaugeMetric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated PIntValue values = 2; + * @return {!Array} + */ +proto.v1.PIntGaugeMetric.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PIntValue, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PIntGaugeMetric} returns this +*/ +proto.v1.PIntGaugeMetric.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PIntValue=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PIntValue} + */ +proto.v1.PIntGaugeMetric.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PIntValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PIntGaugeMetric} returns this + */ +proto.v1.PIntGaugeMetric.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PLongGaugeMetric.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_, 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.PLongGaugeMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLongGaugeMetric.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.PLongGaugeMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongGaugeMetric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.v1.PLongValue.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.PLongGaugeMetric} + */ +proto.v1.PLongGaugeMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLongGaugeMetric; + return proto.v1.PLongGaugeMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLongGaugeMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLongGaugeMetric} + */ +proto.v1.PLongGaugeMetric.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.setName(value); + break; + case 2: + var value = new proto.v1.PLongValue; + reader.readMessage(value,proto.v1.PLongValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLongGaugeMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLongGaugeMetric.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.PLongGaugeMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongGaugeMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.v1.PLongValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.v1.PLongGaugeMetric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PLongGaugeMetric} returns this + */ +proto.v1.PLongGaugeMetric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated PLongValue values = 2; + * @return {!Array} + */ +proto.v1.PLongGaugeMetric.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PLongValue, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PLongGaugeMetric} returns this +*/ +proto.v1.PLongGaugeMetric.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PLongValue=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PLongValue} + */ +proto.v1.PLongGaugeMetric.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PLongValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PLongGaugeMetric} returns this + */ +proto.v1.PLongGaugeMetric.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PDouleGaugeMetric.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_, 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.PDouleGaugeMetric.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDouleGaugeMetric.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.PDouleGaugeMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDouleGaugeMetric.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.v1.PDoubleValue.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.PDouleGaugeMetric} + */ +proto.v1.PDouleGaugeMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDouleGaugeMetric; + return proto.v1.PDouleGaugeMetric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDouleGaugeMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDouleGaugeMetric} + */ +proto.v1.PDouleGaugeMetric.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.setName(value); + break; + case 2: + var value = new proto.v1.PDoubleValue; + reader.readMessage(value,proto.v1.PDoubleValue.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDouleGaugeMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDouleGaugeMetric.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.PDouleGaugeMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDouleGaugeMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.v1.PDoubleValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.v1.PDouleGaugeMetric.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PDouleGaugeMetric} returns this + */ +proto.v1.PDouleGaugeMetric.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated PDoubleValue values = 2; + * @return {!Array} + */ +proto.v1.PDouleGaugeMetric.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PDoubleValue, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PDouleGaugeMetric} returns this +*/ +proto.v1.PDouleGaugeMetric.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PDoubleValue=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PDoubleValue} + */ +proto.v1.PDouleGaugeMetric.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PDoubleValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PDouleGaugeMetric} returns this + */ +proto.v1.PDouleGaugeMetric.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + + + +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_, 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.PIntValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PIntValue.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.PIntValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntValue.toObject = function(includeInstance, msg) { + var f, obj = { + value: jspb.Message.getFieldWithDefault(msg, 1, 0), + isnotset: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.PIntValue} + */ +proto.v1.PIntValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PIntValue; + return proto.v1.PIntValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PIntValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PIntValue} + */ +proto.v1.PIntValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setValue(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsnotset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PIntValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PIntValue.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.PIntValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PIntValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValue(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getIsnotset(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional int32 value = 1; + * @return {number} + */ +proto.v1.PIntValue.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PIntValue} returns this + */ +proto.v1.PIntValue.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool isNotSet = 2; + * @return {boolean} + */ +proto.v1.PIntValue.prototype.getIsnotset = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PIntValue} returns this + */ +proto.v1.PIntValue.prototype.setIsnotset = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PLongValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLongValue.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.PLongValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongValue.toObject = function(includeInstance, msg) { + var f, obj = { + value: jspb.Message.getFieldWithDefault(msg, 1, 0), + isnotset: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.PLongValue} + */ +proto.v1.PLongValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLongValue; + return proto.v1.PLongValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLongValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLongValue} + */ +proto.v1.PLongValue.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.setValue(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsnotset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLongValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLongValue.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.PLongValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLongValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValue(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getIsnotset(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional int64 value = 1; + * @return {number} + */ +proto.v1.PLongValue.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLongValue} returns this + */ +proto.v1.PLongValue.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bool isNotSet = 2; + * @return {boolean} + */ +proto.v1.PLongValue.prototype.getIsnotset = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PLongValue} returns this + */ +proto.v1.PLongValue.prototype.setIsnotset = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PDoubleValue.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDoubleValue.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.PDoubleValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDoubleValue.toObject = function(includeInstance, msg) { + var f, obj = { + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + isnotset: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.PDoubleValue} + */ +proto.v1.PDoubleValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDoubleValue; + return proto.v1.PDoubleValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDoubleValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDoubleValue} + */ +proto.v1.PDoubleValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readDouble()); + msg.setValue(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsnotset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDoubleValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDoubleValue.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.PDoubleValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDoubleValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValue(); + if (f !== 0.0) { + writer.writeDouble( + 1, + f + ); + } + f = message.getIsnotset(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional double value = 1; + * @return {number} + */ +proto.v1.PDoubleValue.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDoubleValue} returns this + */ +proto.v1.PDoubleValue.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional bool isNotSet = 2; + * @return {boolean} + */ +proto.v1.PDoubleValue.prototype.getIsnotset = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PDoubleValue} returns this + */ +proto.v1.PDoubleValue.prototype.setIsnotset = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +goog.object.extend(exports, proto.v1); diff --git a/lib/data/v1/Service_grpc_pb.js b/lib/data/v1/Service_grpc_pb.js new file mode 100644 index 00000000..cea557d7 --- /dev/null +++ b/lib/data/v1/Service_grpc_pb.js @@ -0,0 +1,339 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); +var v1_Span_pb = require('../v1/Span_pb.js'); +var v1_Stat_pb = require('../v1/Stat_pb.js'); +var v1_Cmd_pb = require('../v1/Cmd_pb.js'); + +function serialize_google_protobuf_Empty(arg) { + if (!(arg instanceof google_protobuf_empty_pb.Empty)) { + throw new Error('Expected argument of type google.protobuf.Empty'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_google_protobuf_Empty(buffer_arg) { + return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PAgentInfo(arg) { + if (!(arg instanceof v1_Stat_pb.PAgentInfo)) { + throw new Error('Expected argument of type v1.PAgentInfo'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PAgentInfo(buffer_arg) { + return v1_Stat_pb.PAgentInfo.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PApiMetaData(arg) { + if (!(arg instanceof v1_Span_pb.PApiMetaData)) { + throw new Error('Expected argument of type v1.PApiMetaData'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PApiMetaData(buffer_arg) { + return v1_Span_pb.PApiMetaData.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdActiveThreadCountRes(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdActiveThreadCountRes)) { + throw new Error('Expected argument of type v1.PCmdActiveThreadCountRes'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdActiveThreadCountRes(buffer_arg) { + return v1_Cmd_pb.PCmdActiveThreadCountRes.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdActiveThreadDumpRes(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdActiveThreadDumpRes)) { + throw new Error('Expected argument of type v1.PCmdActiveThreadDumpRes'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdActiveThreadDumpRes(buffer_arg) { + return v1_Cmd_pb.PCmdActiveThreadDumpRes.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdActiveThreadLightDumpRes(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdActiveThreadLightDumpRes)) { + throw new Error('Expected argument of type v1.PCmdActiveThreadLightDumpRes'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdActiveThreadLightDumpRes(buffer_arg) { + return v1_Cmd_pb.PCmdActiveThreadLightDumpRes.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdEchoResponse(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdEchoResponse)) { + throw new Error('Expected argument of type v1.PCmdEchoResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdEchoResponse(buffer_arg) { + return v1_Cmd_pb.PCmdEchoResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdMessage(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdMessage)) { + throw new Error('Expected argument of type v1.PCmdMessage'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdMessage(buffer_arg) { + return v1_Cmd_pb.PCmdMessage.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PCmdRequest(arg) { + if (!(arg instanceof v1_Cmd_pb.PCmdRequest)) { + throw new Error('Expected argument of type v1.PCmdRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PCmdRequest(buffer_arg) { + return v1_Cmd_pb.PCmdRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PPing(arg) { + if (!(arg instanceof v1_Stat_pb.PPing)) { + throw new Error('Expected argument of type v1.PPing'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PPing(buffer_arg) { + return v1_Stat_pb.PPing.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PResult(arg) { + if (!(arg instanceof v1_Span_pb.PResult)) { + throw new Error('Expected argument of type v1.PResult'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PResult(buffer_arg) { + return v1_Span_pb.PResult.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PSpanMessage(arg) { + if (!(arg instanceof v1_Span_pb.PSpanMessage)) { + throw new Error('Expected argument of type v1.PSpanMessage'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PSpanMessage(buffer_arg) { + return v1_Span_pb.PSpanMessage.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PSqlMetaData(arg) { + if (!(arg instanceof v1_Span_pb.PSqlMetaData)) { + throw new Error('Expected argument of type v1.PSqlMetaData'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PSqlMetaData(buffer_arg) { + return v1_Span_pb.PSqlMetaData.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PStatMessage(arg) { + if (!(arg instanceof v1_Stat_pb.PStatMessage)) { + throw new Error('Expected argument of type v1.PStatMessage'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PStatMessage(buffer_arg) { + return v1_Stat_pb.PStatMessage.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_v1_PStringMetaData(arg) { + if (!(arg instanceof v1_Span_pb.PStringMetaData)) { + throw new Error('Expected argument of type v1.PStringMetaData'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_v1_PStringMetaData(buffer_arg) { + return v1_Span_pb.PStringMetaData.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var SpanService = exports.SpanService = { + sendSpan: { + path: '/v1.Span/SendSpan', + requestStream: true, + responseStream: false, + requestType: v1_Span_pb.PSpanMessage, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PSpanMessage, + requestDeserialize: deserialize_v1_PSpanMessage, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, +}; + +exports.SpanClient = grpc.makeGenericClientConstructor(SpanService); +var AgentService = exports.AgentService = { + requestAgentInfo: { + path: '/v1.Agent/RequestAgentInfo', + requestStream: false, + responseStream: false, + requestType: v1_Stat_pb.PAgentInfo, + responseType: v1_Span_pb.PResult, + requestSerialize: serialize_v1_PAgentInfo, + requestDeserialize: deserialize_v1_PAgentInfo, + responseSerialize: serialize_v1_PResult, + responseDeserialize: deserialize_v1_PResult, + }, + pingSession: { + path: '/v1.Agent/PingSession', + requestStream: true, + responseStream: true, + requestType: v1_Stat_pb.PPing, + responseType: v1_Stat_pb.PPing, + requestSerialize: serialize_v1_PPing, + requestDeserialize: deserialize_v1_PPing, + responseSerialize: serialize_v1_PPing, + responseDeserialize: deserialize_v1_PPing, + }, +}; + +exports.AgentClient = grpc.makeGenericClientConstructor(AgentService); +var MetadataService = exports.MetadataService = { + requestSqlMetaData: { + path: '/v1.Metadata/RequestSqlMetaData', + requestStream: false, + responseStream: false, + requestType: v1_Span_pb.PSqlMetaData, + responseType: v1_Span_pb.PResult, + requestSerialize: serialize_v1_PSqlMetaData, + requestDeserialize: deserialize_v1_PSqlMetaData, + responseSerialize: serialize_v1_PResult, + responseDeserialize: deserialize_v1_PResult, + }, + requestApiMetaData: { + path: '/v1.Metadata/RequestApiMetaData', + requestStream: false, + responseStream: false, + requestType: v1_Span_pb.PApiMetaData, + responseType: v1_Span_pb.PResult, + requestSerialize: serialize_v1_PApiMetaData, + requestDeserialize: deserialize_v1_PApiMetaData, + responseSerialize: serialize_v1_PResult, + responseDeserialize: deserialize_v1_PResult, + }, + requestStringMetaData: { + path: '/v1.Metadata/RequestStringMetaData', + requestStream: false, + responseStream: false, + requestType: v1_Span_pb.PStringMetaData, + responseType: v1_Span_pb.PResult, + requestSerialize: serialize_v1_PStringMetaData, + requestDeserialize: deserialize_v1_PStringMetaData, + responseSerialize: serialize_v1_PResult, + responseDeserialize: deserialize_v1_PResult, + }, +}; + +exports.MetadataClient = grpc.makeGenericClientConstructor(MetadataService); +var StatService = exports.StatService = { + sendAgentStat: { + path: '/v1.Stat/SendAgentStat', + requestStream: true, + responseStream: false, + requestType: v1_Stat_pb.PStatMessage, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PStatMessage, + requestDeserialize: deserialize_v1_PStatMessage, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, +}; + +exports.StatClient = grpc.makeGenericClientConstructor(StatService); +var ProfilerCommandServiceService = exports.ProfilerCommandServiceService = { + // deprecated api +handleCommand: { + path: '/v1.ProfilerCommandService/HandleCommand', + requestStream: true, + responseStream: true, + requestType: v1_Cmd_pb.PCmdMessage, + responseType: v1_Cmd_pb.PCmdRequest, + requestSerialize: serialize_v1_PCmdMessage, + requestDeserialize: deserialize_v1_PCmdMessage, + responseSerialize: serialize_v1_PCmdRequest, + responseDeserialize: deserialize_v1_PCmdRequest, + }, + handleCommandV2: { + path: '/v1.ProfilerCommandService/HandleCommandV2', + requestStream: true, + responseStream: true, + requestType: v1_Cmd_pb.PCmdMessage, + responseType: v1_Cmd_pb.PCmdRequest, + requestSerialize: serialize_v1_PCmdMessage, + requestDeserialize: deserialize_v1_PCmdMessage, + responseSerialize: serialize_v1_PCmdRequest, + responseDeserialize: deserialize_v1_PCmdRequest, + }, + commandEcho: { + path: '/v1.ProfilerCommandService/CommandEcho', + requestStream: false, + responseStream: false, + requestType: v1_Cmd_pb.PCmdEchoResponse, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PCmdEchoResponse, + requestDeserialize: deserialize_v1_PCmdEchoResponse, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, + commandStreamActiveThreadCount: { + path: '/v1.ProfilerCommandService/CommandStreamActiveThreadCount', + requestStream: true, + responseStream: false, + requestType: v1_Cmd_pb.PCmdActiveThreadCountRes, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PCmdActiveThreadCountRes, + requestDeserialize: deserialize_v1_PCmdActiveThreadCountRes, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, + commandActiveThreadDump: { + path: '/v1.ProfilerCommandService/CommandActiveThreadDump', + requestStream: false, + responseStream: false, + requestType: v1_Cmd_pb.PCmdActiveThreadDumpRes, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PCmdActiveThreadDumpRes, + requestDeserialize: deserialize_v1_PCmdActiveThreadDumpRes, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, + commandActiveThreadLightDump: { + path: '/v1.ProfilerCommandService/CommandActiveThreadLightDump', + requestStream: false, + responseStream: false, + requestType: v1_Cmd_pb.PCmdActiveThreadLightDumpRes, + responseType: google_protobuf_empty_pb.Empty, + requestSerialize: serialize_v1_PCmdActiveThreadLightDumpRes, + requestDeserialize: deserialize_v1_PCmdActiveThreadLightDumpRes, + responseSerialize: serialize_google_protobuf_Empty, + responseDeserialize: deserialize_google_protobuf_Empty, + }, +}; + +exports.ProfilerCommandServiceClient = grpc.makeGenericClientConstructor(ProfilerCommandServiceService); diff --git a/lib/data/v1/Service_pb.js b/lib/data/v1/Service_pb.js new file mode 100644 index 00000000..277b001e --- /dev/null +++ b/lib/data/v1/Service_pb.js @@ -0,0 +1,24 @@ +// source: v1/Service.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); +goog.object.extend(proto, google_protobuf_empty_pb); +var v1_Span_pb = require('../v1/Span_pb.js'); +goog.object.extend(proto, v1_Span_pb); +var v1_Stat_pb = require('../v1/Stat_pb.js'); +goog.object.extend(proto, v1_Stat_pb); +var v1_Cmd_pb = require('../v1/Cmd_pb.js'); +goog.object.extend(proto, v1_Cmd_pb); diff --git a/lib/data/v1/Span_grpc_pb.js b/lib/data/v1/Span_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/Span_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/Span_pb.js b/lib/data/v1/Span_pb.js new file mode 100644 index 00000000..6c933b76 --- /dev/null +++ b/lib/data/v1/Span_pb.js @@ -0,0 +1,3984 @@ +// source: v1/Span.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var v1_Annotation_pb = require('../v1/Annotation_pb.js'); +goog.object.extend(proto, v1_Annotation_pb); +goog.exportSymbol('proto.v1.PAcceptEvent', null, global); +goog.exportSymbol('proto.v1.PApiMetaData', null, global); +goog.exportSymbol('proto.v1.PLocalAsyncId', null, global); +goog.exportSymbol('proto.v1.PMessageEvent', null, global); +goog.exportSymbol('proto.v1.PNextEvent', null, global); +goog.exportSymbol('proto.v1.PNextEvent.FieldCase', null, global); +goog.exportSymbol('proto.v1.PParentInfo', null, global); +goog.exportSymbol('proto.v1.PResult', null, global); +goog.exportSymbol('proto.v1.PSpan', null, global); +goog.exportSymbol('proto.v1.PSpanChunk', null, global); +goog.exportSymbol('proto.v1.PSpanEvent', null, global); +goog.exportSymbol('proto.v1.PSpanMessage', null, global); +goog.exportSymbol('proto.v1.PSpanMessage.FieldCase', null, global); +goog.exportSymbol('proto.v1.PSqlMetaData', null, global); +goog.exportSymbol('proto.v1.PStringMetaData', null, global); +goog.exportSymbol('proto.v1.PTransactionId', 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.PSpanMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PSpanMessage.oneofGroups_); +}; +goog.inherits(proto.v1.PSpanMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PSpanMessage.displayName = 'proto.v1.PSpanMessage'; +} +/** + * 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.PSpan = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PSpan.repeatedFields_, null); +}; +goog.inherits(proto.v1.PSpan, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PSpan.displayName = 'proto.v1.PSpan'; +} +/** + * 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.PTransactionId = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PTransactionId, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PTransactionId.displayName = 'proto.v1.PTransactionId'; +} +/** + * 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.PAcceptEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PAcceptEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PAcceptEvent.displayName = 'proto.v1.PAcceptEvent'; +} +/** + * 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.PParentInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PParentInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PParentInfo.displayName = 'proto.v1.PParentInfo'; +} +/** + * 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.PLocalAsyncId = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PLocalAsyncId, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PLocalAsyncId.displayName = 'proto.v1.PLocalAsyncId'; +} +/** + * 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.PSpanEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PSpanEvent.repeatedFields_, null); +}; +goog.inherits(proto.v1.PSpanEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PSpanEvent.displayName = 'proto.v1.PSpanEvent'; +} +/** + * 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.PNextEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PNextEvent.oneofGroups_); +}; +goog.inherits(proto.v1.PNextEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PNextEvent.displayName = 'proto.v1.PNextEvent'; +} +/** + * 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.PMessageEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PMessageEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PMessageEvent.displayName = 'proto.v1.PMessageEvent'; +} +/** + * 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.PSpanChunk = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PSpanChunk.repeatedFields_, null); +}; +goog.inherits(proto.v1.PSpanChunk, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PSpanChunk.displayName = 'proto.v1.PSpanChunk'; +} +/** + * 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.PResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PResult.displayName = 'proto.v1.PResult'; +} +/** + * 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.PSqlMetaData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PSqlMetaData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PSqlMetaData.displayName = 'proto.v1.PSqlMetaData'; +} +/** + * 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.PApiMetaData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PApiMetaData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PApiMetaData.displayName = 'proto.v1.PApiMetaData'; +} +/** + * 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.PStringMetaData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PStringMetaData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PStringMetaData.displayName = 'proto.v1.PStringMetaData'; +} + +/** + * 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>} + * @const + */ +proto.v1.PSpanMessage.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.v1.PSpanMessage.FieldCase = { + FIELD_NOT_SET: 0, + SPAN: 1, + SPANCHUNK: 2 +}; + +/** + * @return {proto.v1.PSpanMessage.FieldCase} + */ +proto.v1.PSpanMessage.prototype.getFieldCase = function() { + return /** @type {proto.v1.PSpanMessage.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PSpanMessage.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_, 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.PSpanMessage.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PSpanMessage.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.PSpanMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanMessage.toObject = function(includeInstance, msg) { + var f, obj = { + span: (f = msg.getSpan()) && proto.v1.PSpan.toObject(includeInstance, f), + spanchunk: (f = msg.getSpanchunk()) && proto.v1.PSpanChunk.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.PSpanMessage} + */ +proto.v1.PSpanMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PSpanMessage; + return proto.v1.PSpanMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PSpanMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PSpanMessage} + */ +proto.v1.PSpanMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PSpan; + reader.readMessage(value,proto.v1.PSpan.deserializeBinaryFromReader); + msg.setSpan(value); + break; + case 2: + var value = new proto.v1.PSpanChunk; + reader.readMessage(value,proto.v1.PSpanChunk.deserializeBinaryFromReader); + msg.setSpanchunk(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PSpanMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PSpanMessage.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.PSpanMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PSpan.serializeBinaryToWriter + ); + } + f = message.getSpanchunk(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PSpanChunk.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PSpan span = 1; + * @return {?proto.v1.PSpan} + */ +proto.v1.PSpanMessage.prototype.getSpan = function() { + return /** @type{?proto.v1.PSpan} */ ( + jspb.Message.getWrapperField(this, proto.v1.PSpan, 1)); +}; + + +/** + * @param {?proto.v1.PSpan|undefined} value + * @return {!proto.v1.PSpanMessage} returns this +*/ +proto.v1.PSpanMessage.prototype.setSpan = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.v1.PSpanMessage.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanMessage} returns this + */ +proto.v1.PSpanMessage.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanMessage.prototype.hasSpan = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional PSpanChunk spanChunk = 2; + * @return {?proto.v1.PSpanChunk} + */ +proto.v1.PSpanMessage.prototype.getSpanchunk = function() { + return /** @type{?proto.v1.PSpanChunk} */ ( + jspb.Message.getWrapperField(this, proto.v1.PSpanChunk, 2)); +}; + + +/** + * @param {?proto.v1.PSpanChunk|undefined} value + * @return {!proto.v1.PSpanMessage} returns this +*/ +proto.v1.PSpanMessage.prototype.setSpanchunk = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.v1.PSpanMessage.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanMessage} returns this + */ +proto.v1.PSpanMessage.prototype.clearSpanchunk = function() { + return this.setSpanchunk(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanMessage.prototype.hasSpanchunk = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PSpan.repeatedFields_ = [10,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_, 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.PSpan.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PSpan.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.PSpan} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpan.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, 0), + transactionid: (f = msg.getTransactionid()) && proto.v1.PTransactionId.toObject(includeInstance, f), + spanid: jspb.Message.getFieldWithDefault(msg, 3, 0), + parentspanid: jspb.Message.getFieldWithDefault(msg, 4, 0), + starttime: jspb.Message.getFieldWithDefault(msg, 5, 0), + elapsed: jspb.Message.getFieldWithDefault(msg, 6, 0), + apiid: jspb.Message.getFieldWithDefault(msg, 7, 0), + servicetype: jspb.Message.getFieldWithDefault(msg, 8, 0), + acceptevent: (f = msg.getAcceptevent()) && proto.v1.PAcceptEvent.toObject(includeInstance, f), + annotationList: jspb.Message.toObjectList(msg.getAnnotationList(), + v1_Annotation_pb.PAnnotation.toObject, includeInstance), + flag: jspb.Message.getFieldWithDefault(msg, 11, 0), + err: jspb.Message.getFieldWithDefault(msg, 12, 0), + spaneventList: jspb.Message.toObjectList(msg.getSpaneventList(), + proto.v1.PSpanEvent.toObject, includeInstance), + exceptioninfo: (f = msg.getExceptioninfo()) && v1_Annotation_pb.PIntStringValue.toObject(includeInstance, f), + applicationservicetype: jspb.Message.getFieldWithDefault(msg, 15, 0), + loggingtransactioninfo: jspb.Message.getFieldWithDefault(msg, 16, 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.PSpan} + */ +proto.v1.PSpan.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PSpan; + return proto.v1.PSpan.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PSpan} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PSpan} + */ +proto.v1.PSpan.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersion(value); + break; + case 2: + var value = new proto.v1.PTransactionId; + reader.readMessage(value,proto.v1.PTransactionId.deserializeBinaryFromReader); + msg.setTransactionid(value); + break; + case 3: + var value = /** @type {number} */ (reader.readSfixed64()); + msg.setSpanid(value); + break; + case 4: + var value = /** @type {number} */ (reader.readSfixed64()); + msg.setParentspanid(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStarttime(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setElapsed(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setApiid(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setServicetype(value); + break; + case 9: + var value = new proto.v1.PAcceptEvent; + reader.readMessage(value,proto.v1.PAcceptEvent.deserializeBinaryFromReader); + msg.setAcceptevent(value); + break; + case 10: + var value = new v1_Annotation_pb.PAnnotation; + reader.readMessage(value,v1_Annotation_pb.PAnnotation.deserializeBinaryFromReader); + msg.addAnnotation(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setFlag(value); + break; + case 12: + var value = /** @type {number} */ (reader.readSint32()); + msg.setErr(value); + break; + case 13: + var value = new proto.v1.PSpanEvent; + reader.readMessage(value,proto.v1.PSpanEvent.deserializeBinaryFromReader); + msg.addSpanevent(value); + break; + case 14: + var value = new v1_Annotation_pb.PIntStringValue; + reader.readMessage(value,v1_Annotation_pb.PIntStringValue.deserializeBinaryFromReader); + msg.setExceptioninfo(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt32()); + msg.setApplicationservicetype(value); + break; + case 16: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLoggingtransactioninfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PSpan.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PSpan.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.PSpan} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpan.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getTransactionid(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PTransactionId.serializeBinaryToWriter + ); + } + f = message.getSpanid(); + if (f !== 0) { + writer.writeSfixed64( + 3, + f + ); + } + f = message.getParentspanid(); + if (f !== 0) { + writer.writeSfixed64( + 4, + f + ); + } + f = message.getStarttime(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getElapsed(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } + f = message.getApiid(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getServicetype(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } + f = message.getAcceptevent(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.v1.PAcceptEvent.serializeBinaryToWriter + ); + } + f = message.getAnnotationList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + v1_Annotation_pb.PAnnotation.serializeBinaryToWriter + ); + } + f = message.getFlag(); + if (f !== 0) { + writer.writeInt32( + 11, + f + ); + } + f = message.getErr(); + if (f !== 0) { + writer.writeSint32( + 12, + f + ); + } + f = message.getSpaneventList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 13, + f, + proto.v1.PSpanEvent.serializeBinaryToWriter + ); + } + f = message.getExceptioninfo(); + if (f != null) { + writer.writeMessage( + 14, + f, + v1_Annotation_pb.PIntStringValue.serializeBinaryToWriter + ); + } + f = message.getApplicationservicetype(); + if (f !== 0) { + writer.writeInt32( + 15, + f + ); + } + f = message.getLoggingtransactioninfo(); + if (f !== 0) { + writer.writeInt32( + 16, + f + ); + } +}; + + +/** + * optional int32 version = 1; + * @return {number} + */ +proto.v1.PSpan.prototype.getVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional PTransactionId transactionId = 2; + * @return {?proto.v1.PTransactionId} + */ +proto.v1.PSpan.prototype.getTransactionid = function() { + return /** @type{?proto.v1.PTransactionId} */ ( + jspb.Message.getWrapperField(this, proto.v1.PTransactionId, 2)); +}; + + +/** + * @param {?proto.v1.PTransactionId|undefined} value + * @return {!proto.v1.PSpan} returns this +*/ +proto.v1.PSpan.prototype.setTransactionid = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.clearTransactionid = function() { + return this.setTransactionid(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpan.prototype.hasTransactionid = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional sfixed64 spanId = 3; + * @return {number} + */ +proto.v1.PSpan.prototype.getSpanid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setSpanid = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional sfixed64 parentSpanId = 4; + * @return {number} + */ +proto.v1.PSpan.prototype.getParentspanid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setParentspanid = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 startTime = 5; + * @return {number} + */ +proto.v1.PSpan.prototype.getStarttime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setStarttime = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 elapsed = 6; + * @return {number} + */ +proto.v1.PSpan.prototype.getElapsed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setElapsed = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int32 apiId = 7; + * @return {number} + */ +proto.v1.PSpan.prototype.getApiid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setApiid = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional int32 serviceType = 8; + * @return {number} + */ +proto.v1.PSpan.prototype.getServicetype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setServicetype = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional PAcceptEvent acceptEvent = 9; + * @return {?proto.v1.PAcceptEvent} + */ +proto.v1.PSpan.prototype.getAcceptevent = function() { + return /** @type{?proto.v1.PAcceptEvent} */ ( + jspb.Message.getWrapperField(this, proto.v1.PAcceptEvent, 9)); +}; + + +/** + * @param {?proto.v1.PAcceptEvent|undefined} value + * @return {!proto.v1.PSpan} returns this +*/ +proto.v1.PSpan.prototype.setAcceptevent = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.clearAcceptevent = function() { + return this.setAcceptevent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpan.prototype.hasAcceptevent = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * repeated PAnnotation annotation = 10; + * @return {!Array} + */ +proto.v1.PSpan.prototype.getAnnotationList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, v1_Annotation_pb.PAnnotation, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PSpan} returns this +*/ +proto.v1.PSpan.prototype.setAnnotationList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.v1.PAnnotation=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PAnnotation} + */ +proto.v1.PSpan.prototype.addAnnotation = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.v1.PAnnotation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.clearAnnotationList = function() { + return this.setAnnotationList([]); +}; + + +/** + * optional int32 flag = 11; + * @return {number} + */ +proto.v1.PSpan.prototype.getFlag = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setFlag = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional sint32 err = 12; + * @return {number} + */ +proto.v1.PSpan.prototype.getErr = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setErr = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * repeated PSpanEvent spanEvent = 13; + * @return {!Array} + */ +proto.v1.PSpan.prototype.getSpaneventList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PSpanEvent, 13)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PSpan} returns this +*/ +proto.v1.PSpan.prototype.setSpaneventList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 13, value); +}; + + +/** + * @param {!proto.v1.PSpanEvent=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PSpanEvent} + */ +proto.v1.PSpan.prototype.addSpanevent = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.v1.PSpanEvent, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.clearSpaneventList = function() { + return this.setSpaneventList([]); +}; + + +/** + * optional PIntStringValue exceptionInfo = 14; + * @return {?proto.v1.PIntStringValue} + */ +proto.v1.PSpan.prototype.getExceptioninfo = function() { + return /** @type{?proto.v1.PIntStringValue} */ ( + jspb.Message.getWrapperField(this, v1_Annotation_pb.PIntStringValue, 14)); +}; + + +/** + * @param {?proto.v1.PIntStringValue|undefined} value + * @return {!proto.v1.PSpan} returns this +*/ +proto.v1.PSpan.prototype.setExceptioninfo = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.clearExceptioninfo = function() { + return this.setExceptioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpan.prototype.hasExceptioninfo = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional int32 applicationServiceType = 15; + * @return {number} + */ +proto.v1.PSpan.prototype.getApplicationservicetype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setApplicationservicetype = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional int32 loggingTransactionInfo = 16; + * @return {number} + */ +proto.v1.PSpan.prototype.getLoggingtransactioninfo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpan} returns this + */ +proto.v1.PSpan.prototype.setLoggingtransactioninfo = function(value) { + return jspb.Message.setProto3IntField(this, 16, 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_, 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.PTransactionId.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PTransactionId.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.PTransactionId} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTransactionId.toObject = function(includeInstance, msg) { + var f, obj = { + agentid: jspb.Message.getFieldWithDefault(msg, 1, ""), + agentstarttime: jspb.Message.getFieldWithDefault(msg, 2, 0), + sequence: 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.v1.PTransactionId} + */ +proto.v1.PTransactionId.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PTransactionId; + return proto.v1.PTransactionId.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PTransactionId} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PTransactionId} + */ +proto.v1.PTransactionId.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.setAgentid(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAgentstarttime(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSequence(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PTransactionId.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PTransactionId.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.PTransactionId} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTransactionId.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAgentid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAgentstarttime(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getSequence(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } +}; + + +/** + * optional string agentId = 1; + * @return {string} + */ +proto.v1.PTransactionId.prototype.getAgentid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PTransactionId} returns this + */ +proto.v1.PTransactionId.prototype.setAgentid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 agentStartTime = 2; + * @return {number} + */ +proto.v1.PTransactionId.prototype.getAgentstarttime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransactionId} returns this + */ +proto.v1.PTransactionId.prototype.setAgentstarttime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 sequence = 3; + * @return {number} + */ +proto.v1.PTransactionId.prototype.getSequence = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransactionId} returns this + */ +proto.v1.PTransactionId.prototype.setSequence = 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_, 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.PAcceptEvent.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAcceptEvent.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.PAcceptEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAcceptEvent.toObject = function(includeInstance, msg) { + var f, obj = { + rpc: jspb.Message.getFieldWithDefault(msg, 1, ""), + endpoint: jspb.Message.getFieldWithDefault(msg, 2, ""), + remoteaddr: jspb.Message.getFieldWithDefault(msg, 3, ""), + parentinfo: (f = msg.getParentinfo()) && proto.v1.PParentInfo.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.PAcceptEvent} + */ +proto.v1.PAcceptEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAcceptEvent; + return proto.v1.PAcceptEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAcceptEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAcceptEvent} + */ +proto.v1.PAcceptEvent.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.setRpc(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpoint(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setRemoteaddr(value); + break; + case 4: + var value = new proto.v1.PParentInfo; + reader.readMessage(value,proto.v1.PParentInfo.deserializeBinaryFromReader); + msg.setParentinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAcceptEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAcceptEvent.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.PAcceptEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAcceptEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRpc(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getEndpoint(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getRemoteaddr(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getParentinfo(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.v1.PParentInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string rpc = 1; + * @return {string} + */ +proto.v1.PAcceptEvent.prototype.getRpc = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PAcceptEvent} returns this + */ +proto.v1.PAcceptEvent.prototype.setRpc = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string endPoint = 2; + * @return {string} + */ +proto.v1.PAcceptEvent.prototype.getEndpoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PAcceptEvent} returns this + */ +proto.v1.PAcceptEvent.prototype.setEndpoint = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string remoteAddr = 3; + * @return {string} + */ +proto.v1.PAcceptEvent.prototype.getRemoteaddr = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PAcceptEvent} returns this + */ +proto.v1.PAcceptEvent.prototype.setRemoteaddr = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional PParentInfo parentInfo = 4; + * @return {?proto.v1.PParentInfo} + */ +proto.v1.PAcceptEvent.prototype.getParentinfo = function() { + return /** @type{?proto.v1.PParentInfo} */ ( + jspb.Message.getWrapperField(this, proto.v1.PParentInfo, 4)); +}; + + +/** + * @param {?proto.v1.PParentInfo|undefined} value + * @return {!proto.v1.PAcceptEvent} returns this +*/ +proto.v1.PAcceptEvent.prototype.setParentinfo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAcceptEvent} returns this + */ +proto.v1.PAcceptEvent.prototype.clearParentinfo = function() { + return this.setParentinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAcceptEvent.prototype.hasParentinfo = 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_, 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.PParentInfo.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PParentInfo.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.PParentInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PParentInfo.toObject = function(includeInstance, msg) { + var f, obj = { + parentapplicationname: jspb.Message.getFieldWithDefault(msg, 1, ""), + parentapplicationtype: jspb.Message.getFieldWithDefault(msg, 2, 0), + acceptorhost: 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.PParentInfo} + */ +proto.v1.PParentInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PParentInfo; + return proto.v1.PParentInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PParentInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PParentInfo} + */ +proto.v1.PParentInfo.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.setParentapplicationname(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setParentapplicationtype(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAcceptorhost(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PParentInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PParentInfo.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.PParentInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PParentInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParentapplicationname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParentapplicationtype(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getAcceptorhost(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string parentApplicationName = 1; + * @return {string} + */ +proto.v1.PParentInfo.prototype.getParentapplicationname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PParentInfo} returns this + */ +proto.v1.PParentInfo.prototype.setParentapplicationname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 parentApplicationType = 2; + * @return {number} + */ +proto.v1.PParentInfo.prototype.getParentapplicationtype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PParentInfo} returns this + */ +proto.v1.PParentInfo.prototype.setParentapplicationtype = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string acceptorHost = 3; + * @return {string} + */ +proto.v1.PParentInfo.prototype.getAcceptorhost = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PParentInfo} returns this + */ +proto.v1.PParentInfo.prototype.setAcceptorhost = 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_, 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.PLocalAsyncId.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLocalAsyncId.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.PLocalAsyncId} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLocalAsyncId.toObject = function(includeInstance, msg) { + var f, obj = { + asyncid: jspb.Message.getFieldWithDefault(msg, 1, 0), + sequence: 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.v1.PLocalAsyncId} + */ +proto.v1.PLocalAsyncId.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLocalAsyncId; + return proto.v1.PLocalAsyncId.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLocalAsyncId} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLocalAsyncId} + */ +proto.v1.PLocalAsyncId.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAsyncid(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSequence(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLocalAsyncId.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLocalAsyncId.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.PLocalAsyncId} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLocalAsyncId.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAsyncid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSequence(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 asyncId = 1; + * @return {number} + */ +proto.v1.PLocalAsyncId.prototype.getAsyncid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLocalAsyncId} returns this + */ +proto.v1.PLocalAsyncId.prototype.setAsyncid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 sequence = 2; + * @return {number} + */ +proto.v1.PLocalAsyncId.prototype.getSequence = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLocalAsyncId} returns this + */ +proto.v1.PLocalAsyncId.prototype.setSequence = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PSpanEvent.repeatedFields_ = [6]; + + + +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_, 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.PSpanEvent.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PSpanEvent.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.PSpanEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanEvent.toObject = function(includeInstance, msg) { + var f, obj = { + sequence: jspb.Message.getFieldWithDefault(msg, 1, 0), + depth: jspb.Message.getFieldWithDefault(msg, 2, 0), + startelapsed: jspb.Message.getFieldWithDefault(msg, 3, 0), + endelapsed: jspb.Message.getFieldWithDefault(msg, 4, 0), + servicetype: jspb.Message.getFieldWithDefault(msg, 5, 0), + annotationList: jspb.Message.toObjectList(msg.getAnnotationList(), + v1_Annotation_pb.PAnnotation.toObject, includeInstance), + apiid: jspb.Message.getFieldWithDefault(msg, 10, 0), + exceptioninfo: (f = msg.getExceptioninfo()) && v1_Annotation_pb.PIntStringValue.toObject(includeInstance, f), + nextevent: (f = msg.getNextevent()) && proto.v1.PNextEvent.toObject(includeInstance, f), + asyncevent: jspb.Message.getFieldWithDefault(msg, 13, 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.PSpanEvent} + */ +proto.v1.PSpanEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PSpanEvent; + return proto.v1.PSpanEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PSpanEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PSpanEvent} + */ +proto.v1.PSpanEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSequence(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setDepth(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStartelapsed(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setEndelapsed(value); + break; + case 5: + var value = /** @type {number} */ (reader.readSint32()); + msg.setServicetype(value); + break; + case 6: + var value = new v1_Annotation_pb.PAnnotation; + reader.readMessage(value,v1_Annotation_pb.PAnnotation.deserializeBinaryFromReader); + msg.addAnnotation(value); + break; + case 10: + var value = /** @type {number} */ (reader.readSint32()); + msg.setApiid(value); + break; + case 11: + var value = new v1_Annotation_pb.PIntStringValue; + reader.readMessage(value,v1_Annotation_pb.PIntStringValue.deserializeBinaryFromReader); + msg.setExceptioninfo(value); + break; + case 12: + var value = new proto.v1.PNextEvent; + reader.readMessage(value,proto.v1.PNextEvent.deserializeBinaryFromReader); + msg.setNextevent(value); + break; + case 13: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAsyncevent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PSpanEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PSpanEvent.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.PSpanEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSequence(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getDepth(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getStartelapsed(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getEndelapsed(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } + f = message.getServicetype(); + if (f !== 0) { + writer.writeSint32( + 5, + f + ); + } + f = message.getAnnotationList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + v1_Annotation_pb.PAnnotation.serializeBinaryToWriter + ); + } + f = message.getApiid(); + if (f !== 0) { + writer.writeSint32( + 10, + f + ); + } + f = message.getExceptioninfo(); + if (f != null) { + writer.writeMessage( + 11, + f, + v1_Annotation_pb.PIntStringValue.serializeBinaryToWriter + ); + } + f = message.getNextevent(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.v1.PNextEvent.serializeBinaryToWriter + ); + } + f = message.getAsyncevent(); + if (f !== 0) { + writer.writeInt32( + 13, + f + ); + } +}; + + +/** + * optional int32 sequence = 1; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getSequence = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setSequence = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 depth = 2; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getDepth = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setDepth = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 startElapsed = 3; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getStartelapsed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setStartelapsed = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int32 endElapsed = 4; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getEndelapsed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setEndelapsed = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional sint32 serviceType = 5; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getServicetype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setServicetype = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * repeated PAnnotation annotation = 6; + * @return {!Array} + */ +proto.v1.PSpanEvent.prototype.getAnnotationList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, v1_Annotation_pb.PAnnotation, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PSpanEvent} returns this +*/ +proto.v1.PSpanEvent.prototype.setAnnotationList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.v1.PAnnotation=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PAnnotation} + */ +proto.v1.PSpanEvent.prototype.addAnnotation = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.v1.PAnnotation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.clearAnnotationList = function() { + return this.setAnnotationList([]); +}; + + +/** + * optional sint32 apiId = 10; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getApiid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setApiid = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional PIntStringValue exceptionInfo = 11; + * @return {?proto.v1.PIntStringValue} + */ +proto.v1.PSpanEvent.prototype.getExceptioninfo = function() { + return /** @type{?proto.v1.PIntStringValue} */ ( + jspb.Message.getWrapperField(this, v1_Annotation_pb.PIntStringValue, 11)); +}; + + +/** + * @param {?proto.v1.PIntStringValue|undefined} value + * @return {!proto.v1.PSpanEvent} returns this +*/ +proto.v1.PSpanEvent.prototype.setExceptioninfo = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.clearExceptioninfo = function() { + return this.setExceptioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanEvent.prototype.hasExceptioninfo = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional PNextEvent nextEvent = 12; + * @return {?proto.v1.PNextEvent} + */ +proto.v1.PSpanEvent.prototype.getNextevent = function() { + return /** @type{?proto.v1.PNextEvent} */ ( + jspb.Message.getWrapperField(this, proto.v1.PNextEvent, 12)); +}; + + +/** + * @param {?proto.v1.PNextEvent|undefined} value + * @return {!proto.v1.PSpanEvent} returns this +*/ +proto.v1.PSpanEvent.prototype.setNextevent = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.clearNextevent = function() { + return this.setNextevent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanEvent.prototype.hasNextevent = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional int32 asyncEvent = 13; + * @return {number} + */ +proto.v1.PSpanEvent.prototype.getAsyncevent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanEvent} returns this + */ +proto.v1.PSpanEvent.prototype.setAsyncevent = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.v1.PNextEvent.oneofGroups_ = [[1]]; + +/** + * @enum {number} + */ +proto.v1.PNextEvent.FieldCase = { + FIELD_NOT_SET: 0, + MESSAGEEVENT: 1 +}; + +/** + * @return {proto.v1.PNextEvent.FieldCase} + */ +proto.v1.PNextEvent.prototype.getFieldCase = function() { + return /** @type {proto.v1.PNextEvent.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PNextEvent.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_, 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.PNextEvent.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PNextEvent.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.PNextEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PNextEvent.toObject = function(includeInstance, msg) { + var f, obj = { + messageevent: (f = msg.getMessageevent()) && proto.v1.PMessageEvent.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.PNextEvent} + */ +proto.v1.PNextEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PNextEvent; + return proto.v1.PNextEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PNextEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PNextEvent} + */ +proto.v1.PNextEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PMessageEvent; + reader.readMessage(value,proto.v1.PMessageEvent.deserializeBinaryFromReader); + msg.setMessageevent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PNextEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PNextEvent.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.PNextEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PNextEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessageevent(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PMessageEvent.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PMessageEvent messageEvent = 1; + * @return {?proto.v1.PMessageEvent} + */ +proto.v1.PNextEvent.prototype.getMessageevent = function() { + return /** @type{?proto.v1.PMessageEvent} */ ( + jspb.Message.getWrapperField(this, proto.v1.PMessageEvent, 1)); +}; + + +/** + * @param {?proto.v1.PMessageEvent|undefined} value + * @return {!proto.v1.PNextEvent} returns this +*/ +proto.v1.PNextEvent.prototype.setMessageevent = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.v1.PNextEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PNextEvent} returns this + */ +proto.v1.PNextEvent.prototype.clearMessageevent = function() { + return this.setMessageevent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PNextEvent.prototype.hasMessageevent = function() { + return jspb.Message.getField(this, 1) != 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_, 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.PMessageEvent.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PMessageEvent.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.PMessageEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PMessageEvent.toObject = function(includeInstance, msg) { + var f, obj = { + nextspanid: jspb.Message.getFieldWithDefault(msg, 1, 0), + endpoint: jspb.Message.getFieldWithDefault(msg, 2, ""), + destinationid: 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.PMessageEvent} + */ +proto.v1.PMessageEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PMessageEvent; + return proto.v1.PMessageEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PMessageEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PMessageEvent} + */ +proto.v1.PMessageEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readSfixed64()); + msg.setNextspanid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpoint(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDestinationid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PMessageEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PMessageEvent.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.PMessageEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PMessageEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNextspanid(); + if (f !== 0) { + writer.writeSfixed64( + 1, + f + ); + } + f = message.getEndpoint(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDestinationid(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional sfixed64 nextSpanId = 1; + * @return {number} + */ +proto.v1.PMessageEvent.prototype.getNextspanid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PMessageEvent} returns this + */ +proto.v1.PMessageEvent.prototype.setNextspanid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string endPoint = 2; + * @return {string} + */ +proto.v1.PMessageEvent.prototype.getEndpoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PMessageEvent} returns this + */ +proto.v1.PMessageEvent.prototype.setEndpoint = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string destinationId = 3; + * @return {string} + */ +proto.v1.PMessageEvent.prototype.getDestinationid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PMessageEvent} returns this + */ +proto.v1.PMessageEvent.prototype.setDestinationid = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PSpanChunk.repeatedFields_ = [5]; + + + +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_, 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.PSpanChunk.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PSpanChunk.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.PSpanChunk} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanChunk.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, 0), + transactionid: (f = msg.getTransactionid()) && proto.v1.PTransactionId.toObject(includeInstance, f), + spanid: jspb.Message.getFieldWithDefault(msg, 3, 0), + endpoint: jspb.Message.getFieldWithDefault(msg, 4, ""), + spaneventList: jspb.Message.toObjectList(msg.getSpaneventList(), + proto.v1.PSpanEvent.toObject, includeInstance), + applicationservicetype: jspb.Message.getFieldWithDefault(msg, 6, 0), + keytime: jspb.Message.getFieldWithDefault(msg, 7, 0), + localasyncid: (f = msg.getLocalasyncid()) && proto.v1.PLocalAsyncId.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.PSpanChunk} + */ +proto.v1.PSpanChunk.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PSpanChunk; + return proto.v1.PSpanChunk.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PSpanChunk} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PSpanChunk} + */ +proto.v1.PSpanChunk.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersion(value); + break; + case 2: + var value = new proto.v1.PTransactionId; + reader.readMessage(value,proto.v1.PTransactionId.deserializeBinaryFromReader); + msg.setTransactionid(value); + break; + case 3: + var value = /** @type {number} */ (reader.readSfixed64()); + msg.setSpanid(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setEndpoint(value); + break; + case 5: + var value = new proto.v1.PSpanEvent; + reader.readMessage(value,proto.v1.PSpanEvent.deserializeBinaryFromReader); + msg.addSpanevent(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setApplicationservicetype(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setKeytime(value); + break; + case 8: + var value = new proto.v1.PLocalAsyncId; + reader.readMessage(value,proto.v1.PLocalAsyncId.deserializeBinaryFromReader); + msg.setLocalasyncid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PSpanChunk.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PSpanChunk.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.PSpanChunk} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSpanChunk.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getTransactionid(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PTransactionId.serializeBinaryToWriter + ); + } + f = message.getSpanid(); + if (f !== 0) { + writer.writeSfixed64( + 3, + f + ); + } + f = message.getEndpoint(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSpaneventList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.v1.PSpanEvent.serializeBinaryToWriter + ); + } + f = message.getApplicationservicetype(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } + f = message.getKeytime(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getLocalasyncid(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.v1.PLocalAsyncId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 version = 1; + * @return {number} + */ +proto.v1.PSpanChunk.prototype.getVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional PTransactionId transactionId = 2; + * @return {?proto.v1.PTransactionId} + */ +proto.v1.PSpanChunk.prototype.getTransactionid = function() { + return /** @type{?proto.v1.PTransactionId} */ ( + jspb.Message.getWrapperField(this, proto.v1.PTransactionId, 2)); +}; + + +/** + * @param {?proto.v1.PTransactionId|undefined} value + * @return {!proto.v1.PSpanChunk} returns this +*/ +proto.v1.PSpanChunk.prototype.setTransactionid = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.clearTransactionid = function() { + return this.setTransactionid(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanChunk.prototype.hasTransactionid = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional sfixed64 spanId = 3; + * @return {number} + */ +proto.v1.PSpanChunk.prototype.getSpanid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.setSpanid = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string endPoint = 4; + * @return {string} + */ +proto.v1.PSpanChunk.prototype.getEndpoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.setEndpoint = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * repeated PSpanEvent spanEvent = 5; + * @return {!Array} + */ +proto.v1.PSpanChunk.prototype.getSpaneventList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PSpanEvent, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PSpanChunk} returns this +*/ +proto.v1.PSpanChunk.prototype.setSpaneventList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.v1.PSpanEvent=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PSpanEvent} + */ +proto.v1.PSpanChunk.prototype.addSpanevent = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.v1.PSpanEvent, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.clearSpaneventList = function() { + return this.setSpaneventList([]); +}; + + +/** + * optional int32 applicationServiceType = 6; + * @return {number} + */ +proto.v1.PSpanChunk.prototype.getApplicationservicetype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.setApplicationservicetype = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int64 keyTime = 7; + * @return {number} + */ +proto.v1.PSpanChunk.prototype.getKeytime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.setKeytime = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional PLocalAsyncId localAsyncId = 8; + * @return {?proto.v1.PLocalAsyncId} + */ +proto.v1.PSpanChunk.prototype.getLocalasyncid = function() { + return /** @type{?proto.v1.PLocalAsyncId} */ ( + jspb.Message.getWrapperField(this, proto.v1.PLocalAsyncId, 8)); +}; + + +/** + * @param {?proto.v1.PLocalAsyncId|undefined} value + * @return {!proto.v1.PSpanChunk} returns this +*/ +proto.v1.PSpanChunk.prototype.setLocalasyncid = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PSpanChunk} returns this + */ +proto.v1.PSpanChunk.prototype.clearLocalasyncid = function() { + return this.setLocalasyncid(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PSpanChunk.prototype.hasLocalasyncid = function() { + return jspb.Message.getField(this, 8) != 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_, 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.PResult.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PResult.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.PResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PResult.toObject = function(includeInstance, msg) { + var f, obj = { + success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + message: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PResult} + */ +proto.v1.PResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PResult; + return proto.v1.PResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PResult} + */ +proto.v1.PResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 2: + 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.PResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PResult.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.PResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional bool success = 1; + * @return {boolean} + */ +proto.v1.PResult.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PResult} returns this + */ +proto.v1.PResult.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.v1.PResult.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PResult} returns this + */ +proto.v1.PResult.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PSqlMetaData.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PSqlMetaData.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.PSqlMetaData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSqlMetaData.toObject = function(includeInstance, msg) { + var f, obj = { + sqlid: jspb.Message.getFieldWithDefault(msg, 1, 0), + sql: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PSqlMetaData} + */ +proto.v1.PSqlMetaData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PSqlMetaData; + return proto.v1.PSqlMetaData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PSqlMetaData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PSqlMetaData} + */ +proto.v1.PSqlMetaData.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSqlid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSql(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PSqlMetaData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PSqlMetaData.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.PSqlMetaData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PSqlMetaData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSqlid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getSql(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional int32 sqlId = 1; + * @return {number} + */ +proto.v1.PSqlMetaData.prototype.getSqlid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PSqlMetaData} returns this + */ +proto.v1.PSqlMetaData.prototype.setSqlid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string sql = 2; + * @return {string} + */ +proto.v1.PSqlMetaData.prototype.getSql = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PSqlMetaData} returns this + */ +proto.v1.PSqlMetaData.prototype.setSql = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PApiMetaData.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PApiMetaData.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.PApiMetaData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PApiMetaData.toObject = function(includeInstance, msg) { + var f, obj = { + apiid: jspb.Message.getFieldWithDefault(msg, 1, 0), + apiinfo: jspb.Message.getFieldWithDefault(msg, 2, ""), + line: jspb.Message.getFieldWithDefault(msg, 3, 0), + type: 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.v1.PApiMetaData} + */ +proto.v1.PApiMetaData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PApiMetaData; + return proto.v1.PApiMetaData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PApiMetaData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PApiMetaData} + */ +proto.v1.PApiMetaData.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setApiid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setApiinfo(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLine(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PApiMetaData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PApiMetaData.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.PApiMetaData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PApiMetaData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getApiid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getApiinfo(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLine(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getType(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } +}; + + +/** + * optional int32 apiId = 1; + * @return {number} + */ +proto.v1.PApiMetaData.prototype.getApiid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PApiMetaData} returns this + */ +proto.v1.PApiMetaData.prototype.setApiid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string apiInfo = 2; + * @return {string} + */ +proto.v1.PApiMetaData.prototype.getApiinfo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PApiMetaData} returns this + */ +proto.v1.PApiMetaData.prototype.setApiinfo = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 line = 3; + * @return {number} + */ +proto.v1.PApiMetaData.prototype.getLine = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PApiMetaData} returns this + */ +proto.v1.PApiMetaData.prototype.setLine = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int32 type = 4; + * @return {number} + */ +proto.v1.PApiMetaData.prototype.getType = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PApiMetaData} returns this + */ +proto.v1.PApiMetaData.prototype.setType = 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_, 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.PStringMetaData.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PStringMetaData.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.PStringMetaData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PStringMetaData.toObject = function(includeInstance, msg) { + var f, obj = { + stringid: jspb.Message.getFieldWithDefault(msg, 1, 0), + stringvalue: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PStringMetaData} + */ +proto.v1.PStringMetaData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PStringMetaData; + return proto.v1.PStringMetaData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PStringMetaData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PStringMetaData} + */ +proto.v1.PStringMetaData.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStringid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setStringvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PStringMetaData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PStringMetaData.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.PStringMetaData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PStringMetaData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStringid(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getStringvalue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional int32 stringId = 1; + * @return {number} + */ +proto.v1.PStringMetaData.prototype.getStringid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PStringMetaData} returns this + */ +proto.v1.PStringMetaData.prototype.setStringid = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string stringValue = 2; + * @return {string} + */ +proto.v1.PStringMetaData.prototype.getStringvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PStringMetaData} returns this + */ +proto.v1.PStringMetaData.prototype.setStringvalue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +goog.object.extend(exports, proto.v1); diff --git a/lib/data/v1/Stat_grpc_pb.js b/lib/data/v1/Stat_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/Stat_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/Stat_pb.js b/lib/data/v1/Stat_pb.js new file mode 100644 index 00000000..b2466097 --- /dev/null +++ b/lib/data/v1/Stat_pb.js @@ -0,0 +1,6631 @@ +// source: v1/Stat.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +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.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.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_, 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>} + * @const + */ +proto.v1.PStatMessage.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.v1.PStatMessage.FieldCase = { + FIELD_NOT_SET: 0, + AGENTSTAT: 1, + AGENTSTATBATCH: 2, + AGENTURISTAT: 3 +}; + +/** + * @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_, 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) + }; + + 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; + 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 + ); + } +}; + + +/** + * 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; +}; + + + + + +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_, 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} + * @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_, 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(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.v1.PServerMetaData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PServerMetaData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getServerinfo(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVmargList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getServiceinfoList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.v1.PServiceInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string serverInfo = 1; + * @return {string} + */ +proto.v1.PServerMetaData.prototype.getServerinfo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PServerMetaData} returns this + */ +proto.v1.PServerMetaData.prototype.setServerinfo = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string vmArg = 2; + * @return {!Array} + */ +proto.v1.PServerMetaData.prototype.getVmargList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PServerMetaData} returns this + */ +proto.v1.PServerMetaData.prototype.setVmargList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PServerMetaData} returns this + */ +proto.v1.PServerMetaData.prototype.addVmarg = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PServerMetaData} returns this + */ +proto.v1.PServerMetaData.prototype.clearVmargList = function() { + return this.setVmargList([]); +}; + + +/** + * repeated PServiceInfo serviceInfo = 3; + * @return {!Array} + */ +proto.v1.PServerMetaData.prototype.getServiceinfoList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PServiceInfo, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PServerMetaData} returns this +*/ +proto.v1.PServerMetaData.prototype.setServiceinfoList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.v1.PServiceInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PServiceInfo} + */ +proto.v1.PServerMetaData.prototype.addServiceinfo = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.v1.PServiceInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PServerMetaData} returns this + */ +proto.v1.PServerMetaData.prototype.clearServiceinfoList = function() { + return this.setServiceinfoList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PServiceInfo.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_, 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.PServiceInfo.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PServiceInfo.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.PServiceInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PServiceInfo.toObject = function(includeInstance, msg) { + var f, obj = { + servicename: jspb.Message.getFieldWithDefault(msg, 1, ""), + servicelibList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PServiceInfo} + */ +proto.v1.PServiceInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PServiceInfo; + return proto.v1.PServiceInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PServiceInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PServiceInfo} + */ +proto.v1.PServiceInfo.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.setServicename(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addServicelib(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PServiceInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PServiceInfo.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.PServiceInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PServiceInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getServicename(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getServicelibList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string serviceName = 1; + * @return {string} + */ +proto.v1.PServiceInfo.prototype.getServicename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PServiceInfo} returns this + */ +proto.v1.PServiceInfo.prototype.setServicename = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string serviceLib = 2; + * @return {!Array} + */ +proto.v1.PServiceInfo.prototype.getServicelibList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PServiceInfo} returns this + */ +proto.v1.PServiceInfo.prototype.setServicelibList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PServiceInfo} returns this + */ +proto.v1.PServiceInfo.prototype.addServicelib = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PServiceInfo} returns this + */ +proto.v1.PServiceInfo.prototype.clearServicelibList = function() { + return this.setServicelibList([]); +}; + + + + + +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_, 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.PJvmInfo.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PJvmInfo.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.PJvmInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmInfo.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, 0), + vmversion: jspb.Message.getFieldWithDefault(msg, 2, ""), + gctype: 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.v1.PJvmInfo} + */ +proto.v1.PJvmInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PJvmInfo; + return proto.v1.PJvmInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PJvmInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PJvmInfo} + */ +proto.v1.PJvmInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersion(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setVmversion(value); + break; + case 3: + var value = /** @type {!proto.v1.PJvmGcType} */ (reader.readEnum()); + msg.setGctype(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PJvmInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PJvmInfo.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.PJvmInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getVmversion(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getGctype(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional int32 version = 1; + * @return {number} + */ +proto.v1.PJvmInfo.prototype.getVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmInfo} returns this + */ +proto.v1.PJvmInfo.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string vmVersion = 2; + * @return {string} + */ +proto.v1.PJvmInfo.prototype.getVmversion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PJvmInfo} returns this + */ +proto.v1.PJvmInfo.prototype.setVmversion = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional PJvmGcType gcType = 3; + * @return {!proto.v1.PJvmGcType} + */ +proto.v1.PJvmInfo.prototype.getGctype = function() { + return /** @type {!proto.v1.PJvmGcType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.v1.PJvmGcType} value + * @return {!proto.v1.PJvmInfo} returns this + */ +proto.v1.PJvmInfo.prototype.setGctype = function(value) { + return jspb.Message.setProto3EnumField(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_, 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.PAgentStat.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAgentStat.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.PAgentStat} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentStat.toObject = function(includeInstance, msg) { + var f, obj = { + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + collectinterval: jspb.Message.getFieldWithDefault(msg, 2, 0), + gc: (f = msg.getGc()) && proto.v1.PJvmGc.toObject(includeInstance, f), + cpuload: (f = msg.getCpuload()) && proto.v1.PCpuLoad.toObject(includeInstance, f), + transaction: (f = msg.getTransaction()) && proto.v1.PTransaction.toObject(includeInstance, f), + activetrace: (f = msg.getActivetrace()) && proto.v1.PActiveTrace.toObject(includeInstance, f), + datasourcelist: (f = msg.getDatasourcelist()) && proto.v1.PDataSourceList.toObject(includeInstance, f), + responsetime: (f = msg.getResponsetime()) && proto.v1.PResponseTime.toObject(includeInstance, f), + deadlock: (f = msg.getDeadlock()) && proto.v1.PDeadlock.toObject(includeInstance, f), + filedescriptor: (f = msg.getFiledescriptor()) && proto.v1.PFileDescriptor.toObject(includeInstance, f), + directbuffer: (f = msg.getDirectbuffer()) && proto.v1.PDirectBuffer.toObject(includeInstance, f), + metadata: jspb.Message.getFieldWithDefault(msg, 12, ""), + totalthread: (f = msg.getTotalthread()) && proto.v1.PTotalThread.toObject(includeInstance, f), + loadedclass: (f = msg.getLoadedclass()) && proto.v1.PLoadedClass.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.PAgentStat} + */ +proto.v1.PAgentStat.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAgentStat; + return proto.v1.PAgentStat.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAgentStat} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAgentStat} + */ +proto.v1.PAgentStat.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.setTimestamp(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCollectinterval(value); + break; + case 3: + var value = new proto.v1.PJvmGc; + reader.readMessage(value,proto.v1.PJvmGc.deserializeBinaryFromReader); + msg.setGc(value); + break; + case 4: + var value = new proto.v1.PCpuLoad; + reader.readMessage(value,proto.v1.PCpuLoad.deserializeBinaryFromReader); + msg.setCpuload(value); + break; + case 5: + var value = new proto.v1.PTransaction; + reader.readMessage(value,proto.v1.PTransaction.deserializeBinaryFromReader); + msg.setTransaction(value); + break; + case 6: + var value = new proto.v1.PActiveTrace; + reader.readMessage(value,proto.v1.PActiveTrace.deserializeBinaryFromReader); + msg.setActivetrace(value); + break; + case 7: + var value = new proto.v1.PDataSourceList; + reader.readMessage(value,proto.v1.PDataSourceList.deserializeBinaryFromReader); + msg.setDatasourcelist(value); + break; + case 8: + var value = new proto.v1.PResponseTime; + reader.readMessage(value,proto.v1.PResponseTime.deserializeBinaryFromReader); + msg.setResponsetime(value); + break; + case 9: + var value = new proto.v1.PDeadlock; + reader.readMessage(value,proto.v1.PDeadlock.deserializeBinaryFromReader); + msg.setDeadlock(value); + break; + case 10: + var value = new proto.v1.PFileDescriptor; + reader.readMessage(value,proto.v1.PFileDescriptor.deserializeBinaryFromReader); + msg.setFiledescriptor(value); + break; + case 11: + var value = new proto.v1.PDirectBuffer; + reader.readMessage(value,proto.v1.PDirectBuffer.deserializeBinaryFromReader); + msg.setDirectbuffer(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setMetadata(value); + break; + case 13: + var value = new proto.v1.PTotalThread; + reader.readMessage(value,proto.v1.PTotalThread.deserializeBinaryFromReader); + msg.setTotalthread(value); + break; + case 14: + var value = new proto.v1.PLoadedClass; + reader.readMessage(value,proto.v1.PLoadedClass.deserializeBinaryFromReader); + msg.setLoadedclass(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAgentStat.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAgentStat.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.PAgentStat} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentStat.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getCollectinterval(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getGc(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.v1.PJvmGc.serializeBinaryToWriter + ); + } + f = message.getCpuload(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.v1.PCpuLoad.serializeBinaryToWriter + ); + } + f = message.getTransaction(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.v1.PTransaction.serializeBinaryToWriter + ); + } + f = message.getActivetrace(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.v1.PActiveTrace.serializeBinaryToWriter + ); + } + f = message.getDatasourcelist(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.v1.PDataSourceList.serializeBinaryToWriter + ); + } + f = message.getResponsetime(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.v1.PResponseTime.serializeBinaryToWriter + ); + } + f = message.getDeadlock(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.v1.PDeadlock.serializeBinaryToWriter + ); + } + f = message.getFiledescriptor(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.v1.PFileDescriptor.serializeBinaryToWriter + ); + } + f = message.getDirectbuffer(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.v1.PDirectBuffer.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getTotalthread(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.v1.PTotalThread.serializeBinaryToWriter + ); + } + f = message.getLoadedclass(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.v1.PLoadedClass.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int64 timestamp = 1; + * @return {number} + */ +proto.v1.PAgentStat.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 collectInterval = 2; + * @return {number} + */ +proto.v1.PAgentStat.prototype.getCollectinterval = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.setCollectinterval = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional PJvmGc gc = 3; + * @return {?proto.v1.PJvmGc} + */ +proto.v1.PAgentStat.prototype.getGc = function() { + return /** @type{?proto.v1.PJvmGc} */ ( + jspb.Message.getWrapperField(this, proto.v1.PJvmGc, 3)); +}; + + +/** + * @param {?proto.v1.PJvmGc|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setGc = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearGc = function() { + return this.setGc(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasGc = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional PCpuLoad cpuLoad = 4; + * @return {?proto.v1.PCpuLoad} + */ +proto.v1.PAgentStat.prototype.getCpuload = function() { + return /** @type{?proto.v1.PCpuLoad} */ ( + jspb.Message.getWrapperField(this, proto.v1.PCpuLoad, 4)); +}; + + +/** + * @param {?proto.v1.PCpuLoad|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setCpuload = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearCpuload = function() { + return this.setCpuload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasCpuload = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional PTransaction transaction = 5; + * @return {?proto.v1.PTransaction} + */ +proto.v1.PAgentStat.prototype.getTransaction = function() { + return /** @type{?proto.v1.PTransaction} */ ( + jspb.Message.getWrapperField(this, proto.v1.PTransaction, 5)); +}; + + +/** + * @param {?proto.v1.PTransaction|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setTransaction = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearTransaction = function() { + return this.setTransaction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasTransaction = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional PActiveTrace activeTrace = 6; + * @return {?proto.v1.PActiveTrace} + */ +proto.v1.PAgentStat.prototype.getActivetrace = function() { + return /** @type{?proto.v1.PActiveTrace} */ ( + jspb.Message.getWrapperField(this, proto.v1.PActiveTrace, 6)); +}; + + +/** + * @param {?proto.v1.PActiveTrace|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setActivetrace = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearActivetrace = function() { + return this.setActivetrace(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasActivetrace = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional PDataSourceList dataSourceList = 7; + * @return {?proto.v1.PDataSourceList} + */ +proto.v1.PAgentStat.prototype.getDatasourcelist = function() { + return /** @type{?proto.v1.PDataSourceList} */ ( + jspb.Message.getWrapperField(this, proto.v1.PDataSourceList, 7)); +}; + + +/** + * @param {?proto.v1.PDataSourceList|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setDatasourcelist = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearDatasourcelist = function() { + return this.setDatasourcelist(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasDatasourcelist = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional PResponseTime responseTime = 8; + * @return {?proto.v1.PResponseTime} + */ +proto.v1.PAgentStat.prototype.getResponsetime = function() { + return /** @type{?proto.v1.PResponseTime} */ ( + jspb.Message.getWrapperField(this, proto.v1.PResponseTime, 8)); +}; + + +/** + * @param {?proto.v1.PResponseTime|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setResponsetime = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearResponsetime = function() { + return this.setResponsetime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasResponsetime = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional PDeadlock deadlock = 9; + * @return {?proto.v1.PDeadlock} + */ +proto.v1.PAgentStat.prototype.getDeadlock = function() { + return /** @type{?proto.v1.PDeadlock} */ ( + jspb.Message.getWrapperField(this, proto.v1.PDeadlock, 9)); +}; + + +/** + * @param {?proto.v1.PDeadlock|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setDeadlock = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearDeadlock = function() { + return this.setDeadlock(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasDeadlock = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional PFileDescriptor fileDescriptor = 10; + * @return {?proto.v1.PFileDescriptor} + */ +proto.v1.PAgentStat.prototype.getFiledescriptor = function() { + return /** @type{?proto.v1.PFileDescriptor} */ ( + jspb.Message.getWrapperField(this, proto.v1.PFileDescriptor, 10)); +}; + + +/** + * @param {?proto.v1.PFileDescriptor|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setFiledescriptor = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearFiledescriptor = function() { + return this.setFiledescriptor(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasFiledescriptor = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional PDirectBuffer directBuffer = 11; + * @return {?proto.v1.PDirectBuffer} + */ +proto.v1.PAgentStat.prototype.getDirectbuffer = function() { + return /** @type{?proto.v1.PDirectBuffer} */ ( + jspb.Message.getWrapperField(this, proto.v1.PDirectBuffer, 11)); +}; + + +/** + * @param {?proto.v1.PDirectBuffer|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setDirectbuffer = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearDirectbuffer = function() { + return this.setDirectbuffer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasDirectbuffer = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional string metadata = 12; + * @return {string} + */ +proto.v1.PAgentStat.prototype.getMetadata = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.setMetadata = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional PTotalThread totalThread = 13; + * @return {?proto.v1.PTotalThread} + */ +proto.v1.PAgentStat.prototype.getTotalthread = function() { + return /** @type{?proto.v1.PTotalThread} */ ( + jspb.Message.getWrapperField(this, proto.v1.PTotalThread, 13)); +}; + + +/** + * @param {?proto.v1.PTotalThread|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setTotalthread = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearTotalthread = function() { + return this.setTotalthread(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasTotalthread = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional PLoadedClass loadedClass = 14; + * @return {?proto.v1.PLoadedClass} + */ +proto.v1.PAgentStat.prototype.getLoadedclass = function() { + return /** @type{?proto.v1.PLoadedClass} */ ( + jspb.Message.getWrapperField(this, proto.v1.PLoadedClass, 14)); +}; + + +/** + * @param {?proto.v1.PLoadedClass|undefined} value + * @return {!proto.v1.PAgentStat} returns this +*/ +proto.v1.PAgentStat.prototype.setLoadedclass = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PAgentStat} returns this + */ +proto.v1.PAgentStat.prototype.clearLoadedclass = function() { + return this.setLoadedclass(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PAgentStat.prototype.hasLoadedclass = function() { + return jspb.Message.getField(this, 14) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PAgentStatBatch.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PAgentStatBatch.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAgentStatBatch.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.PAgentStatBatch} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentStatBatch.toObject = function(includeInstance, msg) { + var f, obj = { + agentstatList: jspb.Message.toObjectList(msg.getAgentstatList(), + proto.v1.PAgentStat.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.PAgentStatBatch} + */ +proto.v1.PAgentStatBatch.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAgentStatBatch; + return proto.v1.PAgentStatBatch.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAgentStatBatch} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAgentStatBatch} + */ +proto.v1.PAgentStatBatch.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.addAgentstat(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAgentStatBatch.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAgentStatBatch.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.PAgentStatBatch} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentStatBatch.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAgentstatList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.v1.PAgentStat.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated PAgentStat agentStat = 1; + * @return {!Array} + */ +proto.v1.PAgentStatBatch.prototype.getAgentstatList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PAgentStat, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PAgentStatBatch} returns this +*/ +proto.v1.PAgentStatBatch.prototype.setAgentstatList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.v1.PAgentStat=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PAgentStat} + */ +proto.v1.PAgentStatBatch.prototype.addAgentstat = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.PAgentStat, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PAgentStatBatch} returns this + */ +proto.v1.PAgentStatBatch.prototype.clearAgentstatList = function() { + return this.setAgentstatList([]); +}; + + + + + +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_, 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.PDataSource.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDataSource.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.PDataSource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDataSource.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + servicetypecode: jspb.Message.getFieldWithDefault(msg, 2, 0), + databasename: jspb.Message.getFieldWithDefault(msg, 3, ""), + url: jspb.Message.getFieldWithDefault(msg, 4, ""), + activeconnectionsize: jspb.Message.getFieldWithDefault(msg, 5, 0), + maxconnectionsize: jspb.Message.getFieldWithDefault(msg, 6, 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.PDataSource} + */ +proto.v1.PDataSource.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDataSource; + return proto.v1.PDataSource.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDataSource} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDataSource} + */ +proto.v1.PDataSource.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setServicetypecode(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDatabasename(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setActiveconnectionsize(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxconnectionsize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDataSource.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDataSource.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.PDataSource} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDataSource.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getServicetypecode(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getDatabasename(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getActiveconnectionsize(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getMaxconnectionsize(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } +}; + + +/** + * optional int32 id = 1; + * @return {number} + */ +proto.v1.PDataSource.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 serviceTypeCode = 2; + * @return {number} + */ +proto.v1.PDataSource.prototype.getServicetypecode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setServicetypecode = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string databaseName = 3; + * @return {string} + */ +proto.v1.PDataSource.prototype.getDatabasename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setDatabasename = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string url = 4; + * @return {string} + */ +proto.v1.PDataSource.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int32 activeConnectionSize = 5; + * @return {number} + */ +proto.v1.PDataSource.prototype.getActiveconnectionsize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setActiveconnectionsize = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 maxConnectionSize = 6; + * @return {number} + */ +proto.v1.PDataSource.prototype.getMaxconnectionsize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDataSource} returns this + */ +proto.v1.PDataSource.prototype.setMaxconnectionsize = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PDataSourceList.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PDataSourceList.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDataSourceList.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.PDataSourceList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDataSourceList.toObject = function(includeInstance, msg) { + var f, obj = { + datasourceList: jspb.Message.toObjectList(msg.getDatasourceList(), + proto.v1.PDataSource.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.PDataSourceList} + */ +proto.v1.PDataSourceList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDataSourceList; + return proto.v1.PDataSourceList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDataSourceList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDataSourceList} + */ +proto.v1.PDataSourceList.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PDataSource; + reader.readMessage(value,proto.v1.PDataSource.deserializeBinaryFromReader); + msg.addDatasource(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDataSourceList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDataSourceList.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.PDataSourceList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDataSourceList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDatasourceList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.v1.PDataSource.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated PDataSource dataSource = 1; + * @return {!Array} + */ +proto.v1.PDataSourceList.prototype.getDatasourceList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PDataSource, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PDataSourceList} returns this +*/ +proto.v1.PDataSourceList.prototype.setDatasourceList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.v1.PDataSource=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PDataSource} + */ +proto.v1.PDataSourceList.prototype.addDatasource = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.v1.PDataSource, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PDataSourceList} returns this + */ +proto.v1.PDataSourceList.prototype.clearDatasourceList = function() { + return this.setDatasourceList([]); +}; + + + + + +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_, 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.PFileDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PFileDescriptor.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.PFileDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PFileDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + openfiledescriptorcount: 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.PFileDescriptor} + */ +proto.v1.PFileDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PFileDescriptor; + return proto.v1.PFileDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PFileDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PFileDescriptor} + */ +proto.v1.PFileDescriptor.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.setOpenfiledescriptorcount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PFileDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PFileDescriptor.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.PFileDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PFileDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOpenfiledescriptorcount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } +}; + + +/** + * optional int64 openFileDescriptorCount = 1; + * @return {number} + */ +proto.v1.PFileDescriptor.prototype.getOpenfiledescriptorcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PFileDescriptor} returns this + */ +proto.v1.PFileDescriptor.prototype.setOpenfiledescriptorcount = function(value) { + return jspb.Message.setProto3IntField(this, 1, 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_, 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.PJvmGc.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PJvmGc.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.PJvmGc} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmGc.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, 0), + jvmmemoryheapused: jspb.Message.getFieldWithDefault(msg, 2, 0), + jvmmemoryheapmax: jspb.Message.getFieldWithDefault(msg, 3, 0), + jvmmemorynonheapused: jspb.Message.getFieldWithDefault(msg, 4, 0), + jvmmemorynonheapmax: jspb.Message.getFieldWithDefault(msg, 5, 0), + jvmgcoldcount: jspb.Message.getFieldWithDefault(msg, 6, 0), + jvmgcoldtime: jspb.Message.getFieldWithDefault(msg, 7, 0), + jvmgcdetailed: (f = msg.getJvmgcdetailed()) && proto.v1.PJvmGcDetailed.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.PJvmGc} + */ +proto.v1.PJvmGc.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PJvmGc; + return proto.v1.PJvmGc.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PJvmGc} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PJvmGc} + */ +proto.v1.PJvmGc.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.v1.PJvmGcType} */ (reader.readEnum()); + msg.setType(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmmemoryheapused(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmmemoryheapmax(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmmemorynonheapused(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmmemorynonheapmax(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmgcoldcount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmgcoldtime(value); + break; + case 8: + var value = new proto.v1.PJvmGcDetailed; + reader.readMessage(value,proto.v1.PJvmGcDetailed.deserializeBinaryFromReader); + msg.setJvmgcdetailed(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PJvmGc.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PJvmGc.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.PJvmGc} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmGc.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getJvmmemoryheapused(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getJvmmemoryheapmax(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getJvmmemorynonheapused(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getJvmmemorynonheapmax(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getJvmgcoldcount(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getJvmgcoldtime(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getJvmgcdetailed(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.v1.PJvmGcDetailed.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PJvmGcType type = 1; + * @return {!proto.v1.PJvmGcType} + */ +proto.v1.PJvmGc.prototype.getType = function() { + return /** @type {!proto.v1.PJvmGcType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.v1.PJvmGcType} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional int64 jvmMemoryHeapUsed = 2; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmmemoryheapused = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmmemoryheapused = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 jvmMemoryHeapMax = 3; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmmemoryheapmax = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmmemoryheapmax = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 jvmMemoryNonHeapUsed = 4; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmmemorynonheapused = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmmemorynonheapused = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 jvmMemoryNonHeapMax = 5; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmmemorynonheapmax = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmmemorynonheapmax = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 jvmGcOldCount = 6; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmgcoldcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmgcoldcount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int64 jvmGcOldTime = 7; + * @return {number} + */ +proto.v1.PJvmGc.prototype.getJvmgcoldtime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.setJvmgcoldtime = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional PJvmGcDetailed jvmGcDetailed = 8; + * @return {?proto.v1.PJvmGcDetailed} + */ +proto.v1.PJvmGc.prototype.getJvmgcdetailed = function() { + return /** @type{?proto.v1.PJvmGcDetailed} */ ( + jspb.Message.getWrapperField(this, proto.v1.PJvmGcDetailed, 8)); +}; + + +/** + * @param {?proto.v1.PJvmGcDetailed|undefined} value + * @return {!proto.v1.PJvmGc} returns this +*/ +proto.v1.PJvmGc.prototype.setJvmgcdetailed = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PJvmGc} returns this + */ +proto.v1.PJvmGc.prototype.clearJvmgcdetailed = function() { + return this.setJvmgcdetailed(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PJvmGc.prototype.hasJvmgcdetailed = function() { + return jspb.Message.getField(this, 8) != 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_, 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.PJvmGcDetailed.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PJvmGcDetailed.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.PJvmGcDetailed} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmGcDetailed.toObject = function(includeInstance, msg) { + var f, obj = { + jvmgcnewcount: jspb.Message.getFieldWithDefault(msg, 1, 0), + jvmgcnewtime: jspb.Message.getFieldWithDefault(msg, 2, 0), + jvmpoolcodecacheused: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + jvmpoolnewgenused: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + jvmpoololdgenused: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + jvmpoolsurvivorspaceused: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), + jvmpoolpermgenused: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + jvmpoolmetaspaceused: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.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.PJvmGcDetailed} + */ +proto.v1.PJvmGcDetailed.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PJvmGcDetailed; + return proto.v1.PJvmGcDetailed.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PJvmGcDetailed} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PJvmGcDetailed} + */ +proto.v1.PJvmGcDetailed.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.setJvmgcnewcount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setJvmgcnewtime(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoolcodecacheused(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoolnewgenused(value); + break; + case 5: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoololdgenused(value); + break; + case 6: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoolsurvivorspaceused(value); + break; + case 7: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoolpermgenused(value); + break; + case 8: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmpoolmetaspaceused(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PJvmGcDetailed.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PJvmGcDetailed.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.PJvmGcDetailed} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PJvmGcDetailed.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getJvmgcnewcount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getJvmgcnewtime(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getJvmpoolcodecacheused(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } + f = message.getJvmpoolnewgenused(); + if (f !== 0.0) { + writer.writeDouble( + 4, + f + ); + } + f = message.getJvmpoololdgenused(); + if (f !== 0.0) { + writer.writeDouble( + 5, + f + ); + } + f = message.getJvmpoolsurvivorspaceused(); + if (f !== 0.0) { + writer.writeDouble( + 6, + f + ); + } + f = message.getJvmpoolpermgenused(); + if (f !== 0.0) { + writer.writeDouble( + 7, + f + ); + } + f = message.getJvmpoolmetaspaceused(); + if (f !== 0.0) { + writer.writeDouble( + 8, + f + ); + } +}; + + +/** + * optional int64 jvmGcNewCount = 1; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmgcnewcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmgcnewcount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 jvmGcNewTime = 2; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmgcnewtime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmgcnewtime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional double jvmPoolCodeCacheUsed = 3; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoolcodecacheused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoolcodecacheused = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional double jvmPoolNewGenUsed = 4; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoolnewgenused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoolnewgenused = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional double jvmPoolOldGenUsed = 5; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoololdgenused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoololdgenused = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + +/** + * optional double jvmPoolSurvivorSpaceUsed = 6; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoolsurvivorspaceused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoolsurvivorspaceused = function(value) { + return jspb.Message.setProto3FloatField(this, 6, value); +}; + + +/** + * optional double jvmPoolPermGenUsed = 7; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoolpermgenused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoolpermgenused = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + +/** + * optional double jvmPoolMetaspaceUsed = 8; + * @return {number} + */ +proto.v1.PJvmGcDetailed.prototype.getJvmpoolmetaspaceused = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PJvmGcDetailed} returns this + */ +proto.v1.PJvmGcDetailed.prototype.setJvmpoolmetaspaceused = function(value) { + return jspb.Message.setProto3FloatField(this, 8, 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_, 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.PCpuLoad.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PCpuLoad.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.PCpuLoad} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCpuLoad.toObject = function(includeInstance, msg) { + var f, obj = { + jvmcpuload: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + systemcpuload: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.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.PCpuLoad} + */ +proto.v1.PCpuLoad.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PCpuLoad; + return proto.v1.PCpuLoad.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PCpuLoad} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PCpuLoad} + */ +proto.v1.PCpuLoad.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readDouble()); + msg.setJvmcpuload(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setSystemcpuload(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PCpuLoad.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PCpuLoad.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.PCpuLoad} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PCpuLoad.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getJvmcpuload(); + if (f !== 0.0) { + writer.writeDouble( + 1, + f + ); + } + f = message.getSystemcpuload(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } +}; + + +/** + * optional double jvmCpuLoad = 1; + * @return {number} + */ +proto.v1.PCpuLoad.prototype.getJvmcpuload = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCpuLoad} returns this + */ +proto.v1.PCpuLoad.prototype.setJvmcpuload = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional double systemCpuLoad = 2; + * @return {number} + */ +proto.v1.PCpuLoad.prototype.getSystemcpuload = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PCpuLoad} returns this + */ +proto.v1.PCpuLoad.prototype.setSystemcpuload = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PTransaction.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PTransaction.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.PTransaction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTransaction.toObject = function(includeInstance, msg) { + var f, obj = { + samplednewcount: jspb.Message.getFieldWithDefault(msg, 2, 0), + sampledcontinuationcount: jspb.Message.getFieldWithDefault(msg, 3, 0), + unsamplednewcount: jspb.Message.getFieldWithDefault(msg, 4, 0), + unsampledcontinuationcount: jspb.Message.getFieldWithDefault(msg, 5, 0), + skippednewcount: jspb.Message.getFieldWithDefault(msg, 6, 0), + skippedcontinuationcount: jspb.Message.getFieldWithDefault(msg, 7, 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.PTransaction} + */ +proto.v1.PTransaction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PTransaction; + return proto.v1.PTransaction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PTransaction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PTransaction} + */ +proto.v1.PTransaction.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSamplednewcount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSampledcontinuationcount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setUnsamplednewcount(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setUnsampledcontinuationcount(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSkippednewcount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSkippedcontinuationcount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PTransaction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PTransaction.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.PTransaction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTransaction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSamplednewcount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getSampledcontinuationcount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getUnsamplednewcount(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getUnsampledcontinuationcount(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getSkippednewcount(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getSkippedcontinuationcount(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } +}; + + +/** + * optional int64 sampledNewCount = 2; + * @return {number} + */ +proto.v1.PTransaction.prototype.getSamplednewcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setSamplednewcount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 sampledContinuationCount = 3; + * @return {number} + */ +proto.v1.PTransaction.prototype.getSampledcontinuationcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setSampledcontinuationcount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 unsampledNewCount = 4; + * @return {number} + */ +proto.v1.PTransaction.prototype.getUnsamplednewcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setUnsamplednewcount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 unsampledContinuationCount = 5; + * @return {number} + */ +proto.v1.PTransaction.prototype.getUnsampledcontinuationcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setUnsampledcontinuationcount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 skippedNewCount = 6; + * @return {number} + */ +proto.v1.PTransaction.prototype.getSkippednewcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setSkippednewcount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int64 skippedContinuationCount = 7; + * @return {number} + */ +proto.v1.PTransaction.prototype.getSkippedcontinuationcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTransaction} returns this + */ +proto.v1.PTransaction.prototype.setSkippedcontinuationcount = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PActiveTraceHistogram.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PActiveTraceHistogram.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PActiveTraceHistogram.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.PActiveTraceHistogram} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveTraceHistogram.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, 0), + histogramschematype: jspb.Message.getFieldWithDefault(msg, 2, 0), + activetracecountList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PActiveTraceHistogram} + */ +proto.v1.PActiveTraceHistogram.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PActiveTraceHistogram; + return proto.v1.PActiveTraceHistogram.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PActiveTraceHistogram} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PActiveTraceHistogram} + */ +proto.v1.PActiveTraceHistogram.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersion(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHistogramschematype(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addActivetracecount(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PActiveTraceHistogram.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PActiveTraceHistogram.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.PActiveTraceHistogram} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveTraceHistogram.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHistogramschematype(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getActivetracecountList(); + if (f.length > 0) { + writer.writePackedInt32( + 3, + f + ); + } +}; + + +/** + * optional int32 version = 1; + * @return {number} + */ +proto.v1.PActiveTraceHistogram.prototype.getVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveTraceHistogram} returns this + */ +proto.v1.PActiveTraceHistogram.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 histogramSchemaType = 2; + * @return {number} + */ +proto.v1.PActiveTraceHistogram.prototype.getHistogramschematype = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveTraceHistogram} returns this + */ +proto.v1.PActiveTraceHistogram.prototype.setHistogramschematype = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated int32 activeTraceCount = 3; + * @return {!Array} + */ +proto.v1.PActiveTraceHistogram.prototype.getActivetracecountList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PActiveTraceHistogram} returns this + */ +proto.v1.PActiveTraceHistogram.prototype.setActivetracecountList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PActiveTraceHistogram} returns this + */ +proto.v1.PActiveTraceHistogram.prototype.addActivetracecount = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PActiveTraceHistogram} returns this + */ +proto.v1.PActiveTraceHistogram.prototype.clearActivetracecountList = function() { + return this.setActivetracecountList([]); +}; + + + + + +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_, 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.PActiveTrace.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PActiveTrace.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.PActiveTrace} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveTrace.toObject = function(includeInstance, msg) { + var f, obj = { + histogram: (f = msg.getHistogram()) && proto.v1.PActiveTraceHistogram.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.PActiveTrace} + */ +proto.v1.PActiveTrace.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PActiveTrace; + return proto.v1.PActiveTrace.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PActiveTrace} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PActiveTrace} + */ +proto.v1.PActiveTrace.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.v1.PActiveTraceHistogram; + reader.readMessage(value,proto.v1.PActiveTraceHistogram.deserializeBinaryFromReader); + msg.setHistogram(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PActiveTrace.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PActiveTrace.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.PActiveTrace} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveTrace.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHistogram(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.v1.PActiveTraceHistogram.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PActiveTraceHistogram histogram = 1; + * @return {?proto.v1.PActiveTraceHistogram} + */ +proto.v1.PActiveTrace.prototype.getHistogram = function() { + return /** @type{?proto.v1.PActiveTraceHistogram} */ ( + jspb.Message.getWrapperField(this, proto.v1.PActiveTraceHistogram, 1)); +}; + + +/** + * @param {?proto.v1.PActiveTraceHistogram|undefined} value + * @return {!proto.v1.PActiveTrace} returns this +*/ +proto.v1.PActiveTrace.prototype.setHistogram = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PActiveTrace} returns this + */ +proto.v1.PActiveTrace.prototype.clearHistogram = function() { + return this.setHistogram(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PActiveTrace.prototype.hasHistogram = function() { + return jspb.Message.getField(this, 1) != 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_, 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.PResponseTime.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PResponseTime.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.PResponseTime} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PResponseTime.toObject = function(includeInstance, msg) { + var f, obj = { + avg: jspb.Message.getFieldWithDefault(msg, 1, 0), + max: 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.v1.PResponseTime} + */ +proto.v1.PResponseTime.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PResponseTime; + return proto.v1.PResponseTime.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PResponseTime} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PResponseTime} + */ +proto.v1.PResponseTime.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.setAvg(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMax(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PResponseTime.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PResponseTime.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.PResponseTime} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PResponseTime.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAvg(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getMax(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } +}; + + +/** + * optional int64 avg = 1; + * @return {number} + */ +proto.v1.PResponseTime.prototype.getAvg = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PResponseTime} returns this + */ +proto.v1.PResponseTime.prototype.setAvg = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 max = 2; + * @return {number} + */ +proto.v1.PResponseTime.prototype.getMax = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PResponseTime} returns this + */ +proto.v1.PResponseTime.prototype.setMax = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PDeadlock.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_, 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.PDeadlock.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDeadlock.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.PDeadlock} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDeadlock.toObject = function(includeInstance, msg) { + var f, obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, 0), + threaddumpList: jspb.Message.toObjectList(msg.getThreaddumpList(), + v1_ThreadDump_pb.PThreadDump.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.PDeadlock} + */ +proto.v1.PDeadlock.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDeadlock; + return proto.v1.PDeadlock.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDeadlock} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDeadlock} + */ +proto.v1.PDeadlock.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCount(value); + break; + case 2: + var value = new v1_ThreadDump_pb.PThreadDump; + reader.readMessage(value,v1_ThreadDump_pb.PThreadDump.deserializeBinaryFromReader); + msg.addThreaddump(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDeadlock.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDeadlock.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.PDeadlock} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDeadlock.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCount(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getThreaddumpList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + v1_ThreadDump_pb.PThreadDump.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 count = 1; + * @return {number} + */ +proto.v1.PDeadlock.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDeadlock} returns this + */ +proto.v1.PDeadlock.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated PThreadDump threadDump = 2; + * @return {!Array} + */ +proto.v1.PDeadlock.prototype.getThreaddumpList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, v1_ThreadDump_pb.PThreadDump, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PDeadlock} returns this +*/ +proto.v1.PDeadlock.prototype.setThreaddumpList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.v1.PThreadDump=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PThreadDump} + */ +proto.v1.PDeadlock.prototype.addThreaddump = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.v1.PThreadDump, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PDeadlock} returns this + */ +proto.v1.PDeadlock.prototype.clearThreaddumpList = function() { + return this.setThreaddumpList([]); +}; + + + + + +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_, 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.PDirectBuffer.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PDirectBuffer.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.PDirectBuffer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDirectBuffer.toObject = function(includeInstance, msg) { + var f, obj = { + directcount: jspb.Message.getFieldWithDefault(msg, 1, 0), + directmemoryused: jspb.Message.getFieldWithDefault(msg, 2, 0), + mappedcount: jspb.Message.getFieldWithDefault(msg, 3, 0), + mappedmemoryused: 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.v1.PDirectBuffer} + */ +proto.v1.PDirectBuffer.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PDirectBuffer; + return proto.v1.PDirectBuffer.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PDirectBuffer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PDirectBuffer} + */ +proto.v1.PDirectBuffer.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.setDirectcount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDirectmemoryused(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMappedcount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMappedmemoryused(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PDirectBuffer.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PDirectBuffer.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.PDirectBuffer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PDirectBuffer.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDirectcount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getDirectmemoryused(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getMappedcount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getMappedmemoryused(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional int64 directCount = 1; + * @return {number} + */ +proto.v1.PDirectBuffer.prototype.getDirectcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDirectBuffer} returns this + */ +proto.v1.PDirectBuffer.prototype.setDirectcount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 directMemoryUsed = 2; + * @return {number} + */ +proto.v1.PDirectBuffer.prototype.getDirectmemoryused = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDirectBuffer} returns this + */ +proto.v1.PDirectBuffer.prototype.setDirectmemoryused = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 mappedCount = 3; + * @return {number} + */ +proto.v1.PDirectBuffer.prototype.getMappedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDirectBuffer} returns this + */ +proto.v1.PDirectBuffer.prototype.setMappedcount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 mappedMemoryUsed = 4; + * @return {number} + */ +proto.v1.PDirectBuffer.prototype.getMappedmemoryused = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PDirectBuffer} returns this + */ +proto.v1.PDirectBuffer.prototype.setMappedmemoryused = 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_, 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.PTotalThread.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PTotalThread.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.PTotalThread} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTotalThread.toObject = function(includeInstance, msg) { + var f, obj = { + totalthreadcount: 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.PTotalThread} + */ +proto.v1.PTotalThread.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PTotalThread; + return proto.v1.PTotalThread.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PTotalThread} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PTotalThread} + */ +proto.v1.PTotalThread.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.setTotalthreadcount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PTotalThread.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PTotalThread.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.PTotalThread} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PTotalThread.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTotalthreadcount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } +}; + + +/** + * optional int64 totalThreadCount = 1; + * @return {number} + */ +proto.v1.PTotalThread.prototype.getTotalthreadcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PTotalThread} returns this + */ +proto.v1.PTotalThread.prototype.setTotalthreadcount = function(value) { + return jspb.Message.setProto3IntField(this, 1, 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_, 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.PLoadedClass.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PLoadedClass.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.PLoadedClass} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLoadedClass.toObject = function(includeInstance, msg) { + var f, obj = { + loadedclasscount: jspb.Message.getFieldWithDefault(msg, 1, 0), + unloadedclasscount: 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.v1.PLoadedClass} + */ +proto.v1.PLoadedClass.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PLoadedClass; + return proto.v1.PLoadedClass.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PLoadedClass} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PLoadedClass} + */ +proto.v1.PLoadedClass.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.setLoadedclasscount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setUnloadedclasscount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PLoadedClass.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PLoadedClass.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.PLoadedClass} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PLoadedClass.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLoadedclasscount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getUnloadedclasscount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } +}; + + +/** + * optional int64 loadedClassCount = 1; + * @return {number} + */ +proto.v1.PLoadedClass.prototype.getLoadedclasscount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLoadedClass} returns this + */ +proto.v1.PLoadedClass.prototype.setLoadedclasscount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 unloadedClassCount = 2; + * @return {number} + */ +proto.v1.PLoadedClass.prototype.getUnloadedclasscount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PLoadedClass} returns this + */ +proto.v1.PLoadedClass.prototype.setUnloadedclasscount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PAgentUriStat.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.PAgentUriStat.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PAgentUriStat.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.PAgentUriStat} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentUriStat.toObject = function(includeInstance, msg) { + var f, obj = { + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + bucketversion: jspb.Message.getFieldWithDefault(msg, 2, 0), + eachuristatList: jspb.Message.toObjectList(msg.getEachuristatList(), + proto.v1.PEachUriStat.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.PAgentUriStat} + */ +proto.v1.PAgentUriStat.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PAgentUriStat; + return proto.v1.PAgentUriStat.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PAgentUriStat} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PAgentUriStat} + */ +proto.v1.PAgentUriStat.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.setTimestamp(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBucketversion(value); + break; + case 3: + var value = new proto.v1.PEachUriStat; + reader.readMessage(value,proto.v1.PEachUriStat.deserializeBinaryFromReader); + msg.addEachuristat(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PAgentUriStat.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PAgentUriStat.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.PAgentUriStat} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PAgentUriStat.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getBucketversion(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getEachuristatList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.v1.PEachUriStat.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int64 timestamp = 1; + * @return {number} + */ +proto.v1.PAgentUriStat.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAgentUriStat} returns this + */ +proto.v1.PAgentUriStat.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 bucketVersion = 2; + * @return {number} + */ +proto.v1.PAgentUriStat.prototype.getBucketversion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PAgentUriStat} returns this + */ +proto.v1.PAgentUriStat.prototype.setBucketversion = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated PEachUriStat eachUriStat = 3; + * @return {!Array} + */ +proto.v1.PAgentUriStat.prototype.getEachuristatList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PEachUriStat, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PAgentUriStat} returns this +*/ +proto.v1.PAgentUriStat.prototype.setEachuristatList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.v1.PEachUriStat=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PEachUriStat} + */ +proto.v1.PAgentUriStat.prototype.addEachuristat = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.v1.PEachUriStat, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PAgentUriStat} returns this + */ +proto.v1.PAgentUriStat.prototype.clearEachuristatList = function() { + return this.setEachuristatList([]); +}; + + + + + +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_, 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.PEachUriStat.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PEachUriStat.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.PEachUriStat} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PEachUriStat.toObject = function(includeInstance, msg) { + var f, obj = { + uri: jspb.Message.getFieldWithDefault(msg, 1, ""), + totalhistogram: (f = msg.getTotalhistogram()) && proto.v1.PUriHistogram.toObject(includeInstance, f), + failedhistogram: (f = msg.getFailedhistogram()) && proto.v1.PUriHistogram.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.PEachUriStat} + */ +proto.v1.PEachUriStat.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PEachUriStat; + return proto.v1.PEachUriStat.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PEachUriStat} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PEachUriStat} + */ +proto.v1.PEachUriStat.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.setUri(value); + break; + case 2: + var value = new proto.v1.PUriHistogram; + reader.readMessage(value,proto.v1.PUriHistogram.deserializeBinaryFromReader); + msg.setTotalhistogram(value); + break; + case 3: + var value = new proto.v1.PUriHistogram; + reader.readMessage(value,proto.v1.PUriHistogram.deserializeBinaryFromReader); + msg.setFailedhistogram(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PEachUriStat.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PEachUriStat.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.PEachUriStat} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PEachUriStat.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUri(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTotalhistogram(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.v1.PUriHistogram.serializeBinaryToWriter + ); + } + f = message.getFailedhistogram(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.v1.PUriHistogram.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string uri = 1; + * @return {string} + */ +proto.v1.PEachUriStat.prototype.getUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PEachUriStat} returns this + */ +proto.v1.PEachUriStat.prototype.setUri = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional PUriHistogram totalHistogram = 2; + * @return {?proto.v1.PUriHistogram} + */ +proto.v1.PEachUriStat.prototype.getTotalhistogram = function() { + return /** @type{?proto.v1.PUriHistogram} */ ( + jspb.Message.getWrapperField(this, proto.v1.PUriHistogram, 2)); +}; + + +/** + * @param {?proto.v1.PUriHistogram|undefined} value + * @return {!proto.v1.PEachUriStat} returns this +*/ +proto.v1.PEachUriStat.prototype.setTotalhistogram = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PEachUriStat} returns this + */ +proto.v1.PEachUriStat.prototype.clearTotalhistogram = function() { + return this.setTotalhistogram(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PEachUriStat.prototype.hasTotalhistogram = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional PUriHistogram failedHistogram = 3; + * @return {?proto.v1.PUriHistogram} + */ +proto.v1.PEachUriStat.prototype.getFailedhistogram = function() { + return /** @type{?proto.v1.PUriHistogram} */ ( + jspb.Message.getWrapperField(this, proto.v1.PUriHistogram, 3)); +}; + + +/** + * @param {?proto.v1.PUriHistogram|undefined} value + * @return {!proto.v1.PEachUriStat} returns this +*/ +proto.v1.PEachUriStat.prototype.setFailedhistogram = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PEachUriStat} returns this + */ +proto.v1.PEachUriStat.prototype.clearFailedhistogram = function() { + return this.setFailedhistogram(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PEachUriStat.prototype.hasFailedhistogram = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PUriHistogram.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_, 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.PUriHistogram.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PUriHistogram.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.PUriHistogram} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PUriHistogram.toObject = function(includeInstance, msg) { + var f, obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, 0), + avg: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + max: jspb.Message.getFieldWithDefault(msg, 3, 0), + histogramList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PUriHistogram} + */ +proto.v1.PUriHistogram.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PUriHistogram; + return proto.v1.PUriHistogram.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PUriHistogram} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PUriHistogram} + */ +proto.v1.PUriHistogram.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAvg(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMax(value); + break; + case 4: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addHistogram(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PUriHistogram.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PUriHistogram.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.PUriHistogram} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PUriHistogram.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCount(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getAvg(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } + f = message.getMax(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getHistogramList(); + if (f.length > 0) { + writer.writePackedInt32( + 4, + f + ); + } +}; + + +/** + * optional int32 count = 1; + * @return {number} + */ +proto.v1.PUriHistogram.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional double avg = 2; + * @return {number} + */ +proto.v1.PUriHistogram.prototype.getAvg = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.setAvg = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional int64 max = 3; + * @return {number} + */ +proto.v1.PUriHistogram.prototype.getMax = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.setMax = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * repeated int32 histogram = 4; + * @return {!Array} + */ +proto.v1.PUriHistogram.prototype.getHistogramList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.setHistogramList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.addHistogram = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PUriHistogram} returns this + */ +proto.v1.PUriHistogram.prototype.clearHistogramList = function() { + return this.setHistogramList([]); +}; + + +/** + * @enum {number} + */ +proto.v1.PJvmGcType = { + JVM_GC_TYPE_UNKNOWN: 0, + JVM_GC_TYPE_SERIAL: 1, + JVM_GC_TYPE_PARALLEL: 2, + JVM_GC_TYPE_CMS: 3, + JVM_GC_TYPE_G1: 4 +}; + +goog.object.extend(exports, proto.v1); diff --git a/lib/data/v1/ThreadDump_grpc_pb.js b/lib/data/v1/ThreadDump_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/lib/data/v1/ThreadDump_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/lib/data/v1/ThreadDump_pb.js b/lib/data/v1/ThreadDump_pb.js new file mode 100644 index 00000000..8fa5b353 --- /dev/null +++ b/lib/data/v1/ThreadDump_pb.js @@ -0,0 +1,1720 @@ +// source: v1/ThreadDump.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.v1.PActiveThreadDump', null, global); +goog.exportSymbol('proto.v1.PActiveThreadLightDump', null, global); +goog.exportSymbol('proto.v1.PMonitorInfo', null, global); +goog.exportSymbol('proto.v1.PThreadDump', null, global); +goog.exportSymbol('proto.v1.PThreadDumpType', null, global); +goog.exportSymbol('proto.v1.PThreadLightDump', null, global); +goog.exportSymbol('proto.v1.PThreadState', 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.PMonitorInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PMonitorInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PMonitorInfo.displayName = 'proto.v1.PMonitorInfo'; +} +/** + * 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.PThreadDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.v1.PThreadDump.repeatedFields_, null); +}; +goog.inherits(proto.v1.PThreadDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PThreadDump.displayName = 'proto.v1.PThreadDump'; +} +/** + * 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.PThreadLightDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PThreadLightDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PThreadLightDump.displayName = 'proto.v1.PThreadLightDump'; +} +/** + * 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.PActiveThreadDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PActiveThreadDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PActiveThreadDump.displayName = 'proto.v1.PActiveThreadDump'; +} +/** + * 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.PActiveThreadLightDump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.v1.PActiveThreadLightDump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.v1.PActiveThreadLightDump.displayName = 'proto.v1.PActiveThreadLightDump'; +} + + + +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_, 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.PMonitorInfo.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PMonitorInfo.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.PMonitorInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PMonitorInfo.toObject = function(includeInstance, msg) { + var f, obj = { + stackdepth: jspb.Message.getFieldWithDefault(msg, 1, 0), + stackframe: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PMonitorInfo} + */ +proto.v1.PMonitorInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PMonitorInfo; + return proto.v1.PMonitorInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PMonitorInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PMonitorInfo} + */ +proto.v1.PMonitorInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStackdepth(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setStackframe(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PMonitorInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PMonitorInfo.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.PMonitorInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PMonitorInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStackdepth(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getStackframe(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional int32 stackDepth = 1; + * @return {number} + */ +proto.v1.PMonitorInfo.prototype.getStackdepth = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PMonitorInfo} returns this + */ +proto.v1.PMonitorInfo.prototype.setStackdepth = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string stackFrame = 2; + * @return {string} + */ +proto.v1.PMonitorInfo.prototype.getStackframe = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PMonitorInfo} returns this + */ +proto.v1.PMonitorInfo.prototype.setStackframe = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.v1.PThreadDump.repeatedFields_ = [13,14,15]; + + + +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_, 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.PThreadDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PThreadDump.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.PThreadDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PThreadDump.toObject = function(includeInstance, msg) { + var f, obj = { + threadname: jspb.Message.getFieldWithDefault(msg, 1, ""), + threadid: jspb.Message.getFieldWithDefault(msg, 2, 0), + blockedtime: jspb.Message.getFieldWithDefault(msg, 3, 0), + blockedcount: jspb.Message.getFieldWithDefault(msg, 4, 0), + waitedtime: jspb.Message.getFieldWithDefault(msg, 5, 0), + waitedcount: jspb.Message.getFieldWithDefault(msg, 6, 0), + lockname: jspb.Message.getFieldWithDefault(msg, 7, ""), + lockownerid: jspb.Message.getFieldWithDefault(msg, 8, 0), + lockownername: jspb.Message.getFieldWithDefault(msg, 9, ""), + innative: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + suspended: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + threadstate: jspb.Message.getFieldWithDefault(msg, 12, 0), + stacktraceList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f, + lockedmonitorList: jspb.Message.toObjectList(msg.getLockedmonitorList(), + proto.v1.PMonitorInfo.toObject, includeInstance), + lockedsynchronizerList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.v1.PThreadDump} + */ +proto.v1.PThreadDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PThreadDump; + return proto.v1.PThreadDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PThreadDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PThreadDump} + */ +proto.v1.PThreadDump.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.setThreadname(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setThreadid(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBlockedtime(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBlockedcount(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setWaitedtime(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setWaitedcount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setLockname(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLockownerid(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setLockownername(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setInnative(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuspended(value); + break; + case 12: + var value = /** @type {!proto.v1.PThreadState} */ (reader.readEnum()); + msg.setThreadstate(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.addStacktrace(value); + break; + case 14: + var value = new proto.v1.PMonitorInfo; + reader.readMessage(value,proto.v1.PMonitorInfo.deserializeBinaryFromReader); + msg.addLockedmonitor(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.addLockedsynchronizer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PThreadDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PThreadDump.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.PThreadDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PThreadDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getThreadname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getThreadid(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getBlockedtime(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getBlockedcount(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getWaitedtime(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getWaitedcount(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getLockname(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getLockownerid(); + if (f !== 0) { + writer.writeInt64( + 8, + f + ); + } + f = message.getLockownername(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getInnative(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getSuspended(); + if (f) { + writer.writeBool( + 11, + f + ); + } + f = message.getThreadstate(); + if (f !== 0.0) { + writer.writeEnum( + 12, + f + ); + } + f = message.getStacktraceList(); + if (f.length > 0) { + writer.writeRepeatedString( + 13, + f + ); + } + f = message.getLockedmonitorList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 14, + f, + proto.v1.PMonitorInfo.serializeBinaryToWriter + ); + } + f = message.getLockedsynchronizerList(); + if (f.length > 0) { + writer.writeRepeatedString( + 15, + f + ); + } +}; + + +/** + * optional string threadName = 1; + * @return {string} + */ +proto.v1.PThreadDump.prototype.getThreadname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setThreadname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 threadId = 2; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getThreadid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setThreadid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 blockedTime = 3; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getBlockedtime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setBlockedtime = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 blockedCount = 4; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getBlockedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setBlockedcount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 waitedTime = 5; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getWaitedtime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setWaitedtime = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 waitedCount = 6; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getWaitedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setWaitedcount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional string lockName = 7; + * @return {string} + */ +proto.v1.PThreadDump.prototype.getLockname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setLockname = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional int64 lockOwnerId = 8; + * @return {number} + */ +proto.v1.PThreadDump.prototype.getLockownerid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setLockownerid = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string lockOwnerName = 9; + * @return {string} + */ +proto.v1.PThreadDump.prototype.getLockownername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setLockownername = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional bool inNative = 10; + * @return {boolean} + */ +proto.v1.PThreadDump.prototype.getInnative = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setInnative = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + +/** + * optional bool suspended = 11; + * @return {boolean} + */ +proto.v1.PThreadDump.prototype.getSuspended = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setSuspended = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); +}; + + +/** + * optional PThreadState threadState = 12; + * @return {!proto.v1.PThreadState} + */ +proto.v1.PThreadDump.prototype.getThreadstate = function() { + return /** @type {!proto.v1.PThreadState} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {!proto.v1.PThreadState} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setThreadstate = function(value) { + return jspb.Message.setProto3EnumField(this, 12, value); +}; + + +/** + * repeated string stackTrace = 13; + * @return {!Array} + */ +proto.v1.PThreadDump.prototype.getStacktraceList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setStacktraceList = function(value) { + return jspb.Message.setField(this, 13, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.addStacktrace = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 13, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.clearStacktraceList = function() { + return this.setStacktraceList([]); +}; + + +/** + * repeated PMonitorInfo lockedMonitor = 14; + * @return {!Array} + */ +proto.v1.PThreadDump.prototype.getLockedmonitorList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.v1.PMonitorInfo, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PThreadDump} returns this +*/ +proto.v1.PThreadDump.prototype.setLockedmonitorList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 14, value); +}; + + +/** + * @param {!proto.v1.PMonitorInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.v1.PMonitorInfo} + */ +proto.v1.PThreadDump.prototype.addLockedmonitor = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.v1.PMonitorInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.clearLockedmonitorList = function() { + return this.setLockedmonitorList([]); +}; + + +/** + * repeated string lockedSynchronizer = 15; + * @return {!Array} + */ +proto.v1.PThreadDump.prototype.getLockedsynchronizerList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); +}; + + +/** + * @param {!Array} value + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.setLockedsynchronizerList = function(value) { + return jspb.Message.setField(this, 15, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.addLockedsynchronizer = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.v1.PThreadDump} returns this + */ +proto.v1.PThreadDump.prototype.clearLockedsynchronizerList = function() { + return this.setLockedsynchronizerList([]); +}; + + + + + +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_, 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.PThreadLightDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PThreadLightDump.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.PThreadLightDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PThreadLightDump.toObject = function(includeInstance, msg) { + var f, obj = { + threadname: jspb.Message.getFieldWithDefault(msg, 1, ""), + threadid: jspb.Message.getFieldWithDefault(msg, 2, 0), + threadstate: 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.v1.PThreadLightDump} + */ +proto.v1.PThreadLightDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PThreadLightDump; + return proto.v1.PThreadLightDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PThreadLightDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PThreadLightDump} + */ +proto.v1.PThreadLightDump.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.setThreadname(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setThreadid(value); + break; + case 3: + var value = /** @type {!proto.v1.PThreadState} */ (reader.readEnum()); + msg.setThreadstate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PThreadLightDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PThreadLightDump.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.PThreadLightDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PThreadLightDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getThreadname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getThreadid(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getThreadstate(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional string threadName = 1; + * @return {string} + */ +proto.v1.PThreadLightDump.prototype.getThreadname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PThreadLightDump} returns this + */ +proto.v1.PThreadLightDump.prototype.setThreadname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 threadId = 2; + * @return {number} + */ +proto.v1.PThreadLightDump.prototype.getThreadid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PThreadLightDump} returns this + */ +proto.v1.PThreadLightDump.prototype.setThreadid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional PThreadState threadState = 3; + * @return {!proto.v1.PThreadState} + */ +proto.v1.PThreadLightDump.prototype.getThreadstate = function() { + return /** @type {!proto.v1.PThreadState} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.v1.PThreadState} value + * @return {!proto.v1.PThreadLightDump} returns this + */ +proto.v1.PThreadLightDump.prototype.setThreadstate = function(value) { + return jspb.Message.setProto3EnumField(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_, 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.PActiveThreadDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PActiveThreadDump.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.PActiveThreadDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveThreadDump.toObject = function(includeInstance, msg) { + var f, obj = { + starttime: jspb.Message.getFieldWithDefault(msg, 1, 0), + localtraceid: jspb.Message.getFieldWithDefault(msg, 2, 0), + threaddump: (f = msg.getThreaddump()) && proto.v1.PThreadDump.toObject(includeInstance, f), + sampled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + transactionid: jspb.Message.getFieldWithDefault(msg, 5, ""), + entrypoint: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + 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.PActiveThreadDump} + */ +proto.v1.PActiveThreadDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PActiveThreadDump; + return proto.v1.PActiveThreadDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PActiveThreadDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PActiveThreadDump} + */ +proto.v1.PActiveThreadDump.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.setStarttime(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLocaltraceid(value); + break; + case 3: + var value = new proto.v1.PThreadDump; + reader.readMessage(value,proto.v1.PThreadDump.deserializeBinaryFromReader); + msg.setThreaddump(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSampled(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setTransactionid(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setEntrypoint(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PActiveThreadDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PActiveThreadDump.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.PActiveThreadDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveThreadDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStarttime(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getLocaltraceid(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getThreaddump(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.v1.PThreadDump.serializeBinaryToWriter + ); + } + f = message.getSampled(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getTransactionid(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEntrypoint(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional int64 startTime = 1; + * @return {number} + */ +proto.v1.PActiveThreadDump.prototype.getStarttime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.setStarttime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 localTraceId = 2; + * @return {number} + */ +proto.v1.PActiveThreadDump.prototype.getLocaltraceid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.setLocaltraceid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional PThreadDump threadDump = 3; + * @return {?proto.v1.PThreadDump} + */ +proto.v1.PActiveThreadDump.prototype.getThreaddump = function() { + return /** @type{?proto.v1.PThreadDump} */ ( + jspb.Message.getWrapperField(this, proto.v1.PThreadDump, 3)); +}; + + +/** + * @param {?proto.v1.PThreadDump|undefined} value + * @return {!proto.v1.PActiveThreadDump} returns this +*/ +proto.v1.PActiveThreadDump.prototype.setThreaddump = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.clearThreaddump = function() { + return this.setThreaddump(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PActiveThreadDump.prototype.hasThreaddump = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool sampled = 4; + * @return {boolean} + */ +proto.v1.PActiveThreadDump.prototype.getSampled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.setSampled = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional string transactionId = 5; + * @return {string} + */ +proto.v1.PActiveThreadDump.prototype.getTransactionid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.setTransactionid = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string entryPoint = 6; + * @return {string} + */ +proto.v1.PActiveThreadDump.prototype.getEntrypoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PActiveThreadDump} returns this + */ +proto.v1.PActiveThreadDump.prototype.setEntrypoint = function(value) { + return jspb.Message.setProto3StringField(this, 6, 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_, 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.PActiveThreadLightDump.prototype.toObject = function(opt_includeInstance) { + return proto.v1.PActiveThreadLightDump.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.PActiveThreadLightDump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveThreadLightDump.toObject = function(includeInstance, msg) { + var f, obj = { + starttime: jspb.Message.getFieldWithDefault(msg, 1, 0), + localtraceid: jspb.Message.getFieldWithDefault(msg, 2, 0), + threaddump: (f = msg.getThreaddump()) && proto.v1.PThreadLightDump.toObject(includeInstance, f), + sampled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + transactionid: jspb.Message.getFieldWithDefault(msg, 5, ""), + entrypoint: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + 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.PActiveThreadLightDump} + */ +proto.v1.PActiveThreadLightDump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.v1.PActiveThreadLightDump; + return proto.v1.PActiveThreadLightDump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.v1.PActiveThreadLightDump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.v1.PActiveThreadLightDump} + */ +proto.v1.PActiveThreadLightDump.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.setStarttime(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLocaltraceid(value); + break; + case 3: + var value = new proto.v1.PThreadLightDump; + reader.readMessage(value,proto.v1.PThreadLightDump.deserializeBinaryFromReader); + msg.setThreaddump(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSampled(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setTransactionid(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setEntrypoint(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.v1.PActiveThreadLightDump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.v1.PActiveThreadLightDump.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.PActiveThreadLightDump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.v1.PActiveThreadLightDump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStarttime(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getLocaltraceid(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getThreaddump(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.v1.PThreadLightDump.serializeBinaryToWriter + ); + } + f = message.getSampled(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getTransactionid(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getEntrypoint(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional int64 startTime = 1; + * @return {number} + */ +proto.v1.PActiveThreadLightDump.prototype.getStarttime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.setStarttime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 localTraceId = 2; + * @return {number} + */ +proto.v1.PActiveThreadLightDump.prototype.getLocaltraceid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.setLocaltraceid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional PThreadLightDump threadDump = 3; + * @return {?proto.v1.PThreadLightDump} + */ +proto.v1.PActiveThreadLightDump.prototype.getThreaddump = function() { + return /** @type{?proto.v1.PThreadLightDump} */ ( + jspb.Message.getWrapperField(this, proto.v1.PThreadLightDump, 3)); +}; + + +/** + * @param {?proto.v1.PThreadLightDump|undefined} value + * @return {!proto.v1.PActiveThreadLightDump} returns this +*/ +proto.v1.PActiveThreadLightDump.prototype.setThreaddump = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.clearThreaddump = function() { + return this.setThreaddump(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.v1.PActiveThreadLightDump.prototype.hasThreaddump = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool sampled = 4; + * @return {boolean} + */ +proto.v1.PActiveThreadLightDump.prototype.getSampled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.setSampled = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional string transactionId = 5; + * @return {string} + */ +proto.v1.PActiveThreadLightDump.prototype.getTransactionid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.setTransactionid = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string entryPoint = 6; + * @return {string} + */ +proto.v1.PActiveThreadLightDump.prototype.getEntrypoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.v1.PActiveThreadLightDump} returns this + */ +proto.v1.PActiveThreadLightDump.prototype.setEntrypoint = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * @enum {number} + */ +proto.v1.PThreadState = { + THREAD_STATE_NEW: 0, + THREAD_STATE_RUNNABLE: 1, + THREAD_STATE_BLOCKED: 2, + THREAD_STATE_WAITING: 3, + THREAD_STATE_TIMED_WAITING: 4, + THREAD_STATE_TERMINATED: 5, + THREAD_STATE_UNKNOWN: 6 +}; + +/** + * @enum {number} + */ +proto.v1.PThreadDumpType = { + TARGET: 0, + PENDING: 1 +}; + +goog.object.extend(exports, proto.v1);