Skip to content

Commit

Permalink
add two fields in the dailyHostSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
Junlin Gao committed Mar 3, 2021
1 parent 361a6b1 commit 83d6397
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 239 deletions.
62 changes: 61 additions & 1 deletion js/protos/guard/guard_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,9 @@ proto.guard.DailySummary.toObject = function(includeInstance, msg) {
newContracts: jspb.Message.getFieldWithDefault(msg, 6, 0),
newContractsHost: jspb.Message.getFieldWithDefault(msg, 7, 0),
newContractsRenter: jspb.Message.getFieldWithDefault(msg, 8, 0),
newContractsAveragePrice: jspb.Message.getFieldWithDefault(msg, 9, 0)
newContractsAveragePrice: jspb.Message.getFieldWithDefault(msg, 9, 0),
newFiles: jspb.Message.getFieldWithDefault(msg, 10, 0),
newShardsSize: jspb.Message.getFieldWithDefault(msg, 11, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -1204,6 +1206,14 @@ proto.guard.DailySummary.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {number} */ (reader.readInt64());
msg.setNewContractsAveragePrice(value);
break;
case 10:
var value = /** @type {number} */ (reader.readInt64());
msg.setNewFiles(value);
break;
case 11:
var value = /** @type {number} */ (reader.readInt64());
msg.setNewShardsSize(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1298,6 +1308,20 @@ proto.guard.DailySummary.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getNewFiles();
if (f !== 0) {
writer.writeInt64(
10,
f
);
}
f = message.getNewShardsSize();
if (f !== 0) {
writer.writeInt64(
11,
f
);
}
};


Expand Down Expand Up @@ -1525,6 +1549,42 @@ proto.guard.DailySummary.prototype.setNewContractsAveragePrice = function(value)
};


/**
* optional int64 new_files = 10;
* @return {number}
*/
proto.guard.DailySummary.prototype.getNewFiles = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
};


/**
* @param {number} value
* @return {!proto.guard.DailySummary} returns this
*/
proto.guard.DailySummary.prototype.setNewFiles = function(value) {
return jspb.Message.setProto3IntField(this, 10, value);
};


/**
* optional int64 new_shards_size = 11;
* @return {number}
*/
proto.guard.DailySummary.prototype.getNewShardsSize = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};


/**
* @param {number} value
* @return {!proto.guard.DailySummary} returns this
*/
proto.guard.DailySummary.prototype.setNewShardsSize = function(value) {
return jspb.Message.setProto3IntField(this, 11, value);
};



/**
* List of repeated fields within this message type.
Expand Down
Loading

0 comments on commit 83d6397

Please sign in to comment.