protobuf-platform 1.2.27 → 1.2.29

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
@@ -33,6 +33,7 @@ service CMS {
33
33
  rpc deleteSinglePage(GetPageRequest) returns (PageStatusResponse);
34
34
  rpc readListPages(PaginationRequest) returns (PagesItemsResponse);
35
35
  rpc setPageTranslation(PageTranslationRequest) returns (PageStatusResponse);
36
+ rpc getPageTranslation(GetPageTranslationRequest) returns (PageTranslationResponse);
36
37
  //Pages
37
38
  rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
38
39
  rpc readSinglePromo(GetPromoRequest) returns (PromoResponse);
@@ -219,6 +220,16 @@ message PageTranslationRequest {
219
220
  optional string content = 5;
220
221
  optional int32 is_active = 6;
221
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
+ }
222
233
  //Promo CRUD
223
234
  message PromoRequest {
224
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');
@@ -268,6 +279,17 @@ function deserialize_cms_PageTranslationRequest(buffer_arg) {
268
279
  return cms_pb.PageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
280
  }
270
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
+
271
293
  function serialize_cms_PagesItemsResponse(arg) {
272
294
  if (!(arg instanceof cms_pb.PagesItemsResponse)) {
273
295
  throw new Error('Expected argument of type cms.PagesItemsResponse');
@@ -670,6 +692,17 @@ createSinglePage: {
670
692
  responseSerialize: serialize_cms_PageStatusResponse,
671
693
  responseDeserialize: deserialize_cms_PageStatusResponse,
672
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
+ },
673
706
  // Pages
674
707
  createSinglePromo: {
675
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);
@@ -51,6 +52,7 @@ 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);
53
54
  goog.exportSymbol('proto.cms.PageTranslationRequest', null, global);
55
+ goog.exportSymbol('proto.cms.PageTranslationResponse', null, global);
54
56
  goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
55
57
  goog.exportSymbol('proto.cms.PaginationRequest', null, global);
56
58
  goog.exportSymbol('proto.cms.PingRequest', null, global);
@@ -800,6 +802,48 @@ if (goog.DEBUG && !COMPILED) {
800
802
  */
801
803
  proto.cms.PageTranslationRequest.displayName = 'proto.cms.PageTranslationRequest';
802
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
+ }
803
847
  /**
804
848
  * Generated by JsPbCodeGenerator.
805
849
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9512,6 +9556,440 @@ proto.cms.PageTranslationRequest.prototype.hasIsActive = function() {
9512
9556
 
9513
9557
 
9514
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
+
9515
9993
  /**
9516
9994
  * Oneof group definitions for this message. Each group defines the field
9517
9995
  * numbers belonging to that group. When of these fields' value is set, all
package/game/game.proto CHANGED
@@ -3,8 +3,12 @@ syntax = "proto3";
3
3
  package game;
4
4
 
5
5
  service Game {
6
+ //Tech
6
7
  rpc checkConnection(PingRequest) returns (PongResponse);
8
+ //Common
7
9
  rpc getMediaResource(GetFileRequest) returns (stream File);
10
+ rpc setGeoRestrictions(GeoRestrictionRequest) returns (GeoRestrictionStatusResponse);
11
+ rpc getGeoRestrictions(GeoRestrictionRequest) returns (GeoRestrictionResponse);
8
12
  //Categories
9
13
  rpc createSingleCategory(stream CategoryRequest) returns (CategoryResponse);
10
14
  rpc readSingleCategory(GetCategoryRequest) returns (CategoryResponse);
@@ -692,4 +696,18 @@ message SegmentedUserRequest {
692
696
  }
693
697
  message SegmentedUserResponse {
694
698
  repeated int32 user_ids = 1;
699
+ }
700
+ //Restrictions
701
+ //GEO
702
+ message GeoRestrictionRequest {
703
+ int32 instance_id = 1;
704
+ string instance_type = 2;
705
+ optional string mode = 3;
706
+ repeated string geo = 4;
707
+ }
708
+ message GeoRestrictionStatusResponse {
709
+ string status = 1;
710
+ }
711
+ message GeoRestrictionResponse {
712
+ repeated string geo = 1;
695
713
  }
@@ -367,6 +367,39 @@ function deserialize_game_GamesUuids(buffer_arg) {
367
367
  return game_pb.GamesUuids.deserializeBinary(new Uint8Array(buffer_arg));
368
368
  }
369
369
 
370
+ function serialize_game_GeoRestrictionRequest(arg) {
371
+ if (!(arg instanceof game_pb.GeoRestrictionRequest)) {
372
+ throw new Error('Expected argument of type game.GeoRestrictionRequest');
373
+ }
374
+ return Buffer.from(arg.serializeBinary());
375
+ }
376
+
377
+ function deserialize_game_GeoRestrictionRequest(buffer_arg) {
378
+ return game_pb.GeoRestrictionRequest.deserializeBinary(new Uint8Array(buffer_arg));
379
+ }
380
+
381
+ function serialize_game_GeoRestrictionResponse(arg) {
382
+ if (!(arg instanceof game_pb.GeoRestrictionResponse)) {
383
+ throw new Error('Expected argument of type game.GeoRestrictionResponse');
384
+ }
385
+ return Buffer.from(arg.serializeBinary());
386
+ }
387
+
388
+ function deserialize_game_GeoRestrictionResponse(buffer_arg) {
389
+ return game_pb.GeoRestrictionResponse.deserializeBinary(new Uint8Array(buffer_arg));
390
+ }
391
+
392
+ function serialize_game_GeoRestrictionStatusResponse(arg) {
393
+ if (!(arg instanceof game_pb.GeoRestrictionStatusResponse)) {
394
+ throw new Error('Expected argument of type game.GeoRestrictionStatusResponse');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_game_GeoRestrictionStatusResponse(buffer_arg) {
400
+ return game_pb.GeoRestrictionStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
370
403
  function serialize_game_GetCashBackListRequest(arg) {
371
404
  if (!(arg instanceof game_pb.GetCashBackListRequest)) {
372
405
  throw new Error('Expected argument of type game.GetCashBackListRequest');
@@ -908,7 +941,8 @@ function deserialize_game_WagerSearchRequest(buffer_arg) {
908
941
 
909
942
 
910
943
  var GameService = exports.GameService = {
911
- checkConnection: {
944
+ // Tech
945
+ checkConnection: {
912
946
  path: '/game.Game/checkConnection',
913
947
  requestStream: false,
914
948
  responseStream: false,
@@ -919,7 +953,8 @@ var GameService = exports.GameService = {
919
953
  responseSerialize: serialize_game_PongResponse,
920
954
  responseDeserialize: deserialize_game_PongResponse,
921
955
  },
922
- getMediaResource: {
956
+ // Common
957
+ getMediaResource: {
923
958
  path: '/game.Game/getMediaResource',
924
959
  requestStream: false,
925
960
  responseStream: true,
@@ -930,6 +965,28 @@ var GameService = exports.GameService = {
930
965
  responseSerialize: serialize_game_File,
931
966
  responseDeserialize: deserialize_game_File,
932
967
  },
968
+ setGeoRestrictions: {
969
+ path: '/game.Game/setGeoRestrictions',
970
+ requestStream: false,
971
+ responseStream: false,
972
+ requestType: game_pb.GeoRestrictionRequest,
973
+ responseType: game_pb.GeoRestrictionStatusResponse,
974
+ requestSerialize: serialize_game_GeoRestrictionRequest,
975
+ requestDeserialize: deserialize_game_GeoRestrictionRequest,
976
+ responseSerialize: serialize_game_GeoRestrictionStatusResponse,
977
+ responseDeserialize: deserialize_game_GeoRestrictionStatusResponse,
978
+ },
979
+ getGeoRestrictions: {
980
+ path: '/game.Game/getGeoRestrictions',
981
+ requestStream: false,
982
+ responseStream: false,
983
+ requestType: game_pb.GeoRestrictionRequest,
984
+ responseType: game_pb.GeoRestrictionResponse,
985
+ requestSerialize: serialize_game_GeoRestrictionRequest,
986
+ requestDeserialize: deserialize_game_GeoRestrictionRequest,
987
+ responseSerialize: serialize_game_GeoRestrictionResponse,
988
+ responseDeserialize: deserialize_game_GeoRestrictionResponse,
989
+ },
933
990
  // Categories
934
991
  createSingleCategory: {
935
992
  path: '/game.Game/createSingleCategory',
package/game/game_pb.js CHANGED
@@ -70,6 +70,9 @@ goog.exportSymbol('proto.game.GamesBunchRequest', null, global);
70
70
  goog.exportSymbol('proto.game.GamesIds', null, global);
71
71
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
72
72
  goog.exportSymbol('proto.game.GamesUuids', null, global);
73
+ goog.exportSymbol('proto.game.GeoRestrictionRequest', null, global);
74
+ goog.exportSymbol('proto.game.GeoRestrictionResponse', null, global);
75
+ goog.exportSymbol('proto.game.GeoRestrictionStatusResponse', null, global);
73
76
  goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
74
77
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
75
78
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
@@ -2336,6 +2339,69 @@ if (goog.DEBUG && !COMPILED) {
2336
2339
  */
2337
2340
  proto.game.SegmentedUserResponse.displayName = 'proto.game.SegmentedUserResponse';
2338
2341
  }
2342
+ /**
2343
+ * Generated by JsPbCodeGenerator.
2344
+ * @param {Array=} opt_data Optional initial data array, typically from a
2345
+ * server response, or constructed directly in Javascript. The array is used
2346
+ * in place and becomes part of the constructed object. It is not cloned.
2347
+ * If no data is provided, the constructed object will be empty, but still
2348
+ * valid.
2349
+ * @extends {jspb.Message}
2350
+ * @constructor
2351
+ */
2352
+ proto.game.GeoRestrictionRequest = function(opt_data) {
2353
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GeoRestrictionRequest.repeatedFields_, null);
2354
+ };
2355
+ goog.inherits(proto.game.GeoRestrictionRequest, jspb.Message);
2356
+ if (goog.DEBUG && !COMPILED) {
2357
+ /**
2358
+ * @public
2359
+ * @override
2360
+ */
2361
+ proto.game.GeoRestrictionRequest.displayName = 'proto.game.GeoRestrictionRequest';
2362
+ }
2363
+ /**
2364
+ * Generated by JsPbCodeGenerator.
2365
+ * @param {Array=} opt_data Optional initial data array, typically from a
2366
+ * server response, or constructed directly in Javascript. The array is used
2367
+ * in place and becomes part of the constructed object. It is not cloned.
2368
+ * If no data is provided, the constructed object will be empty, but still
2369
+ * valid.
2370
+ * @extends {jspb.Message}
2371
+ * @constructor
2372
+ */
2373
+ proto.game.GeoRestrictionStatusResponse = function(opt_data) {
2374
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2375
+ };
2376
+ goog.inherits(proto.game.GeoRestrictionStatusResponse, jspb.Message);
2377
+ if (goog.DEBUG && !COMPILED) {
2378
+ /**
2379
+ * @public
2380
+ * @override
2381
+ */
2382
+ proto.game.GeoRestrictionStatusResponse.displayName = 'proto.game.GeoRestrictionStatusResponse';
2383
+ }
2384
+ /**
2385
+ * Generated by JsPbCodeGenerator.
2386
+ * @param {Array=} opt_data Optional initial data array, typically from a
2387
+ * server response, or constructed directly in Javascript. The array is used
2388
+ * in place and becomes part of the constructed object. It is not cloned.
2389
+ * If no data is provided, the constructed object will be empty, but still
2390
+ * valid.
2391
+ * @extends {jspb.Message}
2392
+ * @constructor
2393
+ */
2394
+ proto.game.GeoRestrictionResponse = function(opt_data) {
2395
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GeoRestrictionResponse.repeatedFields_, null);
2396
+ };
2397
+ goog.inherits(proto.game.GeoRestrictionResponse, jspb.Message);
2398
+ if (goog.DEBUG && !COMPILED) {
2399
+ /**
2400
+ * @public
2401
+ * @override
2402
+ */
2403
+ proto.game.GeoRestrictionResponse.displayName = 'proto.game.GeoRestrictionResponse';
2404
+ }
2339
2405
 
2340
2406
 
2341
2407
 
@@ -29267,4 +29333,554 @@ proto.game.SegmentedUserResponse.prototype.clearUserIdsList = function() {
29267
29333
  };
29268
29334
 
29269
29335
 
29336
+
29337
+ /**
29338
+ * List of repeated fields within this message type.
29339
+ * @private {!Array<number>}
29340
+ * @const
29341
+ */
29342
+ proto.game.GeoRestrictionRequest.repeatedFields_ = [4];
29343
+
29344
+
29345
+
29346
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29347
+ /**
29348
+ * Creates an object representation of this proto.
29349
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29350
+ * Optional fields that are not set will be set to undefined.
29351
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29352
+ * For the list of reserved names please see:
29353
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29354
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29355
+ * JSPB instance for transitional soy proto support:
29356
+ * http://goto/soy-param-migration
29357
+ * @return {!Object}
29358
+ */
29359
+ proto.game.GeoRestrictionRequest.prototype.toObject = function(opt_includeInstance) {
29360
+ return proto.game.GeoRestrictionRequest.toObject(opt_includeInstance, this);
29361
+ };
29362
+
29363
+
29364
+ /**
29365
+ * Static version of the {@see toObject} method.
29366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29367
+ * the JSPB instance for transitional soy proto support:
29368
+ * http://goto/soy-param-migration
29369
+ * @param {!proto.game.GeoRestrictionRequest} msg The msg instance to transform.
29370
+ * @return {!Object}
29371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29372
+ */
29373
+ proto.game.GeoRestrictionRequest.toObject = function(includeInstance, msg) {
29374
+ var f, obj = {
29375
+ instanceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
29376
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
29377
+ mode: jspb.Message.getFieldWithDefault(msg, 3, ""),
29378
+ geoList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
29379
+ };
29380
+
29381
+ if (includeInstance) {
29382
+ obj.$jspbMessageInstance = msg;
29383
+ }
29384
+ return obj;
29385
+ };
29386
+ }
29387
+
29388
+
29389
+ /**
29390
+ * Deserializes binary data (in protobuf wire format).
29391
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29392
+ * @return {!proto.game.GeoRestrictionRequest}
29393
+ */
29394
+ proto.game.GeoRestrictionRequest.deserializeBinary = function(bytes) {
29395
+ var reader = new jspb.BinaryReader(bytes);
29396
+ var msg = new proto.game.GeoRestrictionRequest;
29397
+ return proto.game.GeoRestrictionRequest.deserializeBinaryFromReader(msg, reader);
29398
+ };
29399
+
29400
+
29401
+ /**
29402
+ * Deserializes binary data (in protobuf wire format) from the
29403
+ * given reader into the given message object.
29404
+ * @param {!proto.game.GeoRestrictionRequest} msg The message object to deserialize into.
29405
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29406
+ * @return {!proto.game.GeoRestrictionRequest}
29407
+ */
29408
+ proto.game.GeoRestrictionRequest.deserializeBinaryFromReader = function(msg, reader) {
29409
+ while (reader.nextField()) {
29410
+ if (reader.isEndGroup()) {
29411
+ break;
29412
+ }
29413
+ var field = reader.getFieldNumber();
29414
+ switch (field) {
29415
+ case 1:
29416
+ var value = /** @type {number} */ (reader.readInt32());
29417
+ msg.setInstanceId(value);
29418
+ break;
29419
+ case 2:
29420
+ var value = /** @type {string} */ (reader.readString());
29421
+ msg.setInstanceType(value);
29422
+ break;
29423
+ case 3:
29424
+ var value = /** @type {string} */ (reader.readString());
29425
+ msg.setMode(value);
29426
+ break;
29427
+ case 4:
29428
+ var value = /** @type {string} */ (reader.readString());
29429
+ msg.addGeo(value);
29430
+ break;
29431
+ default:
29432
+ reader.skipField();
29433
+ break;
29434
+ }
29435
+ }
29436
+ return msg;
29437
+ };
29438
+
29439
+
29440
+ /**
29441
+ * Serializes the message to binary data (in protobuf wire format).
29442
+ * @return {!Uint8Array}
29443
+ */
29444
+ proto.game.GeoRestrictionRequest.prototype.serializeBinary = function() {
29445
+ var writer = new jspb.BinaryWriter();
29446
+ proto.game.GeoRestrictionRequest.serializeBinaryToWriter(this, writer);
29447
+ return writer.getResultBuffer();
29448
+ };
29449
+
29450
+
29451
+ /**
29452
+ * Serializes the given message to binary data (in protobuf wire
29453
+ * format), writing to the given BinaryWriter.
29454
+ * @param {!proto.game.GeoRestrictionRequest} message
29455
+ * @param {!jspb.BinaryWriter} writer
29456
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29457
+ */
29458
+ proto.game.GeoRestrictionRequest.serializeBinaryToWriter = function(message, writer) {
29459
+ var f = undefined;
29460
+ f = message.getInstanceId();
29461
+ if (f !== 0) {
29462
+ writer.writeInt32(
29463
+ 1,
29464
+ f
29465
+ );
29466
+ }
29467
+ f = message.getInstanceType();
29468
+ if (f.length > 0) {
29469
+ writer.writeString(
29470
+ 2,
29471
+ f
29472
+ );
29473
+ }
29474
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
29475
+ if (f != null) {
29476
+ writer.writeString(
29477
+ 3,
29478
+ f
29479
+ );
29480
+ }
29481
+ f = message.getGeoList();
29482
+ if (f.length > 0) {
29483
+ writer.writeRepeatedString(
29484
+ 4,
29485
+ f
29486
+ );
29487
+ }
29488
+ };
29489
+
29490
+
29491
+ /**
29492
+ * optional int32 instance_id = 1;
29493
+ * @return {number}
29494
+ */
29495
+ proto.game.GeoRestrictionRequest.prototype.getInstanceId = function() {
29496
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
29497
+ };
29498
+
29499
+
29500
+ /**
29501
+ * @param {number} value
29502
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29503
+ */
29504
+ proto.game.GeoRestrictionRequest.prototype.setInstanceId = function(value) {
29505
+ return jspb.Message.setProto3IntField(this, 1, value);
29506
+ };
29507
+
29508
+
29509
+ /**
29510
+ * optional string instance_type = 2;
29511
+ * @return {string}
29512
+ */
29513
+ proto.game.GeoRestrictionRequest.prototype.getInstanceType = function() {
29514
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
29515
+ };
29516
+
29517
+
29518
+ /**
29519
+ * @param {string} value
29520
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29521
+ */
29522
+ proto.game.GeoRestrictionRequest.prototype.setInstanceType = function(value) {
29523
+ return jspb.Message.setProto3StringField(this, 2, value);
29524
+ };
29525
+
29526
+
29527
+ /**
29528
+ * optional string mode = 3;
29529
+ * @return {string}
29530
+ */
29531
+ proto.game.GeoRestrictionRequest.prototype.getMode = function() {
29532
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
29533
+ };
29534
+
29535
+
29536
+ /**
29537
+ * @param {string} value
29538
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29539
+ */
29540
+ proto.game.GeoRestrictionRequest.prototype.setMode = function(value) {
29541
+ return jspb.Message.setField(this, 3, value);
29542
+ };
29543
+
29544
+
29545
+ /**
29546
+ * Clears the field making it undefined.
29547
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29548
+ */
29549
+ proto.game.GeoRestrictionRequest.prototype.clearMode = function() {
29550
+ return jspb.Message.setField(this, 3, undefined);
29551
+ };
29552
+
29553
+
29554
+ /**
29555
+ * Returns whether this field is set.
29556
+ * @return {boolean}
29557
+ */
29558
+ proto.game.GeoRestrictionRequest.prototype.hasMode = function() {
29559
+ return jspb.Message.getField(this, 3) != null;
29560
+ };
29561
+
29562
+
29563
+ /**
29564
+ * repeated string geo = 4;
29565
+ * @return {!Array<string>}
29566
+ */
29567
+ proto.game.GeoRestrictionRequest.prototype.getGeoList = function() {
29568
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
29569
+ };
29570
+
29571
+
29572
+ /**
29573
+ * @param {!Array<string>} value
29574
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29575
+ */
29576
+ proto.game.GeoRestrictionRequest.prototype.setGeoList = function(value) {
29577
+ return jspb.Message.setField(this, 4, value || []);
29578
+ };
29579
+
29580
+
29581
+ /**
29582
+ * @param {string} value
29583
+ * @param {number=} opt_index
29584
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29585
+ */
29586
+ proto.game.GeoRestrictionRequest.prototype.addGeo = function(value, opt_index) {
29587
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
29588
+ };
29589
+
29590
+
29591
+ /**
29592
+ * Clears the list making it empty but non-null.
29593
+ * @return {!proto.game.GeoRestrictionRequest} returns this
29594
+ */
29595
+ proto.game.GeoRestrictionRequest.prototype.clearGeoList = function() {
29596
+ return this.setGeoList([]);
29597
+ };
29598
+
29599
+
29600
+
29601
+
29602
+
29603
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29604
+ /**
29605
+ * Creates an object representation of this proto.
29606
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29607
+ * Optional fields that are not set will be set to undefined.
29608
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29609
+ * For the list of reserved names please see:
29610
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29611
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29612
+ * JSPB instance for transitional soy proto support:
29613
+ * http://goto/soy-param-migration
29614
+ * @return {!Object}
29615
+ */
29616
+ proto.game.GeoRestrictionStatusResponse.prototype.toObject = function(opt_includeInstance) {
29617
+ return proto.game.GeoRestrictionStatusResponse.toObject(opt_includeInstance, this);
29618
+ };
29619
+
29620
+
29621
+ /**
29622
+ * Static version of the {@see toObject} method.
29623
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29624
+ * the JSPB instance for transitional soy proto support:
29625
+ * http://goto/soy-param-migration
29626
+ * @param {!proto.game.GeoRestrictionStatusResponse} msg The msg instance to transform.
29627
+ * @return {!Object}
29628
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29629
+ */
29630
+ proto.game.GeoRestrictionStatusResponse.toObject = function(includeInstance, msg) {
29631
+ var f, obj = {
29632
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
29633
+ };
29634
+
29635
+ if (includeInstance) {
29636
+ obj.$jspbMessageInstance = msg;
29637
+ }
29638
+ return obj;
29639
+ };
29640
+ }
29641
+
29642
+
29643
+ /**
29644
+ * Deserializes binary data (in protobuf wire format).
29645
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29646
+ * @return {!proto.game.GeoRestrictionStatusResponse}
29647
+ */
29648
+ proto.game.GeoRestrictionStatusResponse.deserializeBinary = function(bytes) {
29649
+ var reader = new jspb.BinaryReader(bytes);
29650
+ var msg = new proto.game.GeoRestrictionStatusResponse;
29651
+ return proto.game.GeoRestrictionStatusResponse.deserializeBinaryFromReader(msg, reader);
29652
+ };
29653
+
29654
+
29655
+ /**
29656
+ * Deserializes binary data (in protobuf wire format) from the
29657
+ * given reader into the given message object.
29658
+ * @param {!proto.game.GeoRestrictionStatusResponse} msg The message object to deserialize into.
29659
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29660
+ * @return {!proto.game.GeoRestrictionStatusResponse}
29661
+ */
29662
+ proto.game.GeoRestrictionStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
29663
+ while (reader.nextField()) {
29664
+ if (reader.isEndGroup()) {
29665
+ break;
29666
+ }
29667
+ var field = reader.getFieldNumber();
29668
+ switch (field) {
29669
+ case 1:
29670
+ var value = /** @type {string} */ (reader.readString());
29671
+ msg.setStatus(value);
29672
+ break;
29673
+ default:
29674
+ reader.skipField();
29675
+ break;
29676
+ }
29677
+ }
29678
+ return msg;
29679
+ };
29680
+
29681
+
29682
+ /**
29683
+ * Serializes the message to binary data (in protobuf wire format).
29684
+ * @return {!Uint8Array}
29685
+ */
29686
+ proto.game.GeoRestrictionStatusResponse.prototype.serializeBinary = function() {
29687
+ var writer = new jspb.BinaryWriter();
29688
+ proto.game.GeoRestrictionStatusResponse.serializeBinaryToWriter(this, writer);
29689
+ return writer.getResultBuffer();
29690
+ };
29691
+
29692
+
29693
+ /**
29694
+ * Serializes the given message to binary data (in protobuf wire
29695
+ * format), writing to the given BinaryWriter.
29696
+ * @param {!proto.game.GeoRestrictionStatusResponse} message
29697
+ * @param {!jspb.BinaryWriter} writer
29698
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29699
+ */
29700
+ proto.game.GeoRestrictionStatusResponse.serializeBinaryToWriter = function(message, writer) {
29701
+ var f = undefined;
29702
+ f = message.getStatus();
29703
+ if (f.length > 0) {
29704
+ writer.writeString(
29705
+ 1,
29706
+ f
29707
+ );
29708
+ }
29709
+ };
29710
+
29711
+
29712
+ /**
29713
+ * optional string status = 1;
29714
+ * @return {string}
29715
+ */
29716
+ proto.game.GeoRestrictionStatusResponse.prototype.getStatus = function() {
29717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29718
+ };
29719
+
29720
+
29721
+ /**
29722
+ * @param {string} value
29723
+ * @return {!proto.game.GeoRestrictionStatusResponse} returns this
29724
+ */
29725
+ proto.game.GeoRestrictionStatusResponse.prototype.setStatus = function(value) {
29726
+ return jspb.Message.setProto3StringField(this, 1, value);
29727
+ };
29728
+
29729
+
29730
+
29731
+ /**
29732
+ * List of repeated fields within this message type.
29733
+ * @private {!Array<number>}
29734
+ * @const
29735
+ */
29736
+ proto.game.GeoRestrictionResponse.repeatedFields_ = [1];
29737
+
29738
+
29739
+
29740
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29741
+ /**
29742
+ * Creates an object representation of this proto.
29743
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29744
+ * Optional fields that are not set will be set to undefined.
29745
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29746
+ * For the list of reserved names please see:
29747
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29748
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29749
+ * JSPB instance for transitional soy proto support:
29750
+ * http://goto/soy-param-migration
29751
+ * @return {!Object}
29752
+ */
29753
+ proto.game.GeoRestrictionResponse.prototype.toObject = function(opt_includeInstance) {
29754
+ return proto.game.GeoRestrictionResponse.toObject(opt_includeInstance, this);
29755
+ };
29756
+
29757
+
29758
+ /**
29759
+ * Static version of the {@see toObject} method.
29760
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29761
+ * the JSPB instance for transitional soy proto support:
29762
+ * http://goto/soy-param-migration
29763
+ * @param {!proto.game.GeoRestrictionResponse} msg The msg instance to transform.
29764
+ * @return {!Object}
29765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29766
+ */
29767
+ proto.game.GeoRestrictionResponse.toObject = function(includeInstance, msg) {
29768
+ var f, obj = {
29769
+ geoList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
29770
+ };
29771
+
29772
+ if (includeInstance) {
29773
+ obj.$jspbMessageInstance = msg;
29774
+ }
29775
+ return obj;
29776
+ };
29777
+ }
29778
+
29779
+
29780
+ /**
29781
+ * Deserializes binary data (in protobuf wire format).
29782
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29783
+ * @return {!proto.game.GeoRestrictionResponse}
29784
+ */
29785
+ proto.game.GeoRestrictionResponse.deserializeBinary = function(bytes) {
29786
+ var reader = new jspb.BinaryReader(bytes);
29787
+ var msg = new proto.game.GeoRestrictionResponse;
29788
+ return proto.game.GeoRestrictionResponse.deserializeBinaryFromReader(msg, reader);
29789
+ };
29790
+
29791
+
29792
+ /**
29793
+ * Deserializes binary data (in protobuf wire format) from the
29794
+ * given reader into the given message object.
29795
+ * @param {!proto.game.GeoRestrictionResponse} msg The message object to deserialize into.
29796
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29797
+ * @return {!proto.game.GeoRestrictionResponse}
29798
+ */
29799
+ proto.game.GeoRestrictionResponse.deserializeBinaryFromReader = function(msg, reader) {
29800
+ while (reader.nextField()) {
29801
+ if (reader.isEndGroup()) {
29802
+ break;
29803
+ }
29804
+ var field = reader.getFieldNumber();
29805
+ switch (field) {
29806
+ case 1:
29807
+ var value = /** @type {string} */ (reader.readString());
29808
+ msg.addGeo(value);
29809
+ break;
29810
+ default:
29811
+ reader.skipField();
29812
+ break;
29813
+ }
29814
+ }
29815
+ return msg;
29816
+ };
29817
+
29818
+
29819
+ /**
29820
+ * Serializes the message to binary data (in protobuf wire format).
29821
+ * @return {!Uint8Array}
29822
+ */
29823
+ proto.game.GeoRestrictionResponse.prototype.serializeBinary = function() {
29824
+ var writer = new jspb.BinaryWriter();
29825
+ proto.game.GeoRestrictionResponse.serializeBinaryToWriter(this, writer);
29826
+ return writer.getResultBuffer();
29827
+ };
29828
+
29829
+
29830
+ /**
29831
+ * Serializes the given message to binary data (in protobuf wire
29832
+ * format), writing to the given BinaryWriter.
29833
+ * @param {!proto.game.GeoRestrictionResponse} message
29834
+ * @param {!jspb.BinaryWriter} writer
29835
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29836
+ */
29837
+ proto.game.GeoRestrictionResponse.serializeBinaryToWriter = function(message, writer) {
29838
+ var f = undefined;
29839
+ f = message.getGeoList();
29840
+ if (f.length > 0) {
29841
+ writer.writeRepeatedString(
29842
+ 1,
29843
+ f
29844
+ );
29845
+ }
29846
+ };
29847
+
29848
+
29849
+ /**
29850
+ * repeated string geo = 1;
29851
+ * @return {!Array<string>}
29852
+ */
29853
+ proto.game.GeoRestrictionResponse.prototype.getGeoList = function() {
29854
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
29855
+ };
29856
+
29857
+
29858
+ /**
29859
+ * @param {!Array<string>} value
29860
+ * @return {!proto.game.GeoRestrictionResponse} returns this
29861
+ */
29862
+ proto.game.GeoRestrictionResponse.prototype.setGeoList = function(value) {
29863
+ return jspb.Message.setField(this, 1, value || []);
29864
+ };
29865
+
29866
+
29867
+ /**
29868
+ * @param {string} value
29869
+ * @param {number=} opt_index
29870
+ * @return {!proto.game.GeoRestrictionResponse} returns this
29871
+ */
29872
+ proto.game.GeoRestrictionResponse.prototype.addGeo = function(value, opt_index) {
29873
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
29874
+ };
29875
+
29876
+
29877
+ /**
29878
+ * Clears the list making it empty but non-null.
29879
+ * @return {!proto.game.GeoRestrictionResponse} returns this
29880
+ */
29881
+ proto.game.GeoRestrictionResponse.prototype.clearGeoList = function() {
29882
+ return this.setGeoList([]);
29883
+ };
29884
+
29885
+
29270
29886
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {