@aldiokta/protocgen 1.0.27 → 1.0.28

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.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,7 +37,6 @@ goog.exportSymbol('proto.prisca.v1.core.transaction_builder.GetTransactionBuilde
37
37
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.GetTransactionConfigById', null, global);
38
38
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.GetTransactionConfigList', null, global);
39
39
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.GetTransactionFieldsById', null, global);
40
- goog.exportSymbol('proto.prisca.v1.core.transaction_builder.PropertiesForm', null, global);
41
40
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.PropertiesRules', null, global);
42
41
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.PropertiesTable', null, global);
43
42
  goog.exportSymbol('proto.prisca.v1.core.transaction_builder.ResponseTransactionBuilder', null, global);
@@ -150,27 +149,6 @@ if (goog.DEBUG && !COMPILED) {
150
149
  */
151
150
  proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail.displayName = 'proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail';
152
151
  }
153
- /**
154
- * Generated by JsPbCodeGenerator.
155
- * @param {Array=} opt_data Optional initial data array, typically from a
156
- * server response, or constructed directly in Javascript. The array is used
157
- * in place and becomes part of the constructed object. It is not cloned.
158
- * If no data is provided, the constructed object will be empty, but still
159
- * valid.
160
- * @extends {jspb.Message}
161
- * @constructor
162
- */
163
- proto.prisca.v1.core.transaction_builder.PropertiesForm = function(opt_data) {
164
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
- };
166
- goog.inherits(proto.prisca.v1.core.transaction_builder.PropertiesForm, jspb.Message);
167
- if (goog.DEBUG && !COMPILED) {
168
- /**
169
- * @public
170
- * @override
171
- */
172
- proto.prisca.v1.core.transaction_builder.PropertiesForm.displayName = 'proto.prisca.v1.core.transaction_builder.PropertiesForm';
173
- }
174
152
  /**
175
153
  * Generated by JsPbCodeGenerator.
176
154
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1953,406 +1931,6 @@ proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail.prototyp
1953
1931
 
1954
1932
 
1955
1933
 
1956
- if (jspb.Message.GENERATE_TO_OBJECT) {
1957
- /**
1958
- * Creates an object representation of this proto.
1959
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1960
- * Optional fields that are not set will be set to undefined.
1961
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1962
- * For the list of reserved names please see:
1963
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1964
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1965
- * JSPB instance for transitional soy proto support:
1966
- * http://goto/soy-param-migration
1967
- * @return {!Object}
1968
- */
1969
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.toObject = function(opt_includeInstance) {
1970
- return proto.prisca.v1.core.transaction_builder.PropertiesForm.toObject(opt_includeInstance, this);
1971
- };
1972
-
1973
-
1974
- /**
1975
- * Static version of the {@see toObject} method.
1976
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1977
- * the JSPB instance for transitional soy proto support:
1978
- * http://goto/soy-param-migration
1979
- * @param {!proto.prisca.v1.core.transaction_builder.PropertiesForm} msg The msg instance to transform.
1980
- * @return {!Object}
1981
- * @suppress {unusedLocalVariables} f is only used for nested messages
1982
- */
1983
- proto.prisca.v1.core.transaction_builder.PropertiesForm.toObject = function(includeInstance, msg) {
1984
- var f, obj = {
1985
- autoFill: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1986
- keyOfFill: jspb.Message.getFieldWithDefault(msg, 2, ""),
1987
- parentKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
1988
- hintText: jspb.Message.getFieldWithDefault(msg, 4, ""),
1989
- placeHolder: jspb.Message.getFieldWithDefault(msg, 5, ""),
1990
- dataSource: jspb.Message.getFieldWithDefault(msg, 6, ""),
1991
- type: jspb.Message.getFieldWithDefault(msg, 7, ""),
1992
- defaultValue: jspb.Message.getFieldWithDefault(msg, 8, ""),
1993
- selectedValue: jspb.Message.getFieldWithDefault(msg, 9, ""),
1994
- isMaster: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
1995
- };
1996
-
1997
- if (includeInstance) {
1998
- obj.$jspbMessageInstance = msg;
1999
- }
2000
- return obj;
2001
- };
2002
- }
2003
-
2004
-
2005
- /**
2006
- * Deserializes binary data (in protobuf wire format).
2007
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2008
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm}
2009
- */
2010
- proto.prisca.v1.core.transaction_builder.PropertiesForm.deserializeBinary = function(bytes) {
2011
- var reader = new jspb.BinaryReader(bytes);
2012
- var msg = new proto.prisca.v1.core.transaction_builder.PropertiesForm;
2013
- return proto.prisca.v1.core.transaction_builder.PropertiesForm.deserializeBinaryFromReader(msg, reader);
2014
- };
2015
-
2016
-
2017
- /**
2018
- * Deserializes binary data (in protobuf wire format) from the
2019
- * given reader into the given message object.
2020
- * @param {!proto.prisca.v1.core.transaction_builder.PropertiesForm} msg The message object to deserialize into.
2021
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2022
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm}
2023
- */
2024
- proto.prisca.v1.core.transaction_builder.PropertiesForm.deserializeBinaryFromReader = function(msg, reader) {
2025
- while (reader.nextField()) {
2026
- if (reader.isEndGroup()) {
2027
- break;
2028
- }
2029
- var field = reader.getFieldNumber();
2030
- switch (field) {
2031
- case 1:
2032
- var value = /** @type {boolean} */ (reader.readBool());
2033
- msg.setAutoFill(value);
2034
- break;
2035
- case 2:
2036
- var value = /** @type {string} */ (reader.readString());
2037
- msg.setKeyOfFill(value);
2038
- break;
2039
- case 3:
2040
- var value = /** @type {string} */ (reader.readString());
2041
- msg.setParentKey(value);
2042
- break;
2043
- case 4:
2044
- var value = /** @type {string} */ (reader.readString());
2045
- msg.setHintText(value);
2046
- break;
2047
- case 5:
2048
- var value = /** @type {string} */ (reader.readString());
2049
- msg.setPlaceHolder(value);
2050
- break;
2051
- case 6:
2052
- var value = /** @type {string} */ (reader.readString());
2053
- msg.setDataSource(value);
2054
- break;
2055
- case 7:
2056
- var value = /** @type {string} */ (reader.readString());
2057
- msg.setType(value);
2058
- break;
2059
- case 8:
2060
- var value = /** @type {string} */ (reader.readString());
2061
- msg.setDefaultValue(value);
2062
- break;
2063
- case 9:
2064
- var value = /** @type {string} */ (reader.readString());
2065
- msg.setSelectedValue(value);
2066
- break;
2067
- case 10:
2068
- var value = /** @type {boolean} */ (reader.readBool());
2069
- msg.setIsMaster(value);
2070
- break;
2071
- default:
2072
- reader.skipField();
2073
- break;
2074
- }
2075
- }
2076
- return msg;
2077
- };
2078
-
2079
-
2080
- /**
2081
- * Serializes the message to binary data (in protobuf wire format).
2082
- * @return {!Uint8Array}
2083
- */
2084
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.serializeBinary = function() {
2085
- var writer = new jspb.BinaryWriter();
2086
- proto.prisca.v1.core.transaction_builder.PropertiesForm.serializeBinaryToWriter(this, writer);
2087
- return writer.getResultBuffer();
2088
- };
2089
-
2090
-
2091
- /**
2092
- * Serializes the given message to binary data (in protobuf wire
2093
- * format), writing to the given BinaryWriter.
2094
- * @param {!proto.prisca.v1.core.transaction_builder.PropertiesForm} message
2095
- * @param {!jspb.BinaryWriter} writer
2096
- * @suppress {unusedLocalVariables} f is only used for nested messages
2097
- */
2098
- proto.prisca.v1.core.transaction_builder.PropertiesForm.serializeBinaryToWriter = function(message, writer) {
2099
- var f = undefined;
2100
- f = message.getAutoFill();
2101
- if (f) {
2102
- writer.writeBool(
2103
- 1,
2104
- f
2105
- );
2106
- }
2107
- f = message.getKeyOfFill();
2108
- if (f.length > 0) {
2109
- writer.writeString(
2110
- 2,
2111
- f
2112
- );
2113
- }
2114
- f = message.getParentKey();
2115
- if (f.length > 0) {
2116
- writer.writeString(
2117
- 3,
2118
- f
2119
- );
2120
- }
2121
- f = message.getHintText();
2122
- if (f.length > 0) {
2123
- writer.writeString(
2124
- 4,
2125
- f
2126
- );
2127
- }
2128
- f = message.getPlaceHolder();
2129
- if (f.length > 0) {
2130
- writer.writeString(
2131
- 5,
2132
- f
2133
- );
2134
- }
2135
- f = message.getDataSource();
2136
- if (f.length > 0) {
2137
- writer.writeString(
2138
- 6,
2139
- f
2140
- );
2141
- }
2142
- f = message.getType();
2143
- if (f.length > 0) {
2144
- writer.writeString(
2145
- 7,
2146
- f
2147
- );
2148
- }
2149
- f = message.getDefaultValue();
2150
- if (f.length > 0) {
2151
- writer.writeString(
2152
- 8,
2153
- f
2154
- );
2155
- }
2156
- f = message.getSelectedValue();
2157
- if (f.length > 0) {
2158
- writer.writeString(
2159
- 9,
2160
- f
2161
- );
2162
- }
2163
- f = message.getIsMaster();
2164
- if (f) {
2165
- writer.writeBool(
2166
- 10,
2167
- f
2168
- );
2169
- }
2170
- };
2171
-
2172
-
2173
- /**
2174
- * optional bool auto_fill = 1;
2175
- * @return {boolean}
2176
- */
2177
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getAutoFill = function() {
2178
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
2179
- };
2180
-
2181
-
2182
- /**
2183
- * @param {boolean} value
2184
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2185
- */
2186
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setAutoFill = function(value) {
2187
- return jspb.Message.setProto3BooleanField(this, 1, value);
2188
- };
2189
-
2190
-
2191
- /**
2192
- * optional string key_of_fill = 2;
2193
- * @return {string}
2194
- */
2195
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getKeyOfFill = function() {
2196
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2197
- };
2198
-
2199
-
2200
- /**
2201
- * @param {string} value
2202
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2203
- */
2204
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setKeyOfFill = function(value) {
2205
- return jspb.Message.setProto3StringField(this, 2, value);
2206
- };
2207
-
2208
-
2209
- /**
2210
- * optional string parent_key = 3;
2211
- * @return {string}
2212
- */
2213
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getParentKey = function() {
2214
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2215
- };
2216
-
2217
-
2218
- /**
2219
- * @param {string} value
2220
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2221
- */
2222
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setParentKey = function(value) {
2223
- return jspb.Message.setProto3StringField(this, 3, value);
2224
- };
2225
-
2226
-
2227
- /**
2228
- * optional string hint_text = 4;
2229
- * @return {string}
2230
- */
2231
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getHintText = function() {
2232
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2233
- };
2234
-
2235
-
2236
- /**
2237
- * @param {string} value
2238
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2239
- */
2240
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setHintText = function(value) {
2241
- return jspb.Message.setProto3StringField(this, 4, value);
2242
- };
2243
-
2244
-
2245
- /**
2246
- * optional string place_holder = 5;
2247
- * @return {string}
2248
- */
2249
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getPlaceHolder = function() {
2250
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2251
- };
2252
-
2253
-
2254
- /**
2255
- * @param {string} value
2256
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2257
- */
2258
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setPlaceHolder = function(value) {
2259
- return jspb.Message.setProto3StringField(this, 5, value);
2260
- };
2261
-
2262
-
2263
- /**
2264
- * optional string data_source = 6;
2265
- * @return {string}
2266
- */
2267
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getDataSource = function() {
2268
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2269
- };
2270
-
2271
-
2272
- /**
2273
- * @param {string} value
2274
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2275
- */
2276
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setDataSource = function(value) {
2277
- return jspb.Message.setProto3StringField(this, 6, value);
2278
- };
2279
-
2280
-
2281
- /**
2282
- * optional string type = 7;
2283
- * @return {string}
2284
- */
2285
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getType = function() {
2286
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2287
- };
2288
-
2289
-
2290
- /**
2291
- * @param {string} value
2292
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2293
- */
2294
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setType = function(value) {
2295
- return jspb.Message.setProto3StringField(this, 7, value);
2296
- };
2297
-
2298
-
2299
- /**
2300
- * optional string default_value = 8;
2301
- * @return {string}
2302
- */
2303
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getDefaultValue = function() {
2304
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2305
- };
2306
-
2307
-
2308
- /**
2309
- * @param {string} value
2310
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2311
- */
2312
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setDefaultValue = function(value) {
2313
- return jspb.Message.setProto3StringField(this, 8, value);
2314
- };
2315
-
2316
-
2317
- /**
2318
- * optional string selected_value = 9;
2319
- * @return {string}
2320
- */
2321
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getSelectedValue = function() {
2322
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2323
- };
2324
-
2325
-
2326
- /**
2327
- * @param {string} value
2328
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2329
- */
2330
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setSelectedValue = function(value) {
2331
- return jspb.Message.setProto3StringField(this, 9, value);
2332
- };
2333
-
2334
-
2335
- /**
2336
- * optional bool is_master = 10;
2337
- * @return {boolean}
2338
- */
2339
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.getIsMaster = function() {
2340
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
2341
- };
2342
-
2343
-
2344
- /**
2345
- * @param {boolean} value
2346
- * @return {!proto.prisca.v1.core.transaction_builder.PropertiesForm} returns this
2347
- */
2348
- proto.prisca.v1.core.transaction_builder.PropertiesForm.prototype.setIsMaster = function(value) {
2349
- return jspb.Message.setProto3BooleanField(this, 10, value);
2350
- };
2351
-
2352
-
2353
-
2354
-
2355
-
2356
1934
  if (jspb.Message.GENERATE_TO_OBJECT) {
2357
1935
  /**
2358
1936
  * Creates an object representation of this proto.
@@ -3511,7 +3089,7 @@ proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.toObject = function(
3511
3089
  var f, obj = {
3512
3090
  id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
3513
3091
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
3514
- properties: (f = msg.getProperties()) && proto.prisca.v1.core.transaction_builder.PropertiesRules.toObject(includeInstance, f),
3092
+ properties: jspb.Message.getFieldWithDefault(msg, 3, ""),
3515
3093
  transactionBuilderFieldRef: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
3516
3094
  };
3517
3095
 
@@ -3558,8 +3136,7 @@ proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.deserializeBinaryFro
3558
3136
  msg.setName(value);
3559
3137
  break;
3560
3138
  case 3:
3561
- var value = new proto.prisca.v1.core.transaction_builder.PropertiesRules;
3562
- reader.readMessage(value,proto.prisca.v1.core.transaction_builder.PropertiesRules.deserializeBinaryFromReader);
3139
+ var value = /** @type {string} */ (reader.readString());
3563
3140
  msg.setProperties(value);
3564
3141
  break;
3565
3142
  case 4:
@@ -3610,11 +3187,10 @@ proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.serializeBinaryToWri
3610
3187
  );
3611
3188
  }
3612
3189
  f = message.getProperties();
3613
- if (f != null) {
3614
- writer.writeMessage(
3190
+ if (f.length > 0) {
3191
+ writer.writeString(
3615
3192
  3,
3616
- f,
3617
- proto.prisca.v1.core.transaction_builder.PropertiesRules.serializeBinaryToWriter
3193
+ f
3618
3194
  );
3619
3195
  }
3620
3196
  f = /** @type {string} */ (jspb.Message.getField(message, 4));
@@ -3682,39 +3258,20 @@ proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.setName =
3682
3258
 
3683
3259
 
3684
3260
  /**
3685
- * optional PropertiesRules properties = 3;
3686
- * @return {?proto.prisca.v1.core.transaction_builder.PropertiesRules}
3261
+ * optional string properties = 3;
3262
+ * @return {string}
3687
3263
  */
3688
3264
  proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.getProperties = function() {
3689
- return /** @type{?proto.prisca.v1.core.transaction_builder.PropertiesRules} */ (
3690
- jspb.Message.getWrapperField(this, proto.prisca.v1.core.transaction_builder.PropertiesRules, 3));
3691
- };
3692
-
3693
-
3694
- /**
3695
- * @param {?proto.prisca.v1.core.transaction_builder.PropertiesRules|undefined} value
3696
- * @return {!proto.prisca.v1.core.transaction_builder.FieldRulesWithProp} returns this
3697
- */
3698
- proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.setProperties = function(value) {
3699
- return jspb.Message.setWrapperField(this, 3, value);
3265
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3700
3266
  };
3701
3267
 
3702
3268
 
3703
3269
  /**
3704
- * Clears the message field making it undefined.
3270
+ * @param {string} value
3705
3271
  * @return {!proto.prisca.v1.core.transaction_builder.FieldRulesWithProp} returns this
3706
3272
  */
3707
- proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.clearProperties = function() {
3708
- return this.setProperties(undefined);
3709
- };
3710
-
3711
-
3712
- /**
3713
- * Returns whether this field is set.
3714
- * @return {boolean}
3715
- */
3716
- proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.hasProperties = function() {
3717
- return jspb.Message.getField(this, 3) != null;
3273
+ proto.prisca.v1.core.transaction_builder.FieldRulesWithProp.prototype.setProperties = function(value) {
3274
+ return jspb.Message.setProto3StringField(this, 3, value);
3718
3275
  };
3719
3276
 
3720
3277