labs/arthas-grpc-web-proxy/ui/src/assets/proto/ArthasServices_pb.js (3,012 lines of code) (raw):

// source: ArthasServices.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { if (this) { return this; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } if (typeof self !== 'undefined') { return self; } return Function('return this')(); }.call(null)); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_pb); goog.exportSymbol('proto.io.arthas.api.ArrayElement', null, global); goog.exportSymbol('proto.io.arthas.api.ArrayElement.ElementCase', null, global); goog.exportSymbol('proto.io.arthas.api.ArrayValue', null, global); goog.exportSymbol('proto.io.arthas.api.BasicValue', null, global); goog.exportSymbol('proto.io.arthas.api.BasicValue.ValueCase', null, global); goog.exportSymbol('proto.io.arthas.api.CollectionValue', null, global); goog.exportSymbol('proto.io.arthas.api.JavaField', null, global); goog.exportSymbol('proto.io.arthas.api.JavaField.ValueCase', null, global); goog.exportSymbol('proto.io.arthas.api.JavaFields', null, global); goog.exportSymbol('proto.io.arthas.api.JavaObject', null, global); goog.exportSymbol('proto.io.arthas.api.JavaObject.ValueCase', null, global); goog.exportSymbol('proto.io.arthas.api.MapEntry', null, global); goog.exportSymbol('proto.io.arthas.api.MapValue', null, global); goog.exportSymbol('proto.io.arthas.api.NullValue', null, global); goog.exportSymbol('proto.io.arthas.api.ObjectQuery', null, global); goog.exportSymbol('proto.io.arthas.api.ObjectQueryResult', null, global); goog.exportSymbol('proto.io.arthas.api.ObjectRequest', null, global); goog.exportSymbol('proto.io.arthas.api.ResponseBody', null, global); goog.exportSymbol('proto.io.arthas.api.ResponseBody.DataCase', null, global); goog.exportSymbol('proto.io.arthas.api.StringKey', null, global); goog.exportSymbol('proto.io.arthas.api.StringStringMapValue', null, global); goog.exportSymbol('proto.io.arthas.api.StringValue', null, global); goog.exportSymbol('proto.io.arthas.api.UnexpandedObject', null, global); goog.exportSymbol('proto.io.arthas.api.WatchRequest', null, global); goog.exportSymbol('proto.io.arthas.api.WatchResponse', 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.io.arthas.api.ObjectRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.ObjectRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ObjectRequest.displayName = 'proto.io.arthas.api.ObjectRequest'; } /** * 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.io.arthas.api.BasicValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.arthas.api.BasicValue.oneofGroups_); }; goog.inherits(proto.io.arthas.api.BasicValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.BasicValue.displayName = 'proto.io.arthas.api.BasicValue'; } /** * 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.io.arthas.api.ArrayElement = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.arthas.api.ArrayElement.oneofGroups_); }; goog.inherits(proto.io.arthas.api.ArrayElement, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ArrayElement.displayName = 'proto.io.arthas.api.ArrayElement'; } /** * 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.io.arthas.api.ArrayValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.io.arthas.api.ArrayValue.repeatedFields_, null); }; goog.inherits(proto.io.arthas.api.ArrayValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ArrayValue.displayName = 'proto.io.arthas.api.ArrayValue'; } /** * 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.io.arthas.api.NullValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.NullValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.NullValue.displayName = 'proto.io.arthas.api.NullValue'; } /** * 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.io.arthas.api.UnexpandedObject = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.UnexpandedObject, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.UnexpandedObject.displayName = 'proto.io.arthas.api.UnexpandedObject'; } /** * 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.io.arthas.api.CollectionValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.io.arthas.api.CollectionValue.repeatedFields_, null); }; goog.inherits(proto.io.arthas.api.CollectionValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.CollectionValue.displayName = 'proto.io.arthas.api.CollectionValue'; } /** * 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.io.arthas.api.MapEntry = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.MapEntry, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.MapEntry.displayName = 'proto.io.arthas.api.MapEntry'; } /** * 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.io.arthas.api.MapValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.io.arthas.api.MapValue.repeatedFields_, null); }; goog.inherits(proto.io.arthas.api.MapValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.MapValue.displayName = 'proto.io.arthas.api.MapValue'; } /** * 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.io.arthas.api.JavaField = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.arthas.api.JavaField.oneofGroups_); }; goog.inherits(proto.io.arthas.api.JavaField, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.JavaField.displayName = 'proto.io.arthas.api.JavaField'; } /** * 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.io.arthas.api.JavaFields = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.io.arthas.api.JavaFields.repeatedFields_, null); }; goog.inherits(proto.io.arthas.api.JavaFields, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.JavaFields.displayName = 'proto.io.arthas.api.JavaFields'; } /** * 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.io.arthas.api.JavaObject = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.arthas.api.JavaObject.oneofGroups_); }; goog.inherits(proto.io.arthas.api.JavaObject, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.JavaObject.displayName = 'proto.io.arthas.api.JavaObject'; } /** * 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.io.arthas.api.ObjectQuery = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.ObjectQuery, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ObjectQuery.displayName = 'proto.io.arthas.api.ObjectQuery'; } /** * 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.io.arthas.api.ObjectQueryResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.io.arthas.api.ObjectQueryResult.repeatedFields_, null); }; goog.inherits(proto.io.arthas.api.ObjectQueryResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ObjectQueryResult.displayName = 'proto.io.arthas.api.ObjectQueryResult'; } /** * 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.io.arthas.api.StringKey = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.StringKey, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.StringKey.displayName = 'proto.io.arthas.api.StringKey'; } /** * 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.io.arthas.api.StringValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.StringValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.StringValue.displayName = 'proto.io.arthas.api.StringValue'; } /** * 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.io.arthas.api.StringStringMapValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.StringStringMapValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.StringStringMapValue.displayName = 'proto.io.arthas.api.StringStringMapValue'; } /** * 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.io.arthas.api.WatchRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.WatchRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.WatchRequest.displayName = 'proto.io.arthas.api.WatchRequest'; } /** * 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.io.arthas.api.WatchResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.io.arthas.api.WatchResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.WatchResponse.displayName = 'proto.io.arthas.api.WatchResponse'; } /** * 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.io.arthas.api.ResponseBody = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.arthas.api.ResponseBody.oneofGroups_); }; goog.inherits(proto.io.arthas.api.ResponseBody, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.io.arthas.api.ResponseBody.displayName = 'proto.io.arthas.api.ResponseBody'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ObjectRequest.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ObjectRequest.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.io.arthas.api.ObjectRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectRequest.toObject = function(includeInstance, msg) { var f, obj = { jobid: jspb.Message.getFieldWithDefault(msg, 1, 0), resultid: jspb.Message.getFieldWithDefault(msg, 2, 0), type: jspb.Message.getFieldWithDefault(msg, 3, ""), express: jspb.Message.getFieldWithDefault(msg, 4, ""), expand: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.io.arthas.api.ObjectRequest} */ proto.io.arthas.api.ObjectRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ObjectRequest; return proto.io.arthas.api.ObjectRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ObjectRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ObjectRequest} */ proto.io.arthas.api.ObjectRequest.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.setJobid(value); break; case 2: var value = /** @type {number} */ (reader.readInt64()); msg.setResultid(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setExpress(value); break; case 5: var value = /** @type {number} */ (reader.readInt32()); msg.setExpand(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ObjectRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ObjectRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ObjectRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getJobid(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getResultid(); if (f !== 0) { writer.writeInt64( 2, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getExpress(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getExpand(); if (f !== 0) { writer.writeInt32( 5, f ); } }; /** * optional int32 jobId = 1; * @return {number} */ proto.io.arthas.api.ObjectRequest.prototype.getJobid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectRequest} returns this */ proto.io.arthas.api.ObjectRequest.prototype.setJobid = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int64 resultId = 2; * @return {number} */ proto.io.arthas.api.ObjectRequest.prototype.getResultid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectRequest} returns this */ proto.io.arthas.api.ObjectRequest.prototype.setResultid = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional string type = 3; * @return {string} */ proto.io.arthas.api.ObjectRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectRequest} returns this */ proto.io.arthas.api.ObjectRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string express = 4; * @return {string} */ proto.io.arthas.api.ObjectRequest.prototype.getExpress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectRequest} returns this */ proto.io.arthas.api.ObjectRequest.prototype.setExpress = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional int32 expand = 5; * @return {number} */ proto.io.arthas.api.ObjectRequest.prototype.getExpand = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectRequest} returns this */ proto.io.arthas.api.ObjectRequest.prototype.setExpand = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.io.arthas.api.BasicValue.oneofGroups_ = [[1,2,3,4,5,6]]; /** * @enum {number} */ proto.io.arthas.api.BasicValue.ValueCase = { VALUE_NOT_SET: 0, INT: 1, LONG: 2, FLOAT: 3, DOUBLE: 4, BOOLEAN: 5, STRING: 6 }; /** * @return {proto.io.arthas.api.BasicValue.ValueCase} */ proto.io.arthas.api.BasicValue.prototype.getValueCase = function() { return /** @type {proto.io.arthas.api.BasicValue.ValueCase} */(jspb.Message.computeOneofCase(this, proto.io.arthas.api.BasicValue.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.BasicValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.BasicValue.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.io.arthas.api.BasicValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.BasicValue.toObject = function(includeInstance, msg) { var f, obj = { pb_int: jspb.Message.getFieldWithDefault(msg, 1, 0), pb_long: jspb.Message.getFieldWithDefault(msg, 2, 0), pb_float: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), pb_double: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), pb_boolean: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), string: 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.io.arthas.api.BasicValue} */ proto.io.arthas.api.BasicValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.BasicValue; return proto.io.arthas.api.BasicValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.BasicValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.BasicValue} */ proto.io.arthas.api.BasicValue.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.setInt(value); break; case 2: var value = /** @type {number} */ (reader.readInt64()); msg.setLong(value); break; case 3: var value = /** @type {number} */ (reader.readFloat()); msg.setFloat(value); break; case 4: var value = /** @type {number} */ (reader.readDouble()); msg.setDouble(value); break; case 5: var value = /** @type {boolean} */ (reader.readBool()); msg.setBoolean(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setString(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.BasicValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.BasicValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.BasicValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.BasicValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {number} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeInt32( 1, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeInt64( 2, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeFloat( 3, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeDouble( 4, f ); } f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeBool( 5, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 6)); if (f != null) { writer.writeString( 6, f ); } }; /** * optional int32 int = 1; * @return {number} */ proto.io.arthas.api.BasicValue.prototype.getInt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setInt = function(value) { return jspb.Message.setOneofField(this, 1, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearInt = function() { return jspb.Message.setOneofField(this, 1, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasInt = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional int64 long = 2; * @return {number} */ proto.io.arthas.api.BasicValue.prototype.getLong = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setLong = function(value) { return jspb.Message.setOneofField(this, 2, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearLong = function() { return jspb.Message.setOneofField(this, 2, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasLong = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional float float = 3; * @return {number} */ proto.io.arthas.api.BasicValue.prototype.getFloat = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setFloat = function(value) { return jspb.Message.setOneofField(this, 3, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearFloat = function() { return jspb.Message.setOneofField(this, 3, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasFloat = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional double double = 4; * @return {number} */ proto.io.arthas.api.BasicValue.prototype.getDouble = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setDouble = function(value) { return jspb.Message.setOneofField(this, 4, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearDouble = function() { return jspb.Message.setOneofField(this, 4, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasDouble = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional bool boolean = 5; * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.getBoolean = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setBoolean = function(value) { return jspb.Message.setOneofField(this, 5, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearBoolean = function() { return jspb.Message.setOneofField(this, 5, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasBoolean = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string string = 6; * @return {string} */ proto.io.arthas.api.BasicValue.prototype.getString = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.setString = function(value) { return jspb.Message.setOneofField(this, 6, proto.io.arthas.api.BasicValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.BasicValue} returns this */ proto.io.arthas.api.BasicValue.prototype.clearString = function() { return jspb.Message.setOneofField(this, 6, proto.io.arthas.api.BasicValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.BasicValue.prototype.hasString = function() { return jspb.Message.getField(this, 6) != 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<!Array<number>>} * @const */ proto.io.arthas.api.ArrayElement.oneofGroups_ = [[1,2,3,4,5]]; /** * @enum {number} */ proto.io.arthas.api.ArrayElement.ElementCase = { ELEMENT_NOT_SET: 0, BASICVALUE: 1, OBJECTVALUE: 2, ARRAYVALUE: 3, NULLVALUE: 4, UNEXPANDEDOBJECT: 5 }; /** * @return {proto.io.arthas.api.ArrayElement.ElementCase} */ proto.io.arthas.api.ArrayElement.prototype.getElementCase = function() { return /** @type {proto.io.arthas.api.ArrayElement.ElementCase} */(jspb.Message.computeOneofCase(this, proto.io.arthas.api.ArrayElement.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ArrayElement.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ArrayElement.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.io.arthas.api.ArrayElement} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ArrayElement.toObject = function(includeInstance, msg) { var f, obj = { basicvalue: (f = msg.getBasicvalue()) && proto.io.arthas.api.BasicValue.toObject(includeInstance, f), objectvalue: (f = msg.getObjectvalue()) && proto.io.arthas.api.JavaObject.toObject(includeInstance, f), arrayvalue: (f = msg.getArrayvalue()) && proto.io.arthas.api.ArrayValue.toObject(includeInstance, f), nullvalue: (f = msg.getNullvalue()) && proto.io.arthas.api.NullValue.toObject(includeInstance, f), unexpandedobject: (f = msg.getUnexpandedobject()) && proto.io.arthas.api.UnexpandedObject.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.io.arthas.api.ArrayElement} */ proto.io.arthas.api.ArrayElement.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ArrayElement; return proto.io.arthas.api.ArrayElement.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ArrayElement} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ArrayElement} */ proto.io.arthas.api.ArrayElement.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.io.arthas.api.BasicValue; reader.readMessage(value,proto.io.arthas.api.BasicValue.deserializeBinaryFromReader); msg.setBasicvalue(value); break; case 2: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setObjectvalue(value); break; case 3: var value = new proto.io.arthas.api.ArrayValue; reader.readMessage(value,proto.io.arthas.api.ArrayValue.deserializeBinaryFromReader); msg.setArrayvalue(value); break; case 4: var value = new proto.io.arthas.api.NullValue; reader.readMessage(value,proto.io.arthas.api.NullValue.deserializeBinaryFromReader); msg.setNullvalue(value); break; case 5: var value = new proto.io.arthas.api.UnexpandedObject; reader.readMessage(value,proto.io.arthas.api.UnexpandedObject.deserializeBinaryFromReader); msg.setUnexpandedobject(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ArrayElement.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ArrayElement.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ArrayElement} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ArrayElement.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBasicvalue(); if (f != null) { writer.writeMessage( 1, f, proto.io.arthas.api.BasicValue.serializeBinaryToWriter ); } f = message.getObjectvalue(); if (f != null) { writer.writeMessage( 2, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } f = message.getArrayvalue(); if (f != null) { writer.writeMessage( 3, f, proto.io.arthas.api.ArrayValue.serializeBinaryToWriter ); } f = message.getNullvalue(); if (f != null) { writer.writeMessage( 4, f, proto.io.arthas.api.NullValue.serializeBinaryToWriter ); } f = message.getUnexpandedobject(); if (f != null) { writer.writeMessage( 5, f, proto.io.arthas.api.UnexpandedObject.serializeBinaryToWriter ); } }; /** * optional BasicValue basicValue = 1; * @return {?proto.io.arthas.api.BasicValue} */ proto.io.arthas.api.ArrayElement.prototype.getBasicvalue = function() { return /** @type{?proto.io.arthas.api.BasicValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.BasicValue, 1)); }; /** * @param {?proto.io.arthas.api.BasicValue|undefined} value * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.setBasicvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 1, proto.io.arthas.api.ArrayElement.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.clearBasicvalue = function() { return this.setBasicvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ArrayElement.prototype.hasBasicvalue = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional JavaObject objectValue = 2; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.ArrayElement.prototype.getObjectvalue = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 2)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.setObjectvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.io.arthas.api.ArrayElement.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.clearObjectvalue = function() { return this.setObjectvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ArrayElement.prototype.hasObjectvalue = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional ArrayValue arrayValue = 3; * @return {?proto.io.arthas.api.ArrayValue} */ proto.io.arthas.api.ArrayElement.prototype.getArrayvalue = function() { return /** @type{?proto.io.arthas.api.ArrayValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.ArrayValue, 3)); }; /** * @param {?proto.io.arthas.api.ArrayValue|undefined} value * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.setArrayvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.io.arthas.api.ArrayElement.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.clearArrayvalue = function() { return this.setArrayvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ArrayElement.prototype.hasArrayvalue = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional NullValue nullValue = 4; * @return {?proto.io.arthas.api.NullValue} */ proto.io.arthas.api.ArrayElement.prototype.getNullvalue = function() { return /** @type{?proto.io.arthas.api.NullValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.NullValue, 4)); }; /** * @param {?proto.io.arthas.api.NullValue|undefined} value * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.setNullvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.io.arthas.api.ArrayElement.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.clearNullvalue = function() { return this.setNullvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ArrayElement.prototype.hasNullvalue = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional UnexpandedObject unexpandedObject = 5; * @return {?proto.io.arthas.api.UnexpandedObject} */ proto.io.arthas.api.ArrayElement.prototype.getUnexpandedobject = function() { return /** @type{?proto.io.arthas.api.UnexpandedObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.UnexpandedObject, 5)); }; /** * @param {?proto.io.arthas.api.UnexpandedObject|undefined} value * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.setUnexpandedobject = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.io.arthas.api.ArrayElement.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ArrayElement} returns this */ proto.io.arthas.api.ArrayElement.prototype.clearUnexpandedobject = function() { return this.setUnexpandedobject(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ArrayElement.prototype.hasUnexpandedobject = function() { return jspb.Message.getField(this, 5) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.io.arthas.api.ArrayValue.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ArrayValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ArrayValue.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.io.arthas.api.ArrayValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ArrayValue.toObject = function(includeInstance, msg) { var f, obj = { classname: jspb.Message.getFieldWithDefault(msg, 1, ""), elementsList: jspb.Message.toObjectList(msg.getElementsList(), proto.io.arthas.api.ArrayElement.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.io.arthas.api.ArrayValue} */ proto.io.arthas.api.ArrayValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ArrayValue; return proto.io.arthas.api.ArrayValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ArrayValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ArrayValue} */ proto.io.arthas.api.ArrayValue.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.setClassname(value); break; case 2: var value = new proto.io.arthas.api.ArrayElement; reader.readMessage(value,proto.io.arthas.api.ArrayElement.deserializeBinaryFromReader); msg.addElements(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ArrayValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ArrayValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ArrayValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ArrayValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getElementsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.io.arthas.api.ArrayElement.serializeBinaryToWriter ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.ArrayValue.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ArrayValue} returns this */ proto.io.arthas.api.ArrayValue.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated ArrayElement elements = 2; * @return {!Array<!proto.io.arthas.api.ArrayElement>} */ proto.io.arthas.api.ArrayValue.prototype.getElementsList = function() { return /** @type{!Array<!proto.io.arthas.api.ArrayElement>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.io.arthas.api.ArrayElement, 2)); }; /** * @param {!Array<!proto.io.arthas.api.ArrayElement>} value * @return {!proto.io.arthas.api.ArrayValue} returns this */ proto.io.arthas.api.ArrayValue.prototype.setElementsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.io.arthas.api.ArrayElement=} opt_value * @param {number=} opt_index * @return {!proto.io.arthas.api.ArrayElement} */ proto.io.arthas.api.ArrayValue.prototype.addElements = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.arthas.api.ArrayElement, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.io.arthas.api.ArrayValue} returns this */ proto.io.arthas.api.ArrayValue.prototype.clearElementsList = function() { return this.setElementsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.NullValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.NullValue.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.io.arthas.api.NullValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.NullValue.toObject = function(includeInstance, msg) { var f, obj = { classname: 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.io.arthas.api.NullValue} */ proto.io.arthas.api.NullValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.NullValue; return proto.io.arthas.api.NullValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.NullValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.NullValue} */ proto.io.arthas.api.NullValue.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.setClassname(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.NullValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.NullValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.NullValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.NullValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.NullValue.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.NullValue} returns this */ proto.io.arthas.api.NullValue.prototype.setClassname = 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.UnexpandedObject.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.UnexpandedObject.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.io.arthas.api.UnexpandedObject} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.UnexpandedObject.toObject = function(includeInstance, msg) { var f, obj = { classname: 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.io.arthas.api.UnexpandedObject} */ proto.io.arthas.api.UnexpandedObject.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.UnexpandedObject; return proto.io.arthas.api.UnexpandedObject.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.UnexpandedObject} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.UnexpandedObject} */ proto.io.arthas.api.UnexpandedObject.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.setClassname(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.UnexpandedObject.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.UnexpandedObject.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.UnexpandedObject} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.UnexpandedObject.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.UnexpandedObject.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.UnexpandedObject} returns this */ proto.io.arthas.api.UnexpandedObject.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.io.arthas.api.CollectionValue.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.CollectionValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.CollectionValue.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.io.arthas.api.CollectionValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.CollectionValue.toObject = function(includeInstance, msg) { var f, obj = { classname: jspb.Message.getFieldWithDefault(msg, 1, ""), elementsList: jspb.Message.toObjectList(msg.getElementsList(), proto.io.arthas.api.JavaObject.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.io.arthas.api.CollectionValue} */ proto.io.arthas.api.CollectionValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.CollectionValue; return proto.io.arthas.api.CollectionValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.CollectionValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.CollectionValue} */ proto.io.arthas.api.CollectionValue.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.setClassname(value); break; case 2: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.addElements(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.CollectionValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.CollectionValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.CollectionValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.CollectionValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getElementsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.CollectionValue.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.CollectionValue} returns this */ proto.io.arthas.api.CollectionValue.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated JavaObject elements = 2; * @return {!Array<!proto.io.arthas.api.JavaObject>} */ proto.io.arthas.api.CollectionValue.prototype.getElementsList = function() { return /** @type{!Array<!proto.io.arthas.api.JavaObject>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.io.arthas.api.JavaObject, 2)); }; /** * @param {!Array<!proto.io.arthas.api.JavaObject>} value * @return {!proto.io.arthas.api.CollectionValue} returns this */ proto.io.arthas.api.CollectionValue.prototype.setElementsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.io.arthas.api.JavaObject=} opt_value * @param {number=} opt_index * @return {!proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.CollectionValue.prototype.addElements = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.arthas.api.JavaObject, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.io.arthas.api.CollectionValue} returns this */ proto.io.arthas.api.CollectionValue.prototype.clearElementsList = function() { return this.setElementsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.MapEntry.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.MapEntry.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.io.arthas.api.MapEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.MapEntry.toObject = function(includeInstance, msg) { var f, obj = { key: (f = msg.getKey()) && proto.io.arthas.api.JavaObject.toObject(includeInstance, f), value: (f = msg.getValue()) && proto.io.arthas.api.JavaObject.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.io.arthas.api.MapEntry} */ proto.io.arthas.api.MapEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.MapEntry; return proto.io.arthas.api.MapEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.MapEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.MapEntry} */ proto.io.arthas.api.MapEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setKey(value); break; case 2: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.MapEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.MapEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.MapEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.MapEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKey(); if (f != null) { writer.writeMessage( 1, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } f = message.getValue(); if (f != null) { writer.writeMessage( 2, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } }; /** * optional JavaObject key = 1; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.MapEntry.prototype.getKey = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 1)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.MapEntry} returns this */ proto.io.arthas.api.MapEntry.prototype.setKey = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.MapEntry} returns this */ proto.io.arthas.api.MapEntry.prototype.clearKey = function() { return this.setKey(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.MapEntry.prototype.hasKey = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional JavaObject value = 2; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.MapEntry.prototype.getValue = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 2)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.MapEntry} returns this */ proto.io.arthas.api.MapEntry.prototype.setValue = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.MapEntry} returns this */ proto.io.arthas.api.MapEntry.prototype.clearValue = function() { return this.setValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.MapEntry.prototype.hasValue = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.io.arthas.api.MapValue.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.MapValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.MapValue.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.io.arthas.api.MapValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.MapValue.toObject = function(includeInstance, msg) { var f, obj = { classname: jspb.Message.getFieldWithDefault(msg, 1, ""), entriesList: jspb.Message.toObjectList(msg.getEntriesList(), proto.io.arthas.api.MapEntry.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.io.arthas.api.MapValue} */ proto.io.arthas.api.MapValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.MapValue; return proto.io.arthas.api.MapValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.MapValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.MapValue} */ proto.io.arthas.api.MapValue.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.setClassname(value); break; case 2: var value = new proto.io.arthas.api.MapEntry; reader.readMessage(value,proto.io.arthas.api.MapEntry.deserializeBinaryFromReader); msg.addEntries(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.MapValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.MapValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.MapValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.MapValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getEntriesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.io.arthas.api.MapEntry.serializeBinaryToWriter ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.MapValue.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.MapValue} returns this */ proto.io.arthas.api.MapValue.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated MapEntry entries = 2; * @return {!Array<!proto.io.arthas.api.MapEntry>} */ proto.io.arthas.api.MapValue.prototype.getEntriesList = function() { return /** @type{!Array<!proto.io.arthas.api.MapEntry>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.io.arthas.api.MapEntry, 2)); }; /** * @param {!Array<!proto.io.arthas.api.MapEntry>} value * @return {!proto.io.arthas.api.MapValue} returns this */ proto.io.arthas.api.MapValue.prototype.setEntriesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.io.arthas.api.MapEntry=} opt_value * @param {number=} opt_index * @return {!proto.io.arthas.api.MapEntry} */ proto.io.arthas.api.MapValue.prototype.addEntries = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.arthas.api.MapEntry, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.io.arthas.api.MapValue} returns this */ proto.io.arthas.api.MapValue.prototype.clearEntriesList = function() { return this.setEntriesList([]); }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.io.arthas.api.JavaField.oneofGroups_ = [[2,3,4,5,6,7,8]]; /** * @enum {number} */ proto.io.arthas.api.JavaField.ValueCase = { VALUE_NOT_SET: 0, OBJECTVALUE: 2, BASICVALUE: 3, ARRAYVALUE: 4, NULLVALUE: 5, COLLECTION: 6, MAP: 7, UNEXPANDEDOBJECT: 8 }; /** * @return {proto.io.arthas.api.JavaField.ValueCase} */ proto.io.arthas.api.JavaField.prototype.getValueCase = function() { return /** @type {proto.io.arthas.api.JavaField.ValueCase} */(jspb.Message.computeOneofCase(this, proto.io.arthas.api.JavaField.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.JavaField.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.JavaField.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.io.arthas.api.JavaField} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaField.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), objectvalue: (f = msg.getObjectvalue()) && proto.io.arthas.api.JavaObject.toObject(includeInstance, f), basicvalue: (f = msg.getBasicvalue()) && proto.io.arthas.api.BasicValue.toObject(includeInstance, f), arrayvalue: (f = msg.getArrayvalue()) && proto.io.arthas.api.ArrayValue.toObject(includeInstance, f), nullvalue: (f = msg.getNullvalue()) && proto.io.arthas.api.NullValue.toObject(includeInstance, f), collection: (f = msg.getCollection()) && proto.io.arthas.api.CollectionValue.toObject(includeInstance, f), map: (f = msg.getMap()) && proto.io.arthas.api.MapValue.toObject(includeInstance, f), unexpandedobject: (f = msg.getUnexpandedobject()) && proto.io.arthas.api.UnexpandedObject.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.io.arthas.api.JavaField} */ proto.io.arthas.api.JavaField.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.JavaField; return proto.io.arthas.api.JavaField.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.JavaField} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.JavaField} */ proto.io.arthas.api.JavaField.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.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setObjectvalue(value); break; case 3: var value = new proto.io.arthas.api.BasicValue; reader.readMessage(value,proto.io.arthas.api.BasicValue.deserializeBinaryFromReader); msg.setBasicvalue(value); break; case 4: var value = new proto.io.arthas.api.ArrayValue; reader.readMessage(value,proto.io.arthas.api.ArrayValue.deserializeBinaryFromReader); msg.setArrayvalue(value); break; case 5: var value = new proto.io.arthas.api.NullValue; reader.readMessage(value,proto.io.arthas.api.NullValue.deserializeBinaryFromReader); msg.setNullvalue(value); break; case 6: var value = new proto.io.arthas.api.CollectionValue; reader.readMessage(value,proto.io.arthas.api.CollectionValue.deserializeBinaryFromReader); msg.setCollection(value); break; case 7: var value = new proto.io.arthas.api.MapValue; reader.readMessage(value,proto.io.arthas.api.MapValue.deserializeBinaryFromReader); msg.setMap(value); break; case 8: var value = new proto.io.arthas.api.UnexpandedObject; reader.readMessage(value,proto.io.arthas.api.UnexpandedObject.deserializeBinaryFromReader); msg.setUnexpandedobject(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.JavaField.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.JavaField.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.JavaField} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaField.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getObjectvalue(); if (f != null) { writer.writeMessage( 2, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } f = message.getBasicvalue(); if (f != null) { writer.writeMessage( 3, f, proto.io.arthas.api.BasicValue.serializeBinaryToWriter ); } f = message.getArrayvalue(); if (f != null) { writer.writeMessage( 4, f, proto.io.arthas.api.ArrayValue.serializeBinaryToWriter ); } f = message.getNullvalue(); if (f != null) { writer.writeMessage( 5, f, proto.io.arthas.api.NullValue.serializeBinaryToWriter ); } f = message.getCollection(); if (f != null) { writer.writeMessage( 6, f, proto.io.arthas.api.CollectionValue.serializeBinaryToWriter ); } f = message.getMap(); if (f != null) { writer.writeMessage( 7, f, proto.io.arthas.api.MapValue.serializeBinaryToWriter ); } f = message.getUnexpandedobject(); if (f != null) { writer.writeMessage( 8, f, proto.io.arthas.api.UnexpandedObject.serializeBinaryToWriter ); } }; /** * optional string name = 1; * @return {string} */ proto.io.arthas.api.JavaField.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional JavaObject objectValue = 2; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.JavaField.prototype.getObjectvalue = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 2)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setObjectvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearObjectvalue = function() { return this.setObjectvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasObjectvalue = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional BasicValue basicValue = 3; * @return {?proto.io.arthas.api.BasicValue} */ proto.io.arthas.api.JavaField.prototype.getBasicvalue = function() { return /** @type{?proto.io.arthas.api.BasicValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.BasicValue, 3)); }; /** * @param {?proto.io.arthas.api.BasicValue|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setBasicvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearBasicvalue = function() { return this.setBasicvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasBasicvalue = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ArrayValue arrayValue = 4; * @return {?proto.io.arthas.api.ArrayValue} */ proto.io.arthas.api.JavaField.prototype.getArrayvalue = function() { return /** @type{?proto.io.arthas.api.ArrayValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.ArrayValue, 4)); }; /** * @param {?proto.io.arthas.api.ArrayValue|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setArrayvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearArrayvalue = function() { return this.setArrayvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasArrayvalue = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional NullValue nullValue = 5; * @return {?proto.io.arthas.api.NullValue} */ proto.io.arthas.api.JavaField.prototype.getNullvalue = function() { return /** @type{?proto.io.arthas.api.NullValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.NullValue, 5)); }; /** * @param {?proto.io.arthas.api.NullValue|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setNullvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearNullvalue = function() { return this.setNullvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasNullvalue = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional CollectionValue collection = 6; * @return {?proto.io.arthas.api.CollectionValue} */ proto.io.arthas.api.JavaField.prototype.getCollection = function() { return /** @type{?proto.io.arthas.api.CollectionValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.CollectionValue, 6)); }; /** * @param {?proto.io.arthas.api.CollectionValue|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setCollection = function(value) { return jspb.Message.setOneofWrapperField(this, 6, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearCollection = function() { return this.setCollection(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasCollection = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional MapValue map = 7; * @return {?proto.io.arthas.api.MapValue} */ proto.io.arthas.api.JavaField.prototype.getMap = function() { return /** @type{?proto.io.arthas.api.MapValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.MapValue, 7)); }; /** * @param {?proto.io.arthas.api.MapValue|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setMap = function(value) { return jspb.Message.setOneofWrapperField(this, 7, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearMap = function() { return this.setMap(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasMap = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional UnexpandedObject unexpandedObject = 8; * @return {?proto.io.arthas.api.UnexpandedObject} */ proto.io.arthas.api.JavaField.prototype.getUnexpandedobject = function() { return /** @type{?proto.io.arthas.api.UnexpandedObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.UnexpandedObject, 8)); }; /** * @param {?proto.io.arthas.api.UnexpandedObject|undefined} value * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.setUnexpandedobject = function(value) { return jspb.Message.setOneofWrapperField(this, 8, proto.io.arthas.api.JavaField.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaField} returns this */ proto.io.arthas.api.JavaField.prototype.clearUnexpandedobject = function() { return this.setUnexpandedobject(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaField.prototype.hasUnexpandedobject = function() { return jspb.Message.getField(this, 8) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.io.arthas.api.JavaFields.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.JavaFields.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.JavaFields.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.io.arthas.api.JavaFields} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaFields.toObject = function(includeInstance, msg) { var f, obj = { fieldsList: jspb.Message.toObjectList(msg.getFieldsList(), proto.io.arthas.api.JavaField.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.io.arthas.api.JavaFields} */ proto.io.arthas.api.JavaFields.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.JavaFields; return proto.io.arthas.api.JavaFields.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.JavaFields} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.JavaFields} */ proto.io.arthas.api.JavaFields.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.io.arthas.api.JavaField; reader.readMessage(value,proto.io.arthas.api.JavaField.deserializeBinaryFromReader); msg.addFields(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.JavaFields.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.JavaFields.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.JavaFields} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaFields.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getFieldsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.io.arthas.api.JavaField.serializeBinaryToWriter ); } }; /** * repeated JavaField fields = 1; * @return {!Array<!proto.io.arthas.api.JavaField>} */ proto.io.arthas.api.JavaFields.prototype.getFieldsList = function() { return /** @type{!Array<!proto.io.arthas.api.JavaField>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.io.arthas.api.JavaField, 1)); }; /** * @param {!Array<!proto.io.arthas.api.JavaField>} value * @return {!proto.io.arthas.api.JavaFields} returns this */ proto.io.arthas.api.JavaFields.prototype.setFieldsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.io.arthas.api.JavaField=} opt_value * @param {number=} opt_index * @return {!proto.io.arthas.api.JavaField} */ proto.io.arthas.api.JavaFields.prototype.addFields = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.arthas.api.JavaField, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.io.arthas.api.JavaFields} returns this */ proto.io.arthas.api.JavaFields.prototype.clearFieldsList = function() { return this.setFieldsList([]); }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.io.arthas.api.JavaObject.oneofGroups_ = [[2,3,4,5,6,7,8,9]]; /** * @enum {number} */ proto.io.arthas.api.JavaObject.ValueCase = { VALUE_NOT_SET: 0, OBJECTVALUE: 2, BASICVALUE: 3, ARRAYVALUE: 4, NULLVALUE: 5, COLLECTION: 6, MAP: 7, UNEXPANDEDOBJECT: 8, FIELDS: 9 }; /** * @return {proto.io.arthas.api.JavaObject.ValueCase} */ proto.io.arthas.api.JavaObject.prototype.getValueCase = function() { return /** @type {proto.io.arthas.api.JavaObject.ValueCase} */(jspb.Message.computeOneofCase(this, proto.io.arthas.api.JavaObject.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.JavaObject.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.JavaObject.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.io.arthas.api.JavaObject} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaObject.toObject = function(includeInstance, msg) { var f, obj = { classname: jspb.Message.getFieldWithDefault(msg, 1, ""), objectvalue: (f = msg.getObjectvalue()) && proto.io.arthas.api.JavaObject.toObject(includeInstance, f), basicvalue: (f = msg.getBasicvalue()) && proto.io.arthas.api.BasicValue.toObject(includeInstance, f), arrayvalue: (f = msg.getArrayvalue()) && proto.io.arthas.api.ArrayValue.toObject(includeInstance, f), nullvalue: (f = msg.getNullvalue()) && proto.io.arthas.api.NullValue.toObject(includeInstance, f), collection: (f = msg.getCollection()) && proto.io.arthas.api.CollectionValue.toObject(includeInstance, f), map: (f = msg.getMap()) && proto.io.arthas.api.MapValue.toObject(includeInstance, f), unexpandedobject: (f = msg.getUnexpandedobject()) && proto.io.arthas.api.UnexpandedObject.toObject(includeInstance, f), fields: (f = msg.getFields()) && proto.io.arthas.api.JavaFields.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.io.arthas.api.JavaObject} */ proto.io.arthas.api.JavaObject.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.JavaObject; return proto.io.arthas.api.JavaObject.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.JavaObject} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.JavaObject.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.setClassname(value); break; case 2: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setObjectvalue(value); break; case 3: var value = new proto.io.arthas.api.BasicValue; reader.readMessage(value,proto.io.arthas.api.BasicValue.deserializeBinaryFromReader); msg.setBasicvalue(value); break; case 4: var value = new proto.io.arthas.api.ArrayValue; reader.readMessage(value,proto.io.arthas.api.ArrayValue.deserializeBinaryFromReader); msg.setArrayvalue(value); break; case 5: var value = new proto.io.arthas.api.NullValue; reader.readMessage(value,proto.io.arthas.api.NullValue.deserializeBinaryFromReader); msg.setNullvalue(value); break; case 6: var value = new proto.io.arthas.api.CollectionValue; reader.readMessage(value,proto.io.arthas.api.CollectionValue.deserializeBinaryFromReader); msg.setCollection(value); break; case 7: var value = new proto.io.arthas.api.MapValue; reader.readMessage(value,proto.io.arthas.api.MapValue.deserializeBinaryFromReader); msg.setMap(value); break; case 8: var value = new proto.io.arthas.api.UnexpandedObject; reader.readMessage(value,proto.io.arthas.api.UnexpandedObject.deserializeBinaryFromReader); msg.setUnexpandedobject(value); break; case 9: var value = new proto.io.arthas.api.JavaFields; reader.readMessage(value,proto.io.arthas.api.JavaFields.deserializeBinaryFromReader); msg.setFields(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.JavaObject.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.JavaObject.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.JavaObject} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.JavaObject.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getObjectvalue(); if (f != null) { writer.writeMessage( 2, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } f = message.getBasicvalue(); if (f != null) { writer.writeMessage( 3, f, proto.io.arthas.api.BasicValue.serializeBinaryToWriter ); } f = message.getArrayvalue(); if (f != null) { writer.writeMessage( 4, f, proto.io.arthas.api.ArrayValue.serializeBinaryToWriter ); } f = message.getNullvalue(); if (f != null) { writer.writeMessage( 5, f, proto.io.arthas.api.NullValue.serializeBinaryToWriter ); } f = message.getCollection(); if (f != null) { writer.writeMessage( 6, f, proto.io.arthas.api.CollectionValue.serializeBinaryToWriter ); } f = message.getMap(); if (f != null) { writer.writeMessage( 7, f, proto.io.arthas.api.MapValue.serializeBinaryToWriter ); } f = message.getUnexpandedobject(); if (f != null) { writer.writeMessage( 8, f, proto.io.arthas.api.UnexpandedObject.serializeBinaryToWriter ); } f = message.getFields(); if (f != null) { writer.writeMessage( 9, f, proto.io.arthas.api.JavaFields.serializeBinaryToWriter ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.JavaObject.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional JavaObject objectValue = 2; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.JavaObject.prototype.getObjectvalue = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 2)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setObjectvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearObjectvalue = function() { return this.setObjectvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasObjectvalue = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional BasicValue basicValue = 3; * @return {?proto.io.arthas.api.BasicValue} */ proto.io.arthas.api.JavaObject.prototype.getBasicvalue = function() { return /** @type{?proto.io.arthas.api.BasicValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.BasicValue, 3)); }; /** * @param {?proto.io.arthas.api.BasicValue|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setBasicvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearBasicvalue = function() { return this.setBasicvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasBasicvalue = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ArrayValue arrayValue = 4; * @return {?proto.io.arthas.api.ArrayValue} */ proto.io.arthas.api.JavaObject.prototype.getArrayvalue = function() { return /** @type{?proto.io.arthas.api.ArrayValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.ArrayValue, 4)); }; /** * @param {?proto.io.arthas.api.ArrayValue|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setArrayvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearArrayvalue = function() { return this.setArrayvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasArrayvalue = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional NullValue nullValue = 5; * @return {?proto.io.arthas.api.NullValue} */ proto.io.arthas.api.JavaObject.prototype.getNullvalue = function() { return /** @type{?proto.io.arthas.api.NullValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.NullValue, 5)); }; /** * @param {?proto.io.arthas.api.NullValue|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setNullvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 5, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearNullvalue = function() { return this.setNullvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasNullvalue = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional CollectionValue collection = 6; * @return {?proto.io.arthas.api.CollectionValue} */ proto.io.arthas.api.JavaObject.prototype.getCollection = function() { return /** @type{?proto.io.arthas.api.CollectionValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.CollectionValue, 6)); }; /** * @param {?proto.io.arthas.api.CollectionValue|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setCollection = function(value) { return jspb.Message.setOneofWrapperField(this, 6, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearCollection = function() { return this.setCollection(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasCollection = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional MapValue map = 7; * @return {?proto.io.arthas.api.MapValue} */ proto.io.arthas.api.JavaObject.prototype.getMap = function() { return /** @type{?proto.io.arthas.api.MapValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.MapValue, 7)); }; /** * @param {?proto.io.arthas.api.MapValue|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setMap = function(value) { return jspb.Message.setOneofWrapperField(this, 7, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearMap = function() { return this.setMap(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasMap = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional UnexpandedObject unexpandedObject = 8; * @return {?proto.io.arthas.api.UnexpandedObject} */ proto.io.arthas.api.JavaObject.prototype.getUnexpandedobject = function() { return /** @type{?proto.io.arthas.api.UnexpandedObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.UnexpandedObject, 8)); }; /** * @param {?proto.io.arthas.api.UnexpandedObject|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setUnexpandedobject = function(value) { return jspb.Message.setOneofWrapperField(this, 8, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearUnexpandedobject = function() { return this.setUnexpandedobject(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasUnexpandedobject = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional JavaFields fields = 9; * @return {?proto.io.arthas.api.JavaFields} */ proto.io.arthas.api.JavaObject.prototype.getFields = function() { return /** @type{?proto.io.arthas.api.JavaFields} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaFields, 9)); }; /** * @param {?proto.io.arthas.api.JavaFields|undefined} value * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.setFields = function(value) { return jspb.Message.setOneofWrapperField(this, 9, proto.io.arthas.api.JavaObject.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.JavaObject} returns this */ proto.io.arthas.api.JavaObject.prototype.clearFields = function() { return this.setFields(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.JavaObject.prototype.hasFields = function() { return jspb.Message.getField(this, 9) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ObjectQuery.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ObjectQuery.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.io.arthas.api.ObjectQuery} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectQuery.toObject = function(includeInstance, msg) { var f, obj = { classname: jspb.Message.getFieldWithDefault(msg, 1, ""), express: jspb.Message.getFieldWithDefault(msg, 2, ""), classloaderhash: jspb.Message.getFieldWithDefault(msg, 3, ""), classloaderclass: jspb.Message.getFieldWithDefault(msg, 4, ""), limit: jspb.Message.getFieldWithDefault(msg, 5, 0), depth: jspb.Message.getFieldWithDefault(msg, 6, 0), jobid: jspb.Message.getFieldWithDefault(msg, 7, 0), resultid: jspb.Message.getFieldWithDefault(msg, 8, 0), resultexpress: jspb.Message.getFieldWithDefault(msg, 9, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.io.arthas.api.ObjectQuery} */ proto.io.arthas.api.ObjectQuery.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ObjectQuery; return proto.io.arthas.api.ObjectQuery.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ObjectQuery} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ObjectQuery} */ proto.io.arthas.api.ObjectQuery.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.setClassname(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setExpress(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setClassloaderhash(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setClassloaderclass(value); break; case 5: var value = /** @type {number} */ (reader.readInt32()); msg.setLimit(value); break; case 6: var value = /** @type {number} */ (reader.readInt32()); msg.setDepth(value); break; case 7: var value = /** @type {number} */ (reader.readInt32()); msg.setJobid(value); break; case 8: var value = /** @type {number} */ (reader.readInt64()); msg.setResultid(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.setResultexpress(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ObjectQuery.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ObjectQuery.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ObjectQuery} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectQuery.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClassname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getExpress(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getClassloaderhash(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getClassloaderclass(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getLimit(); if (f !== 0) { writer.writeInt32( 5, f ); } f = message.getDepth(); if (f !== 0) { writer.writeInt32( 6, f ); } f = message.getJobid(); if (f !== 0) { writer.writeInt32( 7, f ); } f = message.getResultid(); if (f !== 0) { writer.writeInt64( 8, f ); } f = message.getResultexpress(); if (f.length > 0) { writer.writeString( 9, f ); } }; /** * optional string className = 1; * @return {string} */ proto.io.arthas.api.ObjectQuery.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string express = 2; * @return {string} */ proto.io.arthas.api.ObjectQuery.prototype.getExpress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setExpress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string ClassLoaderHash = 3; * @return {string} */ proto.io.arthas.api.ObjectQuery.prototype.getClassloaderhash = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setClassloaderhash = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string classLoaderClass = 4; * @return {string} */ proto.io.arthas.api.ObjectQuery.prototype.getClassloaderclass = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setClassloaderclass = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional int32 limit = 5; * @return {number} */ proto.io.arthas.api.ObjectQuery.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setLimit = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional int32 depth = 6; * @return {number} */ proto.io.arthas.api.ObjectQuery.prototype.getDepth = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setDepth = function(value) { return jspb.Message.setProto3IntField(this, 6, value); }; /** * optional int32 jobId = 7; * @return {number} */ proto.io.arthas.api.ObjectQuery.prototype.getJobid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setJobid = function(value) { return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional int64 resultId = 8; * @return {number} */ proto.io.arthas.api.ObjectQuery.prototype.getResultid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setResultid = function(value) { return jspb.Message.setProto3IntField(this, 8, value); }; /** * optional string resultExpress = 9; * @return {string} */ proto.io.arthas.api.ObjectQuery.prototype.getResultexpress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQuery} returns this */ proto.io.arthas.api.ObjectQuery.prototype.setResultexpress = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.io.arthas.api.ObjectQueryResult.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ObjectQueryResult.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ObjectQueryResult.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.io.arthas.api.ObjectQueryResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectQueryResult.toObject = function(includeInstance, msg) { var f, obj = { success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), message: jspb.Message.getFieldWithDefault(msg, 2, ""), objectsList: jspb.Message.toObjectList(msg.getObjectsList(), proto.io.arthas.api.JavaObject.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.io.arthas.api.ObjectQueryResult} */ proto.io.arthas.api.ObjectQueryResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ObjectQueryResult; return proto.io.arthas.api.ObjectQueryResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ObjectQueryResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ObjectQueryResult} */ proto.io.arthas.api.ObjectQueryResult.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; case 3: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.addObjects(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ObjectQueryResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ObjectQueryResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ObjectQueryResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ObjectQueryResult.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 ); } f = message.getObjectsList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } }; /** * optional bool success = 1; * @return {boolean} */ proto.io.arthas.api.ObjectQueryResult.prototype.getSuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.ObjectQueryResult} returns this */ proto.io.arthas.api.ObjectQueryResult.prototype.setSuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional string message = 2; * @return {string} */ proto.io.arthas.api.ObjectQueryResult.prototype.getMessage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ObjectQueryResult} returns this */ proto.io.arthas.api.ObjectQueryResult.prototype.setMessage = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated JavaObject objects = 3; * @return {!Array<!proto.io.arthas.api.JavaObject>} */ proto.io.arthas.api.ObjectQueryResult.prototype.getObjectsList = function() { return /** @type{!Array<!proto.io.arthas.api.JavaObject>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.io.arthas.api.JavaObject, 3)); }; /** * @param {!Array<!proto.io.arthas.api.JavaObject>} value * @return {!proto.io.arthas.api.ObjectQueryResult} returns this */ proto.io.arthas.api.ObjectQueryResult.prototype.setObjectsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.io.arthas.api.JavaObject=} opt_value * @param {number=} opt_index * @return {!proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.ObjectQueryResult.prototype.addObjects = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.io.arthas.api.JavaObject, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.io.arthas.api.ObjectQueryResult} returns this */ proto.io.arthas.api.ObjectQueryResult.prototype.clearObjectsList = function() { return this.setObjectsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.StringKey.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.StringKey.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.io.arthas.api.StringKey} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringKey.toObject = function(includeInstance, msg) { var f, obj = { key: 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.io.arthas.api.StringKey} */ proto.io.arthas.api.StringKey.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.StringKey; return proto.io.arthas.api.StringKey.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.StringKey} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.StringKey} */ proto.io.arthas.api.StringKey.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.setKey(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.StringKey.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.StringKey.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.StringKey} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringKey.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKey(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string key = 1; * @return {string} */ proto.io.arthas.api.StringKey.prototype.getKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.StringKey} returns this */ proto.io.arthas.api.StringKey.prototype.setKey = 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.StringValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.StringValue.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.io.arthas.api.StringValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringValue.toObject = function(includeInstance, msg) { var f, obj = { value: 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.io.arthas.api.StringValue} */ proto.io.arthas.api.StringValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.StringValue; return proto.io.arthas.api.StringValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.StringValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.StringValue} */ proto.io.arthas.api.StringValue.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.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.StringValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.StringValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.StringValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getValue(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string value = 1; * @return {string} */ proto.io.arthas.api.StringValue.prototype.getValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.StringValue} returns this */ proto.io.arthas.api.StringValue.prototype.setValue = 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_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.StringStringMapValue.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.StringStringMapValue.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.io.arthas.api.StringStringMapValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringStringMapValue.toObject = function(includeInstance, msg) { var f, obj = { stringstringmapMap: (f = msg.getStringstringmapMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.io.arthas.api.StringStringMapValue} */ proto.io.arthas.api.StringStringMapValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.StringStringMapValue; return proto.io.arthas.api.StringStringMapValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.StringStringMapValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.StringStringMapValue} */ proto.io.arthas.api.StringStringMapValue.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = msg.getStringstringmapMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.StringStringMapValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.StringStringMapValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.StringStringMapValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.StringStringMapValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStringstringmapMap(true); if (f && f.getLength() > 0) { f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** * map<string, string> stringStringMap = 1; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.io.arthas.api.StringStringMapValue.prototype.getStringstringmapMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 1, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.io.arthas.api.StringStringMapValue} returns this */ proto.io.arthas.api.StringStringMapValue.prototype.clearStringstringmapMap = function() { this.getStringstringmapMap().clear(); return this;}; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.WatchRequest.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.WatchRequest.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.io.arthas.api.WatchRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.WatchRequest.toObject = function(includeInstance, msg) { var f, obj = { classpattern: jspb.Message.getFieldWithDefault(msg, 1, ""), methodpattern: jspb.Message.getFieldWithDefault(msg, 2, ""), express: jspb.Message.getFieldWithDefault(msg, 3, ""), conditionexpress: jspb.Message.getFieldWithDefault(msg, 4, ""), isbefore: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), isfinish: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), isexception: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), issuccess: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), expand: jspb.Message.getFieldWithDefault(msg, 9, 0), sizelimit: jspb.Message.getFieldWithDefault(msg, 10, 0), isregex: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), numberoflimit: jspb.Message.getFieldWithDefault(msg, 12, 0), excludeclasspattern: jspb.Message.getFieldWithDefault(msg, 13, ""), listenerid: jspb.Message.getFieldWithDefault(msg, 14, 0), verbose: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), maxnumofmatchedclass: jspb.Message.getFieldWithDefault(msg, 16, 0), jobid: jspb.Message.getFieldWithDefault(msg, 17, 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.io.arthas.api.WatchRequest} */ proto.io.arthas.api.WatchRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.WatchRequest; return proto.io.arthas.api.WatchRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.WatchRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.WatchRequest} */ proto.io.arthas.api.WatchRequest.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.setClasspattern(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setMethodpattern(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setExpress(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setConditionexpress(value); break; case 5: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsbefore(value); break; case 6: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsfinish(value); break; case 7: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsexception(value); break; case 8: var value = /** @type {boolean} */ (reader.readBool()); msg.setIssuccess(value); break; case 9: var value = /** @type {number} */ (reader.readInt32()); msg.setExpand(value); break; case 10: var value = /** @type {number} */ (reader.readInt32()); msg.setSizelimit(value); break; case 11: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsregex(value); break; case 12: var value = /** @type {number} */ (reader.readInt32()); msg.setNumberoflimit(value); break; case 13: var value = /** @type {string} */ (reader.readString()); msg.setExcludeclasspattern(value); break; case 14: var value = /** @type {number} */ (reader.readInt64()); msg.setListenerid(value); break; case 15: var value = /** @type {boolean} */ (reader.readBool()); msg.setVerbose(value); break; case 16: var value = /** @type {number} */ (reader.readInt32()); msg.setMaxnumofmatchedclass(value); break; case 17: var value = /** @type {number} */ (reader.readInt64()); msg.setJobid(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.WatchRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.WatchRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.WatchRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.WatchRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClasspattern(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getMethodpattern(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getExpress(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getConditionexpress(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getIsbefore(); if (f) { writer.writeBool( 5, f ); } f = message.getIsfinish(); if (f) { writer.writeBool( 6, f ); } f = message.getIsexception(); if (f) { writer.writeBool( 7, f ); } f = message.getIssuccess(); if (f) { writer.writeBool( 8, f ); } f = message.getExpand(); if (f !== 0) { writer.writeInt32( 9, f ); } f = message.getSizelimit(); if (f !== 0) { writer.writeInt32( 10, f ); } f = message.getIsregex(); if (f) { writer.writeBool( 11, f ); } f = message.getNumberoflimit(); if (f !== 0) { writer.writeInt32( 12, f ); } f = message.getExcludeclasspattern(); if (f.length > 0) { writer.writeString( 13, f ); } f = message.getListenerid(); if (f !== 0) { writer.writeInt64( 14, f ); } f = message.getVerbose(); if (f) { writer.writeBool( 15, f ); } f = message.getMaxnumofmatchedclass(); if (f !== 0) { writer.writeInt32( 16, f ); } f = message.getJobid(); if (f !== 0) { writer.writeInt64( 17, f ); } }; /** * optional string classPattern = 1; * @return {string} */ proto.io.arthas.api.WatchRequest.prototype.getClasspattern = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setClasspattern = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string methodPattern = 2; * @return {string} */ proto.io.arthas.api.WatchRequest.prototype.getMethodpattern = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setMethodpattern = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string express = 3; * @return {string} */ proto.io.arthas.api.WatchRequest.prototype.getExpress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setExpress = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string conditionExpress = 4; * @return {string} */ proto.io.arthas.api.WatchRequest.prototype.getConditionexpress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setConditionexpress = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional bool isBefore = 5; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getIsbefore = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setIsbefore = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; /** * optional bool isFinish = 6; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getIsfinish = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setIsfinish = function(value) { return jspb.Message.setProto3BooleanField(this, 6, value); }; /** * optional bool isException = 7; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getIsexception = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setIsexception = function(value) { return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional bool isSuccess = 8; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getIssuccess = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setIssuccess = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional int32 expand = 9; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getExpand = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setExpand = function(value) { return jspb.Message.setProto3IntField(this, 9, value); }; /** * optional int32 sizeLimit = 10; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getSizelimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setSizelimit = function(value) { return jspb.Message.setProto3IntField(this, 10, value); }; /** * optional bool isRegEx = 11; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getIsregex = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setIsregex = function(value) { return jspb.Message.setProto3BooleanField(this, 11, value); }; /** * optional int32 numberOfLimit = 12; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getNumberoflimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setNumberoflimit = function(value) { return jspb.Message.setProto3IntField(this, 12, value); }; /** * optional string excludeClassPattern = 13; * @return {string} */ proto.io.arthas.api.WatchRequest.prototype.getExcludeclasspattern = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setExcludeclasspattern = function(value) { return jspb.Message.setProto3StringField(this, 13, value); }; /** * optional int64 listenerId = 14; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getListenerid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setListenerid = function(value) { return jspb.Message.setProto3IntField(this, 14, value); }; /** * optional bool verbose = 15; * @return {boolean} */ proto.io.arthas.api.WatchRequest.prototype.getVerbose = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; /** * @param {boolean} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setVerbose = function(value) { return jspb.Message.setProto3BooleanField(this, 15, value); }; /** * optional int32 maxNumOfMatchedClass = 16; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getMaxnumofmatchedclass = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setMaxnumofmatchedclass = function(value) { return jspb.Message.setProto3IntField(this, 16, value); }; /** * optional int64 jobId = 17; * @return {number} */ proto.io.arthas.api.WatchRequest.prototype.getJobid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchRequest} returns this */ proto.io.arthas.api.WatchRequest.prototype.setJobid = function(value) { return jspb.Message.setProto3IntField(this, 17, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.WatchResponse.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.WatchResponse.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.io.arthas.api.WatchResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.WatchResponse.toObject = function(includeInstance, msg) { var f, obj = { ts: jspb.Message.getFieldWithDefault(msg, 1, ""), cost: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), value: (f = msg.getValue()) && proto.io.arthas.api.JavaObject.toObject(includeInstance, f), sizelimit: jspb.Message.getFieldWithDefault(msg, 4, 0), classname: jspb.Message.getFieldWithDefault(msg, 5, ""), methodname: jspb.Message.getFieldWithDefault(msg, 6, ""), accesspoint: jspb.Message.getFieldWithDefault(msg, 7, ""), listenerclassname: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.io.arthas.api.WatchResponse} */ proto.io.arthas.api.WatchResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.WatchResponse; return proto.io.arthas.api.WatchResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.WatchResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.WatchResponse} */ proto.io.arthas.api.WatchResponse.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.setTs(value); break; case 2: var value = /** @type {number} */ (reader.readDouble()); msg.setCost(value); break; case 3: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setValue(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setSizelimit(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setClassname(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setMethodname(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setAccesspoint(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setListenerclassname(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.WatchResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.WatchResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.WatchResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.WatchResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTs(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getCost(); if (f !== 0.0) { writer.writeDouble( 2, f ); } f = message.getValue(); if (f != null) { writer.writeMessage( 3, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } f = message.getSizelimit(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getClassname(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getMethodname(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getAccesspoint(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getListenerclassname(); if (f.length > 0) { writer.writeString( 8, f ); } }; /** * optional string ts = 1; * @return {string} */ proto.io.arthas.api.WatchResponse.prototype.getTs = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setTs = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional double cost = 2; * @return {number} */ proto.io.arthas.api.WatchResponse.prototype.getCost = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setCost = function(value) { return jspb.Message.setProto3FloatField(this, 2, value); }; /** * optional JavaObject value = 3; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.WatchResponse.prototype.getValue = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 3)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setValue = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.clearValue = function() { return this.setValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.WatchResponse.prototype.hasValue = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional int32 sizeLimit = 4; * @return {number} */ proto.io.arthas.api.WatchResponse.prototype.getSizelimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setSizelimit = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional string className = 5; * @return {string} */ proto.io.arthas.api.WatchResponse.prototype.getClassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setClassname = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string methodName = 6; * @return {string} */ proto.io.arthas.api.WatchResponse.prototype.getMethodname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setMethodname = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string accessPoint = 7; * @return {string} */ proto.io.arthas.api.WatchResponse.prototype.getAccesspoint = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setAccesspoint = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string listenerClassName = 8; * @return {string} */ proto.io.arthas.api.WatchResponse.prototype.getListenerclassname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.WatchResponse} returns this */ proto.io.arthas.api.WatchResponse.prototype.setListenerclassname = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.io.arthas.api.ResponseBody.oneofGroups_ = [[4,5,6,7]]; /** * @enum {number} */ proto.io.arthas.api.ResponseBody.DataCase = { DATA_NOT_SET: 0, STRINGSTRINGMAPVALUE: 4, STRINGVALUE: 5, WATCHRESPONSE: 6, JAVAOBJECT: 7 }; /** * @return {proto.io.arthas.api.ResponseBody.DataCase} */ proto.io.arthas.api.ResponseBody.prototype.getDataCase = function() { return /** @type {proto.io.arthas.api.ResponseBody.DataCase} */(jspb.Message.computeOneofCase(this, proto.io.arthas.api.ResponseBody.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.io.arthas.api.ResponseBody.prototype.toObject = function(opt_includeInstance) { return proto.io.arthas.api.ResponseBody.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.io.arthas.api.ResponseBody} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ResponseBody.toObject = function(includeInstance, msg) { var f, obj = { jobid: jspb.Message.getFieldWithDefault(msg, 1, 0), type: jspb.Message.getFieldWithDefault(msg, 2, ""), resultid: jspb.Message.getFieldWithDefault(msg, 3, 0), stringstringmapvalue: (f = msg.getStringstringmapvalue()) && proto.io.arthas.api.StringStringMapValue.toObject(includeInstance, f), stringvalue: jspb.Message.getFieldWithDefault(msg, 5, ""), watchresponse: (f = msg.getWatchresponse()) && proto.io.arthas.api.WatchResponse.toObject(includeInstance, f), javaobject: (f = msg.getJavaobject()) && proto.io.arthas.api.JavaObject.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.io.arthas.api.ResponseBody} */ proto.io.arthas.api.ResponseBody.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.io.arthas.api.ResponseBody; return proto.io.arthas.api.ResponseBody.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.io.arthas.api.ResponseBody} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.io.arthas.api.ResponseBody} */ proto.io.arthas.api.ResponseBody.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.setJobid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; case 3: var value = /** @type {number} */ (reader.readInt64()); msg.setResultid(value); break; case 4: var value = new proto.io.arthas.api.StringStringMapValue; reader.readMessage(value,proto.io.arthas.api.StringStringMapValue.deserializeBinaryFromReader); msg.setStringstringmapvalue(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setStringvalue(value); break; case 6: var value = new proto.io.arthas.api.WatchResponse; reader.readMessage(value,proto.io.arthas.api.WatchResponse.deserializeBinaryFromReader); msg.setWatchresponse(value); break; case 7: var value = new proto.io.arthas.api.JavaObject; reader.readMessage(value,proto.io.arthas.api.JavaObject.deserializeBinaryFromReader); msg.setJavaobject(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.io.arthas.api.ResponseBody.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.io.arthas.api.ResponseBody.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.io.arthas.api.ResponseBody} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.io.arthas.api.ResponseBody.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getJobid(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getResultid(); if (f !== 0) { writer.writeInt64( 3, f ); } f = message.getStringstringmapvalue(); if (f != null) { writer.writeMessage( 4, f, proto.io.arthas.api.StringStringMapValue.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeString( 5, f ); } f = message.getWatchresponse(); if (f != null) { writer.writeMessage( 6, f, proto.io.arthas.api.WatchResponse.serializeBinaryToWriter ); } f = message.getJavaobject(); if (f != null) { writer.writeMessage( 7, f, proto.io.arthas.api.JavaObject.serializeBinaryToWriter ); } }; /** * optional int32 jobId = 1; * @return {number} */ proto.io.arthas.api.ResponseBody.prototype.getJobid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setJobid = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string type = 2; * @return {string} */ proto.io.arthas.api.ResponseBody.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional int64 resultId = 3; * @return {number} */ proto.io.arthas.api.ResponseBody.prototype.getResultid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setResultid = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional StringStringMapValue stringStringMapValue = 4; * @return {?proto.io.arthas.api.StringStringMapValue} */ proto.io.arthas.api.ResponseBody.prototype.getStringstringmapvalue = function() { return /** @type{?proto.io.arthas.api.StringStringMapValue} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.StringStringMapValue, 4)); }; /** * @param {?proto.io.arthas.api.StringStringMapValue|undefined} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setStringstringmapvalue = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.io.arthas.api.ResponseBody.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.clearStringstringmapvalue = function() { return this.setStringstringmapvalue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ResponseBody.prototype.hasStringstringmapvalue = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional string stringValue = 5; * @return {string} */ proto.io.arthas.api.ResponseBody.prototype.getStringvalue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setStringvalue = function(value) { return jspb.Message.setOneofField(this, 5, proto.io.arthas.api.ResponseBody.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.clearStringvalue = function() { return jspb.Message.setOneofField(this, 5, proto.io.arthas.api.ResponseBody.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ResponseBody.prototype.hasStringvalue = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional WatchResponse watchResponse = 6; * @return {?proto.io.arthas.api.WatchResponse} */ proto.io.arthas.api.ResponseBody.prototype.getWatchresponse = function() { return /** @type{?proto.io.arthas.api.WatchResponse} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.WatchResponse, 6)); }; /** * @param {?proto.io.arthas.api.WatchResponse|undefined} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setWatchresponse = function(value) { return jspb.Message.setOneofWrapperField(this, 6, proto.io.arthas.api.ResponseBody.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.clearWatchresponse = function() { return this.setWatchresponse(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ResponseBody.prototype.hasWatchresponse = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional JavaObject javaObject = 7; * @return {?proto.io.arthas.api.JavaObject} */ proto.io.arthas.api.ResponseBody.prototype.getJavaobject = function() { return /** @type{?proto.io.arthas.api.JavaObject} */ ( jspb.Message.getWrapperField(this, proto.io.arthas.api.JavaObject, 7)); }; /** * @param {?proto.io.arthas.api.JavaObject|undefined} value * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.setJavaobject = function(value) { return jspb.Message.setOneofWrapperField(this, 7, proto.io.arthas.api.ResponseBody.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.io.arthas.api.ResponseBody} returns this */ proto.io.arthas.api.ResponseBody.prototype.clearJavaobject = function() { return this.setJavaobject(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.io.arthas.api.ResponseBody.prototype.hasJavaobject = function() { return jspb.Message.getField(this, 7) != null; }; goog.object.extend(exports, proto.io.arthas.api);