protobuf-platform 1.2.48 → 1.2.49

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.
@@ -12,6 +12,7 @@ service Loyalty {
12
12
  rpc deleteSingleLevel(GetLevelRequest) returns (LevelStatusResponse);
13
13
  rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
14
14
  rpc setLoyaltyLevelTranslation(LevelTranslationRequest) returns (LevelStatusResponse);
15
+ rpc getLoyaltyLevelTranslation(GetLevelTranslationRequest) returns (LevelTranslationResponse);
15
16
  //Loyalty Points
16
17
  rpc createSinglePoint(PointRequest) returns (PointResponse);
17
18
  rpc readSinglePoint(GetPointRequest) returns (PointResponse);
@@ -83,12 +84,24 @@ message LevelTranslationRequest {
83
84
  optional string title = 3;
84
85
  optional string description = 4;
85
86
  optional string content = 5;
87
+ optional int32 is_active = 6;
88
+ }
89
+ message GetLevelTranslationRequest {
90
+ int32 loyalty_level_id = 1;
91
+ string locale = 2;
86
92
  }
87
93
  message LevelTranslationItem {
88
94
  optional string title = 1;
89
95
  optional string locale = 2;
90
96
  optional string description = 3;
91
97
  optional string content = 4;
98
+ optional int32 is_active = 5;
99
+ }
100
+ message LevelTranslationResponse {
101
+ optional string title = 1;
102
+ optional string description = 2;
103
+ optional string content = 3;
104
+ optional int32 is_active = 4;
92
105
  }
93
106
  //Level CRUD | Responses
94
107
  message LevelResponse {
@@ -37,6 +37,17 @@ function deserialize_loyalty_GetLevelRequest(buffer_arg) {
37
37
  return loyalty_pb.GetLevelRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
38
  }
39
39
 
40
+ function serialize_loyalty_GetLevelTranslationRequest(arg) {
41
+ if (!(arg instanceof loyalty_pb.GetLevelTranslationRequest)) {
42
+ throw new Error('Expected argument of type loyalty.GetLevelTranslationRequest');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_loyalty_GetLevelTranslationRequest(buffer_arg) {
48
+ return loyalty_pb.GetLevelTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
40
51
  function serialize_loyalty_GetPointRequest(arg) {
41
52
  if (!(arg instanceof loyalty_pb.GetPointRequest)) {
42
53
  throw new Error('Expected argument of type loyalty.GetPointRequest');
@@ -114,6 +125,17 @@ function deserialize_loyalty_LevelTranslationRequest(buffer_arg) {
114
125
  return loyalty_pb.LevelTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
126
  }
116
127
 
128
+ function serialize_loyalty_LevelTranslationResponse(arg) {
129
+ if (!(arg instanceof loyalty_pb.LevelTranslationResponse)) {
130
+ throw new Error('Expected argument of type loyalty.LevelTranslationResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_loyalty_LevelTranslationResponse(buffer_arg) {
136
+ return loyalty_pb.LevelTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
117
139
  function serialize_loyalty_PaginationRequest(arg) {
118
140
  if (!(arg instanceof loyalty_pb.PaginationRequest)) {
119
141
  throw new Error('Expected argument of type loyalty.PaginationRequest');
@@ -304,6 +326,17 @@ createSingleLevel: {
304
326
  responseSerialize: serialize_loyalty_LevelStatusResponse,
305
327
  responseDeserialize: deserialize_loyalty_LevelStatusResponse,
306
328
  },
329
+ getLoyaltyLevelTranslation: {
330
+ path: '/loyalty.Loyalty/getLoyaltyLevelTranslation',
331
+ requestStream: false,
332
+ responseStream: false,
333
+ requestType: loyalty_pb.GetLevelTranslationRequest,
334
+ responseType: loyalty_pb.LevelTranslationResponse,
335
+ requestSerialize: serialize_loyalty_GetLevelTranslationRequest,
336
+ requestDeserialize: deserialize_loyalty_GetLevelTranslationRequest,
337
+ responseSerialize: serialize_loyalty_LevelTranslationResponse,
338
+ responseDeserialize: deserialize_loyalty_LevelTranslationResponse,
339
+ },
307
340
  // Loyalty Points
308
341
  createSinglePoint: {
309
342
  path: '/loyalty.Loyalty/createSinglePoint',
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.loyalty.DepositPoint', null, global);
26
26
  goog.exportSymbol('proto.loyalty.File', null, global);
27
27
  goog.exportSymbol('proto.loyalty.GetFileRequest', null, global);
28
28
  goog.exportSymbol('proto.loyalty.GetLevelRequest', null, global);
29
+ goog.exportSymbol('proto.loyalty.GetLevelTranslationRequest', null, global);
29
30
  goog.exportSymbol('proto.loyalty.GetPointRequest', null, global);
30
31
  goog.exportSymbol('proto.loyalty.GetUserLoyaltyRequest', null, global);
31
32
  goog.exportSymbol('proto.loyalty.LevelItem', null, global);
@@ -37,6 +38,7 @@ goog.exportSymbol('proto.loyalty.LevelResponse', null, global);
37
38
  goog.exportSymbol('proto.loyalty.LevelStatusResponse', null, global);
38
39
  goog.exportSymbol('proto.loyalty.LevelTranslationItem', null, global);
39
40
  goog.exportSymbol('proto.loyalty.LevelTranslationRequest', null, global);
41
+ goog.exportSymbol('proto.loyalty.LevelTranslationResponse', null, global);
40
42
  goog.exportSymbol('proto.loyalty.LoyaltySearchRequest', null, global);
41
43
  goog.exportSymbol('proto.loyalty.PaginationRequest', null, global);
42
44
  goog.exportSymbol('proto.loyalty.PingRequest', null, global);
@@ -281,6 +283,27 @@ if (goog.DEBUG && !COMPILED) {
281
283
  */
282
284
  proto.loyalty.LevelTranslationRequest.displayName = 'proto.loyalty.LevelTranslationRequest';
283
285
  }
286
+ /**
287
+ * Generated by JsPbCodeGenerator.
288
+ * @param {Array=} opt_data Optional initial data array, typically from a
289
+ * server response, or constructed directly in Javascript. The array is used
290
+ * in place and becomes part of the constructed object. It is not cloned.
291
+ * If no data is provided, the constructed object will be empty, but still
292
+ * valid.
293
+ * @extends {jspb.Message}
294
+ * @constructor
295
+ */
296
+ proto.loyalty.GetLevelTranslationRequest = function(opt_data) {
297
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
298
+ };
299
+ goog.inherits(proto.loyalty.GetLevelTranslationRequest, jspb.Message);
300
+ if (goog.DEBUG && !COMPILED) {
301
+ /**
302
+ * @public
303
+ * @override
304
+ */
305
+ proto.loyalty.GetLevelTranslationRequest.displayName = 'proto.loyalty.GetLevelTranslationRequest';
306
+ }
284
307
  /**
285
308
  * Generated by JsPbCodeGenerator.
286
309
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -302,6 +325,27 @@ if (goog.DEBUG && !COMPILED) {
302
325
  */
303
326
  proto.loyalty.LevelTranslationItem.displayName = 'proto.loyalty.LevelTranslationItem';
304
327
  }
328
+ /**
329
+ * Generated by JsPbCodeGenerator.
330
+ * @param {Array=} opt_data Optional initial data array, typically from a
331
+ * server response, or constructed directly in Javascript. The array is used
332
+ * in place and becomes part of the constructed object. It is not cloned.
333
+ * If no data is provided, the constructed object will be empty, but still
334
+ * valid.
335
+ * @extends {jspb.Message}
336
+ * @constructor
337
+ */
338
+ proto.loyalty.LevelTranslationResponse = function(opt_data) {
339
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
340
+ };
341
+ goog.inherits(proto.loyalty.LevelTranslationResponse, jspb.Message);
342
+ if (goog.DEBUG && !COMPILED) {
343
+ /**
344
+ * @public
345
+ * @override
346
+ */
347
+ proto.loyalty.LevelTranslationResponse.displayName = 'proto.loyalty.LevelTranslationResponse';
348
+ }
305
349
  /**
306
350
  * Generated by JsPbCodeGenerator.
307
351
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3434,7 +3478,8 @@ proto.loyalty.LevelTranslationRequest.toObject = function(includeInstance, msg)
3434
3478
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
3435
3479
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
3436
3480
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
3437
- content: jspb.Message.getFieldWithDefault(msg, 5, "")
3481
+ content: jspb.Message.getFieldWithDefault(msg, 5, ""),
3482
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
3438
3483
  };
3439
3484
 
3440
3485
  if (includeInstance) {
@@ -3491,6 +3536,10 @@ proto.loyalty.LevelTranslationRequest.deserializeBinaryFromReader = function(msg
3491
3536
  var value = /** @type {string} */ (reader.readString());
3492
3537
  msg.setContent(value);
3493
3538
  break;
3539
+ case 6:
3540
+ var value = /** @type {number} */ (reader.readInt32());
3541
+ msg.setIsActive(value);
3542
+ break;
3494
3543
  default:
3495
3544
  reader.skipField();
3496
3545
  break;
@@ -3555,6 +3604,13 @@ proto.loyalty.LevelTranslationRequest.serializeBinaryToWriter = function(message
3555
3604
  f
3556
3605
  );
3557
3606
  }
3607
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
3608
+ if (f != null) {
3609
+ writer.writeInt32(
3610
+ 6,
3611
+ f
3612
+ );
3613
+ }
3558
3614
  };
3559
3615
 
3560
3616
 
@@ -3738,6 +3794,202 @@ proto.loyalty.LevelTranslationRequest.prototype.hasContent = function() {
3738
3794
  };
3739
3795
 
3740
3796
 
3797
+ /**
3798
+ * optional int32 is_active = 6;
3799
+ * @return {number}
3800
+ */
3801
+ proto.loyalty.LevelTranslationRequest.prototype.getIsActive = function() {
3802
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * @param {number} value
3808
+ * @return {!proto.loyalty.LevelTranslationRequest} returns this
3809
+ */
3810
+ proto.loyalty.LevelTranslationRequest.prototype.setIsActive = function(value) {
3811
+ return jspb.Message.setField(this, 6, value);
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * Clears the field making it undefined.
3817
+ * @return {!proto.loyalty.LevelTranslationRequest} returns this
3818
+ */
3819
+ proto.loyalty.LevelTranslationRequest.prototype.clearIsActive = function() {
3820
+ return jspb.Message.setField(this, 6, undefined);
3821
+ };
3822
+
3823
+
3824
+ /**
3825
+ * Returns whether this field is set.
3826
+ * @return {boolean}
3827
+ */
3828
+ proto.loyalty.LevelTranslationRequest.prototype.hasIsActive = function() {
3829
+ return jspb.Message.getField(this, 6) != null;
3830
+ };
3831
+
3832
+
3833
+
3834
+
3835
+
3836
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3837
+ /**
3838
+ * Creates an object representation of this proto.
3839
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3840
+ * Optional fields that are not set will be set to undefined.
3841
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3842
+ * For the list of reserved names please see:
3843
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3844
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3845
+ * JSPB instance for transitional soy proto support:
3846
+ * http://goto/soy-param-migration
3847
+ * @return {!Object}
3848
+ */
3849
+ proto.loyalty.GetLevelTranslationRequest.prototype.toObject = function(opt_includeInstance) {
3850
+ return proto.loyalty.GetLevelTranslationRequest.toObject(opt_includeInstance, this);
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * Static version of the {@see toObject} method.
3856
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3857
+ * the JSPB instance for transitional soy proto support:
3858
+ * http://goto/soy-param-migration
3859
+ * @param {!proto.loyalty.GetLevelTranslationRequest} msg The msg instance to transform.
3860
+ * @return {!Object}
3861
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3862
+ */
3863
+ proto.loyalty.GetLevelTranslationRequest.toObject = function(includeInstance, msg) {
3864
+ var f, obj = {
3865
+ loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 1, 0),
3866
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
3867
+ };
3868
+
3869
+ if (includeInstance) {
3870
+ obj.$jspbMessageInstance = msg;
3871
+ }
3872
+ return obj;
3873
+ };
3874
+ }
3875
+
3876
+
3877
+ /**
3878
+ * Deserializes binary data (in protobuf wire format).
3879
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3880
+ * @return {!proto.loyalty.GetLevelTranslationRequest}
3881
+ */
3882
+ proto.loyalty.GetLevelTranslationRequest.deserializeBinary = function(bytes) {
3883
+ var reader = new jspb.BinaryReader(bytes);
3884
+ var msg = new proto.loyalty.GetLevelTranslationRequest;
3885
+ return proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader(msg, reader);
3886
+ };
3887
+
3888
+
3889
+ /**
3890
+ * Deserializes binary data (in protobuf wire format) from the
3891
+ * given reader into the given message object.
3892
+ * @param {!proto.loyalty.GetLevelTranslationRequest} msg The message object to deserialize into.
3893
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3894
+ * @return {!proto.loyalty.GetLevelTranslationRequest}
3895
+ */
3896
+ proto.loyalty.GetLevelTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
3897
+ while (reader.nextField()) {
3898
+ if (reader.isEndGroup()) {
3899
+ break;
3900
+ }
3901
+ var field = reader.getFieldNumber();
3902
+ switch (field) {
3903
+ case 1:
3904
+ var value = /** @type {number} */ (reader.readInt32());
3905
+ msg.setLoyaltyLevelId(value);
3906
+ break;
3907
+ case 2:
3908
+ var value = /** @type {string} */ (reader.readString());
3909
+ msg.setLocale(value);
3910
+ break;
3911
+ default:
3912
+ reader.skipField();
3913
+ break;
3914
+ }
3915
+ }
3916
+ return msg;
3917
+ };
3918
+
3919
+
3920
+ /**
3921
+ * Serializes the message to binary data (in protobuf wire format).
3922
+ * @return {!Uint8Array}
3923
+ */
3924
+ proto.loyalty.GetLevelTranslationRequest.prototype.serializeBinary = function() {
3925
+ var writer = new jspb.BinaryWriter();
3926
+ proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter(this, writer);
3927
+ return writer.getResultBuffer();
3928
+ };
3929
+
3930
+
3931
+ /**
3932
+ * Serializes the given message to binary data (in protobuf wire
3933
+ * format), writing to the given BinaryWriter.
3934
+ * @param {!proto.loyalty.GetLevelTranslationRequest} message
3935
+ * @param {!jspb.BinaryWriter} writer
3936
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3937
+ */
3938
+ proto.loyalty.GetLevelTranslationRequest.serializeBinaryToWriter = function(message, writer) {
3939
+ var f = undefined;
3940
+ f = message.getLoyaltyLevelId();
3941
+ if (f !== 0) {
3942
+ writer.writeInt32(
3943
+ 1,
3944
+ f
3945
+ );
3946
+ }
3947
+ f = message.getLocale();
3948
+ if (f.length > 0) {
3949
+ writer.writeString(
3950
+ 2,
3951
+ f
3952
+ );
3953
+ }
3954
+ };
3955
+
3956
+
3957
+ /**
3958
+ * optional int32 loyalty_level_id = 1;
3959
+ * @return {number}
3960
+ */
3961
+ proto.loyalty.GetLevelTranslationRequest.prototype.getLoyaltyLevelId = function() {
3962
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * @param {number} value
3968
+ * @return {!proto.loyalty.GetLevelTranslationRequest} returns this
3969
+ */
3970
+ proto.loyalty.GetLevelTranslationRequest.prototype.setLoyaltyLevelId = function(value) {
3971
+ return jspb.Message.setProto3IntField(this, 1, value);
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * optional string locale = 2;
3977
+ * @return {string}
3978
+ */
3979
+ proto.loyalty.GetLevelTranslationRequest.prototype.getLocale = function() {
3980
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3981
+ };
3982
+
3983
+
3984
+ /**
3985
+ * @param {string} value
3986
+ * @return {!proto.loyalty.GetLevelTranslationRequest} returns this
3987
+ */
3988
+ proto.loyalty.GetLevelTranslationRequest.prototype.setLocale = function(value) {
3989
+ return jspb.Message.setProto3StringField(this, 2, value);
3990
+ };
3991
+
3992
+
3741
3993
 
3742
3994
 
3743
3995
 
@@ -3773,7 +4025,8 @@ proto.loyalty.LevelTranslationItem.toObject = function(includeInstance, msg) {
3773
4025
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
3774
4026
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
3775
4027
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
3776
- content: jspb.Message.getFieldWithDefault(msg, 4, "")
4028
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
4029
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
3777
4030
  };
3778
4031
 
3779
4032
  if (includeInstance) {
@@ -3826,6 +4079,10 @@ proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader = function(msg, r
3826
4079
  var value = /** @type {string} */ (reader.readString());
3827
4080
  msg.setContent(value);
3828
4081
  break;
4082
+ case 5:
4083
+ var value = /** @type {number} */ (reader.readInt32());
4084
+ msg.setIsActive(value);
4085
+ break;
3829
4086
  default:
3830
4087
  reader.skipField();
3831
4088
  break;
@@ -3883,6 +4140,13 @@ proto.loyalty.LevelTranslationItem.serializeBinaryToWriter = function(message, w
3883
4140
  f
3884
4141
  );
3885
4142
  }
4143
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
4144
+ if (f != null) {
4145
+ writer.writeInt32(
4146
+ 5,
4147
+ f
4148
+ );
4149
+ }
3886
4150
  };
3887
4151
 
3888
4152
 
@@ -4030,6 +4294,334 @@ proto.loyalty.LevelTranslationItem.prototype.hasContent = function() {
4030
4294
  };
4031
4295
 
4032
4296
 
4297
+ /**
4298
+ * optional int32 is_active = 5;
4299
+ * @return {number}
4300
+ */
4301
+ proto.loyalty.LevelTranslationItem.prototype.getIsActive = function() {
4302
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4303
+ };
4304
+
4305
+
4306
+ /**
4307
+ * @param {number} value
4308
+ * @return {!proto.loyalty.LevelTranslationItem} returns this
4309
+ */
4310
+ proto.loyalty.LevelTranslationItem.prototype.setIsActive = function(value) {
4311
+ return jspb.Message.setField(this, 5, value);
4312
+ };
4313
+
4314
+
4315
+ /**
4316
+ * Clears the field making it undefined.
4317
+ * @return {!proto.loyalty.LevelTranslationItem} returns this
4318
+ */
4319
+ proto.loyalty.LevelTranslationItem.prototype.clearIsActive = function() {
4320
+ return jspb.Message.setField(this, 5, undefined);
4321
+ };
4322
+
4323
+
4324
+ /**
4325
+ * Returns whether this field is set.
4326
+ * @return {boolean}
4327
+ */
4328
+ proto.loyalty.LevelTranslationItem.prototype.hasIsActive = function() {
4329
+ return jspb.Message.getField(this, 5) != null;
4330
+ };
4331
+
4332
+
4333
+
4334
+
4335
+
4336
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4337
+ /**
4338
+ * Creates an object representation of this proto.
4339
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4340
+ * Optional fields that are not set will be set to undefined.
4341
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4342
+ * For the list of reserved names please see:
4343
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4344
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4345
+ * JSPB instance for transitional soy proto support:
4346
+ * http://goto/soy-param-migration
4347
+ * @return {!Object}
4348
+ */
4349
+ proto.loyalty.LevelTranslationResponse.prototype.toObject = function(opt_includeInstance) {
4350
+ return proto.loyalty.LevelTranslationResponse.toObject(opt_includeInstance, this);
4351
+ };
4352
+
4353
+
4354
+ /**
4355
+ * Static version of the {@see toObject} method.
4356
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4357
+ * the JSPB instance for transitional soy proto support:
4358
+ * http://goto/soy-param-migration
4359
+ * @param {!proto.loyalty.LevelTranslationResponse} msg The msg instance to transform.
4360
+ * @return {!Object}
4361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4362
+ */
4363
+ proto.loyalty.LevelTranslationResponse.toObject = function(includeInstance, msg) {
4364
+ var f, obj = {
4365
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
4366
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
4367
+ content: jspb.Message.getFieldWithDefault(msg, 3, ""),
4368
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
4369
+ };
4370
+
4371
+ if (includeInstance) {
4372
+ obj.$jspbMessageInstance = msg;
4373
+ }
4374
+ return obj;
4375
+ };
4376
+ }
4377
+
4378
+
4379
+ /**
4380
+ * Deserializes binary data (in protobuf wire format).
4381
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4382
+ * @return {!proto.loyalty.LevelTranslationResponse}
4383
+ */
4384
+ proto.loyalty.LevelTranslationResponse.deserializeBinary = function(bytes) {
4385
+ var reader = new jspb.BinaryReader(bytes);
4386
+ var msg = new proto.loyalty.LevelTranslationResponse;
4387
+ return proto.loyalty.LevelTranslationResponse.deserializeBinaryFromReader(msg, reader);
4388
+ };
4389
+
4390
+
4391
+ /**
4392
+ * Deserializes binary data (in protobuf wire format) from the
4393
+ * given reader into the given message object.
4394
+ * @param {!proto.loyalty.LevelTranslationResponse} msg The message object to deserialize into.
4395
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4396
+ * @return {!proto.loyalty.LevelTranslationResponse}
4397
+ */
4398
+ proto.loyalty.LevelTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
4399
+ while (reader.nextField()) {
4400
+ if (reader.isEndGroup()) {
4401
+ break;
4402
+ }
4403
+ var field = reader.getFieldNumber();
4404
+ switch (field) {
4405
+ case 1:
4406
+ var value = /** @type {string} */ (reader.readString());
4407
+ msg.setTitle(value);
4408
+ break;
4409
+ case 2:
4410
+ var value = /** @type {string} */ (reader.readString());
4411
+ msg.setDescription(value);
4412
+ break;
4413
+ case 3:
4414
+ var value = /** @type {string} */ (reader.readString());
4415
+ msg.setContent(value);
4416
+ break;
4417
+ case 4:
4418
+ var value = /** @type {number} */ (reader.readInt32());
4419
+ msg.setIsActive(value);
4420
+ break;
4421
+ default:
4422
+ reader.skipField();
4423
+ break;
4424
+ }
4425
+ }
4426
+ return msg;
4427
+ };
4428
+
4429
+
4430
+ /**
4431
+ * Serializes the message to binary data (in protobuf wire format).
4432
+ * @return {!Uint8Array}
4433
+ */
4434
+ proto.loyalty.LevelTranslationResponse.prototype.serializeBinary = function() {
4435
+ var writer = new jspb.BinaryWriter();
4436
+ proto.loyalty.LevelTranslationResponse.serializeBinaryToWriter(this, writer);
4437
+ return writer.getResultBuffer();
4438
+ };
4439
+
4440
+
4441
+ /**
4442
+ * Serializes the given message to binary data (in protobuf wire
4443
+ * format), writing to the given BinaryWriter.
4444
+ * @param {!proto.loyalty.LevelTranslationResponse} message
4445
+ * @param {!jspb.BinaryWriter} writer
4446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4447
+ */
4448
+ proto.loyalty.LevelTranslationResponse.serializeBinaryToWriter = function(message, writer) {
4449
+ var f = undefined;
4450
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
4451
+ if (f != null) {
4452
+ writer.writeString(
4453
+ 1,
4454
+ f
4455
+ );
4456
+ }
4457
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
4458
+ if (f != null) {
4459
+ writer.writeString(
4460
+ 2,
4461
+ f
4462
+ );
4463
+ }
4464
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
4465
+ if (f != null) {
4466
+ writer.writeString(
4467
+ 3,
4468
+ f
4469
+ );
4470
+ }
4471
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
4472
+ if (f != null) {
4473
+ writer.writeInt32(
4474
+ 4,
4475
+ f
4476
+ );
4477
+ }
4478
+ };
4479
+
4480
+
4481
+ /**
4482
+ * optional string title = 1;
4483
+ * @return {string}
4484
+ */
4485
+ proto.loyalty.LevelTranslationResponse.prototype.getTitle = function() {
4486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4487
+ };
4488
+
4489
+
4490
+ /**
4491
+ * @param {string} value
4492
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4493
+ */
4494
+ proto.loyalty.LevelTranslationResponse.prototype.setTitle = function(value) {
4495
+ return jspb.Message.setField(this, 1, value);
4496
+ };
4497
+
4498
+
4499
+ /**
4500
+ * Clears the field making it undefined.
4501
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4502
+ */
4503
+ proto.loyalty.LevelTranslationResponse.prototype.clearTitle = function() {
4504
+ return jspb.Message.setField(this, 1, undefined);
4505
+ };
4506
+
4507
+
4508
+ /**
4509
+ * Returns whether this field is set.
4510
+ * @return {boolean}
4511
+ */
4512
+ proto.loyalty.LevelTranslationResponse.prototype.hasTitle = function() {
4513
+ return jspb.Message.getField(this, 1) != null;
4514
+ };
4515
+
4516
+
4517
+ /**
4518
+ * optional string description = 2;
4519
+ * @return {string}
4520
+ */
4521
+ proto.loyalty.LevelTranslationResponse.prototype.getDescription = function() {
4522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4523
+ };
4524
+
4525
+
4526
+ /**
4527
+ * @param {string} value
4528
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4529
+ */
4530
+ proto.loyalty.LevelTranslationResponse.prototype.setDescription = function(value) {
4531
+ return jspb.Message.setField(this, 2, value);
4532
+ };
4533
+
4534
+
4535
+ /**
4536
+ * Clears the field making it undefined.
4537
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4538
+ */
4539
+ proto.loyalty.LevelTranslationResponse.prototype.clearDescription = function() {
4540
+ return jspb.Message.setField(this, 2, undefined);
4541
+ };
4542
+
4543
+
4544
+ /**
4545
+ * Returns whether this field is set.
4546
+ * @return {boolean}
4547
+ */
4548
+ proto.loyalty.LevelTranslationResponse.prototype.hasDescription = function() {
4549
+ return jspb.Message.getField(this, 2) != null;
4550
+ };
4551
+
4552
+
4553
+ /**
4554
+ * optional string content = 3;
4555
+ * @return {string}
4556
+ */
4557
+ proto.loyalty.LevelTranslationResponse.prototype.getContent = function() {
4558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4559
+ };
4560
+
4561
+
4562
+ /**
4563
+ * @param {string} value
4564
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4565
+ */
4566
+ proto.loyalty.LevelTranslationResponse.prototype.setContent = function(value) {
4567
+ return jspb.Message.setField(this, 3, value);
4568
+ };
4569
+
4570
+
4571
+ /**
4572
+ * Clears the field making it undefined.
4573
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4574
+ */
4575
+ proto.loyalty.LevelTranslationResponse.prototype.clearContent = function() {
4576
+ return jspb.Message.setField(this, 3, undefined);
4577
+ };
4578
+
4579
+
4580
+ /**
4581
+ * Returns whether this field is set.
4582
+ * @return {boolean}
4583
+ */
4584
+ proto.loyalty.LevelTranslationResponse.prototype.hasContent = function() {
4585
+ return jspb.Message.getField(this, 3) != null;
4586
+ };
4587
+
4588
+
4589
+ /**
4590
+ * optional int32 is_active = 4;
4591
+ * @return {number}
4592
+ */
4593
+ proto.loyalty.LevelTranslationResponse.prototype.getIsActive = function() {
4594
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4595
+ };
4596
+
4597
+
4598
+ /**
4599
+ * @param {number} value
4600
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4601
+ */
4602
+ proto.loyalty.LevelTranslationResponse.prototype.setIsActive = function(value) {
4603
+ return jspb.Message.setField(this, 4, value);
4604
+ };
4605
+
4606
+
4607
+ /**
4608
+ * Clears the field making it undefined.
4609
+ * @return {!proto.loyalty.LevelTranslationResponse} returns this
4610
+ */
4611
+ proto.loyalty.LevelTranslationResponse.prototype.clearIsActive = function() {
4612
+ return jspb.Message.setField(this, 4, undefined);
4613
+ };
4614
+
4615
+
4616
+ /**
4617
+ * Returns whether this field is set.
4618
+ * @return {boolean}
4619
+ */
4620
+ proto.loyalty.LevelTranslationResponse.prototype.hasIsActive = function() {
4621
+ return jspb.Message.getField(this, 4) != null;
4622
+ };
4623
+
4624
+
4033
4625
 
4034
4626
 
4035
4627
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.48",
3
+ "version": "1.2.49",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {