Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
turingczz committed Jul 6, 2022
1 parent e91c7bd commit 4ad9bfa
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 155 deletions.
50 changes: 25 additions & 25 deletions js/protos/status/status_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ goog.object.extend(proto, google_protobuf_timestamp_pb);
goog.exportSymbol('proto.status.AirdropRewardHistoryReq', null, global);
goog.exportSymbol('proto.status.BtfsScanAggrReq', null, global);
goog.exportSymbol('proto.status.Candidate', null, global);
goog.exportSymbol('proto.status.MetricsResp', null, global);
goog.exportSymbol('proto.status.NodeContractStatReq', null, global);
goog.exportSymbol('proto.status.NodeDiscoveryAggrReq', null, global);
goog.exportSymbol('proto.status.NodeMetricsAggrReq', null, global);
goog.exportSymbol('proto.status.Resp', null, global);
goog.exportSymbol('proto.status.ResponseCode', null, global);
goog.exportSymbol('proto.status.RewardInfo', null, global);
goog.exportSymbol('proto.status.RewardType', null, global);
Expand Down Expand Up @@ -63,16 +63,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.status.MetricsResp = function(opt_data) {
proto.status.Resp = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.status.MetricsResp, jspb.Message);
goog.inherits(proto.status.Resp, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.status.MetricsResp.displayName = 'proto.status.MetricsResp';
proto.status.Resp.displayName = 'proto.status.Resp';
}
/**
* Generated by JsPbCodeGenerator.
Expand Down Expand Up @@ -520,8 +520,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.status.MetricsResp.prototype.toObject = function(opt_includeInstance) {
return proto.status.MetricsResp.toObject(opt_includeInstance, this);
proto.status.Resp.prototype.toObject = function(opt_includeInstance) {
return proto.status.Resp.toObject(opt_includeInstance, this);
};


Expand All @@ -530,11 +530,11 @@ proto.status.MetricsResp.prototype.toObject = function(opt_includeInstance) {
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.status.MetricsResp} msg The msg instance to transform.
* @param {!proto.status.Resp} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.status.MetricsResp.toObject = function(includeInstance, msg) {
proto.status.Resp.toObject = function(includeInstance, msg) {
var f, obj = {
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
message: jspb.Message.getFieldWithDefault(msg, 2, "")
Expand All @@ -551,23 +551,23 @@ proto.status.MetricsResp.toObject = function(includeInstance, msg) {
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.status.MetricsResp}
* @return {!proto.status.Resp}
*/
proto.status.MetricsResp.deserializeBinary = function(bytes) {
proto.status.Resp.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.status.MetricsResp;
return proto.status.MetricsResp.deserializeBinaryFromReader(msg, reader);
var msg = new proto.status.Resp;
return proto.status.Resp.deserializeBinaryFromReader(msg, reader);
};


/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.status.MetricsResp} msg The message object to deserialize into.
* @param {!proto.status.Resp} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.status.MetricsResp}
* @return {!proto.status.Resp}
*/
proto.status.MetricsResp.deserializeBinaryFromReader = function(msg, reader) {
proto.status.Resp.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
Expand Down Expand Up @@ -595,21 +595,21 @@ proto.status.MetricsResp.deserializeBinaryFromReader = function(msg, reader) {
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.status.MetricsResp.prototype.serializeBinary = function() {
proto.status.Resp.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.status.MetricsResp.serializeBinaryToWriter(this, writer);
proto.status.Resp.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};


/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.status.MetricsResp} message
* @param {!proto.status.Resp} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.status.MetricsResp.serializeBinaryToWriter = function(message, writer) {
proto.status.Resp.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCode();
if (f !== 0.0) {
Expand All @@ -632,16 +632,16 @@ proto.status.MetricsResp.serializeBinaryToWriter = function(message, writer) {
* optional ResponseCode code = 1;
* @return {!proto.status.ResponseCode}
*/
proto.status.MetricsResp.prototype.getCode = function() {
proto.status.Resp.prototype.getCode = function() {
return /** @type {!proto.status.ResponseCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};


/**
* @param {!proto.status.ResponseCode} value
* @return {!proto.status.MetricsResp} returns this
* @return {!proto.status.Resp} returns this
*/
proto.status.MetricsResp.prototype.setCode = function(value) {
proto.status.Resp.prototype.setCode = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};

Expand All @@ -650,16 +650,16 @@ proto.status.MetricsResp.prototype.setCode = function(value) {
* optional string message = 2;
* @return {string}
*/
proto.status.MetricsResp.prototype.getMessage = function() {
proto.status.Resp.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};


/**
* @param {string} value
* @return {!proto.status.MetricsResp} returns this
* @return {!proto.status.Resp} returns this
*/
proto.status.MetricsResp.prototype.setMessage = function(value) {
proto.status.Resp.prototype.setMessage = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};

Expand Down
Loading

0 comments on commit 4ad9bfa

Please sign in to comment.