protobuf-platform 1.2.360 → 1.2.362

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/user/user_pb.js CHANGED
@@ -34,9 +34,13 @@ goog.exportSymbol('proto.user.CheckWithdrawalEligibilityRequest', null, global);
34
34
  goog.exportSymbol('proto.user.CheckWithdrawalEligibilityResponse', null, global);
35
35
  goog.exportSymbol('proto.user.ConfirmTwoFaRequest', null, global);
36
36
  goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
37
+ goog.exportSymbol('proto.user.CreatePresetRequest', null, global);
38
+ goog.exportSymbol('proto.user.CreatePresetResponse', null, global);
37
39
  goog.exportSymbol('proto.user.CreateUserKycDocumentMetadataRequest', null, global);
38
40
  goog.exportSymbol('proto.user.DashboardRequest', null, global);
39
41
  goog.exportSymbol('proto.user.DashboardResponse', null, global);
42
+ goog.exportSymbol('proto.user.DeletePresetRequest', null, global);
43
+ goog.exportSymbol('proto.user.DeletePresetResponse', null, global);
40
44
  goog.exportSymbol('proto.user.EmailConfirmationRequest', null, global);
41
45
  goog.exportSymbol('proto.user.EmailConfirmedRequest', null, global);
42
46
  goog.exportSymbol('proto.user.File', null, global);
@@ -63,10 +67,16 @@ goog.exportSymbol('proto.user.NoteStatusResponse', null, global);
63
67
  goog.exportSymbol('proto.user.PaginationRequest', null, global);
64
68
  goog.exportSymbol('proto.user.PingRequest', null, global);
65
69
  goog.exportSymbol('proto.user.PongResponse', null, global);
70
+ goog.exportSymbol('proto.user.PresetItem', null, global);
71
+ goog.exportSymbol('proto.user.PresetListItem', null, global);
66
72
  goog.exportSymbol('proto.user.ProcessUserKycProviderWebhookRequest', null, global);
67
73
  goog.exportSymbol('proto.user.ProcessUserKycProviderWebhookResponse', null, global);
74
+ goog.exportSymbol('proto.user.ReadListPresetsRequest', null, global);
75
+ goog.exportSymbol('proto.user.ReadListPresetsResponse', null, global);
68
76
  goog.exportSymbol('proto.user.ReadListRiskPlayersRequest', null, global);
69
77
  goog.exportSymbol('proto.user.ReadListUserKycDocumentsRequest', null, global);
78
+ goog.exportSymbol('proto.user.ReadPresetRequest', null, global);
79
+ goog.exportSymbol('proto.user.ReadPresetResponse', null, global);
70
80
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, global);
71
81
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
72
82
  goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
@@ -78,6 +88,8 @@ goog.exportSymbol('proto.user.ReadUserManualRestrictionsRequest', null, global);
78
88
  goog.exportSymbol('proto.user.ReadUserRiskProfileRequest', null, global);
79
89
  goog.exportSymbol('proto.user.RegistrationRequest', null, global);
80
90
  goog.exportSymbol('proto.user.ResetPasswordConfirmationRequest', null, global);
91
+ goog.exportSymbol('proto.user.ResolvePresetByCodeRequest', null, global);
92
+ goog.exportSymbol('proto.user.ResolvePresetByCodeResponse', null, global);
81
93
  goog.exportSymbol('proto.user.RiskPermissionMatricesResponse', null, global);
82
94
  goog.exportSymbol('proto.user.RiskPermissionMatrixItem', null, global);
83
95
  goog.exportSymbol('proto.user.RiskPermissionMatrixLimitItem', null, global);
@@ -119,6 +131,8 @@ goog.exportSymbol('proto.user.SyncUserKycProviderStatusRequest', null, global);
119
131
  goog.exportSymbol('proto.user.TelegramLoginRequest', null, global);
120
132
  goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
121
133
  goog.exportSymbol('proto.user.UpdatePreDepositProfileFieldsRequest', null, global);
134
+ goog.exportSymbol('proto.user.UpdatePresetRequest', null, global);
135
+ goog.exportSymbol('proto.user.UpdatePresetResponse', null, global);
122
136
  goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixLimitRequest', null, global);
123
137
  goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixRequest', null, global);
124
138
  goog.exportSymbol('proto.user.UpdateUserKycDocumentReviewRequest', null, global);
@@ -2034,6 +2048,300 @@ if (goog.DEBUG && !COMPILED) {
2034
2048
  */
2035
2049
  proto.user.CategoryItemsResponse.displayName = 'proto.user.CategoryItemsResponse';
2036
2050
  }
2051
+ /**
2052
+ * Generated by JsPbCodeGenerator.
2053
+ * @param {Array=} opt_data Optional initial data array, typically from a
2054
+ * server response, or constructed directly in Javascript. The array is used
2055
+ * in place and becomes part of the constructed object. It is not cloned.
2056
+ * If no data is provided, the constructed object will be empty, but still
2057
+ * valid.
2058
+ * @extends {jspb.Message}
2059
+ * @constructor
2060
+ */
2061
+ proto.user.PresetItem = function(opt_data) {
2062
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2063
+ };
2064
+ goog.inherits(proto.user.PresetItem, jspb.Message);
2065
+ if (goog.DEBUG && !COMPILED) {
2066
+ /**
2067
+ * @public
2068
+ * @override
2069
+ */
2070
+ proto.user.PresetItem.displayName = 'proto.user.PresetItem';
2071
+ }
2072
+ /**
2073
+ * Generated by JsPbCodeGenerator.
2074
+ * @param {Array=} opt_data Optional initial data array, typically from a
2075
+ * server response, or constructed directly in Javascript. The array is used
2076
+ * in place and becomes part of the constructed object. It is not cloned.
2077
+ * If no data is provided, the constructed object will be empty, but still
2078
+ * valid.
2079
+ * @extends {jspb.Message}
2080
+ * @constructor
2081
+ */
2082
+ proto.user.PresetListItem = function(opt_data) {
2083
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2084
+ };
2085
+ goog.inherits(proto.user.PresetListItem, jspb.Message);
2086
+ if (goog.DEBUG && !COMPILED) {
2087
+ /**
2088
+ * @public
2089
+ * @override
2090
+ */
2091
+ proto.user.PresetListItem.displayName = 'proto.user.PresetListItem';
2092
+ }
2093
+ /**
2094
+ * Generated by JsPbCodeGenerator.
2095
+ * @param {Array=} opt_data Optional initial data array, typically from a
2096
+ * server response, or constructed directly in Javascript. The array is used
2097
+ * in place and becomes part of the constructed object. It is not cloned.
2098
+ * If no data is provided, the constructed object will be empty, but still
2099
+ * valid.
2100
+ * @extends {jspb.Message}
2101
+ * @constructor
2102
+ */
2103
+ proto.user.CreatePresetRequest = function(opt_data) {
2104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2105
+ };
2106
+ goog.inherits(proto.user.CreatePresetRequest, jspb.Message);
2107
+ if (goog.DEBUG && !COMPILED) {
2108
+ /**
2109
+ * @public
2110
+ * @override
2111
+ */
2112
+ proto.user.CreatePresetRequest.displayName = 'proto.user.CreatePresetRequest';
2113
+ }
2114
+ /**
2115
+ * Generated by JsPbCodeGenerator.
2116
+ * @param {Array=} opt_data Optional initial data array, typically from a
2117
+ * server response, or constructed directly in Javascript. The array is used
2118
+ * in place and becomes part of the constructed object. It is not cloned.
2119
+ * If no data is provided, the constructed object will be empty, but still
2120
+ * valid.
2121
+ * @extends {jspb.Message}
2122
+ * @constructor
2123
+ */
2124
+ proto.user.CreatePresetResponse = function(opt_data) {
2125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2126
+ };
2127
+ goog.inherits(proto.user.CreatePresetResponse, jspb.Message);
2128
+ if (goog.DEBUG && !COMPILED) {
2129
+ /**
2130
+ * @public
2131
+ * @override
2132
+ */
2133
+ proto.user.CreatePresetResponse.displayName = 'proto.user.CreatePresetResponse';
2134
+ }
2135
+ /**
2136
+ * Generated by JsPbCodeGenerator.
2137
+ * @param {Array=} opt_data Optional initial data array, typically from a
2138
+ * server response, or constructed directly in Javascript. The array is used
2139
+ * in place and becomes part of the constructed object. It is not cloned.
2140
+ * If no data is provided, the constructed object will be empty, but still
2141
+ * valid.
2142
+ * @extends {jspb.Message}
2143
+ * @constructor
2144
+ */
2145
+ proto.user.ReadPresetRequest = function(opt_data) {
2146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2147
+ };
2148
+ goog.inherits(proto.user.ReadPresetRequest, jspb.Message);
2149
+ if (goog.DEBUG && !COMPILED) {
2150
+ /**
2151
+ * @public
2152
+ * @override
2153
+ */
2154
+ proto.user.ReadPresetRequest.displayName = 'proto.user.ReadPresetRequest';
2155
+ }
2156
+ /**
2157
+ * Generated by JsPbCodeGenerator.
2158
+ * @param {Array=} opt_data Optional initial data array, typically from a
2159
+ * server response, or constructed directly in Javascript. The array is used
2160
+ * in place and becomes part of the constructed object. It is not cloned.
2161
+ * If no data is provided, the constructed object will be empty, but still
2162
+ * valid.
2163
+ * @extends {jspb.Message}
2164
+ * @constructor
2165
+ */
2166
+ proto.user.ReadPresetResponse = function(opt_data) {
2167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2168
+ };
2169
+ goog.inherits(proto.user.ReadPresetResponse, jspb.Message);
2170
+ if (goog.DEBUG && !COMPILED) {
2171
+ /**
2172
+ * @public
2173
+ * @override
2174
+ */
2175
+ proto.user.ReadPresetResponse.displayName = 'proto.user.ReadPresetResponse';
2176
+ }
2177
+ /**
2178
+ * Generated by JsPbCodeGenerator.
2179
+ * @param {Array=} opt_data Optional initial data array, typically from a
2180
+ * server response, or constructed directly in Javascript. The array is used
2181
+ * in place and becomes part of the constructed object. It is not cloned.
2182
+ * If no data is provided, the constructed object will be empty, but still
2183
+ * valid.
2184
+ * @extends {jspb.Message}
2185
+ * @constructor
2186
+ */
2187
+ proto.user.UpdatePresetRequest = function(opt_data) {
2188
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2189
+ };
2190
+ goog.inherits(proto.user.UpdatePresetRequest, jspb.Message);
2191
+ if (goog.DEBUG && !COMPILED) {
2192
+ /**
2193
+ * @public
2194
+ * @override
2195
+ */
2196
+ proto.user.UpdatePresetRequest.displayName = 'proto.user.UpdatePresetRequest';
2197
+ }
2198
+ /**
2199
+ * Generated by JsPbCodeGenerator.
2200
+ * @param {Array=} opt_data Optional initial data array, typically from a
2201
+ * server response, or constructed directly in Javascript. The array is used
2202
+ * in place and becomes part of the constructed object. It is not cloned.
2203
+ * If no data is provided, the constructed object will be empty, but still
2204
+ * valid.
2205
+ * @extends {jspb.Message}
2206
+ * @constructor
2207
+ */
2208
+ proto.user.UpdatePresetResponse = function(opt_data) {
2209
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2210
+ };
2211
+ goog.inherits(proto.user.UpdatePresetResponse, jspb.Message);
2212
+ if (goog.DEBUG && !COMPILED) {
2213
+ /**
2214
+ * @public
2215
+ * @override
2216
+ */
2217
+ proto.user.UpdatePresetResponse.displayName = 'proto.user.UpdatePresetResponse';
2218
+ }
2219
+ /**
2220
+ * Generated by JsPbCodeGenerator.
2221
+ * @param {Array=} opt_data Optional initial data array, typically from a
2222
+ * server response, or constructed directly in Javascript. The array is used
2223
+ * in place and becomes part of the constructed object. It is not cloned.
2224
+ * If no data is provided, the constructed object will be empty, but still
2225
+ * valid.
2226
+ * @extends {jspb.Message}
2227
+ * @constructor
2228
+ */
2229
+ proto.user.DeletePresetRequest = function(opt_data) {
2230
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2231
+ };
2232
+ goog.inherits(proto.user.DeletePresetRequest, jspb.Message);
2233
+ if (goog.DEBUG && !COMPILED) {
2234
+ /**
2235
+ * @public
2236
+ * @override
2237
+ */
2238
+ proto.user.DeletePresetRequest.displayName = 'proto.user.DeletePresetRequest';
2239
+ }
2240
+ /**
2241
+ * Generated by JsPbCodeGenerator.
2242
+ * @param {Array=} opt_data Optional initial data array, typically from a
2243
+ * server response, or constructed directly in Javascript. The array is used
2244
+ * in place and becomes part of the constructed object. It is not cloned.
2245
+ * If no data is provided, the constructed object will be empty, but still
2246
+ * valid.
2247
+ * @extends {jspb.Message}
2248
+ * @constructor
2249
+ */
2250
+ proto.user.DeletePresetResponse = function(opt_data) {
2251
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2252
+ };
2253
+ goog.inherits(proto.user.DeletePresetResponse, jspb.Message);
2254
+ if (goog.DEBUG && !COMPILED) {
2255
+ /**
2256
+ * @public
2257
+ * @override
2258
+ */
2259
+ proto.user.DeletePresetResponse.displayName = 'proto.user.DeletePresetResponse';
2260
+ }
2261
+ /**
2262
+ * Generated by JsPbCodeGenerator.
2263
+ * @param {Array=} opt_data Optional initial data array, typically from a
2264
+ * server response, or constructed directly in Javascript. The array is used
2265
+ * in place and becomes part of the constructed object. It is not cloned.
2266
+ * If no data is provided, the constructed object will be empty, but still
2267
+ * valid.
2268
+ * @extends {jspb.Message}
2269
+ * @constructor
2270
+ */
2271
+ proto.user.ReadListPresetsRequest = function(opt_data) {
2272
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2273
+ };
2274
+ goog.inherits(proto.user.ReadListPresetsRequest, jspb.Message);
2275
+ if (goog.DEBUG && !COMPILED) {
2276
+ /**
2277
+ * @public
2278
+ * @override
2279
+ */
2280
+ proto.user.ReadListPresetsRequest.displayName = 'proto.user.ReadListPresetsRequest';
2281
+ }
2282
+ /**
2283
+ * Generated by JsPbCodeGenerator.
2284
+ * @param {Array=} opt_data Optional initial data array, typically from a
2285
+ * server response, or constructed directly in Javascript. The array is used
2286
+ * in place and becomes part of the constructed object. It is not cloned.
2287
+ * If no data is provided, the constructed object will be empty, but still
2288
+ * valid.
2289
+ * @extends {jspb.Message}
2290
+ * @constructor
2291
+ */
2292
+ proto.user.ReadListPresetsResponse = function(opt_data) {
2293
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.ReadListPresetsResponse.repeatedFields_, null);
2294
+ };
2295
+ goog.inherits(proto.user.ReadListPresetsResponse, jspb.Message);
2296
+ if (goog.DEBUG && !COMPILED) {
2297
+ /**
2298
+ * @public
2299
+ * @override
2300
+ */
2301
+ proto.user.ReadListPresetsResponse.displayName = 'proto.user.ReadListPresetsResponse';
2302
+ }
2303
+ /**
2304
+ * Generated by JsPbCodeGenerator.
2305
+ * @param {Array=} opt_data Optional initial data array, typically from a
2306
+ * server response, or constructed directly in Javascript. The array is used
2307
+ * in place and becomes part of the constructed object. It is not cloned.
2308
+ * If no data is provided, the constructed object will be empty, but still
2309
+ * valid.
2310
+ * @extends {jspb.Message}
2311
+ * @constructor
2312
+ */
2313
+ proto.user.ResolvePresetByCodeRequest = function(opt_data) {
2314
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2315
+ };
2316
+ goog.inherits(proto.user.ResolvePresetByCodeRequest, jspb.Message);
2317
+ if (goog.DEBUG && !COMPILED) {
2318
+ /**
2319
+ * @public
2320
+ * @override
2321
+ */
2322
+ proto.user.ResolvePresetByCodeRequest.displayName = 'proto.user.ResolvePresetByCodeRequest';
2323
+ }
2324
+ /**
2325
+ * Generated by JsPbCodeGenerator.
2326
+ * @param {Array=} opt_data Optional initial data array, typically from a
2327
+ * server response, or constructed directly in Javascript. The array is used
2328
+ * in place and becomes part of the constructed object. It is not cloned.
2329
+ * If no data is provided, the constructed object will be empty, but still
2330
+ * valid.
2331
+ * @extends {jspb.Message}
2332
+ * @constructor
2333
+ */
2334
+ proto.user.ResolvePresetByCodeResponse = function(opt_data) {
2335
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2336
+ };
2337
+ goog.inherits(proto.user.ResolvePresetByCodeResponse, jspb.Message);
2338
+ if (goog.DEBUG && !COMPILED) {
2339
+ /**
2340
+ * @public
2341
+ * @override
2342
+ */
2343
+ proto.user.ResolvePresetByCodeResponse.displayName = 'proto.user.ResolvePresetByCodeResponse';
2344
+ }
2037
2345
  /**
2038
2346
  * Generated by JsPbCodeGenerator.
2039
2347
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5341,7 +5649,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
5341
5649
  referral: jspb.Message.getFieldWithDefault(msg, 21, ""),
5342
5650
  device: jspb.Message.getFieldWithDefault(msg, 22, ""),
5343
5651
  affiliateInfo: jspb.Message.getFieldWithDefault(msg, 23, ""),
5344
- seonSession: jspb.Message.getFieldWithDefault(msg, 24, "")
5652
+ seonSession: jspb.Message.getFieldWithDefault(msg, 24, ""),
5653
+ presetCode: jspb.Message.getFieldWithDefault(msg, 25, "")
5345
5654
  };
5346
5655
 
5347
5656
  if (includeInstance) {
@@ -5474,6 +5783,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
5474
5783
  var value = /** @type {string} */ (reader.readString());
5475
5784
  msg.setSeonSession(value);
5476
5785
  break;
5786
+ case 25:
5787
+ var value = /** @type {string} */ (reader.readString());
5788
+ msg.setPresetCode(value);
5789
+ break;
5477
5790
  default:
5478
5791
  reader.skipField();
5479
5792
  break;
@@ -5671,6 +5984,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
5671
5984
  f
5672
5985
  );
5673
5986
  }
5987
+ f = /** @type {string} */ (jspb.Message.getField(message, 25));
5988
+ if (f != null) {
5989
+ writer.writeString(
5990
+ 25,
5991
+ f
5992
+ );
5993
+ }
5674
5994
  };
5675
5995
 
5676
5996
 
@@ -6484,6 +6804,42 @@ proto.user.RegistrationRequest.prototype.hasSeonSession = function() {
6484
6804
  };
6485
6805
 
6486
6806
 
6807
+ /**
6808
+ * optional string preset_code = 25;
6809
+ * @return {string}
6810
+ */
6811
+ proto.user.RegistrationRequest.prototype.getPresetCode = function() {
6812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
6813
+ };
6814
+
6815
+
6816
+ /**
6817
+ * @param {string} value
6818
+ * @return {!proto.user.RegistrationRequest} returns this
6819
+ */
6820
+ proto.user.RegistrationRequest.prototype.setPresetCode = function(value) {
6821
+ return jspb.Message.setField(this, 25, value);
6822
+ };
6823
+
6824
+
6825
+ /**
6826
+ * Clears the field making it undefined.
6827
+ * @return {!proto.user.RegistrationRequest} returns this
6828
+ */
6829
+ proto.user.RegistrationRequest.prototype.clearPresetCode = function() {
6830
+ return jspb.Message.setField(this, 25, undefined);
6831
+ };
6832
+
6833
+
6834
+ /**
6835
+ * Returns whether this field is set.
6836
+ * @return {boolean}
6837
+ */
6838
+ proto.user.RegistrationRequest.prototype.hasPresetCode = function() {
6839
+ return jspb.Message.getField(this, 25) != null;
6840
+ };
6841
+
6842
+
6487
6843
 
6488
6844
 
6489
6845
 
@@ -14751,7 +15107,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
14751
15107
  gender: jspb.Message.getFieldWithDefault(msg, 37, ""),
14752
15108
  riskScore: jspb.Message.getFieldWithDefault(msg, 38, 0),
14753
15109
  address: jspb.Message.getFieldWithDefault(msg, 39, ""),
14754
- seonFraudScore: jspb.Message.getFieldWithDefault(msg, 40, 0)
15110
+ seonFraudScore: jspb.Message.getFieldWithDefault(msg, 40, 0),
15111
+ presetId: jspb.Message.getFieldWithDefault(msg, 41, 0)
14755
15112
  };
14756
15113
 
14757
15114
  if (includeInstance) {
@@ -14949,6 +15306,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
14949
15306
  var value = /** @type {number} */ (reader.readInt32());
14950
15307
  msg.setSeonFraudScore(value);
14951
15308
  break;
15309
+ case 41:
15310
+ var value = /** @type {number} */ (reader.readInt32());
15311
+ msg.setPresetId(value);
15312
+ break;
14952
15313
  default:
14953
15314
  reader.skipField();
14954
15315
  break;
@@ -15259,6 +15620,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
15259
15620
  f
15260
15621
  );
15261
15622
  }
15623
+ f = /** @type {number} */ (jspb.Message.getField(message, 41));
15624
+ if (f != null) {
15625
+ writer.writeInt32(
15626
+ 41,
15627
+ f
15628
+ );
15629
+ }
15262
15630
  };
15263
15631
 
15264
15632
 
@@ -16667,6 +17035,42 @@ proto.user.UserDataResponse.prototype.hasSeonFraudScore = function() {
16667
17035
  };
16668
17036
 
16669
17037
 
17038
+ /**
17039
+ * optional int32 preset_id = 41;
17040
+ * @return {number}
17041
+ */
17042
+ proto.user.UserDataResponse.prototype.getPresetId = function() {
17043
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 41, 0));
17044
+ };
17045
+
17046
+
17047
+ /**
17048
+ * @param {number} value
17049
+ * @return {!proto.user.UserDataResponse} returns this
17050
+ */
17051
+ proto.user.UserDataResponse.prototype.setPresetId = function(value) {
17052
+ return jspb.Message.setField(this, 41, value);
17053
+ };
17054
+
17055
+
17056
+ /**
17057
+ * Clears the field making it undefined.
17058
+ * @return {!proto.user.UserDataResponse} returns this
17059
+ */
17060
+ proto.user.UserDataResponse.prototype.clearPresetId = function() {
17061
+ return jspb.Message.setField(this, 41, undefined);
17062
+ };
17063
+
17064
+
17065
+ /**
17066
+ * Returns whether this field is set.
17067
+ * @return {boolean}
17068
+ */
17069
+ proto.user.UserDataResponse.prototype.hasPresetId = function() {
17070
+ return jspb.Message.getField(this, 41) != null;
17071
+ };
17072
+
17073
+
16670
17074
 
16671
17075
 
16672
17076
 
@@ -36234,6 +36638,2891 @@ proto.user.CategoryItemsResponse.prototype.hasTotalItems = function() {
36234
36638
 
36235
36639
 
36236
36640
 
36641
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36642
+ /**
36643
+ * Creates an object representation of this proto.
36644
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36645
+ * Optional fields that are not set will be set to undefined.
36646
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36647
+ * For the list of reserved names please see:
36648
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36649
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36650
+ * JSPB instance for transitional soy proto support:
36651
+ * http://goto/soy-param-migration
36652
+ * @return {!Object}
36653
+ */
36654
+ proto.user.PresetItem.prototype.toObject = function(opt_includeInstance) {
36655
+ return proto.user.PresetItem.toObject(opt_includeInstance, this);
36656
+ };
36657
+
36658
+
36659
+ /**
36660
+ * Static version of the {@see toObject} method.
36661
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36662
+ * the JSPB instance for transitional soy proto support:
36663
+ * http://goto/soy-param-migration
36664
+ * @param {!proto.user.PresetItem} msg The msg instance to transform.
36665
+ * @return {!Object}
36666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36667
+ */
36668
+ proto.user.PresetItem.toObject = function(includeInstance, msg) {
36669
+ var f, obj = {
36670
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
36671
+ presetCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
36672
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
36673
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
36674
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
36675
+ };
36676
+
36677
+ if (includeInstance) {
36678
+ obj.$jspbMessageInstance = msg;
36679
+ }
36680
+ return obj;
36681
+ };
36682
+ }
36683
+
36684
+
36685
+ /**
36686
+ * Deserializes binary data (in protobuf wire format).
36687
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36688
+ * @return {!proto.user.PresetItem}
36689
+ */
36690
+ proto.user.PresetItem.deserializeBinary = function(bytes) {
36691
+ var reader = new jspb.BinaryReader(bytes);
36692
+ var msg = new proto.user.PresetItem;
36693
+ return proto.user.PresetItem.deserializeBinaryFromReader(msg, reader);
36694
+ };
36695
+
36696
+
36697
+ /**
36698
+ * Deserializes binary data (in protobuf wire format) from the
36699
+ * given reader into the given message object.
36700
+ * @param {!proto.user.PresetItem} msg The message object to deserialize into.
36701
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36702
+ * @return {!proto.user.PresetItem}
36703
+ */
36704
+ proto.user.PresetItem.deserializeBinaryFromReader = function(msg, reader) {
36705
+ while (reader.nextField()) {
36706
+ if (reader.isEndGroup()) {
36707
+ break;
36708
+ }
36709
+ var field = reader.getFieldNumber();
36710
+ switch (field) {
36711
+ case 1:
36712
+ var value = /** @type {number} */ (reader.readInt32());
36713
+ msg.setId(value);
36714
+ break;
36715
+ case 2:
36716
+ var value = /** @type {string} */ (reader.readString());
36717
+ msg.setPresetCode(value);
36718
+ break;
36719
+ case 3:
36720
+ var value = /** @type {string} */ (reader.readString());
36721
+ msg.setTitle(value);
36722
+ break;
36723
+ case 4:
36724
+ var value = /** @type {string} */ (reader.readString());
36725
+ msg.setDescription(value);
36726
+ break;
36727
+ case 5:
36728
+ var value = /** @type {boolean} */ (reader.readBool());
36729
+ msg.setIsActive(value);
36730
+ break;
36731
+ default:
36732
+ reader.skipField();
36733
+ break;
36734
+ }
36735
+ }
36736
+ return msg;
36737
+ };
36738
+
36739
+
36740
+ /**
36741
+ * Serializes the message to binary data (in protobuf wire format).
36742
+ * @return {!Uint8Array}
36743
+ */
36744
+ proto.user.PresetItem.prototype.serializeBinary = function() {
36745
+ var writer = new jspb.BinaryWriter();
36746
+ proto.user.PresetItem.serializeBinaryToWriter(this, writer);
36747
+ return writer.getResultBuffer();
36748
+ };
36749
+
36750
+
36751
+ /**
36752
+ * Serializes the given message to binary data (in protobuf wire
36753
+ * format), writing to the given BinaryWriter.
36754
+ * @param {!proto.user.PresetItem} message
36755
+ * @param {!jspb.BinaryWriter} writer
36756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36757
+ */
36758
+ proto.user.PresetItem.serializeBinaryToWriter = function(message, writer) {
36759
+ var f = undefined;
36760
+ f = message.getId();
36761
+ if (f !== 0) {
36762
+ writer.writeInt32(
36763
+ 1,
36764
+ f
36765
+ );
36766
+ }
36767
+ f = message.getPresetCode();
36768
+ if (f.length > 0) {
36769
+ writer.writeString(
36770
+ 2,
36771
+ f
36772
+ );
36773
+ }
36774
+ f = message.getTitle();
36775
+ if (f.length > 0) {
36776
+ writer.writeString(
36777
+ 3,
36778
+ f
36779
+ );
36780
+ }
36781
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
36782
+ if (f != null) {
36783
+ writer.writeString(
36784
+ 4,
36785
+ f
36786
+ );
36787
+ }
36788
+ f = message.getIsActive();
36789
+ if (f) {
36790
+ writer.writeBool(
36791
+ 5,
36792
+ f
36793
+ );
36794
+ }
36795
+ };
36796
+
36797
+
36798
+ /**
36799
+ * optional int32 id = 1;
36800
+ * @return {number}
36801
+ */
36802
+ proto.user.PresetItem.prototype.getId = function() {
36803
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
36804
+ };
36805
+
36806
+
36807
+ /**
36808
+ * @param {number} value
36809
+ * @return {!proto.user.PresetItem} returns this
36810
+ */
36811
+ proto.user.PresetItem.prototype.setId = function(value) {
36812
+ return jspb.Message.setProto3IntField(this, 1, value);
36813
+ };
36814
+
36815
+
36816
+ /**
36817
+ * optional string preset_code = 2;
36818
+ * @return {string}
36819
+ */
36820
+ proto.user.PresetItem.prototype.getPresetCode = function() {
36821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
36822
+ };
36823
+
36824
+
36825
+ /**
36826
+ * @param {string} value
36827
+ * @return {!proto.user.PresetItem} returns this
36828
+ */
36829
+ proto.user.PresetItem.prototype.setPresetCode = function(value) {
36830
+ return jspb.Message.setProto3StringField(this, 2, value);
36831
+ };
36832
+
36833
+
36834
+ /**
36835
+ * optional string title = 3;
36836
+ * @return {string}
36837
+ */
36838
+ proto.user.PresetItem.prototype.getTitle = function() {
36839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
36840
+ };
36841
+
36842
+
36843
+ /**
36844
+ * @param {string} value
36845
+ * @return {!proto.user.PresetItem} returns this
36846
+ */
36847
+ proto.user.PresetItem.prototype.setTitle = function(value) {
36848
+ return jspb.Message.setProto3StringField(this, 3, value);
36849
+ };
36850
+
36851
+
36852
+ /**
36853
+ * optional string description = 4;
36854
+ * @return {string}
36855
+ */
36856
+ proto.user.PresetItem.prototype.getDescription = function() {
36857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
36858
+ };
36859
+
36860
+
36861
+ /**
36862
+ * @param {string} value
36863
+ * @return {!proto.user.PresetItem} returns this
36864
+ */
36865
+ proto.user.PresetItem.prototype.setDescription = function(value) {
36866
+ return jspb.Message.setField(this, 4, value);
36867
+ };
36868
+
36869
+
36870
+ /**
36871
+ * Clears the field making it undefined.
36872
+ * @return {!proto.user.PresetItem} returns this
36873
+ */
36874
+ proto.user.PresetItem.prototype.clearDescription = function() {
36875
+ return jspb.Message.setField(this, 4, undefined);
36876
+ };
36877
+
36878
+
36879
+ /**
36880
+ * Returns whether this field is set.
36881
+ * @return {boolean}
36882
+ */
36883
+ proto.user.PresetItem.prototype.hasDescription = function() {
36884
+ return jspb.Message.getField(this, 4) != null;
36885
+ };
36886
+
36887
+
36888
+ /**
36889
+ * optional bool is_active = 5;
36890
+ * @return {boolean}
36891
+ */
36892
+ proto.user.PresetItem.prototype.getIsActive = function() {
36893
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
36894
+ };
36895
+
36896
+
36897
+ /**
36898
+ * @param {boolean} value
36899
+ * @return {!proto.user.PresetItem} returns this
36900
+ */
36901
+ proto.user.PresetItem.prototype.setIsActive = function(value) {
36902
+ return jspb.Message.setProto3BooleanField(this, 5, value);
36903
+ };
36904
+
36905
+
36906
+
36907
+
36908
+
36909
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36910
+ /**
36911
+ * Creates an object representation of this proto.
36912
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36913
+ * Optional fields that are not set will be set to undefined.
36914
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36915
+ * For the list of reserved names please see:
36916
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36917
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36918
+ * JSPB instance for transitional soy proto support:
36919
+ * http://goto/soy-param-migration
36920
+ * @return {!Object}
36921
+ */
36922
+ proto.user.PresetListItem.prototype.toObject = function(opt_includeInstance) {
36923
+ return proto.user.PresetListItem.toObject(opt_includeInstance, this);
36924
+ };
36925
+
36926
+
36927
+ /**
36928
+ * Static version of the {@see toObject} method.
36929
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36930
+ * the JSPB instance for transitional soy proto support:
36931
+ * http://goto/soy-param-migration
36932
+ * @param {!proto.user.PresetListItem} msg The msg instance to transform.
36933
+ * @return {!Object}
36934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36935
+ */
36936
+ proto.user.PresetListItem.toObject = function(includeInstance, msg) {
36937
+ var f, obj = {
36938
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
36939
+ presetCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
36940
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
36941
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
36942
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
36943
+ };
36944
+
36945
+ if (includeInstance) {
36946
+ obj.$jspbMessageInstance = msg;
36947
+ }
36948
+ return obj;
36949
+ };
36950
+ }
36951
+
36952
+
36953
+ /**
36954
+ * Deserializes binary data (in protobuf wire format).
36955
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36956
+ * @return {!proto.user.PresetListItem}
36957
+ */
36958
+ proto.user.PresetListItem.deserializeBinary = function(bytes) {
36959
+ var reader = new jspb.BinaryReader(bytes);
36960
+ var msg = new proto.user.PresetListItem;
36961
+ return proto.user.PresetListItem.deserializeBinaryFromReader(msg, reader);
36962
+ };
36963
+
36964
+
36965
+ /**
36966
+ * Deserializes binary data (in protobuf wire format) from the
36967
+ * given reader into the given message object.
36968
+ * @param {!proto.user.PresetListItem} msg The message object to deserialize into.
36969
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36970
+ * @return {!proto.user.PresetListItem}
36971
+ */
36972
+ proto.user.PresetListItem.deserializeBinaryFromReader = function(msg, reader) {
36973
+ while (reader.nextField()) {
36974
+ if (reader.isEndGroup()) {
36975
+ break;
36976
+ }
36977
+ var field = reader.getFieldNumber();
36978
+ switch (field) {
36979
+ case 1:
36980
+ var value = /** @type {number} */ (reader.readInt32());
36981
+ msg.setId(value);
36982
+ break;
36983
+ case 2:
36984
+ var value = /** @type {string} */ (reader.readString());
36985
+ msg.setPresetCode(value);
36986
+ break;
36987
+ case 3:
36988
+ var value = /** @type {string} */ (reader.readString());
36989
+ msg.setTitle(value);
36990
+ break;
36991
+ case 4:
36992
+ var value = /** @type {string} */ (reader.readString());
36993
+ msg.setDescription(value);
36994
+ break;
36995
+ case 5:
36996
+ var value = /** @type {boolean} */ (reader.readBool());
36997
+ msg.setIsActive(value);
36998
+ break;
36999
+ default:
37000
+ reader.skipField();
37001
+ break;
37002
+ }
37003
+ }
37004
+ return msg;
37005
+ };
37006
+
37007
+
37008
+ /**
37009
+ * Serializes the message to binary data (in protobuf wire format).
37010
+ * @return {!Uint8Array}
37011
+ */
37012
+ proto.user.PresetListItem.prototype.serializeBinary = function() {
37013
+ var writer = new jspb.BinaryWriter();
37014
+ proto.user.PresetListItem.serializeBinaryToWriter(this, writer);
37015
+ return writer.getResultBuffer();
37016
+ };
37017
+
37018
+
37019
+ /**
37020
+ * Serializes the given message to binary data (in protobuf wire
37021
+ * format), writing to the given BinaryWriter.
37022
+ * @param {!proto.user.PresetListItem} message
37023
+ * @param {!jspb.BinaryWriter} writer
37024
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37025
+ */
37026
+ proto.user.PresetListItem.serializeBinaryToWriter = function(message, writer) {
37027
+ var f = undefined;
37028
+ f = message.getId();
37029
+ if (f !== 0) {
37030
+ writer.writeInt32(
37031
+ 1,
37032
+ f
37033
+ );
37034
+ }
37035
+ f = message.getPresetCode();
37036
+ if (f.length > 0) {
37037
+ writer.writeString(
37038
+ 2,
37039
+ f
37040
+ );
37041
+ }
37042
+ f = message.getTitle();
37043
+ if (f.length > 0) {
37044
+ writer.writeString(
37045
+ 3,
37046
+ f
37047
+ );
37048
+ }
37049
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
37050
+ if (f != null) {
37051
+ writer.writeString(
37052
+ 4,
37053
+ f
37054
+ );
37055
+ }
37056
+ f = message.getIsActive();
37057
+ if (f) {
37058
+ writer.writeBool(
37059
+ 5,
37060
+ f
37061
+ );
37062
+ }
37063
+ };
37064
+
37065
+
37066
+ /**
37067
+ * optional int32 id = 1;
37068
+ * @return {number}
37069
+ */
37070
+ proto.user.PresetListItem.prototype.getId = function() {
37071
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
37072
+ };
37073
+
37074
+
37075
+ /**
37076
+ * @param {number} value
37077
+ * @return {!proto.user.PresetListItem} returns this
37078
+ */
37079
+ proto.user.PresetListItem.prototype.setId = function(value) {
37080
+ return jspb.Message.setProto3IntField(this, 1, value);
37081
+ };
37082
+
37083
+
37084
+ /**
37085
+ * optional string preset_code = 2;
37086
+ * @return {string}
37087
+ */
37088
+ proto.user.PresetListItem.prototype.getPresetCode = function() {
37089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
37090
+ };
37091
+
37092
+
37093
+ /**
37094
+ * @param {string} value
37095
+ * @return {!proto.user.PresetListItem} returns this
37096
+ */
37097
+ proto.user.PresetListItem.prototype.setPresetCode = function(value) {
37098
+ return jspb.Message.setProto3StringField(this, 2, value);
37099
+ };
37100
+
37101
+
37102
+ /**
37103
+ * optional string title = 3;
37104
+ * @return {string}
37105
+ */
37106
+ proto.user.PresetListItem.prototype.getTitle = function() {
37107
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
37108
+ };
37109
+
37110
+
37111
+ /**
37112
+ * @param {string} value
37113
+ * @return {!proto.user.PresetListItem} returns this
37114
+ */
37115
+ proto.user.PresetListItem.prototype.setTitle = function(value) {
37116
+ return jspb.Message.setProto3StringField(this, 3, value);
37117
+ };
37118
+
37119
+
37120
+ /**
37121
+ * optional string description = 4;
37122
+ * @return {string}
37123
+ */
37124
+ proto.user.PresetListItem.prototype.getDescription = function() {
37125
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
37126
+ };
37127
+
37128
+
37129
+ /**
37130
+ * @param {string} value
37131
+ * @return {!proto.user.PresetListItem} returns this
37132
+ */
37133
+ proto.user.PresetListItem.prototype.setDescription = function(value) {
37134
+ return jspb.Message.setField(this, 4, value);
37135
+ };
37136
+
37137
+
37138
+ /**
37139
+ * Clears the field making it undefined.
37140
+ * @return {!proto.user.PresetListItem} returns this
37141
+ */
37142
+ proto.user.PresetListItem.prototype.clearDescription = function() {
37143
+ return jspb.Message.setField(this, 4, undefined);
37144
+ };
37145
+
37146
+
37147
+ /**
37148
+ * Returns whether this field is set.
37149
+ * @return {boolean}
37150
+ */
37151
+ proto.user.PresetListItem.prototype.hasDescription = function() {
37152
+ return jspb.Message.getField(this, 4) != null;
37153
+ };
37154
+
37155
+
37156
+ /**
37157
+ * optional bool is_active = 5;
37158
+ * @return {boolean}
37159
+ */
37160
+ proto.user.PresetListItem.prototype.getIsActive = function() {
37161
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
37162
+ };
37163
+
37164
+
37165
+ /**
37166
+ * @param {boolean} value
37167
+ * @return {!proto.user.PresetListItem} returns this
37168
+ */
37169
+ proto.user.PresetListItem.prototype.setIsActive = function(value) {
37170
+ return jspb.Message.setProto3BooleanField(this, 5, value);
37171
+ };
37172
+
37173
+
37174
+
37175
+
37176
+
37177
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37178
+ /**
37179
+ * Creates an object representation of this proto.
37180
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37181
+ * Optional fields that are not set will be set to undefined.
37182
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37183
+ * For the list of reserved names please see:
37184
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37185
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37186
+ * JSPB instance for transitional soy proto support:
37187
+ * http://goto/soy-param-migration
37188
+ * @return {!Object}
37189
+ */
37190
+ proto.user.CreatePresetRequest.prototype.toObject = function(opt_includeInstance) {
37191
+ return proto.user.CreatePresetRequest.toObject(opt_includeInstance, this);
37192
+ };
37193
+
37194
+
37195
+ /**
37196
+ * Static version of the {@see toObject} method.
37197
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37198
+ * the JSPB instance for transitional soy proto support:
37199
+ * http://goto/soy-param-migration
37200
+ * @param {!proto.user.CreatePresetRequest} msg The msg instance to transform.
37201
+ * @return {!Object}
37202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37203
+ */
37204
+ proto.user.CreatePresetRequest.toObject = function(includeInstance, msg) {
37205
+ var f, obj = {
37206
+ presetCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
37207
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
37208
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
37209
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
37210
+ };
37211
+
37212
+ if (includeInstance) {
37213
+ obj.$jspbMessageInstance = msg;
37214
+ }
37215
+ return obj;
37216
+ };
37217
+ }
37218
+
37219
+
37220
+ /**
37221
+ * Deserializes binary data (in protobuf wire format).
37222
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37223
+ * @return {!proto.user.CreatePresetRequest}
37224
+ */
37225
+ proto.user.CreatePresetRequest.deserializeBinary = function(bytes) {
37226
+ var reader = new jspb.BinaryReader(bytes);
37227
+ var msg = new proto.user.CreatePresetRequest;
37228
+ return proto.user.CreatePresetRequest.deserializeBinaryFromReader(msg, reader);
37229
+ };
37230
+
37231
+
37232
+ /**
37233
+ * Deserializes binary data (in protobuf wire format) from the
37234
+ * given reader into the given message object.
37235
+ * @param {!proto.user.CreatePresetRequest} msg The message object to deserialize into.
37236
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37237
+ * @return {!proto.user.CreatePresetRequest}
37238
+ */
37239
+ proto.user.CreatePresetRequest.deserializeBinaryFromReader = function(msg, reader) {
37240
+ while (reader.nextField()) {
37241
+ if (reader.isEndGroup()) {
37242
+ break;
37243
+ }
37244
+ var field = reader.getFieldNumber();
37245
+ switch (field) {
37246
+ case 1:
37247
+ var value = /** @type {string} */ (reader.readString());
37248
+ msg.setPresetCode(value);
37249
+ break;
37250
+ case 2:
37251
+ var value = /** @type {string} */ (reader.readString());
37252
+ msg.setTitle(value);
37253
+ break;
37254
+ case 3:
37255
+ var value = /** @type {string} */ (reader.readString());
37256
+ msg.setDescription(value);
37257
+ break;
37258
+ case 4:
37259
+ var value = /** @type {boolean} */ (reader.readBool());
37260
+ msg.setIsActive(value);
37261
+ break;
37262
+ default:
37263
+ reader.skipField();
37264
+ break;
37265
+ }
37266
+ }
37267
+ return msg;
37268
+ };
37269
+
37270
+
37271
+ /**
37272
+ * Serializes the message to binary data (in protobuf wire format).
37273
+ * @return {!Uint8Array}
37274
+ */
37275
+ proto.user.CreatePresetRequest.prototype.serializeBinary = function() {
37276
+ var writer = new jspb.BinaryWriter();
37277
+ proto.user.CreatePresetRequest.serializeBinaryToWriter(this, writer);
37278
+ return writer.getResultBuffer();
37279
+ };
37280
+
37281
+
37282
+ /**
37283
+ * Serializes the given message to binary data (in protobuf wire
37284
+ * format), writing to the given BinaryWriter.
37285
+ * @param {!proto.user.CreatePresetRequest} message
37286
+ * @param {!jspb.BinaryWriter} writer
37287
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37288
+ */
37289
+ proto.user.CreatePresetRequest.serializeBinaryToWriter = function(message, writer) {
37290
+ var f = undefined;
37291
+ f = message.getPresetCode();
37292
+ if (f.length > 0) {
37293
+ writer.writeString(
37294
+ 1,
37295
+ f
37296
+ );
37297
+ }
37298
+ f = message.getTitle();
37299
+ if (f.length > 0) {
37300
+ writer.writeString(
37301
+ 2,
37302
+ f
37303
+ );
37304
+ }
37305
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
37306
+ if (f != null) {
37307
+ writer.writeString(
37308
+ 3,
37309
+ f
37310
+ );
37311
+ }
37312
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
37313
+ if (f != null) {
37314
+ writer.writeBool(
37315
+ 4,
37316
+ f
37317
+ );
37318
+ }
37319
+ };
37320
+
37321
+
37322
+ /**
37323
+ * optional string preset_code = 1;
37324
+ * @return {string}
37325
+ */
37326
+ proto.user.CreatePresetRequest.prototype.getPresetCode = function() {
37327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
37328
+ };
37329
+
37330
+
37331
+ /**
37332
+ * @param {string} value
37333
+ * @return {!proto.user.CreatePresetRequest} returns this
37334
+ */
37335
+ proto.user.CreatePresetRequest.prototype.setPresetCode = function(value) {
37336
+ return jspb.Message.setProto3StringField(this, 1, value);
37337
+ };
37338
+
37339
+
37340
+ /**
37341
+ * optional string title = 2;
37342
+ * @return {string}
37343
+ */
37344
+ proto.user.CreatePresetRequest.prototype.getTitle = function() {
37345
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
37346
+ };
37347
+
37348
+
37349
+ /**
37350
+ * @param {string} value
37351
+ * @return {!proto.user.CreatePresetRequest} returns this
37352
+ */
37353
+ proto.user.CreatePresetRequest.prototype.setTitle = function(value) {
37354
+ return jspb.Message.setProto3StringField(this, 2, value);
37355
+ };
37356
+
37357
+
37358
+ /**
37359
+ * optional string description = 3;
37360
+ * @return {string}
37361
+ */
37362
+ proto.user.CreatePresetRequest.prototype.getDescription = function() {
37363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
37364
+ };
37365
+
37366
+
37367
+ /**
37368
+ * @param {string} value
37369
+ * @return {!proto.user.CreatePresetRequest} returns this
37370
+ */
37371
+ proto.user.CreatePresetRequest.prototype.setDescription = function(value) {
37372
+ return jspb.Message.setField(this, 3, value);
37373
+ };
37374
+
37375
+
37376
+ /**
37377
+ * Clears the field making it undefined.
37378
+ * @return {!proto.user.CreatePresetRequest} returns this
37379
+ */
37380
+ proto.user.CreatePresetRequest.prototype.clearDescription = function() {
37381
+ return jspb.Message.setField(this, 3, undefined);
37382
+ };
37383
+
37384
+
37385
+ /**
37386
+ * Returns whether this field is set.
37387
+ * @return {boolean}
37388
+ */
37389
+ proto.user.CreatePresetRequest.prototype.hasDescription = function() {
37390
+ return jspb.Message.getField(this, 3) != null;
37391
+ };
37392
+
37393
+
37394
+ /**
37395
+ * optional bool is_active = 4;
37396
+ * @return {boolean}
37397
+ */
37398
+ proto.user.CreatePresetRequest.prototype.getIsActive = function() {
37399
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
37400
+ };
37401
+
37402
+
37403
+ /**
37404
+ * @param {boolean} value
37405
+ * @return {!proto.user.CreatePresetRequest} returns this
37406
+ */
37407
+ proto.user.CreatePresetRequest.prototype.setIsActive = function(value) {
37408
+ return jspb.Message.setField(this, 4, value);
37409
+ };
37410
+
37411
+
37412
+ /**
37413
+ * Clears the field making it undefined.
37414
+ * @return {!proto.user.CreatePresetRequest} returns this
37415
+ */
37416
+ proto.user.CreatePresetRequest.prototype.clearIsActive = function() {
37417
+ return jspb.Message.setField(this, 4, undefined);
37418
+ };
37419
+
37420
+
37421
+ /**
37422
+ * Returns whether this field is set.
37423
+ * @return {boolean}
37424
+ */
37425
+ proto.user.CreatePresetRequest.prototype.hasIsActive = function() {
37426
+ return jspb.Message.getField(this, 4) != null;
37427
+ };
37428
+
37429
+
37430
+
37431
+
37432
+
37433
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37434
+ /**
37435
+ * Creates an object representation of this proto.
37436
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37437
+ * Optional fields that are not set will be set to undefined.
37438
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37439
+ * For the list of reserved names please see:
37440
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37441
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37442
+ * JSPB instance for transitional soy proto support:
37443
+ * http://goto/soy-param-migration
37444
+ * @return {!Object}
37445
+ */
37446
+ proto.user.CreatePresetResponse.prototype.toObject = function(opt_includeInstance) {
37447
+ return proto.user.CreatePresetResponse.toObject(opt_includeInstance, this);
37448
+ };
37449
+
37450
+
37451
+ /**
37452
+ * Static version of the {@see toObject} method.
37453
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37454
+ * the JSPB instance for transitional soy proto support:
37455
+ * http://goto/soy-param-migration
37456
+ * @param {!proto.user.CreatePresetResponse} msg The msg instance to transform.
37457
+ * @return {!Object}
37458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37459
+ */
37460
+ proto.user.CreatePresetResponse.toObject = function(includeInstance, msg) {
37461
+ var f, obj = {
37462
+ item: (f = msg.getItem()) && proto.user.PresetItem.toObject(includeInstance, f)
37463
+ };
37464
+
37465
+ if (includeInstance) {
37466
+ obj.$jspbMessageInstance = msg;
37467
+ }
37468
+ return obj;
37469
+ };
37470
+ }
37471
+
37472
+
37473
+ /**
37474
+ * Deserializes binary data (in protobuf wire format).
37475
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37476
+ * @return {!proto.user.CreatePresetResponse}
37477
+ */
37478
+ proto.user.CreatePresetResponse.deserializeBinary = function(bytes) {
37479
+ var reader = new jspb.BinaryReader(bytes);
37480
+ var msg = new proto.user.CreatePresetResponse;
37481
+ return proto.user.CreatePresetResponse.deserializeBinaryFromReader(msg, reader);
37482
+ };
37483
+
37484
+
37485
+ /**
37486
+ * Deserializes binary data (in protobuf wire format) from the
37487
+ * given reader into the given message object.
37488
+ * @param {!proto.user.CreatePresetResponse} msg The message object to deserialize into.
37489
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37490
+ * @return {!proto.user.CreatePresetResponse}
37491
+ */
37492
+ proto.user.CreatePresetResponse.deserializeBinaryFromReader = function(msg, reader) {
37493
+ while (reader.nextField()) {
37494
+ if (reader.isEndGroup()) {
37495
+ break;
37496
+ }
37497
+ var field = reader.getFieldNumber();
37498
+ switch (field) {
37499
+ case 1:
37500
+ var value = new proto.user.PresetItem;
37501
+ reader.readMessage(value,proto.user.PresetItem.deserializeBinaryFromReader);
37502
+ msg.setItem(value);
37503
+ break;
37504
+ default:
37505
+ reader.skipField();
37506
+ break;
37507
+ }
37508
+ }
37509
+ return msg;
37510
+ };
37511
+
37512
+
37513
+ /**
37514
+ * Serializes the message to binary data (in protobuf wire format).
37515
+ * @return {!Uint8Array}
37516
+ */
37517
+ proto.user.CreatePresetResponse.prototype.serializeBinary = function() {
37518
+ var writer = new jspb.BinaryWriter();
37519
+ proto.user.CreatePresetResponse.serializeBinaryToWriter(this, writer);
37520
+ return writer.getResultBuffer();
37521
+ };
37522
+
37523
+
37524
+ /**
37525
+ * Serializes the given message to binary data (in protobuf wire
37526
+ * format), writing to the given BinaryWriter.
37527
+ * @param {!proto.user.CreatePresetResponse} message
37528
+ * @param {!jspb.BinaryWriter} writer
37529
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37530
+ */
37531
+ proto.user.CreatePresetResponse.serializeBinaryToWriter = function(message, writer) {
37532
+ var f = undefined;
37533
+ f = message.getItem();
37534
+ if (f != null) {
37535
+ writer.writeMessage(
37536
+ 1,
37537
+ f,
37538
+ proto.user.PresetItem.serializeBinaryToWriter
37539
+ );
37540
+ }
37541
+ };
37542
+
37543
+
37544
+ /**
37545
+ * optional PresetItem item = 1;
37546
+ * @return {?proto.user.PresetItem}
37547
+ */
37548
+ proto.user.CreatePresetResponse.prototype.getItem = function() {
37549
+ return /** @type{?proto.user.PresetItem} */ (
37550
+ jspb.Message.getWrapperField(this, proto.user.PresetItem, 1));
37551
+ };
37552
+
37553
+
37554
+ /**
37555
+ * @param {?proto.user.PresetItem|undefined} value
37556
+ * @return {!proto.user.CreatePresetResponse} returns this
37557
+ */
37558
+ proto.user.CreatePresetResponse.prototype.setItem = function(value) {
37559
+ return jspb.Message.setWrapperField(this, 1, value);
37560
+ };
37561
+
37562
+
37563
+ /**
37564
+ * Clears the message field making it undefined.
37565
+ * @return {!proto.user.CreatePresetResponse} returns this
37566
+ */
37567
+ proto.user.CreatePresetResponse.prototype.clearItem = function() {
37568
+ return this.setItem(undefined);
37569
+ };
37570
+
37571
+
37572
+ /**
37573
+ * Returns whether this field is set.
37574
+ * @return {boolean}
37575
+ */
37576
+ proto.user.CreatePresetResponse.prototype.hasItem = function() {
37577
+ return jspb.Message.getField(this, 1) != null;
37578
+ };
37579
+
37580
+
37581
+
37582
+
37583
+
37584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37585
+ /**
37586
+ * Creates an object representation of this proto.
37587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37588
+ * Optional fields that are not set will be set to undefined.
37589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37590
+ * For the list of reserved names please see:
37591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37593
+ * JSPB instance for transitional soy proto support:
37594
+ * http://goto/soy-param-migration
37595
+ * @return {!Object}
37596
+ */
37597
+ proto.user.ReadPresetRequest.prototype.toObject = function(opt_includeInstance) {
37598
+ return proto.user.ReadPresetRequest.toObject(opt_includeInstance, this);
37599
+ };
37600
+
37601
+
37602
+ /**
37603
+ * Static version of the {@see toObject} method.
37604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37605
+ * the JSPB instance for transitional soy proto support:
37606
+ * http://goto/soy-param-migration
37607
+ * @param {!proto.user.ReadPresetRequest} msg The msg instance to transform.
37608
+ * @return {!Object}
37609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37610
+ */
37611
+ proto.user.ReadPresetRequest.toObject = function(includeInstance, msg) {
37612
+ var f, obj = {
37613
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
37614
+ };
37615
+
37616
+ if (includeInstance) {
37617
+ obj.$jspbMessageInstance = msg;
37618
+ }
37619
+ return obj;
37620
+ };
37621
+ }
37622
+
37623
+
37624
+ /**
37625
+ * Deserializes binary data (in protobuf wire format).
37626
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37627
+ * @return {!proto.user.ReadPresetRequest}
37628
+ */
37629
+ proto.user.ReadPresetRequest.deserializeBinary = function(bytes) {
37630
+ var reader = new jspb.BinaryReader(bytes);
37631
+ var msg = new proto.user.ReadPresetRequest;
37632
+ return proto.user.ReadPresetRequest.deserializeBinaryFromReader(msg, reader);
37633
+ };
37634
+
37635
+
37636
+ /**
37637
+ * Deserializes binary data (in protobuf wire format) from the
37638
+ * given reader into the given message object.
37639
+ * @param {!proto.user.ReadPresetRequest} msg The message object to deserialize into.
37640
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37641
+ * @return {!proto.user.ReadPresetRequest}
37642
+ */
37643
+ proto.user.ReadPresetRequest.deserializeBinaryFromReader = function(msg, reader) {
37644
+ while (reader.nextField()) {
37645
+ if (reader.isEndGroup()) {
37646
+ break;
37647
+ }
37648
+ var field = reader.getFieldNumber();
37649
+ switch (field) {
37650
+ case 1:
37651
+ var value = /** @type {number} */ (reader.readInt32());
37652
+ msg.setId(value);
37653
+ break;
37654
+ default:
37655
+ reader.skipField();
37656
+ break;
37657
+ }
37658
+ }
37659
+ return msg;
37660
+ };
37661
+
37662
+
37663
+ /**
37664
+ * Serializes the message to binary data (in protobuf wire format).
37665
+ * @return {!Uint8Array}
37666
+ */
37667
+ proto.user.ReadPresetRequest.prototype.serializeBinary = function() {
37668
+ var writer = new jspb.BinaryWriter();
37669
+ proto.user.ReadPresetRequest.serializeBinaryToWriter(this, writer);
37670
+ return writer.getResultBuffer();
37671
+ };
37672
+
37673
+
37674
+ /**
37675
+ * Serializes the given message to binary data (in protobuf wire
37676
+ * format), writing to the given BinaryWriter.
37677
+ * @param {!proto.user.ReadPresetRequest} message
37678
+ * @param {!jspb.BinaryWriter} writer
37679
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37680
+ */
37681
+ proto.user.ReadPresetRequest.serializeBinaryToWriter = function(message, writer) {
37682
+ var f = undefined;
37683
+ f = message.getId();
37684
+ if (f !== 0) {
37685
+ writer.writeInt32(
37686
+ 1,
37687
+ f
37688
+ );
37689
+ }
37690
+ };
37691
+
37692
+
37693
+ /**
37694
+ * optional int32 id = 1;
37695
+ * @return {number}
37696
+ */
37697
+ proto.user.ReadPresetRequest.prototype.getId = function() {
37698
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
37699
+ };
37700
+
37701
+
37702
+ /**
37703
+ * @param {number} value
37704
+ * @return {!proto.user.ReadPresetRequest} returns this
37705
+ */
37706
+ proto.user.ReadPresetRequest.prototype.setId = function(value) {
37707
+ return jspb.Message.setProto3IntField(this, 1, value);
37708
+ };
37709
+
37710
+
37711
+
37712
+
37713
+
37714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37715
+ /**
37716
+ * Creates an object representation of this proto.
37717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37718
+ * Optional fields that are not set will be set to undefined.
37719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37720
+ * For the list of reserved names please see:
37721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37723
+ * JSPB instance for transitional soy proto support:
37724
+ * http://goto/soy-param-migration
37725
+ * @return {!Object}
37726
+ */
37727
+ proto.user.ReadPresetResponse.prototype.toObject = function(opt_includeInstance) {
37728
+ return proto.user.ReadPresetResponse.toObject(opt_includeInstance, this);
37729
+ };
37730
+
37731
+
37732
+ /**
37733
+ * Static version of the {@see toObject} method.
37734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37735
+ * the JSPB instance for transitional soy proto support:
37736
+ * http://goto/soy-param-migration
37737
+ * @param {!proto.user.ReadPresetResponse} msg The msg instance to transform.
37738
+ * @return {!Object}
37739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37740
+ */
37741
+ proto.user.ReadPresetResponse.toObject = function(includeInstance, msg) {
37742
+ var f, obj = {
37743
+ item: (f = msg.getItem()) && proto.user.PresetItem.toObject(includeInstance, f)
37744
+ };
37745
+
37746
+ if (includeInstance) {
37747
+ obj.$jspbMessageInstance = msg;
37748
+ }
37749
+ return obj;
37750
+ };
37751
+ }
37752
+
37753
+
37754
+ /**
37755
+ * Deserializes binary data (in protobuf wire format).
37756
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37757
+ * @return {!proto.user.ReadPresetResponse}
37758
+ */
37759
+ proto.user.ReadPresetResponse.deserializeBinary = function(bytes) {
37760
+ var reader = new jspb.BinaryReader(bytes);
37761
+ var msg = new proto.user.ReadPresetResponse;
37762
+ return proto.user.ReadPresetResponse.deserializeBinaryFromReader(msg, reader);
37763
+ };
37764
+
37765
+
37766
+ /**
37767
+ * Deserializes binary data (in protobuf wire format) from the
37768
+ * given reader into the given message object.
37769
+ * @param {!proto.user.ReadPresetResponse} msg The message object to deserialize into.
37770
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37771
+ * @return {!proto.user.ReadPresetResponse}
37772
+ */
37773
+ proto.user.ReadPresetResponse.deserializeBinaryFromReader = function(msg, reader) {
37774
+ while (reader.nextField()) {
37775
+ if (reader.isEndGroup()) {
37776
+ break;
37777
+ }
37778
+ var field = reader.getFieldNumber();
37779
+ switch (field) {
37780
+ case 1:
37781
+ var value = new proto.user.PresetItem;
37782
+ reader.readMessage(value,proto.user.PresetItem.deserializeBinaryFromReader);
37783
+ msg.setItem(value);
37784
+ break;
37785
+ default:
37786
+ reader.skipField();
37787
+ break;
37788
+ }
37789
+ }
37790
+ return msg;
37791
+ };
37792
+
37793
+
37794
+ /**
37795
+ * Serializes the message to binary data (in protobuf wire format).
37796
+ * @return {!Uint8Array}
37797
+ */
37798
+ proto.user.ReadPresetResponse.prototype.serializeBinary = function() {
37799
+ var writer = new jspb.BinaryWriter();
37800
+ proto.user.ReadPresetResponse.serializeBinaryToWriter(this, writer);
37801
+ return writer.getResultBuffer();
37802
+ };
37803
+
37804
+
37805
+ /**
37806
+ * Serializes the given message to binary data (in protobuf wire
37807
+ * format), writing to the given BinaryWriter.
37808
+ * @param {!proto.user.ReadPresetResponse} message
37809
+ * @param {!jspb.BinaryWriter} writer
37810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37811
+ */
37812
+ proto.user.ReadPresetResponse.serializeBinaryToWriter = function(message, writer) {
37813
+ var f = undefined;
37814
+ f = message.getItem();
37815
+ if (f != null) {
37816
+ writer.writeMessage(
37817
+ 1,
37818
+ f,
37819
+ proto.user.PresetItem.serializeBinaryToWriter
37820
+ );
37821
+ }
37822
+ };
37823
+
37824
+
37825
+ /**
37826
+ * optional PresetItem item = 1;
37827
+ * @return {?proto.user.PresetItem}
37828
+ */
37829
+ proto.user.ReadPresetResponse.prototype.getItem = function() {
37830
+ return /** @type{?proto.user.PresetItem} */ (
37831
+ jspb.Message.getWrapperField(this, proto.user.PresetItem, 1));
37832
+ };
37833
+
37834
+
37835
+ /**
37836
+ * @param {?proto.user.PresetItem|undefined} value
37837
+ * @return {!proto.user.ReadPresetResponse} returns this
37838
+ */
37839
+ proto.user.ReadPresetResponse.prototype.setItem = function(value) {
37840
+ return jspb.Message.setWrapperField(this, 1, value);
37841
+ };
37842
+
37843
+
37844
+ /**
37845
+ * Clears the message field making it undefined.
37846
+ * @return {!proto.user.ReadPresetResponse} returns this
37847
+ */
37848
+ proto.user.ReadPresetResponse.prototype.clearItem = function() {
37849
+ return this.setItem(undefined);
37850
+ };
37851
+
37852
+
37853
+ /**
37854
+ * Returns whether this field is set.
37855
+ * @return {boolean}
37856
+ */
37857
+ proto.user.ReadPresetResponse.prototype.hasItem = function() {
37858
+ return jspb.Message.getField(this, 1) != null;
37859
+ };
37860
+
37861
+
37862
+
37863
+
37864
+
37865
+ if (jspb.Message.GENERATE_TO_OBJECT) {
37866
+ /**
37867
+ * Creates an object representation of this proto.
37868
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
37869
+ * Optional fields that are not set will be set to undefined.
37870
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
37871
+ * For the list of reserved names please see:
37872
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
37873
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
37874
+ * JSPB instance for transitional soy proto support:
37875
+ * http://goto/soy-param-migration
37876
+ * @return {!Object}
37877
+ */
37878
+ proto.user.UpdatePresetRequest.prototype.toObject = function(opt_includeInstance) {
37879
+ return proto.user.UpdatePresetRequest.toObject(opt_includeInstance, this);
37880
+ };
37881
+
37882
+
37883
+ /**
37884
+ * Static version of the {@see toObject} method.
37885
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
37886
+ * the JSPB instance for transitional soy proto support:
37887
+ * http://goto/soy-param-migration
37888
+ * @param {!proto.user.UpdatePresetRequest} msg The msg instance to transform.
37889
+ * @return {!Object}
37890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37891
+ */
37892
+ proto.user.UpdatePresetRequest.toObject = function(includeInstance, msg) {
37893
+ var f, obj = {
37894
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
37895
+ presetCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
37896
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
37897
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
37898
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
37899
+ };
37900
+
37901
+ if (includeInstance) {
37902
+ obj.$jspbMessageInstance = msg;
37903
+ }
37904
+ return obj;
37905
+ };
37906
+ }
37907
+
37908
+
37909
+ /**
37910
+ * Deserializes binary data (in protobuf wire format).
37911
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37912
+ * @return {!proto.user.UpdatePresetRequest}
37913
+ */
37914
+ proto.user.UpdatePresetRequest.deserializeBinary = function(bytes) {
37915
+ var reader = new jspb.BinaryReader(bytes);
37916
+ var msg = new proto.user.UpdatePresetRequest;
37917
+ return proto.user.UpdatePresetRequest.deserializeBinaryFromReader(msg, reader);
37918
+ };
37919
+
37920
+
37921
+ /**
37922
+ * Deserializes binary data (in protobuf wire format) from the
37923
+ * given reader into the given message object.
37924
+ * @param {!proto.user.UpdatePresetRequest} msg The message object to deserialize into.
37925
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37926
+ * @return {!proto.user.UpdatePresetRequest}
37927
+ */
37928
+ proto.user.UpdatePresetRequest.deserializeBinaryFromReader = function(msg, reader) {
37929
+ while (reader.nextField()) {
37930
+ if (reader.isEndGroup()) {
37931
+ break;
37932
+ }
37933
+ var field = reader.getFieldNumber();
37934
+ switch (field) {
37935
+ case 1:
37936
+ var value = /** @type {number} */ (reader.readInt32());
37937
+ msg.setId(value);
37938
+ break;
37939
+ case 2:
37940
+ var value = /** @type {string} */ (reader.readString());
37941
+ msg.setPresetCode(value);
37942
+ break;
37943
+ case 3:
37944
+ var value = /** @type {string} */ (reader.readString());
37945
+ msg.setTitle(value);
37946
+ break;
37947
+ case 4:
37948
+ var value = /** @type {string} */ (reader.readString());
37949
+ msg.setDescription(value);
37950
+ break;
37951
+ case 5:
37952
+ var value = /** @type {boolean} */ (reader.readBool());
37953
+ msg.setIsActive(value);
37954
+ break;
37955
+ default:
37956
+ reader.skipField();
37957
+ break;
37958
+ }
37959
+ }
37960
+ return msg;
37961
+ };
37962
+
37963
+
37964
+ /**
37965
+ * Serializes the message to binary data (in protobuf wire format).
37966
+ * @return {!Uint8Array}
37967
+ */
37968
+ proto.user.UpdatePresetRequest.prototype.serializeBinary = function() {
37969
+ var writer = new jspb.BinaryWriter();
37970
+ proto.user.UpdatePresetRequest.serializeBinaryToWriter(this, writer);
37971
+ return writer.getResultBuffer();
37972
+ };
37973
+
37974
+
37975
+ /**
37976
+ * Serializes the given message to binary data (in protobuf wire
37977
+ * format), writing to the given BinaryWriter.
37978
+ * @param {!proto.user.UpdatePresetRequest} message
37979
+ * @param {!jspb.BinaryWriter} writer
37980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37981
+ */
37982
+ proto.user.UpdatePresetRequest.serializeBinaryToWriter = function(message, writer) {
37983
+ var f = undefined;
37984
+ f = message.getId();
37985
+ if (f !== 0) {
37986
+ writer.writeInt32(
37987
+ 1,
37988
+ f
37989
+ );
37990
+ }
37991
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
37992
+ if (f != null) {
37993
+ writer.writeString(
37994
+ 2,
37995
+ f
37996
+ );
37997
+ }
37998
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
37999
+ if (f != null) {
38000
+ writer.writeString(
38001
+ 3,
38002
+ f
38003
+ );
38004
+ }
38005
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
38006
+ if (f != null) {
38007
+ writer.writeString(
38008
+ 4,
38009
+ f
38010
+ );
38011
+ }
38012
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
38013
+ if (f != null) {
38014
+ writer.writeBool(
38015
+ 5,
38016
+ f
38017
+ );
38018
+ }
38019
+ };
38020
+
38021
+
38022
+ /**
38023
+ * optional int32 id = 1;
38024
+ * @return {number}
38025
+ */
38026
+ proto.user.UpdatePresetRequest.prototype.getId = function() {
38027
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38028
+ };
38029
+
38030
+
38031
+ /**
38032
+ * @param {number} value
38033
+ * @return {!proto.user.UpdatePresetRequest} returns this
38034
+ */
38035
+ proto.user.UpdatePresetRequest.prototype.setId = function(value) {
38036
+ return jspb.Message.setProto3IntField(this, 1, value);
38037
+ };
38038
+
38039
+
38040
+ /**
38041
+ * optional string preset_code = 2;
38042
+ * @return {string}
38043
+ */
38044
+ proto.user.UpdatePresetRequest.prototype.getPresetCode = function() {
38045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
38046
+ };
38047
+
38048
+
38049
+ /**
38050
+ * @param {string} value
38051
+ * @return {!proto.user.UpdatePresetRequest} returns this
38052
+ */
38053
+ proto.user.UpdatePresetRequest.prototype.setPresetCode = function(value) {
38054
+ return jspb.Message.setField(this, 2, value);
38055
+ };
38056
+
38057
+
38058
+ /**
38059
+ * Clears the field making it undefined.
38060
+ * @return {!proto.user.UpdatePresetRequest} returns this
38061
+ */
38062
+ proto.user.UpdatePresetRequest.prototype.clearPresetCode = function() {
38063
+ return jspb.Message.setField(this, 2, undefined);
38064
+ };
38065
+
38066
+
38067
+ /**
38068
+ * Returns whether this field is set.
38069
+ * @return {boolean}
38070
+ */
38071
+ proto.user.UpdatePresetRequest.prototype.hasPresetCode = function() {
38072
+ return jspb.Message.getField(this, 2) != null;
38073
+ };
38074
+
38075
+
38076
+ /**
38077
+ * optional string title = 3;
38078
+ * @return {string}
38079
+ */
38080
+ proto.user.UpdatePresetRequest.prototype.getTitle = function() {
38081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
38082
+ };
38083
+
38084
+
38085
+ /**
38086
+ * @param {string} value
38087
+ * @return {!proto.user.UpdatePresetRequest} returns this
38088
+ */
38089
+ proto.user.UpdatePresetRequest.prototype.setTitle = function(value) {
38090
+ return jspb.Message.setField(this, 3, value);
38091
+ };
38092
+
38093
+
38094
+ /**
38095
+ * Clears the field making it undefined.
38096
+ * @return {!proto.user.UpdatePresetRequest} returns this
38097
+ */
38098
+ proto.user.UpdatePresetRequest.prototype.clearTitle = function() {
38099
+ return jspb.Message.setField(this, 3, undefined);
38100
+ };
38101
+
38102
+
38103
+ /**
38104
+ * Returns whether this field is set.
38105
+ * @return {boolean}
38106
+ */
38107
+ proto.user.UpdatePresetRequest.prototype.hasTitle = function() {
38108
+ return jspb.Message.getField(this, 3) != null;
38109
+ };
38110
+
38111
+
38112
+ /**
38113
+ * optional string description = 4;
38114
+ * @return {string}
38115
+ */
38116
+ proto.user.UpdatePresetRequest.prototype.getDescription = function() {
38117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
38118
+ };
38119
+
38120
+
38121
+ /**
38122
+ * @param {string} value
38123
+ * @return {!proto.user.UpdatePresetRequest} returns this
38124
+ */
38125
+ proto.user.UpdatePresetRequest.prototype.setDescription = function(value) {
38126
+ return jspb.Message.setField(this, 4, value);
38127
+ };
38128
+
38129
+
38130
+ /**
38131
+ * Clears the field making it undefined.
38132
+ * @return {!proto.user.UpdatePresetRequest} returns this
38133
+ */
38134
+ proto.user.UpdatePresetRequest.prototype.clearDescription = function() {
38135
+ return jspb.Message.setField(this, 4, undefined);
38136
+ };
38137
+
38138
+
38139
+ /**
38140
+ * Returns whether this field is set.
38141
+ * @return {boolean}
38142
+ */
38143
+ proto.user.UpdatePresetRequest.prototype.hasDescription = function() {
38144
+ return jspb.Message.getField(this, 4) != null;
38145
+ };
38146
+
38147
+
38148
+ /**
38149
+ * optional bool is_active = 5;
38150
+ * @return {boolean}
38151
+ */
38152
+ proto.user.UpdatePresetRequest.prototype.getIsActive = function() {
38153
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
38154
+ };
38155
+
38156
+
38157
+ /**
38158
+ * @param {boolean} value
38159
+ * @return {!proto.user.UpdatePresetRequest} returns this
38160
+ */
38161
+ proto.user.UpdatePresetRequest.prototype.setIsActive = function(value) {
38162
+ return jspb.Message.setField(this, 5, value);
38163
+ };
38164
+
38165
+
38166
+ /**
38167
+ * Clears the field making it undefined.
38168
+ * @return {!proto.user.UpdatePresetRequest} returns this
38169
+ */
38170
+ proto.user.UpdatePresetRequest.prototype.clearIsActive = function() {
38171
+ return jspb.Message.setField(this, 5, undefined);
38172
+ };
38173
+
38174
+
38175
+ /**
38176
+ * Returns whether this field is set.
38177
+ * @return {boolean}
38178
+ */
38179
+ proto.user.UpdatePresetRequest.prototype.hasIsActive = function() {
38180
+ return jspb.Message.getField(this, 5) != null;
38181
+ };
38182
+
38183
+
38184
+
38185
+
38186
+
38187
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38188
+ /**
38189
+ * Creates an object representation of this proto.
38190
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38191
+ * Optional fields that are not set will be set to undefined.
38192
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38193
+ * For the list of reserved names please see:
38194
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38195
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38196
+ * JSPB instance for transitional soy proto support:
38197
+ * http://goto/soy-param-migration
38198
+ * @return {!Object}
38199
+ */
38200
+ proto.user.UpdatePresetResponse.prototype.toObject = function(opt_includeInstance) {
38201
+ return proto.user.UpdatePresetResponse.toObject(opt_includeInstance, this);
38202
+ };
38203
+
38204
+
38205
+ /**
38206
+ * Static version of the {@see toObject} method.
38207
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38208
+ * the JSPB instance for transitional soy proto support:
38209
+ * http://goto/soy-param-migration
38210
+ * @param {!proto.user.UpdatePresetResponse} msg The msg instance to transform.
38211
+ * @return {!Object}
38212
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38213
+ */
38214
+ proto.user.UpdatePresetResponse.toObject = function(includeInstance, msg) {
38215
+ var f, obj = {
38216
+ item: (f = msg.getItem()) && proto.user.PresetItem.toObject(includeInstance, f)
38217
+ };
38218
+
38219
+ if (includeInstance) {
38220
+ obj.$jspbMessageInstance = msg;
38221
+ }
38222
+ return obj;
38223
+ };
38224
+ }
38225
+
38226
+
38227
+ /**
38228
+ * Deserializes binary data (in protobuf wire format).
38229
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38230
+ * @return {!proto.user.UpdatePresetResponse}
38231
+ */
38232
+ proto.user.UpdatePresetResponse.deserializeBinary = function(bytes) {
38233
+ var reader = new jspb.BinaryReader(bytes);
38234
+ var msg = new proto.user.UpdatePresetResponse;
38235
+ return proto.user.UpdatePresetResponse.deserializeBinaryFromReader(msg, reader);
38236
+ };
38237
+
38238
+
38239
+ /**
38240
+ * Deserializes binary data (in protobuf wire format) from the
38241
+ * given reader into the given message object.
38242
+ * @param {!proto.user.UpdatePresetResponse} msg The message object to deserialize into.
38243
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38244
+ * @return {!proto.user.UpdatePresetResponse}
38245
+ */
38246
+ proto.user.UpdatePresetResponse.deserializeBinaryFromReader = function(msg, reader) {
38247
+ while (reader.nextField()) {
38248
+ if (reader.isEndGroup()) {
38249
+ break;
38250
+ }
38251
+ var field = reader.getFieldNumber();
38252
+ switch (field) {
38253
+ case 1:
38254
+ var value = new proto.user.PresetItem;
38255
+ reader.readMessage(value,proto.user.PresetItem.deserializeBinaryFromReader);
38256
+ msg.setItem(value);
38257
+ break;
38258
+ default:
38259
+ reader.skipField();
38260
+ break;
38261
+ }
38262
+ }
38263
+ return msg;
38264
+ };
38265
+
38266
+
38267
+ /**
38268
+ * Serializes the message to binary data (in protobuf wire format).
38269
+ * @return {!Uint8Array}
38270
+ */
38271
+ proto.user.UpdatePresetResponse.prototype.serializeBinary = function() {
38272
+ var writer = new jspb.BinaryWriter();
38273
+ proto.user.UpdatePresetResponse.serializeBinaryToWriter(this, writer);
38274
+ return writer.getResultBuffer();
38275
+ };
38276
+
38277
+
38278
+ /**
38279
+ * Serializes the given message to binary data (in protobuf wire
38280
+ * format), writing to the given BinaryWriter.
38281
+ * @param {!proto.user.UpdatePresetResponse} message
38282
+ * @param {!jspb.BinaryWriter} writer
38283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38284
+ */
38285
+ proto.user.UpdatePresetResponse.serializeBinaryToWriter = function(message, writer) {
38286
+ var f = undefined;
38287
+ f = message.getItem();
38288
+ if (f != null) {
38289
+ writer.writeMessage(
38290
+ 1,
38291
+ f,
38292
+ proto.user.PresetItem.serializeBinaryToWriter
38293
+ );
38294
+ }
38295
+ };
38296
+
38297
+
38298
+ /**
38299
+ * optional PresetItem item = 1;
38300
+ * @return {?proto.user.PresetItem}
38301
+ */
38302
+ proto.user.UpdatePresetResponse.prototype.getItem = function() {
38303
+ return /** @type{?proto.user.PresetItem} */ (
38304
+ jspb.Message.getWrapperField(this, proto.user.PresetItem, 1));
38305
+ };
38306
+
38307
+
38308
+ /**
38309
+ * @param {?proto.user.PresetItem|undefined} value
38310
+ * @return {!proto.user.UpdatePresetResponse} returns this
38311
+ */
38312
+ proto.user.UpdatePresetResponse.prototype.setItem = function(value) {
38313
+ return jspb.Message.setWrapperField(this, 1, value);
38314
+ };
38315
+
38316
+
38317
+ /**
38318
+ * Clears the message field making it undefined.
38319
+ * @return {!proto.user.UpdatePresetResponse} returns this
38320
+ */
38321
+ proto.user.UpdatePresetResponse.prototype.clearItem = function() {
38322
+ return this.setItem(undefined);
38323
+ };
38324
+
38325
+
38326
+ /**
38327
+ * Returns whether this field is set.
38328
+ * @return {boolean}
38329
+ */
38330
+ proto.user.UpdatePresetResponse.prototype.hasItem = function() {
38331
+ return jspb.Message.getField(this, 1) != null;
38332
+ };
38333
+
38334
+
38335
+
38336
+
38337
+
38338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38339
+ /**
38340
+ * Creates an object representation of this proto.
38341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38342
+ * Optional fields that are not set will be set to undefined.
38343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38344
+ * For the list of reserved names please see:
38345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38347
+ * JSPB instance for transitional soy proto support:
38348
+ * http://goto/soy-param-migration
38349
+ * @return {!Object}
38350
+ */
38351
+ proto.user.DeletePresetRequest.prototype.toObject = function(opt_includeInstance) {
38352
+ return proto.user.DeletePresetRequest.toObject(opt_includeInstance, this);
38353
+ };
38354
+
38355
+
38356
+ /**
38357
+ * Static version of the {@see toObject} method.
38358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38359
+ * the JSPB instance for transitional soy proto support:
38360
+ * http://goto/soy-param-migration
38361
+ * @param {!proto.user.DeletePresetRequest} msg The msg instance to transform.
38362
+ * @return {!Object}
38363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38364
+ */
38365
+ proto.user.DeletePresetRequest.toObject = function(includeInstance, msg) {
38366
+ var f, obj = {
38367
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
38368
+ };
38369
+
38370
+ if (includeInstance) {
38371
+ obj.$jspbMessageInstance = msg;
38372
+ }
38373
+ return obj;
38374
+ };
38375
+ }
38376
+
38377
+
38378
+ /**
38379
+ * Deserializes binary data (in protobuf wire format).
38380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38381
+ * @return {!proto.user.DeletePresetRequest}
38382
+ */
38383
+ proto.user.DeletePresetRequest.deserializeBinary = function(bytes) {
38384
+ var reader = new jspb.BinaryReader(bytes);
38385
+ var msg = new proto.user.DeletePresetRequest;
38386
+ return proto.user.DeletePresetRequest.deserializeBinaryFromReader(msg, reader);
38387
+ };
38388
+
38389
+
38390
+ /**
38391
+ * Deserializes binary data (in protobuf wire format) from the
38392
+ * given reader into the given message object.
38393
+ * @param {!proto.user.DeletePresetRequest} msg The message object to deserialize into.
38394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38395
+ * @return {!proto.user.DeletePresetRequest}
38396
+ */
38397
+ proto.user.DeletePresetRequest.deserializeBinaryFromReader = function(msg, reader) {
38398
+ while (reader.nextField()) {
38399
+ if (reader.isEndGroup()) {
38400
+ break;
38401
+ }
38402
+ var field = reader.getFieldNumber();
38403
+ switch (field) {
38404
+ case 1:
38405
+ var value = /** @type {number} */ (reader.readInt32());
38406
+ msg.setId(value);
38407
+ break;
38408
+ default:
38409
+ reader.skipField();
38410
+ break;
38411
+ }
38412
+ }
38413
+ return msg;
38414
+ };
38415
+
38416
+
38417
+ /**
38418
+ * Serializes the message to binary data (in protobuf wire format).
38419
+ * @return {!Uint8Array}
38420
+ */
38421
+ proto.user.DeletePresetRequest.prototype.serializeBinary = function() {
38422
+ var writer = new jspb.BinaryWriter();
38423
+ proto.user.DeletePresetRequest.serializeBinaryToWriter(this, writer);
38424
+ return writer.getResultBuffer();
38425
+ };
38426
+
38427
+
38428
+ /**
38429
+ * Serializes the given message to binary data (in protobuf wire
38430
+ * format), writing to the given BinaryWriter.
38431
+ * @param {!proto.user.DeletePresetRequest} message
38432
+ * @param {!jspb.BinaryWriter} writer
38433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38434
+ */
38435
+ proto.user.DeletePresetRequest.serializeBinaryToWriter = function(message, writer) {
38436
+ var f = undefined;
38437
+ f = message.getId();
38438
+ if (f !== 0) {
38439
+ writer.writeInt32(
38440
+ 1,
38441
+ f
38442
+ );
38443
+ }
38444
+ };
38445
+
38446
+
38447
+ /**
38448
+ * optional int32 id = 1;
38449
+ * @return {number}
38450
+ */
38451
+ proto.user.DeletePresetRequest.prototype.getId = function() {
38452
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38453
+ };
38454
+
38455
+
38456
+ /**
38457
+ * @param {number} value
38458
+ * @return {!proto.user.DeletePresetRequest} returns this
38459
+ */
38460
+ proto.user.DeletePresetRequest.prototype.setId = function(value) {
38461
+ return jspb.Message.setProto3IntField(this, 1, value);
38462
+ };
38463
+
38464
+
38465
+
38466
+
38467
+
38468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38469
+ /**
38470
+ * Creates an object representation of this proto.
38471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38472
+ * Optional fields that are not set will be set to undefined.
38473
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38474
+ * For the list of reserved names please see:
38475
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38476
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38477
+ * JSPB instance for transitional soy proto support:
38478
+ * http://goto/soy-param-migration
38479
+ * @return {!Object}
38480
+ */
38481
+ proto.user.DeletePresetResponse.prototype.toObject = function(opt_includeInstance) {
38482
+ return proto.user.DeletePresetResponse.toObject(opt_includeInstance, this);
38483
+ };
38484
+
38485
+
38486
+ /**
38487
+ * Static version of the {@see toObject} method.
38488
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38489
+ * the JSPB instance for transitional soy proto support:
38490
+ * http://goto/soy-param-migration
38491
+ * @param {!proto.user.DeletePresetResponse} msg The msg instance to transform.
38492
+ * @return {!Object}
38493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38494
+ */
38495
+ proto.user.DeletePresetResponse.toObject = function(includeInstance, msg) {
38496
+ var f, obj = {
38497
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
38498
+ };
38499
+
38500
+ if (includeInstance) {
38501
+ obj.$jspbMessageInstance = msg;
38502
+ }
38503
+ return obj;
38504
+ };
38505
+ }
38506
+
38507
+
38508
+ /**
38509
+ * Deserializes binary data (in protobuf wire format).
38510
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38511
+ * @return {!proto.user.DeletePresetResponse}
38512
+ */
38513
+ proto.user.DeletePresetResponse.deserializeBinary = function(bytes) {
38514
+ var reader = new jspb.BinaryReader(bytes);
38515
+ var msg = new proto.user.DeletePresetResponse;
38516
+ return proto.user.DeletePresetResponse.deserializeBinaryFromReader(msg, reader);
38517
+ };
38518
+
38519
+
38520
+ /**
38521
+ * Deserializes binary data (in protobuf wire format) from the
38522
+ * given reader into the given message object.
38523
+ * @param {!proto.user.DeletePresetResponse} msg The message object to deserialize into.
38524
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38525
+ * @return {!proto.user.DeletePresetResponse}
38526
+ */
38527
+ proto.user.DeletePresetResponse.deserializeBinaryFromReader = function(msg, reader) {
38528
+ while (reader.nextField()) {
38529
+ if (reader.isEndGroup()) {
38530
+ break;
38531
+ }
38532
+ var field = reader.getFieldNumber();
38533
+ switch (field) {
38534
+ case 1:
38535
+ var value = /** @type {string} */ (reader.readString());
38536
+ msg.setStatus(value);
38537
+ break;
38538
+ default:
38539
+ reader.skipField();
38540
+ break;
38541
+ }
38542
+ }
38543
+ return msg;
38544
+ };
38545
+
38546
+
38547
+ /**
38548
+ * Serializes the message to binary data (in protobuf wire format).
38549
+ * @return {!Uint8Array}
38550
+ */
38551
+ proto.user.DeletePresetResponse.prototype.serializeBinary = function() {
38552
+ var writer = new jspb.BinaryWriter();
38553
+ proto.user.DeletePresetResponse.serializeBinaryToWriter(this, writer);
38554
+ return writer.getResultBuffer();
38555
+ };
38556
+
38557
+
38558
+ /**
38559
+ * Serializes the given message to binary data (in protobuf wire
38560
+ * format), writing to the given BinaryWriter.
38561
+ * @param {!proto.user.DeletePresetResponse} message
38562
+ * @param {!jspb.BinaryWriter} writer
38563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38564
+ */
38565
+ proto.user.DeletePresetResponse.serializeBinaryToWriter = function(message, writer) {
38566
+ var f = undefined;
38567
+ f = message.getStatus();
38568
+ if (f.length > 0) {
38569
+ writer.writeString(
38570
+ 1,
38571
+ f
38572
+ );
38573
+ }
38574
+ };
38575
+
38576
+
38577
+ /**
38578
+ * optional string status = 1;
38579
+ * @return {string}
38580
+ */
38581
+ proto.user.DeletePresetResponse.prototype.getStatus = function() {
38582
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
38583
+ };
38584
+
38585
+
38586
+ /**
38587
+ * @param {string} value
38588
+ * @return {!proto.user.DeletePresetResponse} returns this
38589
+ */
38590
+ proto.user.DeletePresetResponse.prototype.setStatus = function(value) {
38591
+ return jspb.Message.setProto3StringField(this, 1, value);
38592
+ };
38593
+
38594
+
38595
+
38596
+
38597
+
38598
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38599
+ /**
38600
+ * Creates an object representation of this proto.
38601
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38602
+ * Optional fields that are not set will be set to undefined.
38603
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38604
+ * For the list of reserved names please see:
38605
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38606
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38607
+ * JSPB instance for transitional soy proto support:
38608
+ * http://goto/soy-param-migration
38609
+ * @return {!Object}
38610
+ */
38611
+ proto.user.ReadListPresetsRequest.prototype.toObject = function(opt_includeInstance) {
38612
+ return proto.user.ReadListPresetsRequest.toObject(opt_includeInstance, this);
38613
+ };
38614
+
38615
+
38616
+ /**
38617
+ * Static version of the {@see toObject} method.
38618
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38619
+ * the JSPB instance for transitional soy proto support:
38620
+ * http://goto/soy-param-migration
38621
+ * @param {!proto.user.ReadListPresetsRequest} msg The msg instance to transform.
38622
+ * @return {!Object}
38623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38624
+ */
38625
+ proto.user.ReadListPresetsRequest.toObject = function(includeInstance, msg) {
38626
+ var f, obj = {
38627
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
38628
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
38629
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
38630
+ presetCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
38631
+ title: jspb.Message.getFieldWithDefault(msg, 5, ""),
38632
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
38633
+ };
38634
+
38635
+ if (includeInstance) {
38636
+ obj.$jspbMessageInstance = msg;
38637
+ }
38638
+ return obj;
38639
+ };
38640
+ }
38641
+
38642
+
38643
+ /**
38644
+ * Deserializes binary data (in protobuf wire format).
38645
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38646
+ * @return {!proto.user.ReadListPresetsRequest}
38647
+ */
38648
+ proto.user.ReadListPresetsRequest.deserializeBinary = function(bytes) {
38649
+ var reader = new jspb.BinaryReader(bytes);
38650
+ var msg = new proto.user.ReadListPresetsRequest;
38651
+ return proto.user.ReadListPresetsRequest.deserializeBinaryFromReader(msg, reader);
38652
+ };
38653
+
38654
+
38655
+ /**
38656
+ * Deserializes binary data (in protobuf wire format) from the
38657
+ * given reader into the given message object.
38658
+ * @param {!proto.user.ReadListPresetsRequest} msg The message object to deserialize into.
38659
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38660
+ * @return {!proto.user.ReadListPresetsRequest}
38661
+ */
38662
+ proto.user.ReadListPresetsRequest.deserializeBinaryFromReader = function(msg, reader) {
38663
+ while (reader.nextField()) {
38664
+ if (reader.isEndGroup()) {
38665
+ break;
38666
+ }
38667
+ var field = reader.getFieldNumber();
38668
+ switch (field) {
38669
+ case 1:
38670
+ var value = /** @type {number} */ (reader.readInt32());
38671
+ msg.setLimit(value);
38672
+ break;
38673
+ case 2:
38674
+ var value = /** @type {number} */ (reader.readInt32());
38675
+ msg.setOffset(value);
38676
+ break;
38677
+ case 3:
38678
+ var value = /** @type {string} */ (reader.readString());
38679
+ msg.setOrder(value);
38680
+ break;
38681
+ case 4:
38682
+ var value = /** @type {string} */ (reader.readString());
38683
+ msg.setPresetCode(value);
38684
+ break;
38685
+ case 5:
38686
+ var value = /** @type {string} */ (reader.readString());
38687
+ msg.setTitle(value);
38688
+ break;
38689
+ case 6:
38690
+ var value = /** @type {boolean} */ (reader.readBool());
38691
+ msg.setIsActive(value);
38692
+ break;
38693
+ default:
38694
+ reader.skipField();
38695
+ break;
38696
+ }
38697
+ }
38698
+ return msg;
38699
+ };
38700
+
38701
+
38702
+ /**
38703
+ * Serializes the message to binary data (in protobuf wire format).
38704
+ * @return {!Uint8Array}
38705
+ */
38706
+ proto.user.ReadListPresetsRequest.prototype.serializeBinary = function() {
38707
+ var writer = new jspb.BinaryWriter();
38708
+ proto.user.ReadListPresetsRequest.serializeBinaryToWriter(this, writer);
38709
+ return writer.getResultBuffer();
38710
+ };
38711
+
38712
+
38713
+ /**
38714
+ * Serializes the given message to binary data (in protobuf wire
38715
+ * format), writing to the given BinaryWriter.
38716
+ * @param {!proto.user.ReadListPresetsRequest} message
38717
+ * @param {!jspb.BinaryWriter} writer
38718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38719
+ */
38720
+ proto.user.ReadListPresetsRequest.serializeBinaryToWriter = function(message, writer) {
38721
+ var f = undefined;
38722
+ f = message.getLimit();
38723
+ if (f !== 0) {
38724
+ writer.writeInt32(
38725
+ 1,
38726
+ f
38727
+ );
38728
+ }
38729
+ f = message.getOffset();
38730
+ if (f !== 0) {
38731
+ writer.writeInt32(
38732
+ 2,
38733
+ f
38734
+ );
38735
+ }
38736
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
38737
+ if (f != null) {
38738
+ writer.writeString(
38739
+ 3,
38740
+ f
38741
+ );
38742
+ }
38743
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
38744
+ if (f != null) {
38745
+ writer.writeString(
38746
+ 4,
38747
+ f
38748
+ );
38749
+ }
38750
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
38751
+ if (f != null) {
38752
+ writer.writeString(
38753
+ 5,
38754
+ f
38755
+ );
38756
+ }
38757
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
38758
+ if (f != null) {
38759
+ writer.writeBool(
38760
+ 6,
38761
+ f
38762
+ );
38763
+ }
38764
+ };
38765
+
38766
+
38767
+ /**
38768
+ * optional int32 limit = 1;
38769
+ * @return {number}
38770
+ */
38771
+ proto.user.ReadListPresetsRequest.prototype.getLimit = function() {
38772
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
38773
+ };
38774
+
38775
+
38776
+ /**
38777
+ * @param {number} value
38778
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38779
+ */
38780
+ proto.user.ReadListPresetsRequest.prototype.setLimit = function(value) {
38781
+ return jspb.Message.setProto3IntField(this, 1, value);
38782
+ };
38783
+
38784
+
38785
+ /**
38786
+ * optional int32 offset = 2;
38787
+ * @return {number}
38788
+ */
38789
+ proto.user.ReadListPresetsRequest.prototype.getOffset = function() {
38790
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
38791
+ };
38792
+
38793
+
38794
+ /**
38795
+ * @param {number} value
38796
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38797
+ */
38798
+ proto.user.ReadListPresetsRequest.prototype.setOffset = function(value) {
38799
+ return jspb.Message.setProto3IntField(this, 2, value);
38800
+ };
38801
+
38802
+
38803
+ /**
38804
+ * optional string order = 3;
38805
+ * @return {string}
38806
+ */
38807
+ proto.user.ReadListPresetsRequest.prototype.getOrder = function() {
38808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
38809
+ };
38810
+
38811
+
38812
+ /**
38813
+ * @param {string} value
38814
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38815
+ */
38816
+ proto.user.ReadListPresetsRequest.prototype.setOrder = function(value) {
38817
+ return jspb.Message.setField(this, 3, value);
38818
+ };
38819
+
38820
+
38821
+ /**
38822
+ * Clears the field making it undefined.
38823
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38824
+ */
38825
+ proto.user.ReadListPresetsRequest.prototype.clearOrder = function() {
38826
+ return jspb.Message.setField(this, 3, undefined);
38827
+ };
38828
+
38829
+
38830
+ /**
38831
+ * Returns whether this field is set.
38832
+ * @return {boolean}
38833
+ */
38834
+ proto.user.ReadListPresetsRequest.prototype.hasOrder = function() {
38835
+ return jspb.Message.getField(this, 3) != null;
38836
+ };
38837
+
38838
+
38839
+ /**
38840
+ * optional string preset_code = 4;
38841
+ * @return {string}
38842
+ */
38843
+ proto.user.ReadListPresetsRequest.prototype.getPresetCode = function() {
38844
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
38845
+ };
38846
+
38847
+
38848
+ /**
38849
+ * @param {string} value
38850
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38851
+ */
38852
+ proto.user.ReadListPresetsRequest.prototype.setPresetCode = function(value) {
38853
+ return jspb.Message.setField(this, 4, value);
38854
+ };
38855
+
38856
+
38857
+ /**
38858
+ * Clears the field making it undefined.
38859
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38860
+ */
38861
+ proto.user.ReadListPresetsRequest.prototype.clearPresetCode = function() {
38862
+ return jspb.Message.setField(this, 4, undefined);
38863
+ };
38864
+
38865
+
38866
+ /**
38867
+ * Returns whether this field is set.
38868
+ * @return {boolean}
38869
+ */
38870
+ proto.user.ReadListPresetsRequest.prototype.hasPresetCode = function() {
38871
+ return jspb.Message.getField(this, 4) != null;
38872
+ };
38873
+
38874
+
38875
+ /**
38876
+ * optional string title = 5;
38877
+ * @return {string}
38878
+ */
38879
+ proto.user.ReadListPresetsRequest.prototype.getTitle = function() {
38880
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
38881
+ };
38882
+
38883
+
38884
+ /**
38885
+ * @param {string} value
38886
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38887
+ */
38888
+ proto.user.ReadListPresetsRequest.prototype.setTitle = function(value) {
38889
+ return jspb.Message.setField(this, 5, value);
38890
+ };
38891
+
38892
+
38893
+ /**
38894
+ * Clears the field making it undefined.
38895
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38896
+ */
38897
+ proto.user.ReadListPresetsRequest.prototype.clearTitle = function() {
38898
+ return jspb.Message.setField(this, 5, undefined);
38899
+ };
38900
+
38901
+
38902
+ /**
38903
+ * Returns whether this field is set.
38904
+ * @return {boolean}
38905
+ */
38906
+ proto.user.ReadListPresetsRequest.prototype.hasTitle = function() {
38907
+ return jspb.Message.getField(this, 5) != null;
38908
+ };
38909
+
38910
+
38911
+ /**
38912
+ * optional bool is_active = 6;
38913
+ * @return {boolean}
38914
+ */
38915
+ proto.user.ReadListPresetsRequest.prototype.getIsActive = function() {
38916
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
38917
+ };
38918
+
38919
+
38920
+ /**
38921
+ * @param {boolean} value
38922
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38923
+ */
38924
+ proto.user.ReadListPresetsRequest.prototype.setIsActive = function(value) {
38925
+ return jspb.Message.setField(this, 6, value);
38926
+ };
38927
+
38928
+
38929
+ /**
38930
+ * Clears the field making it undefined.
38931
+ * @return {!proto.user.ReadListPresetsRequest} returns this
38932
+ */
38933
+ proto.user.ReadListPresetsRequest.prototype.clearIsActive = function() {
38934
+ return jspb.Message.setField(this, 6, undefined);
38935
+ };
38936
+
38937
+
38938
+ /**
38939
+ * Returns whether this field is set.
38940
+ * @return {boolean}
38941
+ */
38942
+ proto.user.ReadListPresetsRequest.prototype.hasIsActive = function() {
38943
+ return jspb.Message.getField(this, 6) != null;
38944
+ };
38945
+
38946
+
38947
+
38948
+ /**
38949
+ * List of repeated fields within this message type.
38950
+ * @private {!Array<number>}
38951
+ * @const
38952
+ */
38953
+ proto.user.ReadListPresetsResponse.repeatedFields_ = [1];
38954
+
38955
+
38956
+
38957
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38958
+ /**
38959
+ * Creates an object representation of this proto.
38960
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38961
+ * Optional fields that are not set will be set to undefined.
38962
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38963
+ * For the list of reserved names please see:
38964
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38965
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38966
+ * JSPB instance for transitional soy proto support:
38967
+ * http://goto/soy-param-migration
38968
+ * @return {!Object}
38969
+ */
38970
+ proto.user.ReadListPresetsResponse.prototype.toObject = function(opt_includeInstance) {
38971
+ return proto.user.ReadListPresetsResponse.toObject(opt_includeInstance, this);
38972
+ };
38973
+
38974
+
38975
+ /**
38976
+ * Static version of the {@see toObject} method.
38977
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38978
+ * the JSPB instance for transitional soy proto support:
38979
+ * http://goto/soy-param-migration
38980
+ * @param {!proto.user.ReadListPresetsResponse} msg The msg instance to transform.
38981
+ * @return {!Object}
38982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38983
+ */
38984
+ proto.user.ReadListPresetsResponse.toObject = function(includeInstance, msg) {
38985
+ var f, obj = {
38986
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
38987
+ proto.user.PresetListItem.toObject, includeInstance),
38988
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
38989
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
38990
+ };
38991
+
38992
+ if (includeInstance) {
38993
+ obj.$jspbMessageInstance = msg;
38994
+ }
38995
+ return obj;
38996
+ };
38997
+ }
38998
+
38999
+
39000
+ /**
39001
+ * Deserializes binary data (in protobuf wire format).
39002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39003
+ * @return {!proto.user.ReadListPresetsResponse}
39004
+ */
39005
+ proto.user.ReadListPresetsResponse.deserializeBinary = function(bytes) {
39006
+ var reader = new jspb.BinaryReader(bytes);
39007
+ var msg = new proto.user.ReadListPresetsResponse;
39008
+ return proto.user.ReadListPresetsResponse.deserializeBinaryFromReader(msg, reader);
39009
+ };
39010
+
39011
+
39012
+ /**
39013
+ * Deserializes binary data (in protobuf wire format) from the
39014
+ * given reader into the given message object.
39015
+ * @param {!proto.user.ReadListPresetsResponse} msg The message object to deserialize into.
39016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39017
+ * @return {!proto.user.ReadListPresetsResponse}
39018
+ */
39019
+ proto.user.ReadListPresetsResponse.deserializeBinaryFromReader = function(msg, reader) {
39020
+ while (reader.nextField()) {
39021
+ if (reader.isEndGroup()) {
39022
+ break;
39023
+ }
39024
+ var field = reader.getFieldNumber();
39025
+ switch (field) {
39026
+ case 1:
39027
+ var value = new proto.user.PresetListItem;
39028
+ reader.readMessage(value,proto.user.PresetListItem.deserializeBinaryFromReader);
39029
+ msg.addItems(value);
39030
+ break;
39031
+ case 2:
39032
+ var value = /** @type {number} */ (reader.readInt32());
39033
+ msg.setTotalPages(value);
39034
+ break;
39035
+ case 3:
39036
+ var value = /** @type {number} */ (reader.readInt32());
39037
+ msg.setTotalItems(value);
39038
+ break;
39039
+ default:
39040
+ reader.skipField();
39041
+ break;
39042
+ }
39043
+ }
39044
+ return msg;
39045
+ };
39046
+
39047
+
39048
+ /**
39049
+ * Serializes the message to binary data (in protobuf wire format).
39050
+ * @return {!Uint8Array}
39051
+ */
39052
+ proto.user.ReadListPresetsResponse.prototype.serializeBinary = function() {
39053
+ var writer = new jspb.BinaryWriter();
39054
+ proto.user.ReadListPresetsResponse.serializeBinaryToWriter(this, writer);
39055
+ return writer.getResultBuffer();
39056
+ };
39057
+
39058
+
39059
+ /**
39060
+ * Serializes the given message to binary data (in protobuf wire
39061
+ * format), writing to the given BinaryWriter.
39062
+ * @param {!proto.user.ReadListPresetsResponse} message
39063
+ * @param {!jspb.BinaryWriter} writer
39064
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39065
+ */
39066
+ proto.user.ReadListPresetsResponse.serializeBinaryToWriter = function(message, writer) {
39067
+ var f = undefined;
39068
+ f = message.getItemsList();
39069
+ if (f.length > 0) {
39070
+ writer.writeRepeatedMessage(
39071
+ 1,
39072
+ f,
39073
+ proto.user.PresetListItem.serializeBinaryToWriter
39074
+ );
39075
+ }
39076
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
39077
+ if (f != null) {
39078
+ writer.writeInt32(
39079
+ 2,
39080
+ f
39081
+ );
39082
+ }
39083
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
39084
+ if (f != null) {
39085
+ writer.writeInt32(
39086
+ 3,
39087
+ f
39088
+ );
39089
+ }
39090
+ };
39091
+
39092
+
39093
+ /**
39094
+ * repeated PresetListItem items = 1;
39095
+ * @return {!Array<!proto.user.PresetListItem>}
39096
+ */
39097
+ proto.user.ReadListPresetsResponse.prototype.getItemsList = function() {
39098
+ return /** @type{!Array<!proto.user.PresetListItem>} */ (
39099
+ jspb.Message.getRepeatedWrapperField(this, proto.user.PresetListItem, 1));
39100
+ };
39101
+
39102
+
39103
+ /**
39104
+ * @param {!Array<!proto.user.PresetListItem>} value
39105
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39106
+ */
39107
+ proto.user.ReadListPresetsResponse.prototype.setItemsList = function(value) {
39108
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
39109
+ };
39110
+
39111
+
39112
+ /**
39113
+ * @param {!proto.user.PresetListItem=} opt_value
39114
+ * @param {number=} opt_index
39115
+ * @return {!proto.user.PresetListItem}
39116
+ */
39117
+ proto.user.ReadListPresetsResponse.prototype.addItems = function(opt_value, opt_index) {
39118
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.PresetListItem, opt_index);
39119
+ };
39120
+
39121
+
39122
+ /**
39123
+ * Clears the list making it empty but non-null.
39124
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39125
+ */
39126
+ proto.user.ReadListPresetsResponse.prototype.clearItemsList = function() {
39127
+ return this.setItemsList([]);
39128
+ };
39129
+
39130
+
39131
+ /**
39132
+ * optional int32 total_pages = 2;
39133
+ * @return {number}
39134
+ */
39135
+ proto.user.ReadListPresetsResponse.prototype.getTotalPages = function() {
39136
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
39137
+ };
39138
+
39139
+
39140
+ /**
39141
+ * @param {number} value
39142
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39143
+ */
39144
+ proto.user.ReadListPresetsResponse.prototype.setTotalPages = function(value) {
39145
+ return jspb.Message.setField(this, 2, value);
39146
+ };
39147
+
39148
+
39149
+ /**
39150
+ * Clears the field making it undefined.
39151
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39152
+ */
39153
+ proto.user.ReadListPresetsResponse.prototype.clearTotalPages = function() {
39154
+ return jspb.Message.setField(this, 2, undefined);
39155
+ };
39156
+
39157
+
39158
+ /**
39159
+ * Returns whether this field is set.
39160
+ * @return {boolean}
39161
+ */
39162
+ proto.user.ReadListPresetsResponse.prototype.hasTotalPages = function() {
39163
+ return jspb.Message.getField(this, 2) != null;
39164
+ };
39165
+
39166
+
39167
+ /**
39168
+ * optional int32 total_items = 3;
39169
+ * @return {number}
39170
+ */
39171
+ proto.user.ReadListPresetsResponse.prototype.getTotalItems = function() {
39172
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
39173
+ };
39174
+
39175
+
39176
+ /**
39177
+ * @param {number} value
39178
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39179
+ */
39180
+ proto.user.ReadListPresetsResponse.prototype.setTotalItems = function(value) {
39181
+ return jspb.Message.setField(this, 3, value);
39182
+ };
39183
+
39184
+
39185
+ /**
39186
+ * Clears the field making it undefined.
39187
+ * @return {!proto.user.ReadListPresetsResponse} returns this
39188
+ */
39189
+ proto.user.ReadListPresetsResponse.prototype.clearTotalItems = function() {
39190
+ return jspb.Message.setField(this, 3, undefined);
39191
+ };
39192
+
39193
+
39194
+ /**
39195
+ * Returns whether this field is set.
39196
+ * @return {boolean}
39197
+ */
39198
+ proto.user.ReadListPresetsResponse.prototype.hasTotalItems = function() {
39199
+ return jspb.Message.getField(this, 3) != null;
39200
+ };
39201
+
39202
+
39203
+
39204
+
39205
+
39206
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39207
+ /**
39208
+ * Creates an object representation of this proto.
39209
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39210
+ * Optional fields that are not set will be set to undefined.
39211
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39212
+ * For the list of reserved names please see:
39213
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39214
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39215
+ * JSPB instance for transitional soy proto support:
39216
+ * http://goto/soy-param-migration
39217
+ * @return {!Object}
39218
+ */
39219
+ proto.user.ResolvePresetByCodeRequest.prototype.toObject = function(opt_includeInstance) {
39220
+ return proto.user.ResolvePresetByCodeRequest.toObject(opt_includeInstance, this);
39221
+ };
39222
+
39223
+
39224
+ /**
39225
+ * Static version of the {@see toObject} method.
39226
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39227
+ * the JSPB instance for transitional soy proto support:
39228
+ * http://goto/soy-param-migration
39229
+ * @param {!proto.user.ResolvePresetByCodeRequest} msg The msg instance to transform.
39230
+ * @return {!Object}
39231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39232
+ */
39233
+ proto.user.ResolvePresetByCodeRequest.toObject = function(includeInstance, msg) {
39234
+ var f, obj = {
39235
+ presetCode: jspb.Message.getFieldWithDefault(msg, 1, "")
39236
+ };
39237
+
39238
+ if (includeInstance) {
39239
+ obj.$jspbMessageInstance = msg;
39240
+ }
39241
+ return obj;
39242
+ };
39243
+ }
39244
+
39245
+
39246
+ /**
39247
+ * Deserializes binary data (in protobuf wire format).
39248
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39249
+ * @return {!proto.user.ResolvePresetByCodeRequest}
39250
+ */
39251
+ proto.user.ResolvePresetByCodeRequest.deserializeBinary = function(bytes) {
39252
+ var reader = new jspb.BinaryReader(bytes);
39253
+ var msg = new proto.user.ResolvePresetByCodeRequest;
39254
+ return proto.user.ResolvePresetByCodeRequest.deserializeBinaryFromReader(msg, reader);
39255
+ };
39256
+
39257
+
39258
+ /**
39259
+ * Deserializes binary data (in protobuf wire format) from the
39260
+ * given reader into the given message object.
39261
+ * @param {!proto.user.ResolvePresetByCodeRequest} msg The message object to deserialize into.
39262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39263
+ * @return {!proto.user.ResolvePresetByCodeRequest}
39264
+ */
39265
+ proto.user.ResolvePresetByCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
39266
+ while (reader.nextField()) {
39267
+ if (reader.isEndGroup()) {
39268
+ break;
39269
+ }
39270
+ var field = reader.getFieldNumber();
39271
+ switch (field) {
39272
+ case 1:
39273
+ var value = /** @type {string} */ (reader.readString());
39274
+ msg.setPresetCode(value);
39275
+ break;
39276
+ default:
39277
+ reader.skipField();
39278
+ break;
39279
+ }
39280
+ }
39281
+ return msg;
39282
+ };
39283
+
39284
+
39285
+ /**
39286
+ * Serializes the message to binary data (in protobuf wire format).
39287
+ * @return {!Uint8Array}
39288
+ */
39289
+ proto.user.ResolvePresetByCodeRequest.prototype.serializeBinary = function() {
39290
+ var writer = new jspb.BinaryWriter();
39291
+ proto.user.ResolvePresetByCodeRequest.serializeBinaryToWriter(this, writer);
39292
+ return writer.getResultBuffer();
39293
+ };
39294
+
39295
+
39296
+ /**
39297
+ * Serializes the given message to binary data (in protobuf wire
39298
+ * format), writing to the given BinaryWriter.
39299
+ * @param {!proto.user.ResolvePresetByCodeRequest} message
39300
+ * @param {!jspb.BinaryWriter} writer
39301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39302
+ */
39303
+ proto.user.ResolvePresetByCodeRequest.serializeBinaryToWriter = function(message, writer) {
39304
+ var f = undefined;
39305
+ f = message.getPresetCode();
39306
+ if (f.length > 0) {
39307
+ writer.writeString(
39308
+ 1,
39309
+ f
39310
+ );
39311
+ }
39312
+ };
39313
+
39314
+
39315
+ /**
39316
+ * optional string preset_code = 1;
39317
+ * @return {string}
39318
+ */
39319
+ proto.user.ResolvePresetByCodeRequest.prototype.getPresetCode = function() {
39320
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
39321
+ };
39322
+
39323
+
39324
+ /**
39325
+ * @param {string} value
39326
+ * @return {!proto.user.ResolvePresetByCodeRequest} returns this
39327
+ */
39328
+ proto.user.ResolvePresetByCodeRequest.prototype.setPresetCode = function(value) {
39329
+ return jspb.Message.setProto3StringField(this, 1, value);
39330
+ };
39331
+
39332
+
39333
+
39334
+
39335
+
39336
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39337
+ /**
39338
+ * Creates an object representation of this proto.
39339
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39340
+ * Optional fields that are not set will be set to undefined.
39341
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39342
+ * For the list of reserved names please see:
39343
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39344
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39345
+ * JSPB instance for transitional soy proto support:
39346
+ * http://goto/soy-param-migration
39347
+ * @return {!Object}
39348
+ */
39349
+ proto.user.ResolvePresetByCodeResponse.prototype.toObject = function(opt_includeInstance) {
39350
+ return proto.user.ResolvePresetByCodeResponse.toObject(opt_includeInstance, this);
39351
+ };
39352
+
39353
+
39354
+ /**
39355
+ * Static version of the {@see toObject} method.
39356
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39357
+ * the JSPB instance for transitional soy proto support:
39358
+ * http://goto/soy-param-migration
39359
+ * @param {!proto.user.ResolvePresetByCodeResponse} msg The msg instance to transform.
39360
+ * @return {!Object}
39361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39362
+ */
39363
+ proto.user.ResolvePresetByCodeResponse.toObject = function(includeInstance, msg) {
39364
+ var f, obj = {
39365
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
39366
+ presetCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
39367
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
39368
+ };
39369
+
39370
+ if (includeInstance) {
39371
+ obj.$jspbMessageInstance = msg;
39372
+ }
39373
+ return obj;
39374
+ };
39375
+ }
39376
+
39377
+
39378
+ /**
39379
+ * Deserializes binary data (in protobuf wire format).
39380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39381
+ * @return {!proto.user.ResolvePresetByCodeResponse}
39382
+ */
39383
+ proto.user.ResolvePresetByCodeResponse.deserializeBinary = function(bytes) {
39384
+ var reader = new jspb.BinaryReader(bytes);
39385
+ var msg = new proto.user.ResolvePresetByCodeResponse;
39386
+ return proto.user.ResolvePresetByCodeResponse.deserializeBinaryFromReader(msg, reader);
39387
+ };
39388
+
39389
+
39390
+ /**
39391
+ * Deserializes binary data (in protobuf wire format) from the
39392
+ * given reader into the given message object.
39393
+ * @param {!proto.user.ResolvePresetByCodeResponse} msg The message object to deserialize into.
39394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39395
+ * @return {!proto.user.ResolvePresetByCodeResponse}
39396
+ */
39397
+ proto.user.ResolvePresetByCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
39398
+ while (reader.nextField()) {
39399
+ if (reader.isEndGroup()) {
39400
+ break;
39401
+ }
39402
+ var field = reader.getFieldNumber();
39403
+ switch (field) {
39404
+ case 1:
39405
+ var value = /** @type {number} */ (reader.readInt32());
39406
+ msg.setId(value);
39407
+ break;
39408
+ case 2:
39409
+ var value = /** @type {string} */ (reader.readString());
39410
+ msg.setPresetCode(value);
39411
+ break;
39412
+ case 3:
39413
+ var value = /** @type {boolean} */ (reader.readBool());
39414
+ msg.setIsActive(value);
39415
+ break;
39416
+ default:
39417
+ reader.skipField();
39418
+ break;
39419
+ }
39420
+ }
39421
+ return msg;
39422
+ };
39423
+
39424
+
39425
+ /**
39426
+ * Serializes the message to binary data (in protobuf wire format).
39427
+ * @return {!Uint8Array}
39428
+ */
39429
+ proto.user.ResolvePresetByCodeResponse.prototype.serializeBinary = function() {
39430
+ var writer = new jspb.BinaryWriter();
39431
+ proto.user.ResolvePresetByCodeResponse.serializeBinaryToWriter(this, writer);
39432
+ return writer.getResultBuffer();
39433
+ };
39434
+
39435
+
39436
+ /**
39437
+ * Serializes the given message to binary data (in protobuf wire
39438
+ * format), writing to the given BinaryWriter.
39439
+ * @param {!proto.user.ResolvePresetByCodeResponse} message
39440
+ * @param {!jspb.BinaryWriter} writer
39441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39442
+ */
39443
+ proto.user.ResolvePresetByCodeResponse.serializeBinaryToWriter = function(message, writer) {
39444
+ var f = undefined;
39445
+ f = message.getId();
39446
+ if (f !== 0) {
39447
+ writer.writeInt32(
39448
+ 1,
39449
+ f
39450
+ );
39451
+ }
39452
+ f = message.getPresetCode();
39453
+ if (f.length > 0) {
39454
+ writer.writeString(
39455
+ 2,
39456
+ f
39457
+ );
39458
+ }
39459
+ f = message.getIsActive();
39460
+ if (f) {
39461
+ writer.writeBool(
39462
+ 3,
39463
+ f
39464
+ );
39465
+ }
39466
+ };
39467
+
39468
+
39469
+ /**
39470
+ * optional int32 id = 1;
39471
+ * @return {number}
39472
+ */
39473
+ proto.user.ResolvePresetByCodeResponse.prototype.getId = function() {
39474
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39475
+ };
39476
+
39477
+
39478
+ /**
39479
+ * @param {number} value
39480
+ * @return {!proto.user.ResolvePresetByCodeResponse} returns this
39481
+ */
39482
+ proto.user.ResolvePresetByCodeResponse.prototype.setId = function(value) {
39483
+ return jspb.Message.setProto3IntField(this, 1, value);
39484
+ };
39485
+
39486
+
39487
+ /**
39488
+ * optional string preset_code = 2;
39489
+ * @return {string}
39490
+ */
39491
+ proto.user.ResolvePresetByCodeResponse.prototype.getPresetCode = function() {
39492
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
39493
+ };
39494
+
39495
+
39496
+ /**
39497
+ * @param {string} value
39498
+ * @return {!proto.user.ResolvePresetByCodeResponse} returns this
39499
+ */
39500
+ proto.user.ResolvePresetByCodeResponse.prototype.setPresetCode = function(value) {
39501
+ return jspb.Message.setProto3StringField(this, 2, value);
39502
+ };
39503
+
39504
+
39505
+ /**
39506
+ * optional bool is_active = 3;
39507
+ * @return {boolean}
39508
+ */
39509
+ proto.user.ResolvePresetByCodeResponse.prototype.getIsActive = function() {
39510
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
39511
+ };
39512
+
39513
+
39514
+ /**
39515
+ * @param {boolean} value
39516
+ * @return {!proto.user.ResolvePresetByCodeResponse} returns this
39517
+ */
39518
+ proto.user.ResolvePresetByCodeResponse.prototype.setIsActive = function(value) {
39519
+ return jspb.Message.setProto3BooleanField(this, 3, value);
39520
+ };
39521
+
39522
+
39523
+
39524
+
39525
+
36237
39526
  if (jspb.Message.GENERATE_TO_OBJECT) {
36238
39527
  /**
36239
39528
  * Creates an object representation of this proto.