protobuf-platform 1.0.44 → 1.0.46

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.44",
3
+ "version": "1.0.46",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -55,9 +55,10 @@ message UserDataResponse {
55
55
  //Permissions
56
56
  message RolePermissionRequest {
57
57
  string role = 1;
58
- string section1 = 2;
59
- optional string section2 = 3;
60
- optional string section3 = 4;
58
+ string section_one = 2;
59
+ optional string section_two = 3;
60
+ optional string section_three = 4;
61
+ string action_name = 5;
61
62
  }
62
63
  message RolePermissionStatusResponse {
63
64
  string status = 1;
package/user/user_pb.js CHANGED
@@ -1990,9 +1990,10 @@ proto.user.RolePermissionRequest.prototype.toObject = function(opt_includeInstan
1990
1990
  proto.user.RolePermissionRequest.toObject = function(includeInstance, msg) {
1991
1991
  var f, obj = {
1992
1992
  role: jspb.Message.getFieldWithDefault(msg, 1, ""),
1993
- section1: jspb.Message.getFieldWithDefault(msg, 2, ""),
1994
- section2: jspb.Message.getFieldWithDefault(msg, 3, ""),
1995
- section3: jspb.Message.getFieldWithDefault(msg, 4, "")
1993
+ sectionOne: jspb.Message.getFieldWithDefault(msg, 2, ""),
1994
+ sectionTwo: jspb.Message.getFieldWithDefault(msg, 3, ""),
1995
+ sectionThree: jspb.Message.getFieldWithDefault(msg, 4, ""),
1996
+ actionName: jspb.Message.getFieldWithDefault(msg, 5, "")
1996
1997
  };
1997
1998
 
1998
1999
  if (includeInstance) {
@@ -2035,15 +2036,19 @@ proto.user.RolePermissionRequest.deserializeBinaryFromReader = function(msg, rea
2035
2036
  break;
2036
2037
  case 2:
2037
2038
  var value = /** @type {string} */ (reader.readString());
2038
- msg.setSection1(value);
2039
+ msg.setSectionOne(value);
2039
2040
  break;
2040
2041
  case 3:
2041
2042
  var value = /** @type {string} */ (reader.readString());
2042
- msg.setSection2(value);
2043
+ msg.setSectionTwo(value);
2043
2044
  break;
2044
2045
  case 4:
2045
2046
  var value = /** @type {string} */ (reader.readString());
2046
- msg.setSection3(value);
2047
+ msg.setSectionThree(value);
2048
+ break;
2049
+ case 5:
2050
+ var value = /** @type {string} */ (reader.readString());
2051
+ msg.setActionName(value);
2047
2052
  break;
2048
2053
  default:
2049
2054
  reader.skipField();
@@ -2081,7 +2086,7 @@ proto.user.RolePermissionRequest.serializeBinaryToWriter = function(message, wri
2081
2086
  f
2082
2087
  );
2083
2088
  }
2084
- f = message.getSection1();
2089
+ f = message.getSectionOne();
2085
2090
  if (f.length > 0) {
2086
2091
  writer.writeString(
2087
2092
  2,
@@ -2102,6 +2107,13 @@ proto.user.RolePermissionRequest.serializeBinaryToWriter = function(message, wri
2102
2107
  f
2103
2108
  );
2104
2109
  }
2110
+ f = message.getActionName();
2111
+ if (f.length > 0) {
2112
+ writer.writeString(
2113
+ 5,
2114
+ f
2115
+ );
2116
+ }
2105
2117
  };
2106
2118
 
2107
2119
 
@@ -2124,10 +2136,10 @@ proto.user.RolePermissionRequest.prototype.setRole = function(value) {
2124
2136
 
2125
2137
 
2126
2138
  /**
2127
- * optional string section1 = 2;
2139
+ * optional string section_one = 2;
2128
2140
  * @return {string}
2129
2141
  */
2130
- proto.user.RolePermissionRequest.prototype.getSection1 = function() {
2142
+ proto.user.RolePermissionRequest.prototype.getSectionOne = function() {
2131
2143
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2132
2144
  };
2133
2145
 
@@ -2136,16 +2148,16 @@ proto.user.RolePermissionRequest.prototype.getSection1 = function() {
2136
2148
  * @param {string} value
2137
2149
  * @return {!proto.user.RolePermissionRequest} returns this
2138
2150
  */
2139
- proto.user.RolePermissionRequest.prototype.setSection1 = function(value) {
2151
+ proto.user.RolePermissionRequest.prototype.setSectionOne = function(value) {
2140
2152
  return jspb.Message.setProto3StringField(this, 2, value);
2141
2153
  };
2142
2154
 
2143
2155
 
2144
2156
  /**
2145
- * optional string section2 = 3;
2157
+ * optional string section_two = 3;
2146
2158
  * @return {string}
2147
2159
  */
2148
- proto.user.RolePermissionRequest.prototype.getSection2 = function() {
2160
+ proto.user.RolePermissionRequest.prototype.getSectionTwo = function() {
2149
2161
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2150
2162
  };
2151
2163
 
@@ -2154,7 +2166,7 @@ proto.user.RolePermissionRequest.prototype.getSection2 = function() {
2154
2166
  * @param {string} value
2155
2167
  * @return {!proto.user.RolePermissionRequest} returns this
2156
2168
  */
2157
- proto.user.RolePermissionRequest.prototype.setSection2 = function(value) {
2169
+ proto.user.RolePermissionRequest.prototype.setSectionTwo = function(value) {
2158
2170
  return jspb.Message.setField(this, 3, value);
2159
2171
  };
2160
2172
 
@@ -2163,7 +2175,7 @@ proto.user.RolePermissionRequest.prototype.setSection2 = function(value) {
2163
2175
  * Clears the field making it undefined.
2164
2176
  * @return {!proto.user.RolePermissionRequest} returns this
2165
2177
  */
2166
- proto.user.RolePermissionRequest.prototype.clearSection2 = function() {
2178
+ proto.user.RolePermissionRequest.prototype.clearSectionTwo = function() {
2167
2179
  return jspb.Message.setField(this, 3, undefined);
2168
2180
  };
2169
2181
 
@@ -2172,16 +2184,16 @@ proto.user.RolePermissionRequest.prototype.clearSection2 = function() {
2172
2184
  * Returns whether this field is set.
2173
2185
  * @return {boolean}
2174
2186
  */
2175
- proto.user.RolePermissionRequest.prototype.hasSection2 = function() {
2187
+ proto.user.RolePermissionRequest.prototype.hasSectionTwo = function() {
2176
2188
  return jspb.Message.getField(this, 3) != null;
2177
2189
  };
2178
2190
 
2179
2191
 
2180
2192
  /**
2181
- * optional string section3 = 4;
2193
+ * optional string section_three = 4;
2182
2194
  * @return {string}
2183
2195
  */
2184
- proto.user.RolePermissionRequest.prototype.getSection3 = function() {
2196
+ proto.user.RolePermissionRequest.prototype.getSectionThree = function() {
2185
2197
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2186
2198
  };
2187
2199
 
@@ -2190,7 +2202,7 @@ proto.user.RolePermissionRequest.prototype.getSection3 = function() {
2190
2202
  * @param {string} value
2191
2203
  * @return {!proto.user.RolePermissionRequest} returns this
2192
2204
  */
2193
- proto.user.RolePermissionRequest.prototype.setSection3 = function(value) {
2205
+ proto.user.RolePermissionRequest.prototype.setSectionThree = function(value) {
2194
2206
  return jspb.Message.setField(this, 4, value);
2195
2207
  };
2196
2208
 
@@ -2199,7 +2211,7 @@ proto.user.RolePermissionRequest.prototype.setSection3 = function(value) {
2199
2211
  * Clears the field making it undefined.
2200
2212
  * @return {!proto.user.RolePermissionRequest} returns this
2201
2213
  */
2202
- proto.user.RolePermissionRequest.prototype.clearSection3 = function() {
2214
+ proto.user.RolePermissionRequest.prototype.clearSectionThree = function() {
2203
2215
  return jspb.Message.setField(this, 4, undefined);
2204
2216
  };
2205
2217
 
@@ -2208,11 +2220,29 @@ proto.user.RolePermissionRequest.prototype.clearSection3 = function() {
2208
2220
  * Returns whether this field is set.
2209
2221
  * @return {boolean}
2210
2222
  */
2211
- proto.user.RolePermissionRequest.prototype.hasSection3 = function() {
2223
+ proto.user.RolePermissionRequest.prototype.hasSectionThree = function() {
2212
2224
  return jspb.Message.getField(this, 4) != null;
2213
2225
  };
2214
2226
 
2215
2227
 
2228
+ /**
2229
+ * optional string action_name = 5;
2230
+ * @return {string}
2231
+ */
2232
+ proto.user.RolePermissionRequest.prototype.getActionName = function() {
2233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * @param {string} value
2239
+ * @return {!proto.user.RolePermissionRequest} returns this
2240
+ */
2241
+ proto.user.RolePermissionRequest.prototype.setActionName = function(value) {
2242
+ return jspb.Message.setProto3StringField(this, 5, value);
2243
+ };
2244
+
2245
+
2216
2246
 
2217
2247
 
2218
2248