Skip to content

Commit

Permalink
Merge pull request #189 from TRON-US/add_version
Browse files Browse the repository at this point in the history
add field version in HostsReq
  • Loading branch information
laocheng-cheng authored Feb 10, 2022
2 parents c8b2053 + 2c02490 commit 3577267
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 107 deletions.
32 changes: 31 additions & 1 deletion js/protos/hub/hub_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,8 @@ proto.hub.HostsReq.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
respSize: jspb.Message.getFieldWithDefault(msg, 2, 0),
mode: jspb.Message.getFieldWithDefault(msg, 3, 0)
mode: jspb.Message.getFieldWithDefault(msg, 3, 0),
version: jspb.Message.getFieldWithDefault(msg, 4, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1368,6 +1369,10 @@ proto.hub.HostsReq.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {!proto.hub.HostsReq.Mode} */ (reader.readEnum());
msg.setMode(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1418,6 +1423,13 @@ proto.hub.HostsReq.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};


Expand Down Expand Up @@ -1487,6 +1499,24 @@ proto.hub.HostsReq.prototype.setMode = function(value) {
};


/**
* optional string version = 4;
* @return {string}
*/
proto.hub.HostsReq.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};


/**
* @param {string} value
* @return {!proto.hub.HostsReq} returns this
*/
proto.hub.HostsReq.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};





Expand Down
Loading

0 comments on commit 3577267

Please sign in to comment.