@aldiokta/protocgen 1.1.53 → 1.1.54

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": "@aldiokta/protocgen",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1856,8 +1856,7 @@ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1856
1856
  names: jspb.Message.getFieldWithDefault(msg, 2, ""),
1857
1857
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1858
1858
  policiesActionList: jspb.Message.toObjectList(msg.getPoliciesActionList(),
1859
- proto.PolicyAction.toObject, includeInstance),
1860
- resources: (f = msg.getResources()) && proto.Resource.toObject(includeInstance, f)
1859
+ proto.PolicyAction.toObject, includeInstance)
1861
1860
  };
1862
1861
 
1863
1862
  if (includeInstance) {
@@ -1911,11 +1910,6 @@ proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
1911
1910
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
1912
1911
  msg.addPoliciesAction(value);
1913
1912
  break;
1914
- case 5:
1915
- var value = new proto.Resource;
1916
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
1917
- msg.setResources(value);
1918
- break;
1919
1913
  default:
1920
1914
  reader.skipField();
1921
1915
  break;
@@ -1974,14 +1968,6 @@ proto.BasePolicy.serializeBinaryToWriter = function(message, writer) {
1974
1968
  proto.PolicyAction.serializeBinaryToWriter
1975
1969
  );
1976
1970
  }
1977
- f = message.getResources();
1978
- if (f != null) {
1979
- writer.writeMessage(
1980
- 5,
1981
- f,
1982
- proto.Resource.serializeBinaryToWriter
1983
- );
1984
- }
1985
1971
  };
1986
1972
 
1987
1973
 
@@ -2077,43 +2063,6 @@ proto.BasePolicy.prototype.clearPoliciesActionList = function() {
2077
2063
  };
2078
2064
 
2079
2065
 
2080
- /**
2081
- * optional Resource resources = 5;
2082
- * @return {?proto.Resource}
2083
- */
2084
- proto.BasePolicy.prototype.getResources = function() {
2085
- return /** @type{?proto.Resource} */ (
2086
- jspb.Message.getWrapperField(this, proto.Resource, 5));
2087
- };
2088
-
2089
-
2090
- /**
2091
- * @param {?proto.Resource|undefined} value
2092
- * @return {!proto.BasePolicy} returns this
2093
- */
2094
- proto.BasePolicy.prototype.setResources = function(value) {
2095
- return jspb.Message.setWrapperField(this, 5, value);
2096
- };
2097
-
2098
-
2099
- /**
2100
- * Clears the message field making it undefined.
2101
- * @return {!proto.BasePolicy} returns this
2102
- */
2103
- proto.BasePolicy.prototype.clearResources = function() {
2104
- return this.setResources(undefined);
2105
- };
2106
-
2107
-
2108
- /**
2109
- * Returns whether this field is set.
2110
- * @return {boolean}
2111
- */
2112
- proto.BasePolicy.prototype.hasResources = function() {
2113
- return jspb.Message.getField(this, 5) != null;
2114
- };
2115
-
2116
-
2117
2066
 
2118
2067
  /**
2119
2068
  * List of repeated fields within this message type.
@@ -2353,8 +2302,7 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2353
2302
  updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2354
2303
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2355
2304
  policiesActionsList: jspb.Message.toObjectList(msg.getPoliciesActionsList(),
2356
- proto.PolicyAction.toObject, includeInstance),
2357
- resources: (f = msg.getResources()) && proto.Resource.toObject(includeInstance, f)
2305
+ proto.PolicyAction.toObject, includeInstance)
2358
2306
  };
2359
2307
 
2360
2308
  if (includeInstance) {
@@ -2432,11 +2380,6 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
2432
2380
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
2433
2381
  msg.addPoliciesActions(value);
2434
2382
  break;
2435
- case 11:
2436
- var value = new proto.Resource;
2437
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
2438
- msg.setResources(value);
2439
- break;
2440
2383
  default:
2441
2384
  reader.skipField();
2442
2385
  break;
@@ -2537,14 +2480,6 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
2537
2480
  proto.PolicyAction.serializeBinaryToWriter
2538
2481
  );
2539
2482
  }
2540
- f = message.getResources();
2541
- if (f != null) {
2542
- writer.writeMessage(
2543
- 11,
2544
- f,
2545
- proto.Resource.serializeBinaryToWriter
2546
- );
2547
- }
2548
2483
  };
2549
2484
 
2550
2485
 
@@ -2748,43 +2683,6 @@ proto.Policy.prototype.clearPoliciesActionsList = function() {
2748
2683
  };
2749
2684
 
2750
2685
 
2751
- /**
2752
- * optional Resource resources = 11;
2753
- * @return {?proto.Resource}
2754
- */
2755
- proto.Policy.prototype.getResources = function() {
2756
- return /** @type{?proto.Resource} */ (
2757
- jspb.Message.getWrapperField(this, proto.Resource, 11));
2758
- };
2759
-
2760
-
2761
- /**
2762
- * @param {?proto.Resource|undefined} value
2763
- * @return {!proto.Policy} returns this
2764
- */
2765
- proto.Policy.prototype.setResources = function(value) {
2766
- return jspb.Message.setWrapperField(this, 11, value);
2767
- };
2768
-
2769
-
2770
- /**
2771
- * Clears the message field making it undefined.
2772
- * @return {!proto.Policy} returns this
2773
- */
2774
- proto.Policy.prototype.clearResources = function() {
2775
- return this.setResources(undefined);
2776
- };
2777
-
2778
-
2779
- /**
2780
- * Returns whether this field is set.
2781
- * @return {boolean}
2782
- */
2783
- proto.Policy.prototype.hasResources = function() {
2784
- return jspb.Message.getField(this, 11) != null;
2785
- };
2786
-
2787
-
2788
2686
 
2789
2687
 
2790
2688
 
@@ -2827,7 +2725,8 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2827
2725
  updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2828
2726
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2829
2727
  resourceReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
2830
- action: (f = msg.getAction()) && proto.Action.toObject(includeInstance, f)
2728
+ action: (f = msg.getAction()) && proto.Action.toObject(includeInstance, f),
2729
+ resource: (f = msg.getResource()) && proto.Resource.toObject(includeInstance, f)
2831
2730
  };
2832
2731
 
2833
2732
  if (includeInstance) {
@@ -2909,6 +2808,11 @@ proto.PolicyAction.deserializeBinaryFromReader = function(msg, reader) {
2909
2808
  reader.readMessage(value,proto.Action.deserializeBinaryFromReader);
2910
2809
  msg.setAction(value);
2911
2810
  break;
2811
+ case 12:
2812
+ var value = new proto.Resource;
2813
+ reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
2814
+ msg.setResource(value);
2815
+ break;
2912
2816
  default:
2913
2817
  reader.skipField();
2914
2818
  break;
@@ -3016,6 +2920,14 @@ proto.PolicyAction.serializeBinaryToWriter = function(message, writer) {
3016
2920
  proto.Action.serializeBinaryToWriter
3017
2921
  );
3018
2922
  }
2923
+ f = message.getResource();
2924
+ if (f != null) {
2925
+ writer.writeMessage(
2926
+ 12,
2927
+ f,
2928
+ proto.Resource.serializeBinaryToWriter
2929
+ );
2930
+ }
3019
2931
  };
3020
2932
 
3021
2933
 
@@ -3236,6 +3148,43 @@ proto.PolicyAction.prototype.hasAction = function() {
3236
3148
  };
3237
3149
 
3238
3150
 
3151
+ /**
3152
+ * optional Resource resource = 12;
3153
+ * @return {?proto.Resource}
3154
+ */
3155
+ proto.PolicyAction.prototype.getResource = function() {
3156
+ return /** @type{?proto.Resource} */ (
3157
+ jspb.Message.getWrapperField(this, proto.Resource, 12));
3158
+ };
3159
+
3160
+
3161
+ /**
3162
+ * @param {?proto.Resource|undefined} value
3163
+ * @return {!proto.PolicyAction} returns this
3164
+ */
3165
+ proto.PolicyAction.prototype.setResource = function(value) {
3166
+ return jspb.Message.setWrapperField(this, 12, value);
3167
+ };
3168
+
3169
+
3170
+ /**
3171
+ * Clears the message field making it undefined.
3172
+ * @return {!proto.PolicyAction} returns this
3173
+ */
3174
+ proto.PolicyAction.prototype.clearResource = function() {
3175
+ return this.setResource(undefined);
3176
+ };
3177
+
3178
+
3179
+ /**
3180
+ * Returns whether this field is set.
3181
+ * @return {boolean}
3182
+ */
3183
+ proto.PolicyAction.prototype.hasResource = function() {
3184
+ return jspb.Message.getField(this, 12) != null;
3185
+ };
3186
+
3187
+
3239
3188
 
3240
3189
 
3241
3190