protobuf-platform 1.0.93 → 1.0.95
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 +14 -2
- package/cms/cms_grpc_pb.js +58 -14
- package/cms/cms_pb.js +504 -26
- package/game/game.proto +7 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +304 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -5,17 +5,20 @@ package cms;
|
|
5
5
|
service CMS {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
7
|
//Widgets
|
8
|
-
rpc setMainPageWidget(
|
8
|
+
rpc setMainPageWidget(CommonWidgetRequest) returns (MainPageWidgetItem);
|
9
9
|
rpc getMainPageWidget(GetMainPageWidgetRequest) returns (MainPageWidgetItem);
|
10
10
|
rpc getMainPageWidgetList(GetMainPageWidgetRequest) returns (MainPageWidgetResponse);
|
11
|
+
rpc setBurgerMenuWidget(CommonWidgetRequest) returns (BurgerMenuWidgetItem);
|
12
|
+
rpc getBurgerMenuWidget(GetBurgerMenuWidgetRequest) returns (BurgerMenuWidgetItem);
|
11
13
|
}
|
12
14
|
|
13
15
|
message PingRequest { string ping = 1; }
|
14
16
|
message PongResponse { string pong = 1; }
|
15
17
|
//Widgets
|
16
|
-
message
|
18
|
+
message CommonWidgetRequest {
|
17
19
|
string geo = 1;
|
18
20
|
string content = 2;
|
21
|
+
string type = 3;
|
19
22
|
}
|
20
23
|
message GetMainPageWidgetRequest {
|
21
24
|
optional string geo = 1;
|
@@ -27,3 +30,12 @@ message MainPageWidgetItem {
|
|
27
30
|
message MainPageWidgetResponse {
|
28
31
|
repeated MainPageWidgetItem items = 1;
|
29
32
|
}
|
33
|
+
message GetBurgerMenuWidgetRequest {
|
34
|
+
optional string geo = 1;
|
35
|
+
optional int32 is_mobile = 2;
|
36
|
+
optional string locale = 3;
|
37
|
+
}
|
38
|
+
message BurgerMenuWidgetItem {
|
39
|
+
string geo = 1;
|
40
|
+
string content = 2;
|
41
|
+
}
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -4,6 +4,39 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var cms_pb = require('./cms_pb.js');
|
6
6
|
|
7
|
+
function serialize_cms_BurgerMenuWidgetItem(arg) {
|
8
|
+
if (!(arg instanceof cms_pb.BurgerMenuWidgetItem)) {
|
9
|
+
throw new Error('Expected argument of type cms.BurgerMenuWidgetItem');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_cms_BurgerMenuWidgetItem(buffer_arg) {
|
15
|
+
return cms_pb.BurgerMenuWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_cms_CommonWidgetRequest(arg) {
|
19
|
+
if (!(arg instanceof cms_pb.CommonWidgetRequest)) {
|
20
|
+
throw new Error('Expected argument of type cms.CommonWidgetRequest');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_cms_CommonWidgetRequest(buffer_arg) {
|
26
|
+
return cms_pb.CommonWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
29
|
+
function serialize_cms_GetBurgerMenuWidgetRequest(arg) {
|
30
|
+
if (!(arg instanceof cms_pb.GetBurgerMenuWidgetRequest)) {
|
31
|
+
throw new Error('Expected argument of type cms.GetBurgerMenuWidgetRequest');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_cms_GetBurgerMenuWidgetRequest(buffer_arg) {
|
37
|
+
return cms_pb.GetBurgerMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
7
40
|
function serialize_cms_GetMainPageWidgetRequest(arg) {
|
8
41
|
if (!(arg instanceof cms_pb.GetMainPageWidgetRequest)) {
|
9
42
|
throw new Error('Expected argument of type cms.GetMainPageWidgetRequest');
|
@@ -26,17 +59,6 @@ function deserialize_cms_MainPageWidgetItem(buffer_arg) {
|
|
26
59
|
return cms_pb.MainPageWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
27
60
|
}
|
28
61
|
|
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
62
|
function serialize_cms_MainPageWidgetResponse(arg) {
|
41
63
|
if (!(arg instanceof cms_pb.MainPageWidgetResponse)) {
|
42
64
|
throw new Error('Expected argument of type cms.MainPageWidgetResponse');
|
@@ -88,10 +110,10 @@ setMainPageWidget: {
|
|
88
110
|
path: '/cms.CMS/setMainPageWidget',
|
89
111
|
requestStream: false,
|
90
112
|
responseStream: false,
|
91
|
-
requestType: cms_pb.
|
113
|
+
requestType: cms_pb.CommonWidgetRequest,
|
92
114
|
responseType: cms_pb.MainPageWidgetItem,
|
93
|
-
requestSerialize:
|
94
|
-
requestDeserialize:
|
115
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
116
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
95
117
|
responseSerialize: serialize_cms_MainPageWidgetItem,
|
96
118
|
responseDeserialize: deserialize_cms_MainPageWidgetItem,
|
97
119
|
},
|
@@ -117,6 +139,28 @@ setMainPageWidget: {
|
|
117
139
|
responseSerialize: serialize_cms_MainPageWidgetResponse,
|
118
140
|
responseDeserialize: deserialize_cms_MainPageWidgetResponse,
|
119
141
|
},
|
142
|
+
setBurgerMenuWidget: {
|
143
|
+
path: '/cms.CMS/setBurgerMenuWidget',
|
144
|
+
requestStream: false,
|
145
|
+
responseStream: false,
|
146
|
+
requestType: cms_pb.CommonWidgetRequest,
|
147
|
+
responseType: cms_pb.BurgerMenuWidgetItem,
|
148
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
149
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
150
|
+
responseSerialize: serialize_cms_BurgerMenuWidgetItem,
|
151
|
+
responseDeserialize: deserialize_cms_BurgerMenuWidgetItem,
|
152
|
+
},
|
153
|
+
getBurgerMenuWidget: {
|
154
|
+
path: '/cms.CMS/getBurgerMenuWidget',
|
155
|
+
requestStream: false,
|
156
|
+
responseStream: false,
|
157
|
+
requestType: cms_pb.GetBurgerMenuWidgetRequest,
|
158
|
+
responseType: cms_pb.BurgerMenuWidgetItem,
|
159
|
+
requestSerialize: serialize_cms_GetBurgerMenuWidgetRequest,
|
160
|
+
requestDeserialize: deserialize_cms_GetBurgerMenuWidgetRequest,
|
161
|
+
responseSerialize: serialize_cms_BurgerMenuWidgetItem,
|
162
|
+
responseDeserialize: deserialize_cms_BurgerMenuWidgetItem,
|
163
|
+
},
|
120
164
|
};
|
121
165
|
|
122
166
|
exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
|
package/cms/cms_pb.js
CHANGED
@@ -21,9 +21,11 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
|
25
|
+
goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
|
26
|
+
goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
|
24
27
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
25
28
|
goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
|
26
|
-
goog.exportSymbol('proto.cms.MainPageWidgetRequest', null, global);
|
27
29
|
goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
|
28
30
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
29
31
|
goog.exportSymbol('proto.cms.PongResponse', null, global);
|
@@ -79,16 +81,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
79
81
|
* @extends {jspb.Message}
|
80
82
|
* @constructor
|
81
83
|
*/
|
82
|
-
proto.cms.
|
84
|
+
proto.cms.CommonWidgetRequest = function(opt_data) {
|
83
85
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
84
86
|
};
|
85
|
-
goog.inherits(proto.cms.
|
87
|
+
goog.inherits(proto.cms.CommonWidgetRequest, jspb.Message);
|
86
88
|
if (goog.DEBUG && !COMPILED) {
|
87
89
|
/**
|
88
90
|
* @public
|
89
91
|
* @override
|
90
92
|
*/
|
91
|
-
proto.cms.
|
93
|
+
proto.cms.CommonWidgetRequest.displayName = 'proto.cms.CommonWidgetRequest';
|
92
94
|
}
|
93
95
|
/**
|
94
96
|
* Generated by JsPbCodeGenerator.
|
@@ -153,6 +155,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
155
|
*/
|
154
156
|
proto.cms.MainPageWidgetResponse.displayName = 'proto.cms.MainPageWidgetResponse';
|
155
157
|
}
|
158
|
+
/**
|
159
|
+
* Generated by JsPbCodeGenerator.
|
160
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
161
|
+
* server response, or constructed directly in Javascript. The array is used
|
162
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
163
|
+
* If no data is provided, the constructed object will be empty, but still
|
164
|
+
* valid.
|
165
|
+
* @extends {jspb.Message}
|
166
|
+
* @constructor
|
167
|
+
*/
|
168
|
+
proto.cms.GetBurgerMenuWidgetRequest = function(opt_data) {
|
169
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
170
|
+
};
|
171
|
+
goog.inherits(proto.cms.GetBurgerMenuWidgetRequest, jspb.Message);
|
172
|
+
if (goog.DEBUG && !COMPILED) {
|
173
|
+
/**
|
174
|
+
* @public
|
175
|
+
* @override
|
176
|
+
*/
|
177
|
+
proto.cms.GetBurgerMenuWidgetRequest.displayName = 'proto.cms.GetBurgerMenuWidgetRequest';
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Generated by JsPbCodeGenerator.
|
181
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
182
|
+
* server response, or constructed directly in Javascript. The array is used
|
183
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
184
|
+
* If no data is provided, the constructed object will be empty, but still
|
185
|
+
* valid.
|
186
|
+
* @extends {jspb.Message}
|
187
|
+
* @constructor
|
188
|
+
*/
|
189
|
+
proto.cms.BurgerMenuWidgetItem = function(opt_data) {
|
190
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
191
|
+
};
|
192
|
+
goog.inherits(proto.cms.BurgerMenuWidgetItem, jspb.Message);
|
193
|
+
if (goog.DEBUG && !COMPILED) {
|
194
|
+
/**
|
195
|
+
* @public
|
196
|
+
* @override
|
197
|
+
*/
|
198
|
+
proto.cms.BurgerMenuWidgetItem.displayName = 'proto.cms.BurgerMenuWidgetItem';
|
199
|
+
}
|
156
200
|
|
157
201
|
|
158
202
|
|
@@ -429,8 +473,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
429
473
|
* http://goto/soy-param-migration
|
430
474
|
* @return {!Object}
|
431
475
|
*/
|
432
|
-
proto.cms.
|
433
|
-
return proto.cms.
|
476
|
+
proto.cms.CommonWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
477
|
+
return proto.cms.CommonWidgetRequest.toObject(opt_includeInstance, this);
|
434
478
|
};
|
435
479
|
|
436
480
|
|
@@ -439,14 +483,15 @@ proto.cms.MainPageWidgetRequest.prototype.toObject = function(opt_includeInstanc
|
|
439
483
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
440
484
|
* the JSPB instance for transitional soy proto support:
|
441
485
|
* http://goto/soy-param-migration
|
442
|
-
* @param {!proto.cms.
|
486
|
+
* @param {!proto.cms.CommonWidgetRequest} msg The msg instance to transform.
|
443
487
|
* @return {!Object}
|
444
488
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
445
489
|
*/
|
446
|
-
proto.cms.
|
490
|
+
proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
|
447
491
|
var f, obj = {
|
448
492
|
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
449
|
-
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
493
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
494
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, "")
|
450
495
|
};
|
451
496
|
|
452
497
|
if (includeInstance) {
|
@@ -460,23 +505,23 @@ proto.cms.MainPageWidgetRequest.toObject = function(includeInstance, msg) {
|
|
460
505
|
/**
|
461
506
|
* Deserializes binary data (in protobuf wire format).
|
462
507
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
463
|
-
* @return {!proto.cms.
|
508
|
+
* @return {!proto.cms.CommonWidgetRequest}
|
464
509
|
*/
|
465
|
-
proto.cms.
|
510
|
+
proto.cms.CommonWidgetRequest.deserializeBinary = function(bytes) {
|
466
511
|
var reader = new jspb.BinaryReader(bytes);
|
467
|
-
var msg = new proto.cms.
|
468
|
-
return proto.cms.
|
512
|
+
var msg = new proto.cms.CommonWidgetRequest;
|
513
|
+
return proto.cms.CommonWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
469
514
|
};
|
470
515
|
|
471
516
|
|
472
517
|
/**
|
473
518
|
* Deserializes binary data (in protobuf wire format) from the
|
474
519
|
* given reader into the given message object.
|
475
|
-
* @param {!proto.cms.
|
520
|
+
* @param {!proto.cms.CommonWidgetRequest} msg The message object to deserialize into.
|
476
521
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
477
|
-
* @return {!proto.cms.
|
522
|
+
* @return {!proto.cms.CommonWidgetRequest}
|
478
523
|
*/
|
479
|
-
proto.cms.
|
524
|
+
proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
480
525
|
while (reader.nextField()) {
|
481
526
|
if (reader.isEndGroup()) {
|
482
527
|
break;
|
@@ -491,6 +536,10 @@ proto.cms.MainPageWidgetRequest.deserializeBinaryFromReader = function(msg, read
|
|
491
536
|
var value = /** @type {string} */ (reader.readString());
|
492
537
|
msg.setContent(value);
|
493
538
|
break;
|
539
|
+
case 3:
|
540
|
+
var value = /** @type {string} */ (reader.readString());
|
541
|
+
msg.setType(value);
|
542
|
+
break;
|
494
543
|
default:
|
495
544
|
reader.skipField();
|
496
545
|
break;
|
@@ -504,9 +553,9 @@ proto.cms.MainPageWidgetRequest.deserializeBinaryFromReader = function(msg, read
|
|
504
553
|
* Serializes the message to binary data (in protobuf wire format).
|
505
554
|
* @return {!Uint8Array}
|
506
555
|
*/
|
507
|
-
proto.cms.
|
556
|
+
proto.cms.CommonWidgetRequest.prototype.serializeBinary = function() {
|
508
557
|
var writer = new jspb.BinaryWriter();
|
509
|
-
proto.cms.
|
558
|
+
proto.cms.CommonWidgetRequest.serializeBinaryToWriter(this, writer);
|
510
559
|
return writer.getResultBuffer();
|
511
560
|
};
|
512
561
|
|
@@ -514,11 +563,11 @@ proto.cms.MainPageWidgetRequest.prototype.serializeBinary = function() {
|
|
514
563
|
/**
|
515
564
|
* Serializes the given message to binary data (in protobuf wire
|
516
565
|
* format), writing to the given BinaryWriter.
|
517
|
-
* @param {!proto.cms.
|
566
|
+
* @param {!proto.cms.CommonWidgetRequest} message
|
518
567
|
* @param {!jspb.BinaryWriter} writer
|
519
568
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
520
569
|
*/
|
521
|
-
proto.cms.
|
570
|
+
proto.cms.CommonWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
522
571
|
var f = undefined;
|
523
572
|
f = message.getGeo();
|
524
573
|
if (f.length > 0) {
|
@@ -534,6 +583,13 @@ proto.cms.MainPageWidgetRequest.serializeBinaryToWriter = function(message, writ
|
|
534
583
|
f
|
535
584
|
);
|
536
585
|
}
|
586
|
+
f = message.getType();
|
587
|
+
if (f.length > 0) {
|
588
|
+
writer.writeString(
|
589
|
+
3,
|
590
|
+
f
|
591
|
+
);
|
592
|
+
}
|
537
593
|
};
|
538
594
|
|
539
595
|
|
@@ -541,16 +597,16 @@ proto.cms.MainPageWidgetRequest.serializeBinaryToWriter = function(message, writ
|
|
541
597
|
* optional string geo = 1;
|
542
598
|
* @return {string}
|
543
599
|
*/
|
544
|
-
proto.cms.
|
600
|
+
proto.cms.CommonWidgetRequest.prototype.getGeo = function() {
|
545
601
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
546
602
|
};
|
547
603
|
|
548
604
|
|
549
605
|
/**
|
550
606
|
* @param {string} value
|
551
|
-
* @return {!proto.cms.
|
607
|
+
* @return {!proto.cms.CommonWidgetRequest} returns this
|
552
608
|
*/
|
553
|
-
proto.cms.
|
609
|
+
proto.cms.CommonWidgetRequest.prototype.setGeo = function(value) {
|
554
610
|
return jspb.Message.setProto3StringField(this, 1, value);
|
555
611
|
};
|
556
612
|
|
@@ -559,20 +615,38 @@ proto.cms.MainPageWidgetRequest.prototype.setGeo = function(value) {
|
|
559
615
|
* optional string content = 2;
|
560
616
|
* @return {string}
|
561
617
|
*/
|
562
|
-
proto.cms.
|
618
|
+
proto.cms.CommonWidgetRequest.prototype.getContent = function() {
|
563
619
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
564
620
|
};
|
565
621
|
|
566
622
|
|
567
623
|
/**
|
568
624
|
* @param {string} value
|
569
|
-
* @return {!proto.cms.
|
625
|
+
* @return {!proto.cms.CommonWidgetRequest} returns this
|
570
626
|
*/
|
571
|
-
proto.cms.
|
627
|
+
proto.cms.CommonWidgetRequest.prototype.setContent = function(value) {
|
572
628
|
return jspb.Message.setProto3StringField(this, 2, value);
|
573
629
|
};
|
574
630
|
|
575
631
|
|
632
|
+
/**
|
633
|
+
* optional string type = 3;
|
634
|
+
* @return {string}
|
635
|
+
*/
|
636
|
+
proto.cms.CommonWidgetRequest.prototype.getType = function() {
|
637
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
638
|
+
};
|
639
|
+
|
640
|
+
|
641
|
+
/**
|
642
|
+
* @param {string} value
|
643
|
+
* @return {!proto.cms.CommonWidgetRequest} returns this
|
644
|
+
*/
|
645
|
+
proto.cms.CommonWidgetRequest.prototype.setType = function(value) {
|
646
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
647
|
+
};
|
648
|
+
|
649
|
+
|
576
650
|
|
577
651
|
|
578
652
|
|
@@ -1041,4 +1115,408 @@ proto.cms.MainPageWidgetResponse.prototype.clearItemsList = function() {
|
|
1041
1115
|
};
|
1042
1116
|
|
1043
1117
|
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1122
|
+
/**
|
1123
|
+
* Creates an object representation of this proto.
|
1124
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1125
|
+
* Optional fields that are not set will be set to undefined.
|
1126
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1127
|
+
* For the list of reserved names please see:
|
1128
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1129
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1130
|
+
* JSPB instance for transitional soy proto support:
|
1131
|
+
* http://goto/soy-param-migration
|
1132
|
+
* @return {!Object}
|
1133
|
+
*/
|
1134
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
1135
|
+
return proto.cms.GetBurgerMenuWidgetRequest.toObject(opt_includeInstance, this);
|
1136
|
+
};
|
1137
|
+
|
1138
|
+
|
1139
|
+
/**
|
1140
|
+
* Static version of the {@see toObject} method.
|
1141
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1142
|
+
* the JSPB instance for transitional soy proto support:
|
1143
|
+
* http://goto/soy-param-migration
|
1144
|
+
* @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The msg instance to transform.
|
1145
|
+
* @return {!Object}
|
1146
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1147
|
+
*/
|
1148
|
+
proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
|
1149
|
+
var f, obj = {
|
1150
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1151
|
+
isMobile: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1152
|
+
locale: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1153
|
+
};
|
1154
|
+
|
1155
|
+
if (includeInstance) {
|
1156
|
+
obj.$jspbMessageInstance = msg;
|
1157
|
+
}
|
1158
|
+
return obj;
|
1159
|
+
};
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
|
1163
|
+
/**
|
1164
|
+
* Deserializes binary data (in protobuf wire format).
|
1165
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1166
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest}
|
1167
|
+
*/
|
1168
|
+
proto.cms.GetBurgerMenuWidgetRequest.deserializeBinary = function(bytes) {
|
1169
|
+
var reader = new jspb.BinaryReader(bytes);
|
1170
|
+
var msg = new proto.cms.GetBurgerMenuWidgetRequest;
|
1171
|
+
return proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
1172
|
+
};
|
1173
|
+
|
1174
|
+
|
1175
|
+
/**
|
1176
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1177
|
+
* given reader into the given message object.
|
1178
|
+
* @param {!proto.cms.GetBurgerMenuWidgetRequest} msg The message object to deserialize into.
|
1179
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1180
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest}
|
1181
|
+
*/
|
1182
|
+
proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1183
|
+
while (reader.nextField()) {
|
1184
|
+
if (reader.isEndGroup()) {
|
1185
|
+
break;
|
1186
|
+
}
|
1187
|
+
var field = reader.getFieldNumber();
|
1188
|
+
switch (field) {
|
1189
|
+
case 1:
|
1190
|
+
var value = /** @type {string} */ (reader.readString());
|
1191
|
+
msg.setGeo(value);
|
1192
|
+
break;
|
1193
|
+
case 2:
|
1194
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1195
|
+
msg.setIsMobile(value);
|
1196
|
+
break;
|
1197
|
+
case 3:
|
1198
|
+
var value = /** @type {string} */ (reader.readString());
|
1199
|
+
msg.setLocale(value);
|
1200
|
+
break;
|
1201
|
+
default:
|
1202
|
+
reader.skipField();
|
1203
|
+
break;
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
return msg;
|
1207
|
+
};
|
1208
|
+
|
1209
|
+
|
1210
|
+
/**
|
1211
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1212
|
+
* @return {!Uint8Array}
|
1213
|
+
*/
|
1214
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.serializeBinary = function() {
|
1215
|
+
var writer = new jspb.BinaryWriter();
|
1216
|
+
proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter(this, writer);
|
1217
|
+
return writer.getResultBuffer();
|
1218
|
+
};
|
1219
|
+
|
1220
|
+
|
1221
|
+
/**
|
1222
|
+
* Serializes the given message to binary data (in protobuf wire
|
1223
|
+
* format), writing to the given BinaryWriter.
|
1224
|
+
* @param {!proto.cms.GetBurgerMenuWidgetRequest} message
|
1225
|
+
* @param {!jspb.BinaryWriter} writer
|
1226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1227
|
+
*/
|
1228
|
+
proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
1229
|
+
var f = undefined;
|
1230
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
1231
|
+
if (f != null) {
|
1232
|
+
writer.writeString(
|
1233
|
+
1,
|
1234
|
+
f
|
1235
|
+
);
|
1236
|
+
}
|
1237
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1238
|
+
if (f != null) {
|
1239
|
+
writer.writeInt32(
|
1240
|
+
2,
|
1241
|
+
f
|
1242
|
+
);
|
1243
|
+
}
|
1244
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1245
|
+
if (f != null) {
|
1246
|
+
writer.writeString(
|
1247
|
+
3,
|
1248
|
+
f
|
1249
|
+
);
|
1250
|
+
}
|
1251
|
+
};
|
1252
|
+
|
1253
|
+
|
1254
|
+
/**
|
1255
|
+
* optional string geo = 1;
|
1256
|
+
* @return {string}
|
1257
|
+
*/
|
1258
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.getGeo = function() {
|
1259
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1260
|
+
};
|
1261
|
+
|
1262
|
+
|
1263
|
+
/**
|
1264
|
+
* @param {string} value
|
1265
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1266
|
+
*/
|
1267
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.setGeo = function(value) {
|
1268
|
+
return jspb.Message.setField(this, 1, value);
|
1269
|
+
};
|
1270
|
+
|
1271
|
+
|
1272
|
+
/**
|
1273
|
+
* Clears the field making it undefined.
|
1274
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1275
|
+
*/
|
1276
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.clearGeo = function() {
|
1277
|
+
return jspb.Message.setField(this, 1, undefined);
|
1278
|
+
};
|
1279
|
+
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* Returns whether this field is set.
|
1283
|
+
* @return {boolean}
|
1284
|
+
*/
|
1285
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.hasGeo = function() {
|
1286
|
+
return jspb.Message.getField(this, 1) != null;
|
1287
|
+
};
|
1288
|
+
|
1289
|
+
|
1290
|
+
/**
|
1291
|
+
* optional int32 is_mobile = 2;
|
1292
|
+
* @return {number}
|
1293
|
+
*/
|
1294
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.getIsMobile = function() {
|
1295
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1296
|
+
};
|
1297
|
+
|
1298
|
+
|
1299
|
+
/**
|
1300
|
+
* @param {number} value
|
1301
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1302
|
+
*/
|
1303
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.setIsMobile = function(value) {
|
1304
|
+
return jspb.Message.setField(this, 2, value);
|
1305
|
+
};
|
1306
|
+
|
1307
|
+
|
1308
|
+
/**
|
1309
|
+
* Clears the field making it undefined.
|
1310
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1311
|
+
*/
|
1312
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.clearIsMobile = function() {
|
1313
|
+
return jspb.Message.setField(this, 2, undefined);
|
1314
|
+
};
|
1315
|
+
|
1316
|
+
|
1317
|
+
/**
|
1318
|
+
* Returns whether this field is set.
|
1319
|
+
* @return {boolean}
|
1320
|
+
*/
|
1321
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.hasIsMobile = function() {
|
1322
|
+
return jspb.Message.getField(this, 2) != null;
|
1323
|
+
};
|
1324
|
+
|
1325
|
+
|
1326
|
+
/**
|
1327
|
+
* optional string locale = 3;
|
1328
|
+
* @return {string}
|
1329
|
+
*/
|
1330
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.getLocale = function() {
|
1331
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1332
|
+
};
|
1333
|
+
|
1334
|
+
|
1335
|
+
/**
|
1336
|
+
* @param {string} value
|
1337
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1338
|
+
*/
|
1339
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.setLocale = function(value) {
|
1340
|
+
return jspb.Message.setField(this, 3, value);
|
1341
|
+
};
|
1342
|
+
|
1343
|
+
|
1344
|
+
/**
|
1345
|
+
* Clears the field making it undefined.
|
1346
|
+
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1347
|
+
*/
|
1348
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.clearLocale = function() {
|
1349
|
+
return jspb.Message.setField(this, 3, undefined);
|
1350
|
+
};
|
1351
|
+
|
1352
|
+
|
1353
|
+
/**
|
1354
|
+
* Returns whether this field is set.
|
1355
|
+
* @return {boolean}
|
1356
|
+
*/
|
1357
|
+
proto.cms.GetBurgerMenuWidgetRequest.prototype.hasLocale = function() {
|
1358
|
+
return jspb.Message.getField(this, 3) != null;
|
1359
|
+
};
|
1360
|
+
|
1361
|
+
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1366
|
+
/**
|
1367
|
+
* Creates an object representation of this proto.
|
1368
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1369
|
+
* Optional fields that are not set will be set to undefined.
|
1370
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1371
|
+
* For the list of reserved names please see:
|
1372
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1373
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1374
|
+
* JSPB instance for transitional soy proto support:
|
1375
|
+
* http://goto/soy-param-migration
|
1376
|
+
* @return {!Object}
|
1377
|
+
*/
|
1378
|
+
proto.cms.BurgerMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
1379
|
+
return proto.cms.BurgerMenuWidgetItem.toObject(opt_includeInstance, this);
|
1380
|
+
};
|
1381
|
+
|
1382
|
+
|
1383
|
+
/**
|
1384
|
+
* Static version of the {@see toObject} method.
|
1385
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1386
|
+
* the JSPB instance for transitional soy proto support:
|
1387
|
+
* http://goto/soy-param-migration
|
1388
|
+
* @param {!proto.cms.BurgerMenuWidgetItem} msg The msg instance to transform.
|
1389
|
+
* @return {!Object}
|
1390
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1391
|
+
*/
|
1392
|
+
proto.cms.BurgerMenuWidgetItem.toObject = function(includeInstance, msg) {
|
1393
|
+
var f, obj = {
|
1394
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1395
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1396
|
+
};
|
1397
|
+
|
1398
|
+
if (includeInstance) {
|
1399
|
+
obj.$jspbMessageInstance = msg;
|
1400
|
+
}
|
1401
|
+
return obj;
|
1402
|
+
};
|
1403
|
+
}
|
1404
|
+
|
1405
|
+
|
1406
|
+
/**
|
1407
|
+
* Deserializes binary data (in protobuf wire format).
|
1408
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1409
|
+
* @return {!proto.cms.BurgerMenuWidgetItem}
|
1410
|
+
*/
|
1411
|
+
proto.cms.BurgerMenuWidgetItem.deserializeBinary = function(bytes) {
|
1412
|
+
var reader = new jspb.BinaryReader(bytes);
|
1413
|
+
var msg = new proto.cms.BurgerMenuWidgetItem;
|
1414
|
+
return proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
|
1418
|
+
/**
|
1419
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1420
|
+
* given reader into the given message object.
|
1421
|
+
* @param {!proto.cms.BurgerMenuWidgetItem} msg The message object to deserialize into.
|
1422
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1423
|
+
* @return {!proto.cms.BurgerMenuWidgetItem}
|
1424
|
+
*/
|
1425
|
+
proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
1426
|
+
while (reader.nextField()) {
|
1427
|
+
if (reader.isEndGroup()) {
|
1428
|
+
break;
|
1429
|
+
}
|
1430
|
+
var field = reader.getFieldNumber();
|
1431
|
+
switch (field) {
|
1432
|
+
case 1:
|
1433
|
+
var value = /** @type {string} */ (reader.readString());
|
1434
|
+
msg.setGeo(value);
|
1435
|
+
break;
|
1436
|
+
case 2:
|
1437
|
+
var value = /** @type {string} */ (reader.readString());
|
1438
|
+
msg.setContent(value);
|
1439
|
+
break;
|
1440
|
+
default:
|
1441
|
+
reader.skipField();
|
1442
|
+
break;
|
1443
|
+
}
|
1444
|
+
}
|
1445
|
+
return msg;
|
1446
|
+
};
|
1447
|
+
|
1448
|
+
|
1449
|
+
/**
|
1450
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1451
|
+
* @return {!Uint8Array}
|
1452
|
+
*/
|
1453
|
+
proto.cms.BurgerMenuWidgetItem.prototype.serializeBinary = function() {
|
1454
|
+
var writer = new jspb.BinaryWriter();
|
1455
|
+
proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter(this, writer);
|
1456
|
+
return writer.getResultBuffer();
|
1457
|
+
};
|
1458
|
+
|
1459
|
+
|
1460
|
+
/**
|
1461
|
+
* Serializes the given message to binary data (in protobuf wire
|
1462
|
+
* format), writing to the given BinaryWriter.
|
1463
|
+
* @param {!proto.cms.BurgerMenuWidgetItem} message
|
1464
|
+
* @param {!jspb.BinaryWriter} writer
|
1465
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1466
|
+
*/
|
1467
|
+
proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
1468
|
+
var f = undefined;
|
1469
|
+
f = message.getGeo();
|
1470
|
+
if (f.length > 0) {
|
1471
|
+
writer.writeString(
|
1472
|
+
1,
|
1473
|
+
f
|
1474
|
+
);
|
1475
|
+
}
|
1476
|
+
f = message.getContent();
|
1477
|
+
if (f.length > 0) {
|
1478
|
+
writer.writeString(
|
1479
|
+
2,
|
1480
|
+
f
|
1481
|
+
);
|
1482
|
+
}
|
1483
|
+
};
|
1484
|
+
|
1485
|
+
|
1486
|
+
/**
|
1487
|
+
* optional string geo = 1;
|
1488
|
+
* @return {string}
|
1489
|
+
*/
|
1490
|
+
proto.cms.BurgerMenuWidgetItem.prototype.getGeo = function() {
|
1491
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1492
|
+
};
|
1493
|
+
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* @param {string} value
|
1497
|
+
* @return {!proto.cms.BurgerMenuWidgetItem} returns this
|
1498
|
+
*/
|
1499
|
+
proto.cms.BurgerMenuWidgetItem.prototype.setGeo = function(value) {
|
1500
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
1501
|
+
};
|
1502
|
+
|
1503
|
+
|
1504
|
+
/**
|
1505
|
+
* optional string content = 2;
|
1506
|
+
* @return {string}
|
1507
|
+
*/
|
1508
|
+
proto.cms.BurgerMenuWidgetItem.prototype.getContent = function() {
|
1509
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1510
|
+
};
|
1511
|
+
|
1512
|
+
|
1513
|
+
/**
|
1514
|
+
* @param {string} value
|
1515
|
+
* @return {!proto.cms.BurgerMenuWidgetItem} returns this
|
1516
|
+
*/
|
1517
|
+
proto.cms.BurgerMenuWidgetItem.prototype.setContent = function(value) {
|
1518
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
1519
|
+
};
|
1520
|
+
|
1521
|
+
|
1044
1522
|
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
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -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);
|