protobuf-platform 1.2.26 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cms/cms.proto CHANGED
@@ -32,6 +32,8 @@ service CMS {
32
32
  rpc updateSinglePage(PageRequest) returns (PageResponse);
33
33
  rpc deleteSinglePage(GetPageRequest) returns (PageStatusResponse);
34
34
  rpc readListPages(PaginationRequest) returns (PagesItemsResponse);
35
+ rpc setPageTranslation(PageTranslationRequest) returns (PageStatusResponse);
36
+ rpc getPageTranslation(GetPageTranslationRequest) returns (PageTranslationResponse);
35
37
  //Pages
36
38
  rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
37
39
  rpc readSinglePromo(GetPromoRequest) returns (PromoResponse);
@@ -210,6 +212,24 @@ message GetPageRequest {
210
212
  message PageStatusResponse {
211
213
  string status = 1;
212
214
  }
215
+ message PageTranslationRequest {
216
+ int32 page_id = 1;
217
+ string geo = 2;
218
+ string locale = 3;
219
+ optional string title = 4;
220
+ optional string content = 5;
221
+ optional int32 is_active = 6;
222
+ }
223
+ message GetPageTranslationRequest {
224
+ int32 page_id = 1;
225
+ string geo = 2;
226
+ string locale = 3;
227
+ }
228
+ message PageTranslationResponse {
229
+ optional string title = 1;
230
+ optional string content = 2;
231
+ optional int32 is_active = 3;
232
+ }
213
233
  //Promo CRUD
214
234
  message PromoRequest {
215
235
  oneof request {
@@ -180,6 +180,17 @@ function deserialize_cms_GetPageRequest(buffer_arg) {
180
180
  return cms_pb.GetPageRequest.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_cms_GetPageTranslationRequest(arg) {
184
+ if (!(arg instanceof cms_pb.GetPageTranslationRequest)) {
185
+ throw new Error('Expected argument of type cms.GetPageTranslationRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_cms_GetPageTranslationRequest(buffer_arg) {
191
+ return cms_pb.GetPageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_cms_GetPromoRequest(arg) {
184
195
  if (!(arg instanceof cms_pb.GetPromoRequest)) {
185
196
  throw new Error('Expected argument of type cms.GetPromoRequest');
@@ -257,6 +268,28 @@ function deserialize_cms_PageStatusResponse(buffer_arg) {
257
268
  return cms_pb.PageStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
269
  }
259
270
 
271
+ function serialize_cms_PageTranslationRequest(arg) {
272
+ if (!(arg instanceof cms_pb.PageTranslationRequest)) {
273
+ throw new Error('Expected argument of type cms.PageTranslationRequest');
274
+ }
275
+ return Buffer.from(arg.serializeBinary());
276
+ }
277
+
278
+ function deserialize_cms_PageTranslationRequest(buffer_arg) {
279
+ return cms_pb.PageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
+ }
281
+
282
+ function serialize_cms_PageTranslationResponse(arg) {
283
+ if (!(arg instanceof cms_pb.PageTranslationResponse)) {
284
+ throw new Error('Expected argument of type cms.PageTranslationResponse');
285
+ }
286
+ return Buffer.from(arg.serializeBinary());
287
+ }
288
+
289
+ function deserialize_cms_PageTranslationResponse(buffer_arg) {
290
+ return cms_pb.PageTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
291
+ }
292
+
260
293
  function serialize_cms_PagesItemsResponse(arg) {
261
294
  if (!(arg instanceof cms_pb.PagesItemsResponse)) {
262
295
  throw new Error('Expected argument of type cms.PagesItemsResponse');
@@ -648,6 +681,28 @@ createSinglePage: {
648
681
  responseSerialize: serialize_cms_PagesItemsResponse,
649
682
  responseDeserialize: deserialize_cms_PagesItemsResponse,
650
683
  },
684
+ setPageTranslation: {
685
+ path: '/cms.CMS/setPageTranslation',
686
+ requestStream: false,
687
+ responseStream: false,
688
+ requestType: cms_pb.PageTranslationRequest,
689
+ responseType: cms_pb.PageStatusResponse,
690
+ requestSerialize: serialize_cms_PageTranslationRequest,
691
+ requestDeserialize: deserialize_cms_PageTranslationRequest,
692
+ responseSerialize: serialize_cms_PageStatusResponse,
693
+ responseDeserialize: deserialize_cms_PageStatusResponse,
694
+ },
695
+ getPageTranslation: {
696
+ path: '/cms.CMS/getPageTranslation',
697
+ requestStream: false,
698
+ responseStream: false,
699
+ requestType: cms_pb.GetPageTranslationRequest,
700
+ responseType: cms_pb.PageTranslationResponse,
701
+ requestSerialize: serialize_cms_GetPageTranslationRequest,
702
+ requestDeserialize: deserialize_cms_GetPageTranslationRequest,
703
+ responseSerialize: serialize_cms_PageTranslationResponse,
704
+ responseDeserialize: deserialize_cms_PageTranslationResponse,
705
+ },
651
706
  // Pages
652
707
  createSinglePromo: {
653
708
  path: '/cms.CMS/createSinglePromo',
package/cms/cms_pb.js CHANGED
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
42
42
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
43
43
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
44
44
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
45
+ goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
45
46
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
46
47
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
47
48
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
@@ -50,6 +51,8 @@ goog.exportSymbol('proto.cms.PageItem', null, global);
50
51
  goog.exportSymbol('proto.cms.PageRequest', null, global);
51
52
  goog.exportSymbol('proto.cms.PageResponse', null, global);
52
53
  goog.exportSymbol('proto.cms.PageStatusResponse', null, global);
54
+ goog.exportSymbol('proto.cms.PageTranslationRequest', null, global);
55
+ goog.exportSymbol('proto.cms.PageTranslationResponse', null, global);
53
56
  goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
54
57
  goog.exportSymbol('proto.cms.PaginationRequest', null, global);
55
58
  goog.exportSymbol('proto.cms.PingRequest', null, global);
@@ -778,6 +781,69 @@ if (goog.DEBUG && !COMPILED) {
778
781
  */
779
782
  proto.cms.PageStatusResponse.displayName = 'proto.cms.PageStatusResponse';
780
783
  }
784
+ /**
785
+ * Generated by JsPbCodeGenerator.
786
+ * @param {Array=} opt_data Optional initial data array, typically from a
787
+ * server response, or constructed directly in Javascript. The array is used
788
+ * in place and becomes part of the constructed object. It is not cloned.
789
+ * If no data is provided, the constructed object will be empty, but still
790
+ * valid.
791
+ * @extends {jspb.Message}
792
+ * @constructor
793
+ */
794
+ proto.cms.PageTranslationRequest = function(opt_data) {
795
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
796
+ };
797
+ goog.inherits(proto.cms.PageTranslationRequest, jspb.Message);
798
+ if (goog.DEBUG && !COMPILED) {
799
+ /**
800
+ * @public
801
+ * @override
802
+ */
803
+ proto.cms.PageTranslationRequest.displayName = 'proto.cms.PageTranslationRequest';
804
+ }
805
+ /**
806
+ * Generated by JsPbCodeGenerator.
807
+ * @param {Array=} opt_data Optional initial data array, typically from a
808
+ * server response, or constructed directly in Javascript. The array is used
809
+ * in place and becomes part of the constructed object. It is not cloned.
810
+ * If no data is provided, the constructed object will be empty, but still
811
+ * valid.
812
+ * @extends {jspb.Message}
813
+ * @constructor
814
+ */
815
+ proto.cms.GetPageTranslationRequest = function(opt_data) {
816
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
817
+ };
818
+ goog.inherits(proto.cms.GetPageTranslationRequest, jspb.Message);
819
+ if (goog.DEBUG && !COMPILED) {
820
+ /**
821
+ * @public
822
+ * @override
823
+ */
824
+ proto.cms.GetPageTranslationRequest.displayName = 'proto.cms.GetPageTranslationRequest';
825
+ }
826
+ /**
827
+ * Generated by JsPbCodeGenerator.
828
+ * @param {Array=} opt_data Optional initial data array, typically from a
829
+ * server response, or constructed directly in Javascript. The array is used
830
+ * in place and becomes part of the constructed object. It is not cloned.
831
+ * If no data is provided, the constructed object will be empty, but still
832
+ * valid.
833
+ * @extends {jspb.Message}
834
+ * @constructor
835
+ */
836
+ proto.cms.PageTranslationResponse = function(opt_data) {
837
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
838
+ };
839
+ goog.inherits(proto.cms.PageTranslationResponse, jspb.Message);
840
+ if (goog.DEBUG && !COMPILED) {
841
+ /**
842
+ * @public
843
+ * @override
844
+ */
845
+ proto.cms.PageTranslationResponse.displayName = 'proto.cms.PageTranslationResponse';
846
+ }
781
847
  /**
782
848
  * Generated by JsPbCodeGenerator.
783
849
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9156,6 +9222,774 @@ proto.cms.PageStatusResponse.prototype.setStatus = function(value) {
9156
9222
 
9157
9223
 
9158
9224
 
9225
+
9226
+
9227
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9228
+ /**
9229
+ * Creates an object representation of this proto.
9230
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9231
+ * Optional fields that are not set will be set to undefined.
9232
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9233
+ * For the list of reserved names please see:
9234
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9235
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9236
+ * JSPB instance for transitional soy proto support:
9237
+ * http://goto/soy-param-migration
9238
+ * @return {!Object}
9239
+ */
9240
+ proto.cms.PageTranslationRequest.prototype.toObject = function(opt_includeInstance) {
9241
+ return proto.cms.PageTranslationRequest.toObject(opt_includeInstance, this);
9242
+ };
9243
+
9244
+
9245
+ /**
9246
+ * Static version of the {@see toObject} method.
9247
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9248
+ * the JSPB instance for transitional soy proto support:
9249
+ * http://goto/soy-param-migration
9250
+ * @param {!proto.cms.PageTranslationRequest} msg The msg instance to transform.
9251
+ * @return {!Object}
9252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9253
+ */
9254
+ proto.cms.PageTranslationRequest.toObject = function(includeInstance, msg) {
9255
+ var f, obj = {
9256
+ pageId: jspb.Message.getFieldWithDefault(msg, 1, 0),
9257
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
9258
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
9259
+ title: jspb.Message.getFieldWithDefault(msg, 4, ""),
9260
+ content: jspb.Message.getFieldWithDefault(msg, 5, ""),
9261
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
9262
+ };
9263
+
9264
+ if (includeInstance) {
9265
+ obj.$jspbMessageInstance = msg;
9266
+ }
9267
+ return obj;
9268
+ };
9269
+ }
9270
+
9271
+
9272
+ /**
9273
+ * Deserializes binary data (in protobuf wire format).
9274
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9275
+ * @return {!proto.cms.PageTranslationRequest}
9276
+ */
9277
+ proto.cms.PageTranslationRequest.deserializeBinary = function(bytes) {
9278
+ var reader = new jspb.BinaryReader(bytes);
9279
+ var msg = new proto.cms.PageTranslationRequest;
9280
+ return proto.cms.PageTranslationRequest.deserializeBinaryFromReader(msg, reader);
9281
+ };
9282
+
9283
+
9284
+ /**
9285
+ * Deserializes binary data (in protobuf wire format) from the
9286
+ * given reader into the given message object.
9287
+ * @param {!proto.cms.PageTranslationRequest} msg The message object to deserialize into.
9288
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9289
+ * @return {!proto.cms.PageTranslationRequest}
9290
+ */
9291
+ proto.cms.PageTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
9292
+ while (reader.nextField()) {
9293
+ if (reader.isEndGroup()) {
9294
+ break;
9295
+ }
9296
+ var field = reader.getFieldNumber();
9297
+ switch (field) {
9298
+ case 1:
9299
+ var value = /** @type {number} */ (reader.readInt32());
9300
+ msg.setPageId(value);
9301
+ break;
9302
+ case 2:
9303
+ var value = /** @type {string} */ (reader.readString());
9304
+ msg.setGeo(value);
9305
+ break;
9306
+ case 3:
9307
+ var value = /** @type {string} */ (reader.readString());
9308
+ msg.setLocale(value);
9309
+ break;
9310
+ case 4:
9311
+ var value = /** @type {string} */ (reader.readString());
9312
+ msg.setTitle(value);
9313
+ break;
9314
+ case 5:
9315
+ var value = /** @type {string} */ (reader.readString());
9316
+ msg.setContent(value);
9317
+ break;
9318
+ case 6:
9319
+ var value = /** @type {number} */ (reader.readInt32());
9320
+ msg.setIsActive(value);
9321
+ break;
9322
+ default:
9323
+ reader.skipField();
9324
+ break;
9325
+ }
9326
+ }
9327
+ return msg;
9328
+ };
9329
+
9330
+
9331
+ /**
9332
+ * Serializes the message to binary data (in protobuf wire format).
9333
+ * @return {!Uint8Array}
9334
+ */
9335
+ proto.cms.PageTranslationRequest.prototype.serializeBinary = function() {
9336
+ var writer = new jspb.BinaryWriter();
9337
+ proto.cms.PageTranslationRequest.serializeBinaryToWriter(this, writer);
9338
+ return writer.getResultBuffer();
9339
+ };
9340
+
9341
+
9342
+ /**
9343
+ * Serializes the given message to binary data (in protobuf wire
9344
+ * format), writing to the given BinaryWriter.
9345
+ * @param {!proto.cms.PageTranslationRequest} message
9346
+ * @param {!jspb.BinaryWriter} writer
9347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9348
+ */
9349
+ proto.cms.PageTranslationRequest.serializeBinaryToWriter = function(message, writer) {
9350
+ var f = undefined;
9351
+ f = message.getPageId();
9352
+ if (f !== 0) {
9353
+ writer.writeInt32(
9354
+ 1,
9355
+ f
9356
+ );
9357
+ }
9358
+ f = message.getGeo();
9359
+ if (f.length > 0) {
9360
+ writer.writeString(
9361
+ 2,
9362
+ f
9363
+ );
9364
+ }
9365
+ f = message.getLocale();
9366
+ if (f.length > 0) {
9367
+ writer.writeString(
9368
+ 3,
9369
+ f
9370
+ );
9371
+ }
9372
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9373
+ if (f != null) {
9374
+ writer.writeString(
9375
+ 4,
9376
+ f
9377
+ );
9378
+ }
9379
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9380
+ if (f != null) {
9381
+ writer.writeString(
9382
+ 5,
9383
+ f
9384
+ );
9385
+ }
9386
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
9387
+ if (f != null) {
9388
+ writer.writeInt32(
9389
+ 6,
9390
+ f
9391
+ );
9392
+ }
9393
+ };
9394
+
9395
+
9396
+ /**
9397
+ * optional int32 page_id = 1;
9398
+ * @return {number}
9399
+ */
9400
+ proto.cms.PageTranslationRequest.prototype.getPageId = function() {
9401
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9402
+ };
9403
+
9404
+
9405
+ /**
9406
+ * @param {number} value
9407
+ * @return {!proto.cms.PageTranslationRequest} returns this
9408
+ */
9409
+ proto.cms.PageTranslationRequest.prototype.setPageId = function(value) {
9410
+ return jspb.Message.setProto3IntField(this, 1, value);
9411
+ };
9412
+
9413
+
9414
+ /**
9415
+ * optional string geo = 2;
9416
+ * @return {string}
9417
+ */
9418
+ proto.cms.PageTranslationRequest.prototype.getGeo = function() {
9419
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9420
+ };
9421
+
9422
+
9423
+ /**
9424
+ * @param {string} value
9425
+ * @return {!proto.cms.PageTranslationRequest} returns this
9426
+ */
9427
+ proto.cms.PageTranslationRequest.prototype.setGeo = function(value) {
9428
+ return jspb.Message.setProto3StringField(this, 2, value);
9429
+ };
9430
+
9431
+
9432
+ /**
9433
+ * optional string locale = 3;
9434
+ * @return {string}
9435
+ */
9436
+ proto.cms.PageTranslationRequest.prototype.getLocale = function() {
9437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9438
+ };
9439
+
9440
+
9441
+ /**
9442
+ * @param {string} value
9443
+ * @return {!proto.cms.PageTranslationRequest} returns this
9444
+ */
9445
+ proto.cms.PageTranslationRequest.prototype.setLocale = function(value) {
9446
+ return jspb.Message.setProto3StringField(this, 3, value);
9447
+ };
9448
+
9449
+
9450
+ /**
9451
+ * optional string title = 4;
9452
+ * @return {string}
9453
+ */
9454
+ proto.cms.PageTranslationRequest.prototype.getTitle = function() {
9455
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9456
+ };
9457
+
9458
+
9459
+ /**
9460
+ * @param {string} value
9461
+ * @return {!proto.cms.PageTranslationRequest} returns this
9462
+ */
9463
+ proto.cms.PageTranslationRequest.prototype.setTitle = function(value) {
9464
+ return jspb.Message.setField(this, 4, value);
9465
+ };
9466
+
9467
+
9468
+ /**
9469
+ * Clears the field making it undefined.
9470
+ * @return {!proto.cms.PageTranslationRequest} returns this
9471
+ */
9472
+ proto.cms.PageTranslationRequest.prototype.clearTitle = function() {
9473
+ return jspb.Message.setField(this, 4, undefined);
9474
+ };
9475
+
9476
+
9477
+ /**
9478
+ * Returns whether this field is set.
9479
+ * @return {boolean}
9480
+ */
9481
+ proto.cms.PageTranslationRequest.prototype.hasTitle = function() {
9482
+ return jspb.Message.getField(this, 4) != null;
9483
+ };
9484
+
9485
+
9486
+ /**
9487
+ * optional string content = 5;
9488
+ * @return {string}
9489
+ */
9490
+ proto.cms.PageTranslationRequest.prototype.getContent = function() {
9491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9492
+ };
9493
+
9494
+
9495
+ /**
9496
+ * @param {string} value
9497
+ * @return {!proto.cms.PageTranslationRequest} returns this
9498
+ */
9499
+ proto.cms.PageTranslationRequest.prototype.setContent = function(value) {
9500
+ return jspb.Message.setField(this, 5, value);
9501
+ };
9502
+
9503
+
9504
+ /**
9505
+ * Clears the field making it undefined.
9506
+ * @return {!proto.cms.PageTranslationRequest} returns this
9507
+ */
9508
+ proto.cms.PageTranslationRequest.prototype.clearContent = function() {
9509
+ return jspb.Message.setField(this, 5, undefined);
9510
+ };
9511
+
9512
+
9513
+ /**
9514
+ * Returns whether this field is set.
9515
+ * @return {boolean}
9516
+ */
9517
+ proto.cms.PageTranslationRequest.prototype.hasContent = function() {
9518
+ return jspb.Message.getField(this, 5) != null;
9519
+ };
9520
+
9521
+
9522
+ /**
9523
+ * optional int32 is_active = 6;
9524
+ * @return {number}
9525
+ */
9526
+ proto.cms.PageTranslationRequest.prototype.getIsActive = function() {
9527
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
9528
+ };
9529
+
9530
+
9531
+ /**
9532
+ * @param {number} value
9533
+ * @return {!proto.cms.PageTranslationRequest} returns this
9534
+ */
9535
+ proto.cms.PageTranslationRequest.prototype.setIsActive = function(value) {
9536
+ return jspb.Message.setField(this, 6, value);
9537
+ };
9538
+
9539
+
9540
+ /**
9541
+ * Clears the field making it undefined.
9542
+ * @return {!proto.cms.PageTranslationRequest} returns this
9543
+ */
9544
+ proto.cms.PageTranslationRequest.prototype.clearIsActive = function() {
9545
+ return jspb.Message.setField(this, 6, undefined);
9546
+ };
9547
+
9548
+
9549
+ /**
9550
+ * Returns whether this field is set.
9551
+ * @return {boolean}
9552
+ */
9553
+ proto.cms.PageTranslationRequest.prototype.hasIsActive = function() {
9554
+ return jspb.Message.getField(this, 6) != null;
9555
+ };
9556
+
9557
+
9558
+
9559
+
9560
+
9561
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9562
+ /**
9563
+ * Creates an object representation of this proto.
9564
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9565
+ * Optional fields that are not set will be set to undefined.
9566
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9567
+ * For the list of reserved names please see:
9568
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9569
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9570
+ * JSPB instance for transitional soy proto support:
9571
+ * http://goto/soy-param-migration
9572
+ * @return {!Object}
9573
+ */
9574
+ proto.cms.GetPageTranslationRequest.prototype.toObject = function(opt_includeInstance) {
9575
+ return proto.cms.GetPageTranslationRequest.toObject(opt_includeInstance, this);
9576
+ };
9577
+
9578
+
9579
+ /**
9580
+ * Static version of the {@see toObject} method.
9581
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9582
+ * the JSPB instance for transitional soy proto support:
9583
+ * http://goto/soy-param-migration
9584
+ * @param {!proto.cms.GetPageTranslationRequest} msg The msg instance to transform.
9585
+ * @return {!Object}
9586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9587
+ */
9588
+ proto.cms.GetPageTranslationRequest.toObject = function(includeInstance, msg) {
9589
+ var f, obj = {
9590
+ pageId: jspb.Message.getFieldWithDefault(msg, 1, 0),
9591
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
9592
+ locale: jspb.Message.getFieldWithDefault(msg, 3, "")
9593
+ };
9594
+
9595
+ if (includeInstance) {
9596
+ obj.$jspbMessageInstance = msg;
9597
+ }
9598
+ return obj;
9599
+ };
9600
+ }
9601
+
9602
+
9603
+ /**
9604
+ * Deserializes binary data (in protobuf wire format).
9605
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9606
+ * @return {!proto.cms.GetPageTranslationRequest}
9607
+ */
9608
+ proto.cms.GetPageTranslationRequest.deserializeBinary = function(bytes) {
9609
+ var reader = new jspb.BinaryReader(bytes);
9610
+ var msg = new proto.cms.GetPageTranslationRequest;
9611
+ return proto.cms.GetPageTranslationRequest.deserializeBinaryFromReader(msg, reader);
9612
+ };
9613
+
9614
+
9615
+ /**
9616
+ * Deserializes binary data (in protobuf wire format) from the
9617
+ * given reader into the given message object.
9618
+ * @param {!proto.cms.GetPageTranslationRequest} msg The message object to deserialize into.
9619
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9620
+ * @return {!proto.cms.GetPageTranslationRequest}
9621
+ */
9622
+ proto.cms.GetPageTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
9623
+ while (reader.nextField()) {
9624
+ if (reader.isEndGroup()) {
9625
+ break;
9626
+ }
9627
+ var field = reader.getFieldNumber();
9628
+ switch (field) {
9629
+ case 1:
9630
+ var value = /** @type {number} */ (reader.readInt32());
9631
+ msg.setPageId(value);
9632
+ break;
9633
+ case 2:
9634
+ var value = /** @type {string} */ (reader.readString());
9635
+ msg.setGeo(value);
9636
+ break;
9637
+ case 3:
9638
+ var value = /** @type {string} */ (reader.readString());
9639
+ msg.setLocale(value);
9640
+ break;
9641
+ default:
9642
+ reader.skipField();
9643
+ break;
9644
+ }
9645
+ }
9646
+ return msg;
9647
+ };
9648
+
9649
+
9650
+ /**
9651
+ * Serializes the message to binary data (in protobuf wire format).
9652
+ * @return {!Uint8Array}
9653
+ */
9654
+ proto.cms.GetPageTranslationRequest.prototype.serializeBinary = function() {
9655
+ var writer = new jspb.BinaryWriter();
9656
+ proto.cms.GetPageTranslationRequest.serializeBinaryToWriter(this, writer);
9657
+ return writer.getResultBuffer();
9658
+ };
9659
+
9660
+
9661
+ /**
9662
+ * Serializes the given message to binary data (in protobuf wire
9663
+ * format), writing to the given BinaryWriter.
9664
+ * @param {!proto.cms.GetPageTranslationRequest} message
9665
+ * @param {!jspb.BinaryWriter} writer
9666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9667
+ */
9668
+ proto.cms.GetPageTranslationRequest.serializeBinaryToWriter = function(message, writer) {
9669
+ var f = undefined;
9670
+ f = message.getPageId();
9671
+ if (f !== 0) {
9672
+ writer.writeInt32(
9673
+ 1,
9674
+ f
9675
+ );
9676
+ }
9677
+ f = message.getGeo();
9678
+ if (f.length > 0) {
9679
+ writer.writeString(
9680
+ 2,
9681
+ f
9682
+ );
9683
+ }
9684
+ f = message.getLocale();
9685
+ if (f.length > 0) {
9686
+ writer.writeString(
9687
+ 3,
9688
+ f
9689
+ );
9690
+ }
9691
+ };
9692
+
9693
+
9694
+ /**
9695
+ * optional int32 page_id = 1;
9696
+ * @return {number}
9697
+ */
9698
+ proto.cms.GetPageTranslationRequest.prototype.getPageId = function() {
9699
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9700
+ };
9701
+
9702
+
9703
+ /**
9704
+ * @param {number} value
9705
+ * @return {!proto.cms.GetPageTranslationRequest} returns this
9706
+ */
9707
+ proto.cms.GetPageTranslationRequest.prototype.setPageId = function(value) {
9708
+ return jspb.Message.setProto3IntField(this, 1, value);
9709
+ };
9710
+
9711
+
9712
+ /**
9713
+ * optional string geo = 2;
9714
+ * @return {string}
9715
+ */
9716
+ proto.cms.GetPageTranslationRequest.prototype.getGeo = function() {
9717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9718
+ };
9719
+
9720
+
9721
+ /**
9722
+ * @param {string} value
9723
+ * @return {!proto.cms.GetPageTranslationRequest} returns this
9724
+ */
9725
+ proto.cms.GetPageTranslationRequest.prototype.setGeo = function(value) {
9726
+ return jspb.Message.setProto3StringField(this, 2, value);
9727
+ };
9728
+
9729
+
9730
+ /**
9731
+ * optional string locale = 3;
9732
+ * @return {string}
9733
+ */
9734
+ proto.cms.GetPageTranslationRequest.prototype.getLocale = function() {
9735
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9736
+ };
9737
+
9738
+
9739
+ /**
9740
+ * @param {string} value
9741
+ * @return {!proto.cms.GetPageTranslationRequest} returns this
9742
+ */
9743
+ proto.cms.GetPageTranslationRequest.prototype.setLocale = function(value) {
9744
+ return jspb.Message.setProto3StringField(this, 3, value);
9745
+ };
9746
+
9747
+
9748
+
9749
+
9750
+
9751
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9752
+ /**
9753
+ * Creates an object representation of this proto.
9754
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9755
+ * Optional fields that are not set will be set to undefined.
9756
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9757
+ * For the list of reserved names please see:
9758
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9759
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9760
+ * JSPB instance for transitional soy proto support:
9761
+ * http://goto/soy-param-migration
9762
+ * @return {!Object}
9763
+ */
9764
+ proto.cms.PageTranslationResponse.prototype.toObject = function(opt_includeInstance) {
9765
+ return proto.cms.PageTranslationResponse.toObject(opt_includeInstance, this);
9766
+ };
9767
+
9768
+
9769
+ /**
9770
+ * Static version of the {@see toObject} method.
9771
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9772
+ * the JSPB instance for transitional soy proto support:
9773
+ * http://goto/soy-param-migration
9774
+ * @param {!proto.cms.PageTranslationResponse} msg The msg instance to transform.
9775
+ * @return {!Object}
9776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9777
+ */
9778
+ proto.cms.PageTranslationResponse.toObject = function(includeInstance, msg) {
9779
+ var f, obj = {
9780
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
9781
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
9782
+ isActive: jspb.Message.getFieldWithDefault(msg, 3, 0)
9783
+ };
9784
+
9785
+ if (includeInstance) {
9786
+ obj.$jspbMessageInstance = msg;
9787
+ }
9788
+ return obj;
9789
+ };
9790
+ }
9791
+
9792
+
9793
+ /**
9794
+ * Deserializes binary data (in protobuf wire format).
9795
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9796
+ * @return {!proto.cms.PageTranslationResponse}
9797
+ */
9798
+ proto.cms.PageTranslationResponse.deserializeBinary = function(bytes) {
9799
+ var reader = new jspb.BinaryReader(bytes);
9800
+ var msg = new proto.cms.PageTranslationResponse;
9801
+ return proto.cms.PageTranslationResponse.deserializeBinaryFromReader(msg, reader);
9802
+ };
9803
+
9804
+
9805
+ /**
9806
+ * Deserializes binary data (in protobuf wire format) from the
9807
+ * given reader into the given message object.
9808
+ * @param {!proto.cms.PageTranslationResponse} msg The message object to deserialize into.
9809
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9810
+ * @return {!proto.cms.PageTranslationResponse}
9811
+ */
9812
+ proto.cms.PageTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
9813
+ while (reader.nextField()) {
9814
+ if (reader.isEndGroup()) {
9815
+ break;
9816
+ }
9817
+ var field = reader.getFieldNumber();
9818
+ switch (field) {
9819
+ case 1:
9820
+ var value = /** @type {string} */ (reader.readString());
9821
+ msg.setTitle(value);
9822
+ break;
9823
+ case 2:
9824
+ var value = /** @type {string} */ (reader.readString());
9825
+ msg.setContent(value);
9826
+ break;
9827
+ case 3:
9828
+ var value = /** @type {number} */ (reader.readInt32());
9829
+ msg.setIsActive(value);
9830
+ break;
9831
+ default:
9832
+ reader.skipField();
9833
+ break;
9834
+ }
9835
+ }
9836
+ return msg;
9837
+ };
9838
+
9839
+
9840
+ /**
9841
+ * Serializes the message to binary data (in protobuf wire format).
9842
+ * @return {!Uint8Array}
9843
+ */
9844
+ proto.cms.PageTranslationResponse.prototype.serializeBinary = function() {
9845
+ var writer = new jspb.BinaryWriter();
9846
+ proto.cms.PageTranslationResponse.serializeBinaryToWriter(this, writer);
9847
+ return writer.getResultBuffer();
9848
+ };
9849
+
9850
+
9851
+ /**
9852
+ * Serializes the given message to binary data (in protobuf wire
9853
+ * format), writing to the given BinaryWriter.
9854
+ * @param {!proto.cms.PageTranslationResponse} message
9855
+ * @param {!jspb.BinaryWriter} writer
9856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9857
+ */
9858
+ proto.cms.PageTranslationResponse.serializeBinaryToWriter = function(message, writer) {
9859
+ var f = undefined;
9860
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
9861
+ if (f != null) {
9862
+ writer.writeString(
9863
+ 1,
9864
+ f
9865
+ );
9866
+ }
9867
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
9868
+ if (f != null) {
9869
+ writer.writeString(
9870
+ 2,
9871
+ f
9872
+ );
9873
+ }
9874
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
9875
+ if (f != null) {
9876
+ writer.writeInt32(
9877
+ 3,
9878
+ f
9879
+ );
9880
+ }
9881
+ };
9882
+
9883
+
9884
+ /**
9885
+ * optional string title = 1;
9886
+ * @return {string}
9887
+ */
9888
+ proto.cms.PageTranslationResponse.prototype.getTitle = function() {
9889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9890
+ };
9891
+
9892
+
9893
+ /**
9894
+ * @param {string} value
9895
+ * @return {!proto.cms.PageTranslationResponse} returns this
9896
+ */
9897
+ proto.cms.PageTranslationResponse.prototype.setTitle = function(value) {
9898
+ return jspb.Message.setField(this, 1, value);
9899
+ };
9900
+
9901
+
9902
+ /**
9903
+ * Clears the field making it undefined.
9904
+ * @return {!proto.cms.PageTranslationResponse} returns this
9905
+ */
9906
+ proto.cms.PageTranslationResponse.prototype.clearTitle = function() {
9907
+ return jspb.Message.setField(this, 1, undefined);
9908
+ };
9909
+
9910
+
9911
+ /**
9912
+ * Returns whether this field is set.
9913
+ * @return {boolean}
9914
+ */
9915
+ proto.cms.PageTranslationResponse.prototype.hasTitle = function() {
9916
+ return jspb.Message.getField(this, 1) != null;
9917
+ };
9918
+
9919
+
9920
+ /**
9921
+ * optional string content = 2;
9922
+ * @return {string}
9923
+ */
9924
+ proto.cms.PageTranslationResponse.prototype.getContent = function() {
9925
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9926
+ };
9927
+
9928
+
9929
+ /**
9930
+ * @param {string} value
9931
+ * @return {!proto.cms.PageTranslationResponse} returns this
9932
+ */
9933
+ proto.cms.PageTranslationResponse.prototype.setContent = function(value) {
9934
+ return jspb.Message.setField(this, 2, value);
9935
+ };
9936
+
9937
+
9938
+ /**
9939
+ * Clears the field making it undefined.
9940
+ * @return {!proto.cms.PageTranslationResponse} returns this
9941
+ */
9942
+ proto.cms.PageTranslationResponse.prototype.clearContent = function() {
9943
+ return jspb.Message.setField(this, 2, undefined);
9944
+ };
9945
+
9946
+
9947
+ /**
9948
+ * Returns whether this field is set.
9949
+ * @return {boolean}
9950
+ */
9951
+ proto.cms.PageTranslationResponse.prototype.hasContent = function() {
9952
+ return jspb.Message.getField(this, 2) != null;
9953
+ };
9954
+
9955
+
9956
+ /**
9957
+ * optional int32 is_active = 3;
9958
+ * @return {number}
9959
+ */
9960
+ proto.cms.PageTranslationResponse.prototype.getIsActive = function() {
9961
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
9962
+ };
9963
+
9964
+
9965
+ /**
9966
+ * @param {number} value
9967
+ * @return {!proto.cms.PageTranslationResponse} returns this
9968
+ */
9969
+ proto.cms.PageTranslationResponse.prototype.setIsActive = function(value) {
9970
+ return jspb.Message.setField(this, 3, value);
9971
+ };
9972
+
9973
+
9974
+ /**
9975
+ * Clears the field making it undefined.
9976
+ * @return {!proto.cms.PageTranslationResponse} returns this
9977
+ */
9978
+ proto.cms.PageTranslationResponse.prototype.clearIsActive = function() {
9979
+ return jspb.Message.setField(this, 3, undefined);
9980
+ };
9981
+
9982
+
9983
+ /**
9984
+ * Returns whether this field is set.
9985
+ * @return {boolean}
9986
+ */
9987
+ proto.cms.PageTranslationResponse.prototype.hasIsActive = function() {
9988
+ return jspb.Message.getField(this, 3) != null;
9989
+ };
9990
+
9991
+
9992
+
9159
9993
  /**
9160
9994
  * Oneof group definitions for this message. Each group defines the field
9161
9995
  * numbers belonging to that group. When of these fields' value is set, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {