protobuf-platform 1.0.92 → 1.0.94

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
@@ -4,7 +4,26 @@ package cms;
4
4
 
5
5
  service CMS {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
+ //Widgets
8
+ rpc setMainPageWidget(MainPageWidgetRequest) returns (MainPageWidgetItem);
9
+ rpc getMainPageWidget(GetMainPageWidgetRequest) returns (MainPageWidgetItem);
10
+ rpc getMainPageWidgetList(GetMainPageWidgetRequest) returns (MainPageWidgetResponse);
7
11
  }
8
12
 
9
13
  message PingRequest { string ping = 1; }
10
14
  message PongResponse { string pong = 1; }
15
+ //Widgets
16
+ message MainPageWidgetRequest {
17
+ string geo = 1;
18
+ string content = 2;
19
+ }
20
+ message GetMainPageWidgetRequest {
21
+ optional string geo = 1;
22
+ }
23
+ message MainPageWidgetItem {
24
+ string geo = 1;
25
+ string content = 2;
26
+ }
27
+ message MainPageWidgetResponse {
28
+ repeated MainPageWidgetItem items = 1;
29
+ }
@@ -4,6 +4,50 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var cms_pb = require('./cms_pb.js');
6
6
 
7
+ function serialize_cms_GetMainPageWidgetRequest(arg) {
8
+ if (!(arg instanceof cms_pb.GetMainPageWidgetRequest)) {
9
+ throw new Error('Expected argument of type cms.GetMainPageWidgetRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_cms_GetMainPageWidgetRequest(buffer_arg) {
15
+ return cms_pb.GetMainPageWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_cms_MainPageWidgetItem(arg) {
19
+ if (!(arg instanceof cms_pb.MainPageWidgetItem)) {
20
+ throw new Error('Expected argument of type cms.MainPageWidgetItem');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_cms_MainPageWidgetItem(buffer_arg) {
26
+ return cms_pb.MainPageWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_cms_MainPageWidgetRequest(arg) {
30
+ if (!(arg instanceof cms_pb.MainPageWidgetRequest)) {
31
+ throw new Error('Expected argument of type cms.MainPageWidgetRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_cms_MainPageWidgetRequest(buffer_arg) {
37
+ return cms_pb.MainPageWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_cms_MainPageWidgetResponse(arg) {
41
+ if (!(arg instanceof cms_pb.MainPageWidgetResponse)) {
42
+ throw new Error('Expected argument of type cms.MainPageWidgetResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_cms_MainPageWidgetResponse(buffer_arg) {
48
+ return cms_pb.MainPageWidgetResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
7
51
  function serialize_cms_PingRequest(arg) {
8
52
  if (!(arg instanceof cms_pb.PingRequest)) {
9
53
  throw new Error('Expected argument of type cms.PingRequest');
@@ -39,6 +83,40 @@ var CMSService = exports.CMSService = {
39
83
  responseSerialize: serialize_cms_PongResponse,
40
84
  responseDeserialize: deserialize_cms_PongResponse,
41
85
  },
86
+ // Widgets
87
+ setMainPageWidget: {
88
+ path: '/cms.CMS/setMainPageWidget',
89
+ requestStream: false,
90
+ responseStream: false,
91
+ requestType: cms_pb.MainPageWidgetRequest,
92
+ responseType: cms_pb.MainPageWidgetItem,
93
+ requestSerialize: serialize_cms_MainPageWidgetRequest,
94
+ requestDeserialize: deserialize_cms_MainPageWidgetRequest,
95
+ responseSerialize: serialize_cms_MainPageWidgetItem,
96
+ responseDeserialize: deserialize_cms_MainPageWidgetItem,
97
+ },
98
+ getMainPageWidget: {
99
+ path: '/cms.CMS/getMainPageWidget',
100
+ requestStream: false,
101
+ responseStream: false,
102
+ requestType: cms_pb.GetMainPageWidgetRequest,
103
+ responseType: cms_pb.MainPageWidgetItem,
104
+ requestSerialize: serialize_cms_GetMainPageWidgetRequest,
105
+ requestDeserialize: deserialize_cms_GetMainPageWidgetRequest,
106
+ responseSerialize: serialize_cms_MainPageWidgetItem,
107
+ responseDeserialize: deserialize_cms_MainPageWidgetItem,
108
+ },
109
+ getMainPageWidgetList: {
110
+ path: '/cms.CMS/getMainPageWidgetList',
111
+ requestStream: false,
112
+ responseStream: false,
113
+ requestType: cms_pb.GetMainPageWidgetRequest,
114
+ responseType: cms_pb.MainPageWidgetResponse,
115
+ requestSerialize: serialize_cms_GetMainPageWidgetRequest,
116
+ requestDeserialize: deserialize_cms_GetMainPageWidgetRequest,
117
+ responseSerialize: serialize_cms_MainPageWidgetResponse,
118
+ responseDeserialize: deserialize_cms_MainPageWidgetResponse,
119
+ },
42
120
  };
43
121
 
44
122
  exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
package/cms/cms_pb.js CHANGED
@@ -21,6 +21,10 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
25
+ goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
26
+ goog.exportSymbol('proto.cms.MainPageWidgetRequest', null, global);
27
+ goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
24
28
  goog.exportSymbol('proto.cms.PingRequest', null, global);
25
29
  goog.exportSymbol('proto.cms.PongResponse', null, global);
26
30
  /**
@@ -65,6 +69,90 @@ if (goog.DEBUG && !COMPILED) {
65
69
  */
66
70
  proto.cms.PongResponse.displayName = 'proto.cms.PongResponse';
67
71
  }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.cms.MainPageWidgetRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.cms.MainPageWidgetRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.cms.MainPageWidgetRequest.displayName = 'proto.cms.MainPageWidgetRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.cms.GetMainPageWidgetRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.cms.GetMainPageWidgetRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.cms.GetMainPageWidgetRequest.displayName = 'proto.cms.GetMainPageWidgetRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.cms.MainPageWidgetItem = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.cms.MainPageWidgetItem, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.cms.MainPageWidgetItem.displayName = 'proto.cms.MainPageWidgetItem';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.cms.MainPageWidgetResponse = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.MainPageWidgetResponse.repeatedFields_, null);
147
+ };
148
+ goog.inherits(proto.cms.MainPageWidgetResponse, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.cms.MainPageWidgetResponse.displayName = 'proto.cms.MainPageWidgetResponse';
155
+ }
68
156
 
69
157
 
70
158
 
@@ -325,4 +413,632 @@ proto.cms.PongResponse.prototype.setPong = function(value) {
325
413
  };
326
414
 
327
415
 
416
+
417
+
418
+
419
+ if (jspb.Message.GENERATE_TO_OBJECT) {
420
+ /**
421
+ * Creates an object representation of this proto.
422
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
423
+ * Optional fields that are not set will be set to undefined.
424
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
425
+ * For the list of reserved names please see:
426
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
427
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
428
+ * JSPB instance for transitional soy proto support:
429
+ * http://goto/soy-param-migration
430
+ * @return {!Object}
431
+ */
432
+ proto.cms.MainPageWidgetRequest.prototype.toObject = function(opt_includeInstance) {
433
+ return proto.cms.MainPageWidgetRequest.toObject(opt_includeInstance, this);
434
+ };
435
+
436
+
437
+ /**
438
+ * Static version of the {@see toObject} method.
439
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
440
+ * the JSPB instance for transitional soy proto support:
441
+ * http://goto/soy-param-migration
442
+ * @param {!proto.cms.MainPageWidgetRequest} msg The msg instance to transform.
443
+ * @return {!Object}
444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
445
+ */
446
+ proto.cms.MainPageWidgetRequest.toObject = function(includeInstance, msg) {
447
+ var f, obj = {
448
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
449
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
450
+ };
451
+
452
+ if (includeInstance) {
453
+ obj.$jspbMessageInstance = msg;
454
+ }
455
+ return obj;
456
+ };
457
+ }
458
+
459
+
460
+ /**
461
+ * Deserializes binary data (in protobuf wire format).
462
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
463
+ * @return {!proto.cms.MainPageWidgetRequest}
464
+ */
465
+ proto.cms.MainPageWidgetRequest.deserializeBinary = function(bytes) {
466
+ var reader = new jspb.BinaryReader(bytes);
467
+ var msg = new proto.cms.MainPageWidgetRequest;
468
+ return proto.cms.MainPageWidgetRequest.deserializeBinaryFromReader(msg, reader);
469
+ };
470
+
471
+
472
+ /**
473
+ * Deserializes binary data (in protobuf wire format) from the
474
+ * given reader into the given message object.
475
+ * @param {!proto.cms.MainPageWidgetRequest} msg The message object to deserialize into.
476
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
477
+ * @return {!proto.cms.MainPageWidgetRequest}
478
+ */
479
+ proto.cms.MainPageWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
480
+ while (reader.nextField()) {
481
+ if (reader.isEndGroup()) {
482
+ break;
483
+ }
484
+ var field = reader.getFieldNumber();
485
+ switch (field) {
486
+ case 1:
487
+ var value = /** @type {string} */ (reader.readString());
488
+ msg.setGeo(value);
489
+ break;
490
+ case 2:
491
+ var value = /** @type {string} */ (reader.readString());
492
+ msg.setContent(value);
493
+ break;
494
+ default:
495
+ reader.skipField();
496
+ break;
497
+ }
498
+ }
499
+ return msg;
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the message to binary data (in protobuf wire format).
505
+ * @return {!Uint8Array}
506
+ */
507
+ proto.cms.MainPageWidgetRequest.prototype.serializeBinary = function() {
508
+ var writer = new jspb.BinaryWriter();
509
+ proto.cms.MainPageWidgetRequest.serializeBinaryToWriter(this, writer);
510
+ return writer.getResultBuffer();
511
+ };
512
+
513
+
514
+ /**
515
+ * Serializes the given message to binary data (in protobuf wire
516
+ * format), writing to the given BinaryWriter.
517
+ * @param {!proto.cms.MainPageWidgetRequest} message
518
+ * @param {!jspb.BinaryWriter} writer
519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
520
+ */
521
+ proto.cms.MainPageWidgetRequest.serializeBinaryToWriter = function(message, writer) {
522
+ var f = undefined;
523
+ f = message.getGeo();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 1,
527
+ f
528
+ );
529
+ }
530
+ f = message.getContent();
531
+ if (f.length > 0) {
532
+ writer.writeString(
533
+ 2,
534
+ f
535
+ );
536
+ }
537
+ };
538
+
539
+
540
+ /**
541
+ * optional string geo = 1;
542
+ * @return {string}
543
+ */
544
+ proto.cms.MainPageWidgetRequest.prototype.getGeo = function() {
545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {string} value
551
+ * @return {!proto.cms.MainPageWidgetRequest} returns this
552
+ */
553
+ proto.cms.MainPageWidgetRequest.prototype.setGeo = function(value) {
554
+ return jspb.Message.setProto3StringField(this, 1, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string content = 2;
560
+ * @return {string}
561
+ */
562
+ proto.cms.MainPageWidgetRequest.prototype.getContent = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.cms.MainPageWidgetRequest} returns this
570
+ */
571
+ proto.cms.MainPageWidgetRequest.prototype.setContent = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 2, value);
573
+ };
574
+
575
+
576
+
577
+
578
+
579
+ if (jspb.Message.GENERATE_TO_OBJECT) {
580
+ /**
581
+ * Creates an object representation of this proto.
582
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
583
+ * Optional fields that are not set will be set to undefined.
584
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
585
+ * For the list of reserved names please see:
586
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
587
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
588
+ * JSPB instance for transitional soy proto support:
589
+ * http://goto/soy-param-migration
590
+ * @return {!Object}
591
+ */
592
+ proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInstance) {
593
+ return proto.cms.GetMainPageWidgetRequest.toObject(opt_includeInstance, this);
594
+ };
595
+
596
+
597
+ /**
598
+ * Static version of the {@see toObject} method.
599
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
600
+ * the JSPB instance for transitional soy proto support:
601
+ * http://goto/soy-param-migration
602
+ * @param {!proto.cms.GetMainPageWidgetRequest} msg The msg instance to transform.
603
+ * @return {!Object}
604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
605
+ */
606
+ proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
607
+ var f, obj = {
608
+ geo: jspb.Message.getFieldWithDefault(msg, 1, "")
609
+ };
610
+
611
+ if (includeInstance) {
612
+ obj.$jspbMessageInstance = msg;
613
+ }
614
+ return obj;
615
+ };
616
+ }
617
+
618
+
619
+ /**
620
+ * Deserializes binary data (in protobuf wire format).
621
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
622
+ * @return {!proto.cms.GetMainPageWidgetRequest}
623
+ */
624
+ proto.cms.GetMainPageWidgetRequest.deserializeBinary = function(bytes) {
625
+ var reader = new jspb.BinaryReader(bytes);
626
+ var msg = new proto.cms.GetMainPageWidgetRequest;
627
+ return proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader(msg, reader);
628
+ };
629
+
630
+
631
+ /**
632
+ * Deserializes binary data (in protobuf wire format) from the
633
+ * given reader into the given message object.
634
+ * @param {!proto.cms.GetMainPageWidgetRequest} msg The message object to deserialize into.
635
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
636
+ * @return {!proto.cms.GetMainPageWidgetRequest}
637
+ */
638
+ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
639
+ while (reader.nextField()) {
640
+ if (reader.isEndGroup()) {
641
+ break;
642
+ }
643
+ var field = reader.getFieldNumber();
644
+ switch (field) {
645
+ case 1:
646
+ var value = /** @type {string} */ (reader.readString());
647
+ msg.setGeo(value);
648
+ break;
649
+ default:
650
+ reader.skipField();
651
+ break;
652
+ }
653
+ }
654
+ return msg;
655
+ };
656
+
657
+
658
+ /**
659
+ * Serializes the message to binary data (in protobuf wire format).
660
+ * @return {!Uint8Array}
661
+ */
662
+ proto.cms.GetMainPageWidgetRequest.prototype.serializeBinary = function() {
663
+ var writer = new jspb.BinaryWriter();
664
+ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter(this, writer);
665
+ return writer.getResultBuffer();
666
+ };
667
+
668
+
669
+ /**
670
+ * Serializes the given message to binary data (in protobuf wire
671
+ * format), writing to the given BinaryWriter.
672
+ * @param {!proto.cms.GetMainPageWidgetRequest} message
673
+ * @param {!jspb.BinaryWriter} writer
674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
675
+ */
676
+ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, writer) {
677
+ var f = undefined;
678
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
679
+ if (f != null) {
680
+ writer.writeString(
681
+ 1,
682
+ f
683
+ );
684
+ }
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string geo = 1;
690
+ * @return {string}
691
+ */
692
+ proto.cms.GetMainPageWidgetRequest.prototype.getGeo = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
700
+ */
701
+ proto.cms.GetMainPageWidgetRequest.prototype.setGeo = function(value) {
702
+ return jspb.Message.setField(this, 1, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * Clears the field making it undefined.
708
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
709
+ */
710
+ proto.cms.GetMainPageWidgetRequest.prototype.clearGeo = function() {
711
+ return jspb.Message.setField(this, 1, undefined);
712
+ };
713
+
714
+
715
+ /**
716
+ * Returns whether this field is set.
717
+ * @return {boolean}
718
+ */
719
+ proto.cms.GetMainPageWidgetRequest.prototype.hasGeo = function() {
720
+ return jspb.Message.getField(this, 1) != null;
721
+ };
722
+
723
+
724
+
725
+
726
+
727
+ if (jspb.Message.GENERATE_TO_OBJECT) {
728
+ /**
729
+ * Creates an object representation of this proto.
730
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
731
+ * Optional fields that are not set will be set to undefined.
732
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
733
+ * For the list of reserved names please see:
734
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
735
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
736
+ * JSPB instance for transitional soy proto support:
737
+ * http://goto/soy-param-migration
738
+ * @return {!Object}
739
+ */
740
+ proto.cms.MainPageWidgetItem.prototype.toObject = function(opt_includeInstance) {
741
+ return proto.cms.MainPageWidgetItem.toObject(opt_includeInstance, this);
742
+ };
743
+
744
+
745
+ /**
746
+ * Static version of the {@see toObject} method.
747
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
748
+ * the JSPB instance for transitional soy proto support:
749
+ * http://goto/soy-param-migration
750
+ * @param {!proto.cms.MainPageWidgetItem} msg The msg instance to transform.
751
+ * @return {!Object}
752
+ * @suppress {unusedLocalVariables} f is only used for nested messages
753
+ */
754
+ proto.cms.MainPageWidgetItem.toObject = function(includeInstance, msg) {
755
+ var f, obj = {
756
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
757
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
758
+ };
759
+
760
+ if (includeInstance) {
761
+ obj.$jspbMessageInstance = msg;
762
+ }
763
+ return obj;
764
+ };
765
+ }
766
+
767
+
768
+ /**
769
+ * Deserializes binary data (in protobuf wire format).
770
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
771
+ * @return {!proto.cms.MainPageWidgetItem}
772
+ */
773
+ proto.cms.MainPageWidgetItem.deserializeBinary = function(bytes) {
774
+ var reader = new jspb.BinaryReader(bytes);
775
+ var msg = new proto.cms.MainPageWidgetItem;
776
+ return proto.cms.MainPageWidgetItem.deserializeBinaryFromReader(msg, reader);
777
+ };
778
+
779
+
780
+ /**
781
+ * Deserializes binary data (in protobuf wire format) from the
782
+ * given reader into the given message object.
783
+ * @param {!proto.cms.MainPageWidgetItem} msg The message object to deserialize into.
784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
785
+ * @return {!proto.cms.MainPageWidgetItem}
786
+ */
787
+ proto.cms.MainPageWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
788
+ while (reader.nextField()) {
789
+ if (reader.isEndGroup()) {
790
+ break;
791
+ }
792
+ var field = reader.getFieldNumber();
793
+ switch (field) {
794
+ case 1:
795
+ var value = /** @type {string} */ (reader.readString());
796
+ msg.setGeo(value);
797
+ break;
798
+ case 2:
799
+ var value = /** @type {string} */ (reader.readString());
800
+ msg.setContent(value);
801
+ break;
802
+ default:
803
+ reader.skipField();
804
+ break;
805
+ }
806
+ }
807
+ return msg;
808
+ };
809
+
810
+
811
+ /**
812
+ * Serializes the message to binary data (in protobuf wire format).
813
+ * @return {!Uint8Array}
814
+ */
815
+ proto.cms.MainPageWidgetItem.prototype.serializeBinary = function() {
816
+ var writer = new jspb.BinaryWriter();
817
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter(this, writer);
818
+ return writer.getResultBuffer();
819
+ };
820
+
821
+
822
+ /**
823
+ * Serializes the given message to binary data (in protobuf wire
824
+ * format), writing to the given BinaryWriter.
825
+ * @param {!proto.cms.MainPageWidgetItem} message
826
+ * @param {!jspb.BinaryWriter} writer
827
+ * @suppress {unusedLocalVariables} f is only used for nested messages
828
+ */
829
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter = function(message, writer) {
830
+ var f = undefined;
831
+ f = message.getGeo();
832
+ if (f.length > 0) {
833
+ writer.writeString(
834
+ 1,
835
+ f
836
+ );
837
+ }
838
+ f = message.getContent();
839
+ if (f.length > 0) {
840
+ writer.writeString(
841
+ 2,
842
+ f
843
+ );
844
+ }
845
+ };
846
+
847
+
848
+ /**
849
+ * optional string geo = 1;
850
+ * @return {string}
851
+ */
852
+ proto.cms.MainPageWidgetItem.prototype.getGeo = function() {
853
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
854
+ };
855
+
856
+
857
+ /**
858
+ * @param {string} value
859
+ * @return {!proto.cms.MainPageWidgetItem} returns this
860
+ */
861
+ proto.cms.MainPageWidgetItem.prototype.setGeo = function(value) {
862
+ return jspb.Message.setProto3StringField(this, 1, value);
863
+ };
864
+
865
+
866
+ /**
867
+ * optional string content = 2;
868
+ * @return {string}
869
+ */
870
+ proto.cms.MainPageWidgetItem.prototype.getContent = function() {
871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
872
+ };
873
+
874
+
875
+ /**
876
+ * @param {string} value
877
+ * @return {!proto.cms.MainPageWidgetItem} returns this
878
+ */
879
+ proto.cms.MainPageWidgetItem.prototype.setContent = function(value) {
880
+ return jspb.Message.setProto3StringField(this, 2, value);
881
+ };
882
+
883
+
884
+
885
+ /**
886
+ * List of repeated fields within this message type.
887
+ * @private {!Array<number>}
888
+ * @const
889
+ */
890
+ proto.cms.MainPageWidgetResponse.repeatedFields_ = [1];
891
+
892
+
893
+
894
+ if (jspb.Message.GENERATE_TO_OBJECT) {
895
+ /**
896
+ * Creates an object representation of this proto.
897
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
898
+ * Optional fields that are not set will be set to undefined.
899
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
900
+ * For the list of reserved names please see:
901
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
902
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
903
+ * JSPB instance for transitional soy proto support:
904
+ * http://goto/soy-param-migration
905
+ * @return {!Object}
906
+ */
907
+ proto.cms.MainPageWidgetResponse.prototype.toObject = function(opt_includeInstance) {
908
+ return proto.cms.MainPageWidgetResponse.toObject(opt_includeInstance, this);
909
+ };
910
+
911
+
912
+ /**
913
+ * Static version of the {@see toObject} method.
914
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
915
+ * the JSPB instance for transitional soy proto support:
916
+ * http://goto/soy-param-migration
917
+ * @param {!proto.cms.MainPageWidgetResponse} msg The msg instance to transform.
918
+ * @return {!Object}
919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
920
+ */
921
+ proto.cms.MainPageWidgetResponse.toObject = function(includeInstance, msg) {
922
+ var f, obj = {
923
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
924
+ proto.cms.MainPageWidgetItem.toObject, includeInstance)
925
+ };
926
+
927
+ if (includeInstance) {
928
+ obj.$jspbMessageInstance = msg;
929
+ }
930
+ return obj;
931
+ };
932
+ }
933
+
934
+
935
+ /**
936
+ * Deserializes binary data (in protobuf wire format).
937
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
938
+ * @return {!proto.cms.MainPageWidgetResponse}
939
+ */
940
+ proto.cms.MainPageWidgetResponse.deserializeBinary = function(bytes) {
941
+ var reader = new jspb.BinaryReader(bytes);
942
+ var msg = new proto.cms.MainPageWidgetResponse;
943
+ return proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader(msg, reader);
944
+ };
945
+
946
+
947
+ /**
948
+ * Deserializes binary data (in protobuf wire format) from the
949
+ * given reader into the given message object.
950
+ * @param {!proto.cms.MainPageWidgetResponse} msg The message object to deserialize into.
951
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
952
+ * @return {!proto.cms.MainPageWidgetResponse}
953
+ */
954
+ proto.cms.MainPageWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
955
+ while (reader.nextField()) {
956
+ if (reader.isEndGroup()) {
957
+ break;
958
+ }
959
+ var field = reader.getFieldNumber();
960
+ switch (field) {
961
+ case 1:
962
+ var value = new proto.cms.MainPageWidgetItem;
963
+ reader.readMessage(value,proto.cms.MainPageWidgetItem.deserializeBinaryFromReader);
964
+ msg.addItems(value);
965
+ break;
966
+ default:
967
+ reader.skipField();
968
+ break;
969
+ }
970
+ }
971
+ return msg;
972
+ };
973
+
974
+
975
+ /**
976
+ * Serializes the message to binary data (in protobuf wire format).
977
+ * @return {!Uint8Array}
978
+ */
979
+ proto.cms.MainPageWidgetResponse.prototype.serializeBinary = function() {
980
+ var writer = new jspb.BinaryWriter();
981
+ proto.cms.MainPageWidgetResponse.serializeBinaryToWriter(this, writer);
982
+ return writer.getResultBuffer();
983
+ };
984
+
985
+
986
+ /**
987
+ * Serializes the given message to binary data (in protobuf wire
988
+ * format), writing to the given BinaryWriter.
989
+ * @param {!proto.cms.MainPageWidgetResponse} message
990
+ * @param {!jspb.BinaryWriter} writer
991
+ * @suppress {unusedLocalVariables} f is only used for nested messages
992
+ */
993
+ proto.cms.MainPageWidgetResponse.serializeBinaryToWriter = function(message, writer) {
994
+ var f = undefined;
995
+ f = message.getItemsList();
996
+ if (f.length > 0) {
997
+ writer.writeRepeatedMessage(
998
+ 1,
999
+ f,
1000
+ proto.cms.MainPageWidgetItem.serializeBinaryToWriter
1001
+ );
1002
+ }
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * repeated MainPageWidgetItem items = 1;
1008
+ * @return {!Array<!proto.cms.MainPageWidgetItem>}
1009
+ */
1010
+ proto.cms.MainPageWidgetResponse.prototype.getItemsList = function() {
1011
+ return /** @type{!Array<!proto.cms.MainPageWidgetItem>} */ (
1012
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.MainPageWidgetItem, 1));
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * @param {!Array<!proto.cms.MainPageWidgetItem>} value
1018
+ * @return {!proto.cms.MainPageWidgetResponse} returns this
1019
+ */
1020
+ proto.cms.MainPageWidgetResponse.prototype.setItemsList = function(value) {
1021
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * @param {!proto.cms.MainPageWidgetItem=} opt_value
1027
+ * @param {number=} opt_index
1028
+ * @return {!proto.cms.MainPageWidgetItem}
1029
+ */
1030
+ proto.cms.MainPageWidgetResponse.prototype.addItems = function(opt_value, opt_index) {
1031
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.MainPageWidgetItem, opt_index);
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Clears the list making it empty but non-null.
1037
+ * @return {!proto.cms.MainPageWidgetResponse} returns this
1038
+ */
1039
+ proto.cms.MainPageWidgetResponse.prototype.clearItemsList = function() {
1040
+ return this.setItemsList([]);
1041
+ };
1042
+
1043
+
328
1044
  goog.object.extend(exports, proto.cms);
package/game/game.proto CHANGED
@@ -51,6 +51,7 @@ service Game {
51
51
  rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
52
52
  //Cross Services
53
53
  rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
54
+ rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
54
55
  }
55
56
 
56
57
  message PingRequest { string ping = 1; }
@@ -370,4 +371,10 @@ message GamesUuids {
370
371
  }
371
372
  message GamePoorItemsResponse {
372
373
  repeated GameItem items = 1;
374
+ }
375
+ message ScopeRequest {
376
+ string data = 1;
377
+ }
378
+ message ScopeResponse {
379
+ string data = 1;
373
380
  }
@@ -433,6 +433,28 @@ function deserialize_game_ProviderStatusResponse(buffer_arg) {
433
433
  return game_pb.ProviderStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
434
434
  }
435
435
 
436
+ function serialize_game_ScopeRequest(arg) {
437
+ if (!(arg instanceof game_pb.ScopeRequest)) {
438
+ throw new Error('Expected argument of type game.ScopeRequest');
439
+ }
440
+ return Buffer.from(arg.serializeBinary());
441
+ }
442
+
443
+ function deserialize_game_ScopeRequest(buffer_arg) {
444
+ return game_pb.ScopeRequest.deserializeBinary(new Uint8Array(buffer_arg));
445
+ }
446
+
447
+ function serialize_game_ScopeResponse(arg) {
448
+ if (!(arg instanceof game_pb.ScopeResponse)) {
449
+ throw new Error('Expected argument of type game.ScopeResponse');
450
+ }
451
+ return Buffer.from(arg.serializeBinary());
452
+ }
453
+
454
+ function deserialize_game_ScopeResponse(buffer_arg) {
455
+ return game_pb.ScopeResponse.deserializeBinary(new Uint8Array(buffer_arg));
456
+ }
457
+
436
458
  function serialize_game_SearchGamesIntoCollectionsRequest(arg) {
437
459
  if (!(arg instanceof game_pb.SearchGamesIntoCollectionsRequest)) {
438
460
  throw new Error('Expected argument of type game.SearchGamesIntoCollectionsRequest');
@@ -992,6 +1014,17 @@ getGamesByUuids: {
992
1014
  responseSerialize: serialize_game_GamePoorItemsResponse,
993
1015
  responseDeserialize: deserialize_game_GamePoorItemsResponse,
994
1016
  },
1017
+ getGameScopesByIds: {
1018
+ path: '/game.Game/getGameScopesByIds',
1019
+ requestStream: false,
1020
+ responseStream: false,
1021
+ requestType: game_pb.ScopeRequest,
1022
+ responseType: game_pb.ScopeResponse,
1023
+ requestSerialize: serialize_game_ScopeRequest,
1024
+ requestDeserialize: deserialize_game_ScopeRequest,
1025
+ responseSerialize: serialize_game_ScopeResponse,
1026
+ responseDeserialize: deserialize_game_ScopeResponse,
1027
+ },
995
1028
  };
996
1029
 
997
1030
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);
package/game/game_pb.js CHANGED
@@ -73,6 +73,8 @@ goog.exportSymbol('proto.game.ProviderRequest', null, global);
73
73
  goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
74
74
  goog.exportSymbol('proto.game.ProviderResponse', null, global);
75
75
  goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
76
+ goog.exportSymbol('proto.game.ScopeRequest', null, global);
77
+ goog.exportSymbol('proto.game.ScopeResponse', null, global);
76
78
  goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
77
79
  goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
78
80
  goog.exportSymbol('proto.game.TagGamesRequest', null, global);
@@ -1346,6 +1348,48 @@ if (goog.DEBUG && !COMPILED) {
1346
1348
  */
1347
1349
  proto.game.GamePoorItemsResponse.displayName = 'proto.game.GamePoorItemsResponse';
1348
1350
  }
1351
+ /**
1352
+ * Generated by JsPbCodeGenerator.
1353
+ * @param {Array=} opt_data Optional initial data array, typically from a
1354
+ * server response, or constructed directly in Javascript. The array is used
1355
+ * in place and becomes part of the constructed object. It is not cloned.
1356
+ * If no data is provided, the constructed object will be empty, but still
1357
+ * valid.
1358
+ * @extends {jspb.Message}
1359
+ * @constructor
1360
+ */
1361
+ proto.game.ScopeRequest = function(opt_data) {
1362
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1363
+ };
1364
+ goog.inherits(proto.game.ScopeRequest, jspb.Message);
1365
+ if (goog.DEBUG && !COMPILED) {
1366
+ /**
1367
+ * @public
1368
+ * @override
1369
+ */
1370
+ proto.game.ScopeRequest.displayName = 'proto.game.ScopeRequest';
1371
+ }
1372
+ /**
1373
+ * Generated by JsPbCodeGenerator.
1374
+ * @param {Array=} opt_data Optional initial data array, typically from a
1375
+ * server response, or constructed directly in Javascript. The array is used
1376
+ * in place and becomes part of the constructed object. It is not cloned.
1377
+ * If no data is provided, the constructed object will be empty, but still
1378
+ * valid.
1379
+ * @extends {jspb.Message}
1380
+ * @constructor
1381
+ */
1382
+ proto.game.ScopeResponse = function(opt_data) {
1383
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1384
+ };
1385
+ goog.inherits(proto.game.ScopeResponse, jspb.Message);
1386
+ if (goog.DEBUG && !COMPILED) {
1387
+ /**
1388
+ * @public
1389
+ * @override
1390
+ */
1391
+ proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
1392
+ }
1349
1393
 
1350
1394
 
1351
1395
 
@@ -15849,4 +15893,264 @@ proto.game.GamePoorItemsResponse.prototype.clearItemsList = function() {
15849
15893
  };
15850
15894
 
15851
15895
 
15896
+
15897
+
15898
+
15899
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15900
+ /**
15901
+ * Creates an object representation of this proto.
15902
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15903
+ * Optional fields that are not set will be set to undefined.
15904
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15905
+ * For the list of reserved names please see:
15906
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15907
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15908
+ * JSPB instance for transitional soy proto support:
15909
+ * http://goto/soy-param-migration
15910
+ * @return {!Object}
15911
+ */
15912
+ proto.game.ScopeRequest.prototype.toObject = function(opt_includeInstance) {
15913
+ return proto.game.ScopeRequest.toObject(opt_includeInstance, this);
15914
+ };
15915
+
15916
+
15917
+ /**
15918
+ * Static version of the {@see toObject} method.
15919
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15920
+ * the JSPB instance for transitional soy proto support:
15921
+ * http://goto/soy-param-migration
15922
+ * @param {!proto.game.ScopeRequest} msg The msg instance to transform.
15923
+ * @return {!Object}
15924
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15925
+ */
15926
+ proto.game.ScopeRequest.toObject = function(includeInstance, msg) {
15927
+ var f, obj = {
15928
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
15929
+ };
15930
+
15931
+ if (includeInstance) {
15932
+ obj.$jspbMessageInstance = msg;
15933
+ }
15934
+ return obj;
15935
+ };
15936
+ }
15937
+
15938
+
15939
+ /**
15940
+ * Deserializes binary data (in protobuf wire format).
15941
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15942
+ * @return {!proto.game.ScopeRequest}
15943
+ */
15944
+ proto.game.ScopeRequest.deserializeBinary = function(bytes) {
15945
+ var reader = new jspb.BinaryReader(bytes);
15946
+ var msg = new proto.game.ScopeRequest;
15947
+ return proto.game.ScopeRequest.deserializeBinaryFromReader(msg, reader);
15948
+ };
15949
+
15950
+
15951
+ /**
15952
+ * Deserializes binary data (in protobuf wire format) from the
15953
+ * given reader into the given message object.
15954
+ * @param {!proto.game.ScopeRequest} msg The message object to deserialize into.
15955
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15956
+ * @return {!proto.game.ScopeRequest}
15957
+ */
15958
+ proto.game.ScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
15959
+ while (reader.nextField()) {
15960
+ if (reader.isEndGroup()) {
15961
+ break;
15962
+ }
15963
+ var field = reader.getFieldNumber();
15964
+ switch (field) {
15965
+ case 1:
15966
+ var value = /** @type {string} */ (reader.readString());
15967
+ msg.setData(value);
15968
+ break;
15969
+ default:
15970
+ reader.skipField();
15971
+ break;
15972
+ }
15973
+ }
15974
+ return msg;
15975
+ };
15976
+
15977
+
15978
+ /**
15979
+ * Serializes the message to binary data (in protobuf wire format).
15980
+ * @return {!Uint8Array}
15981
+ */
15982
+ proto.game.ScopeRequest.prototype.serializeBinary = function() {
15983
+ var writer = new jspb.BinaryWriter();
15984
+ proto.game.ScopeRequest.serializeBinaryToWriter(this, writer);
15985
+ return writer.getResultBuffer();
15986
+ };
15987
+
15988
+
15989
+ /**
15990
+ * Serializes the given message to binary data (in protobuf wire
15991
+ * format), writing to the given BinaryWriter.
15992
+ * @param {!proto.game.ScopeRequest} message
15993
+ * @param {!jspb.BinaryWriter} writer
15994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15995
+ */
15996
+ proto.game.ScopeRequest.serializeBinaryToWriter = function(message, writer) {
15997
+ var f = undefined;
15998
+ f = message.getData();
15999
+ if (f.length > 0) {
16000
+ writer.writeString(
16001
+ 1,
16002
+ f
16003
+ );
16004
+ }
16005
+ };
16006
+
16007
+
16008
+ /**
16009
+ * optional string data = 1;
16010
+ * @return {string}
16011
+ */
16012
+ proto.game.ScopeRequest.prototype.getData = function() {
16013
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16014
+ };
16015
+
16016
+
16017
+ /**
16018
+ * @param {string} value
16019
+ * @return {!proto.game.ScopeRequest} returns this
16020
+ */
16021
+ proto.game.ScopeRequest.prototype.setData = function(value) {
16022
+ return jspb.Message.setProto3StringField(this, 1, value);
16023
+ };
16024
+
16025
+
16026
+
16027
+
16028
+
16029
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16030
+ /**
16031
+ * Creates an object representation of this proto.
16032
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16033
+ * Optional fields that are not set will be set to undefined.
16034
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16035
+ * For the list of reserved names please see:
16036
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16037
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16038
+ * JSPB instance for transitional soy proto support:
16039
+ * http://goto/soy-param-migration
16040
+ * @return {!Object}
16041
+ */
16042
+ proto.game.ScopeResponse.prototype.toObject = function(opt_includeInstance) {
16043
+ return proto.game.ScopeResponse.toObject(opt_includeInstance, this);
16044
+ };
16045
+
16046
+
16047
+ /**
16048
+ * Static version of the {@see toObject} method.
16049
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16050
+ * the JSPB instance for transitional soy proto support:
16051
+ * http://goto/soy-param-migration
16052
+ * @param {!proto.game.ScopeResponse} msg The msg instance to transform.
16053
+ * @return {!Object}
16054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16055
+ */
16056
+ proto.game.ScopeResponse.toObject = function(includeInstance, msg) {
16057
+ var f, obj = {
16058
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
16059
+ };
16060
+
16061
+ if (includeInstance) {
16062
+ obj.$jspbMessageInstance = msg;
16063
+ }
16064
+ return obj;
16065
+ };
16066
+ }
16067
+
16068
+
16069
+ /**
16070
+ * Deserializes binary data (in protobuf wire format).
16071
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16072
+ * @return {!proto.game.ScopeResponse}
16073
+ */
16074
+ proto.game.ScopeResponse.deserializeBinary = function(bytes) {
16075
+ var reader = new jspb.BinaryReader(bytes);
16076
+ var msg = new proto.game.ScopeResponse;
16077
+ return proto.game.ScopeResponse.deserializeBinaryFromReader(msg, reader);
16078
+ };
16079
+
16080
+
16081
+ /**
16082
+ * Deserializes binary data (in protobuf wire format) from the
16083
+ * given reader into the given message object.
16084
+ * @param {!proto.game.ScopeResponse} msg The message object to deserialize into.
16085
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16086
+ * @return {!proto.game.ScopeResponse}
16087
+ */
16088
+ proto.game.ScopeResponse.deserializeBinaryFromReader = function(msg, reader) {
16089
+ while (reader.nextField()) {
16090
+ if (reader.isEndGroup()) {
16091
+ break;
16092
+ }
16093
+ var field = reader.getFieldNumber();
16094
+ switch (field) {
16095
+ case 1:
16096
+ var value = /** @type {string} */ (reader.readString());
16097
+ msg.setData(value);
16098
+ break;
16099
+ default:
16100
+ reader.skipField();
16101
+ break;
16102
+ }
16103
+ }
16104
+ return msg;
16105
+ };
16106
+
16107
+
16108
+ /**
16109
+ * Serializes the message to binary data (in protobuf wire format).
16110
+ * @return {!Uint8Array}
16111
+ */
16112
+ proto.game.ScopeResponse.prototype.serializeBinary = function() {
16113
+ var writer = new jspb.BinaryWriter();
16114
+ proto.game.ScopeResponse.serializeBinaryToWriter(this, writer);
16115
+ return writer.getResultBuffer();
16116
+ };
16117
+
16118
+
16119
+ /**
16120
+ * Serializes the given message to binary data (in protobuf wire
16121
+ * format), writing to the given BinaryWriter.
16122
+ * @param {!proto.game.ScopeResponse} message
16123
+ * @param {!jspb.BinaryWriter} writer
16124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16125
+ */
16126
+ proto.game.ScopeResponse.serializeBinaryToWriter = function(message, writer) {
16127
+ var f = undefined;
16128
+ f = message.getData();
16129
+ if (f.length > 0) {
16130
+ writer.writeString(
16131
+ 1,
16132
+ f
16133
+ );
16134
+ }
16135
+ };
16136
+
16137
+
16138
+ /**
16139
+ * optional string data = 1;
16140
+ * @return {string}
16141
+ */
16142
+ proto.game.ScopeResponse.prototype.getData = function() {
16143
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16144
+ };
16145
+
16146
+
16147
+ /**
16148
+ * @param {string} value
16149
+ * @return {!proto.game.ScopeResponse} returns this
16150
+ */
16151
+ proto.game.ScopeResponse.prototype.setData = function(value) {
16152
+ return jspb.Message.setProto3StringField(this, 1, value);
16153
+ };
16154
+
16155
+
15852
16156
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {