protobuf-platform 1.0.45 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -58,6 +58,8 @@ message RolePermissionRequest {
58
58
  string section_one = 2;
59
59
  optional string section_two = 3;
60
60
  optional string section_three = 4;
61
+ string action_name = 5;
62
+ int32 action_value = 6;
61
63
  }
62
64
  message RolePermissionStatusResponse {
63
65
  string status = 1;
package/user/user_pb.js CHANGED
@@ -1992,7 +1992,9 @@ proto.user.RolePermissionRequest.toObject = function(includeInstance, msg) {
1992
1992
  role: jspb.Message.getFieldWithDefault(msg, 1, ""),
1993
1993
  sectionOne: jspb.Message.getFieldWithDefault(msg, 2, ""),
1994
1994
  sectionTwo: jspb.Message.getFieldWithDefault(msg, 3, ""),
1995
- sectionThree: jspb.Message.getFieldWithDefault(msg, 4, "")
1995
+ sectionThree: jspb.Message.getFieldWithDefault(msg, 4, ""),
1996
+ actionName: jspb.Message.getFieldWithDefault(msg, 5, ""),
1997
+ actionValue: jspb.Message.getFieldWithDefault(msg, 6, 0)
1996
1998
  };
1997
1999
 
1998
2000
  if (includeInstance) {
@@ -2045,6 +2047,14 @@ proto.user.RolePermissionRequest.deserializeBinaryFromReader = function(msg, rea
2045
2047
  var value = /** @type {string} */ (reader.readString());
2046
2048
  msg.setSectionThree(value);
2047
2049
  break;
2050
+ case 5:
2051
+ var value = /** @type {string} */ (reader.readString());
2052
+ msg.setActionName(value);
2053
+ break;
2054
+ case 6:
2055
+ var value = /** @type {number} */ (reader.readInt32());
2056
+ msg.setActionValue(value);
2057
+ break;
2048
2058
  default:
2049
2059
  reader.skipField();
2050
2060
  break;
@@ -2102,6 +2112,20 @@ proto.user.RolePermissionRequest.serializeBinaryToWriter = function(message, wri
2102
2112
  f
2103
2113
  );
2104
2114
  }
2115
+ f = message.getActionName();
2116
+ if (f.length > 0) {
2117
+ writer.writeString(
2118
+ 5,
2119
+ f
2120
+ );
2121
+ }
2122
+ f = message.getActionValue();
2123
+ if (f !== 0) {
2124
+ writer.writeInt32(
2125
+ 6,
2126
+ f
2127
+ );
2128
+ }
2105
2129
  };
2106
2130
 
2107
2131
 
@@ -2213,6 +2237,42 @@ proto.user.RolePermissionRequest.prototype.hasSectionThree = function() {
2213
2237
  };
2214
2238
 
2215
2239
 
2240
+ /**
2241
+ * optional string action_name = 5;
2242
+ * @return {string}
2243
+ */
2244
+ proto.user.RolePermissionRequest.prototype.getActionName = function() {
2245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * @param {string} value
2251
+ * @return {!proto.user.RolePermissionRequest} returns this
2252
+ */
2253
+ proto.user.RolePermissionRequest.prototype.setActionName = function(value) {
2254
+ return jspb.Message.setProto3StringField(this, 5, value);
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * optional int32 action_value = 6;
2260
+ * @return {number}
2261
+ */
2262
+ proto.user.RolePermissionRequest.prototype.getActionValue = function() {
2263
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * @param {number} value
2269
+ * @return {!proto.user.RolePermissionRequest} returns this
2270
+ */
2271
+ proto.user.RolePermissionRequest.prototype.setActionValue = function(value) {
2272
+ return jspb.Message.setProto3IntField(this, 6, value);
2273
+ };
2274
+
2275
+
2216
2276
 
2217
2277
 
2218
2278