protobuf-platform 1.2.126 → 1.2.128
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 +44 -0
- package/cms/cms_pb.js +526 -12
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -18,6 +18,8 @@ service CMS {
|
|
|
18
18
|
rpc setFooterWidget(CommonWidgetRequest) returns (FooterWidgetItem);
|
|
19
19
|
rpc getFooterWidget(GetFooterWidgetRequest) returns (FooterWidgetItem);
|
|
20
20
|
rpc getFooterBlocks(GetFooterWidgetRequest) returns (FooterBlocks);
|
|
21
|
+
rpc setGameBarWidget(CommonWidgetRequest) returns (GameBarWidgetItem);
|
|
22
|
+
rpc getGameBarWidget(GetGameBarWidgetRequest) returns (GameBarWidgetItem);
|
|
21
23
|
//Banners
|
|
22
24
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
23
25
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -178,6 +180,15 @@ message FooterBlockItem {
|
|
|
178
180
|
message FooterBlocks {
|
|
179
181
|
repeated FooterBlockItem items = 1;
|
|
180
182
|
}
|
|
183
|
+
message GetGameBarWidgetRequest {
|
|
184
|
+
optional string geo = 1;
|
|
185
|
+
optional bool is_mobile = 2;
|
|
186
|
+
optional bool admin_side = 3;
|
|
187
|
+
}
|
|
188
|
+
message GameBarWidgetItem {
|
|
189
|
+
string geo = 1;
|
|
190
|
+
string content = 2;
|
|
191
|
+
}
|
|
181
192
|
//Banners CRUD
|
|
182
193
|
message BannerRequest {
|
|
183
194
|
oneof request {
|
|
@@ -358,8 +369,9 @@ message PromoResponse {
|
|
|
358
369
|
PromoItem data = 1;
|
|
359
370
|
}
|
|
360
371
|
message GetPromoRequest {
|
|
361
|
-
int32 id = 1;
|
|
362
|
-
optional bool admin_side =
|
|
372
|
+
optional int32 id = 1;
|
|
373
|
+
optional bool admin_side = 2;
|
|
374
|
+
optional string slug = 3;
|
|
363
375
|
}
|
|
364
376
|
message PromoStatusResponse {
|
|
365
377
|
string status = 1;
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -389,6 +389,17 @@ function deserialize_cms_FooterWidgetItem(buffer_arg) {
|
|
|
389
389
|
return cms_pb.FooterWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
+
function serialize_cms_GameBarWidgetItem(arg) {
|
|
393
|
+
if (!(arg instanceof cms_pb.GameBarWidgetItem)) {
|
|
394
|
+
throw new Error('Expected argument of type cms.GameBarWidgetItem');
|
|
395
|
+
}
|
|
396
|
+
return Buffer.from(arg.serializeBinary());
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function deserialize_cms_GameBarWidgetItem(buffer_arg) {
|
|
400
|
+
return cms_pb.GameBarWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
401
|
+
}
|
|
402
|
+
|
|
392
403
|
function serialize_cms_GameWidgetRequest(arg) {
|
|
393
404
|
if (!(arg instanceof cms_pb.GameWidgetRequest)) {
|
|
394
405
|
throw new Error('Expected argument of type cms.GameWidgetRequest');
|
|
@@ -554,6 +565,17 @@ function deserialize_cms_GetFooterWidgetRequest(buffer_arg) {
|
|
|
554
565
|
return cms_pb.GetFooterWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
555
566
|
}
|
|
556
567
|
|
|
568
|
+
function serialize_cms_GetGameBarWidgetRequest(arg) {
|
|
569
|
+
if (!(arg instanceof cms_pb.GetGameBarWidgetRequest)) {
|
|
570
|
+
throw new Error('Expected argument of type cms.GetGameBarWidgetRequest');
|
|
571
|
+
}
|
|
572
|
+
return Buffer.from(arg.serializeBinary());
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
function deserialize_cms_GetGameBarWidgetRequest(buffer_arg) {
|
|
576
|
+
return cms_pb.GetGameBarWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
577
|
+
}
|
|
578
|
+
|
|
557
579
|
function serialize_cms_GetGameWidgetRequest(arg) {
|
|
558
580
|
if (!(arg instanceof cms_pb.GetGameWidgetRequest)) {
|
|
559
581
|
throw new Error('Expected argument of type cms.GetGameWidgetRequest');
|
|
@@ -1030,6 +1052,28 @@ setMainPageWidget: {
|
|
|
1030
1052
|
responseSerialize: serialize_cms_FooterBlocks,
|
|
1031
1053
|
responseDeserialize: deserialize_cms_FooterBlocks,
|
|
1032
1054
|
},
|
|
1055
|
+
setGameBarWidget: {
|
|
1056
|
+
path: '/cms.CMS/setGameBarWidget',
|
|
1057
|
+
requestStream: false,
|
|
1058
|
+
responseStream: false,
|
|
1059
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
1060
|
+
responseType: cms_pb.GameBarWidgetItem,
|
|
1061
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
1062
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
1063
|
+
responseSerialize: serialize_cms_GameBarWidgetItem,
|
|
1064
|
+
responseDeserialize: deserialize_cms_GameBarWidgetItem,
|
|
1065
|
+
},
|
|
1066
|
+
getGameBarWidget: {
|
|
1067
|
+
path: '/cms.CMS/getGameBarWidget',
|
|
1068
|
+
requestStream: false,
|
|
1069
|
+
responseStream: false,
|
|
1070
|
+
requestType: cms_pb.GetGameBarWidgetRequest,
|
|
1071
|
+
responseType: cms_pb.GameBarWidgetItem,
|
|
1072
|
+
requestSerialize: serialize_cms_GetGameBarWidgetRequest,
|
|
1073
|
+
requestDeserialize: deserialize_cms_GetGameBarWidgetRequest,
|
|
1074
|
+
responseSerialize: serialize_cms_GameBarWidgetItem,
|
|
1075
|
+
responseDeserialize: deserialize_cms_GameBarWidgetItem,
|
|
1076
|
+
},
|
|
1033
1077
|
// Banners
|
|
1034
1078
|
createSingleBanner: {
|
|
1035
1079
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -82,6 +82,7 @@ goog.exportSymbol('proto.cms.FooterPaymentsItemsResponse', null, global);
|
|
|
82
82
|
goog.exportSymbol('proto.cms.FooterPaymentsResponse', null, global);
|
|
83
83
|
goog.exportSymbol('proto.cms.FooterPaymentsStatusResponse', null, global);
|
|
84
84
|
goog.exportSymbol('proto.cms.FooterWidgetItem', null, global);
|
|
85
|
+
goog.exportSymbol('proto.cms.GameBarWidgetItem', null, global);
|
|
85
86
|
goog.exportSymbol('proto.cms.GameWidgetItem', null, global);
|
|
86
87
|
goog.exportSymbol('proto.cms.GameWidgetItemRequest', null, global);
|
|
87
88
|
goog.exportSymbol('proto.cms.GameWidgetRequest', null, global);
|
|
@@ -100,6 +101,7 @@ goog.exportSymbol('proto.cms.GetFooterMainTextTranslationRequest', null, global)
|
|
|
100
101
|
goog.exportSymbol('proto.cms.GetFooterPartnersRequest', null, global);
|
|
101
102
|
goog.exportSymbol('proto.cms.GetFooterPaymentsRequest', null, global);
|
|
102
103
|
goog.exportSymbol('proto.cms.GetFooterWidgetRequest', null, global);
|
|
104
|
+
goog.exportSymbol('proto.cms.GetGameBarWidgetRequest', null, global);
|
|
103
105
|
goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
|
|
104
106
|
goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
|
|
105
107
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
|
@@ -556,6 +558,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
556
558
|
*/
|
|
557
559
|
proto.cms.FooterBlocks.displayName = 'proto.cms.FooterBlocks';
|
|
558
560
|
}
|
|
561
|
+
/**
|
|
562
|
+
* Generated by JsPbCodeGenerator.
|
|
563
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
564
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
565
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
566
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
567
|
+
* valid.
|
|
568
|
+
* @extends {jspb.Message}
|
|
569
|
+
* @constructor
|
|
570
|
+
*/
|
|
571
|
+
proto.cms.GetGameBarWidgetRequest = function(opt_data) {
|
|
572
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
573
|
+
};
|
|
574
|
+
goog.inherits(proto.cms.GetGameBarWidgetRequest, jspb.Message);
|
|
575
|
+
if (goog.DEBUG && !COMPILED) {
|
|
576
|
+
/**
|
|
577
|
+
* @public
|
|
578
|
+
* @override
|
|
579
|
+
*/
|
|
580
|
+
proto.cms.GetGameBarWidgetRequest.displayName = 'proto.cms.GetGameBarWidgetRequest';
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Generated by JsPbCodeGenerator.
|
|
584
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
585
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
586
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
587
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
588
|
+
* valid.
|
|
589
|
+
* @extends {jspb.Message}
|
|
590
|
+
* @constructor
|
|
591
|
+
*/
|
|
592
|
+
proto.cms.GameBarWidgetItem = function(opt_data) {
|
|
593
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
594
|
+
};
|
|
595
|
+
goog.inherits(proto.cms.GameBarWidgetItem, jspb.Message);
|
|
596
|
+
if (goog.DEBUG && !COMPILED) {
|
|
597
|
+
/**
|
|
598
|
+
* @public
|
|
599
|
+
* @override
|
|
600
|
+
*/
|
|
601
|
+
proto.cms.GameBarWidgetItem.displayName = 'proto.cms.GameBarWidgetItem';
|
|
602
|
+
}
|
|
559
603
|
/**
|
|
560
604
|
* Generated by JsPbCodeGenerator.
|
|
561
605
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6526,6 +6570,410 @@ proto.cms.FooterBlocks.prototype.clearItemsList = function() {
|
|
|
6526
6570
|
|
|
6527
6571
|
|
|
6528
6572
|
|
|
6573
|
+
|
|
6574
|
+
|
|
6575
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6576
|
+
/**
|
|
6577
|
+
* Creates an object representation of this proto.
|
|
6578
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6579
|
+
* Optional fields that are not set will be set to undefined.
|
|
6580
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6581
|
+
* For the list of reserved names please see:
|
|
6582
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6583
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6584
|
+
* JSPB instance for transitional soy proto support:
|
|
6585
|
+
* http://goto/soy-param-migration
|
|
6586
|
+
* @return {!Object}
|
|
6587
|
+
*/
|
|
6588
|
+
proto.cms.GetGameBarWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6589
|
+
return proto.cms.GetGameBarWidgetRequest.toObject(opt_includeInstance, this);
|
|
6590
|
+
};
|
|
6591
|
+
|
|
6592
|
+
|
|
6593
|
+
/**
|
|
6594
|
+
* Static version of the {@see toObject} method.
|
|
6595
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6596
|
+
* the JSPB instance for transitional soy proto support:
|
|
6597
|
+
* http://goto/soy-param-migration
|
|
6598
|
+
* @param {!proto.cms.GetGameBarWidgetRequest} msg The msg instance to transform.
|
|
6599
|
+
* @return {!Object}
|
|
6600
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6601
|
+
*/
|
|
6602
|
+
proto.cms.GetGameBarWidgetRequest.toObject = function(includeInstance, msg) {
|
|
6603
|
+
var f, obj = {
|
|
6604
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6605
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6606
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
6607
|
+
};
|
|
6608
|
+
|
|
6609
|
+
if (includeInstance) {
|
|
6610
|
+
obj.$jspbMessageInstance = msg;
|
|
6611
|
+
}
|
|
6612
|
+
return obj;
|
|
6613
|
+
};
|
|
6614
|
+
}
|
|
6615
|
+
|
|
6616
|
+
|
|
6617
|
+
/**
|
|
6618
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6619
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6620
|
+
* @return {!proto.cms.GetGameBarWidgetRequest}
|
|
6621
|
+
*/
|
|
6622
|
+
proto.cms.GetGameBarWidgetRequest.deserializeBinary = function(bytes) {
|
|
6623
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6624
|
+
var msg = new proto.cms.GetGameBarWidgetRequest;
|
|
6625
|
+
return proto.cms.GetGameBarWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
6626
|
+
};
|
|
6627
|
+
|
|
6628
|
+
|
|
6629
|
+
/**
|
|
6630
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6631
|
+
* given reader into the given message object.
|
|
6632
|
+
* @param {!proto.cms.GetGameBarWidgetRequest} msg The message object to deserialize into.
|
|
6633
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6634
|
+
* @return {!proto.cms.GetGameBarWidgetRequest}
|
|
6635
|
+
*/
|
|
6636
|
+
proto.cms.GetGameBarWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6637
|
+
while (reader.nextField()) {
|
|
6638
|
+
if (reader.isEndGroup()) {
|
|
6639
|
+
break;
|
|
6640
|
+
}
|
|
6641
|
+
var field = reader.getFieldNumber();
|
|
6642
|
+
switch (field) {
|
|
6643
|
+
case 1:
|
|
6644
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6645
|
+
msg.setGeo(value);
|
|
6646
|
+
break;
|
|
6647
|
+
case 2:
|
|
6648
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6649
|
+
msg.setIsMobile(value);
|
|
6650
|
+
break;
|
|
6651
|
+
case 3:
|
|
6652
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6653
|
+
msg.setAdminSide(value);
|
|
6654
|
+
break;
|
|
6655
|
+
default:
|
|
6656
|
+
reader.skipField();
|
|
6657
|
+
break;
|
|
6658
|
+
}
|
|
6659
|
+
}
|
|
6660
|
+
return msg;
|
|
6661
|
+
};
|
|
6662
|
+
|
|
6663
|
+
|
|
6664
|
+
/**
|
|
6665
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6666
|
+
* @return {!Uint8Array}
|
|
6667
|
+
*/
|
|
6668
|
+
proto.cms.GetGameBarWidgetRequest.prototype.serializeBinary = function() {
|
|
6669
|
+
var writer = new jspb.BinaryWriter();
|
|
6670
|
+
proto.cms.GetGameBarWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
6671
|
+
return writer.getResultBuffer();
|
|
6672
|
+
};
|
|
6673
|
+
|
|
6674
|
+
|
|
6675
|
+
/**
|
|
6676
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6677
|
+
* format), writing to the given BinaryWriter.
|
|
6678
|
+
* @param {!proto.cms.GetGameBarWidgetRequest} message
|
|
6679
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6680
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6681
|
+
*/
|
|
6682
|
+
proto.cms.GetGameBarWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6683
|
+
var f = undefined;
|
|
6684
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
6685
|
+
if (f != null) {
|
|
6686
|
+
writer.writeString(
|
|
6687
|
+
1,
|
|
6688
|
+
f
|
|
6689
|
+
);
|
|
6690
|
+
}
|
|
6691
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
6692
|
+
if (f != null) {
|
|
6693
|
+
writer.writeBool(
|
|
6694
|
+
2,
|
|
6695
|
+
f
|
|
6696
|
+
);
|
|
6697
|
+
}
|
|
6698
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
6699
|
+
if (f != null) {
|
|
6700
|
+
writer.writeBool(
|
|
6701
|
+
3,
|
|
6702
|
+
f
|
|
6703
|
+
);
|
|
6704
|
+
}
|
|
6705
|
+
};
|
|
6706
|
+
|
|
6707
|
+
|
|
6708
|
+
/**
|
|
6709
|
+
* optional string geo = 1;
|
|
6710
|
+
* @return {string}
|
|
6711
|
+
*/
|
|
6712
|
+
proto.cms.GetGameBarWidgetRequest.prototype.getGeo = function() {
|
|
6713
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6714
|
+
};
|
|
6715
|
+
|
|
6716
|
+
|
|
6717
|
+
/**
|
|
6718
|
+
* @param {string} value
|
|
6719
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6720
|
+
*/
|
|
6721
|
+
proto.cms.GetGameBarWidgetRequest.prototype.setGeo = function(value) {
|
|
6722
|
+
return jspb.Message.setField(this, 1, value);
|
|
6723
|
+
};
|
|
6724
|
+
|
|
6725
|
+
|
|
6726
|
+
/**
|
|
6727
|
+
* Clears the field making it undefined.
|
|
6728
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6729
|
+
*/
|
|
6730
|
+
proto.cms.GetGameBarWidgetRequest.prototype.clearGeo = function() {
|
|
6731
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
6732
|
+
};
|
|
6733
|
+
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* Returns whether this field is set.
|
|
6737
|
+
* @return {boolean}
|
|
6738
|
+
*/
|
|
6739
|
+
proto.cms.GetGameBarWidgetRequest.prototype.hasGeo = function() {
|
|
6740
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6743
|
+
|
|
6744
|
+
/**
|
|
6745
|
+
* optional bool is_mobile = 2;
|
|
6746
|
+
* @return {boolean}
|
|
6747
|
+
*/
|
|
6748
|
+
proto.cms.GetGameBarWidgetRequest.prototype.getIsMobile = function() {
|
|
6749
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
6750
|
+
};
|
|
6751
|
+
|
|
6752
|
+
|
|
6753
|
+
/**
|
|
6754
|
+
* @param {boolean} value
|
|
6755
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6756
|
+
*/
|
|
6757
|
+
proto.cms.GetGameBarWidgetRequest.prototype.setIsMobile = function(value) {
|
|
6758
|
+
return jspb.Message.setField(this, 2, value);
|
|
6759
|
+
};
|
|
6760
|
+
|
|
6761
|
+
|
|
6762
|
+
/**
|
|
6763
|
+
* Clears the field making it undefined.
|
|
6764
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6765
|
+
*/
|
|
6766
|
+
proto.cms.GetGameBarWidgetRequest.prototype.clearIsMobile = function() {
|
|
6767
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6768
|
+
};
|
|
6769
|
+
|
|
6770
|
+
|
|
6771
|
+
/**
|
|
6772
|
+
* Returns whether this field is set.
|
|
6773
|
+
* @return {boolean}
|
|
6774
|
+
*/
|
|
6775
|
+
proto.cms.GetGameBarWidgetRequest.prototype.hasIsMobile = function() {
|
|
6776
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6777
|
+
};
|
|
6778
|
+
|
|
6779
|
+
|
|
6780
|
+
/**
|
|
6781
|
+
* optional bool admin_side = 3;
|
|
6782
|
+
* @return {boolean}
|
|
6783
|
+
*/
|
|
6784
|
+
proto.cms.GetGameBarWidgetRequest.prototype.getAdminSide = function() {
|
|
6785
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
6786
|
+
};
|
|
6787
|
+
|
|
6788
|
+
|
|
6789
|
+
/**
|
|
6790
|
+
* @param {boolean} value
|
|
6791
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6792
|
+
*/
|
|
6793
|
+
proto.cms.GetGameBarWidgetRequest.prototype.setAdminSide = function(value) {
|
|
6794
|
+
return jspb.Message.setField(this, 3, value);
|
|
6795
|
+
};
|
|
6796
|
+
|
|
6797
|
+
|
|
6798
|
+
/**
|
|
6799
|
+
* Clears the field making it undefined.
|
|
6800
|
+
* @return {!proto.cms.GetGameBarWidgetRequest} returns this
|
|
6801
|
+
*/
|
|
6802
|
+
proto.cms.GetGameBarWidgetRequest.prototype.clearAdminSide = function() {
|
|
6803
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6804
|
+
};
|
|
6805
|
+
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* Returns whether this field is set.
|
|
6809
|
+
* @return {boolean}
|
|
6810
|
+
*/
|
|
6811
|
+
proto.cms.GetGameBarWidgetRequest.prototype.hasAdminSide = function() {
|
|
6812
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6813
|
+
};
|
|
6814
|
+
|
|
6815
|
+
|
|
6816
|
+
|
|
6817
|
+
|
|
6818
|
+
|
|
6819
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6820
|
+
/**
|
|
6821
|
+
* Creates an object representation of this proto.
|
|
6822
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6823
|
+
* Optional fields that are not set will be set to undefined.
|
|
6824
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6825
|
+
* For the list of reserved names please see:
|
|
6826
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6827
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6828
|
+
* JSPB instance for transitional soy proto support:
|
|
6829
|
+
* http://goto/soy-param-migration
|
|
6830
|
+
* @return {!Object}
|
|
6831
|
+
*/
|
|
6832
|
+
proto.cms.GameBarWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
6833
|
+
return proto.cms.GameBarWidgetItem.toObject(opt_includeInstance, this);
|
|
6834
|
+
};
|
|
6835
|
+
|
|
6836
|
+
|
|
6837
|
+
/**
|
|
6838
|
+
* Static version of the {@see toObject} method.
|
|
6839
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6840
|
+
* the JSPB instance for transitional soy proto support:
|
|
6841
|
+
* http://goto/soy-param-migration
|
|
6842
|
+
* @param {!proto.cms.GameBarWidgetItem} msg The msg instance to transform.
|
|
6843
|
+
* @return {!Object}
|
|
6844
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6845
|
+
*/
|
|
6846
|
+
proto.cms.GameBarWidgetItem.toObject = function(includeInstance, msg) {
|
|
6847
|
+
var f, obj = {
|
|
6848
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6849
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
6850
|
+
};
|
|
6851
|
+
|
|
6852
|
+
if (includeInstance) {
|
|
6853
|
+
obj.$jspbMessageInstance = msg;
|
|
6854
|
+
}
|
|
6855
|
+
return obj;
|
|
6856
|
+
};
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6859
|
+
|
|
6860
|
+
/**
|
|
6861
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6862
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6863
|
+
* @return {!proto.cms.GameBarWidgetItem}
|
|
6864
|
+
*/
|
|
6865
|
+
proto.cms.GameBarWidgetItem.deserializeBinary = function(bytes) {
|
|
6866
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6867
|
+
var msg = new proto.cms.GameBarWidgetItem;
|
|
6868
|
+
return proto.cms.GameBarWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
6869
|
+
};
|
|
6870
|
+
|
|
6871
|
+
|
|
6872
|
+
/**
|
|
6873
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6874
|
+
* given reader into the given message object.
|
|
6875
|
+
* @param {!proto.cms.GameBarWidgetItem} msg The message object to deserialize into.
|
|
6876
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6877
|
+
* @return {!proto.cms.GameBarWidgetItem}
|
|
6878
|
+
*/
|
|
6879
|
+
proto.cms.GameBarWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
6880
|
+
while (reader.nextField()) {
|
|
6881
|
+
if (reader.isEndGroup()) {
|
|
6882
|
+
break;
|
|
6883
|
+
}
|
|
6884
|
+
var field = reader.getFieldNumber();
|
|
6885
|
+
switch (field) {
|
|
6886
|
+
case 1:
|
|
6887
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6888
|
+
msg.setGeo(value);
|
|
6889
|
+
break;
|
|
6890
|
+
case 2:
|
|
6891
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6892
|
+
msg.setContent(value);
|
|
6893
|
+
break;
|
|
6894
|
+
default:
|
|
6895
|
+
reader.skipField();
|
|
6896
|
+
break;
|
|
6897
|
+
}
|
|
6898
|
+
}
|
|
6899
|
+
return msg;
|
|
6900
|
+
};
|
|
6901
|
+
|
|
6902
|
+
|
|
6903
|
+
/**
|
|
6904
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6905
|
+
* @return {!Uint8Array}
|
|
6906
|
+
*/
|
|
6907
|
+
proto.cms.GameBarWidgetItem.prototype.serializeBinary = function() {
|
|
6908
|
+
var writer = new jspb.BinaryWriter();
|
|
6909
|
+
proto.cms.GameBarWidgetItem.serializeBinaryToWriter(this, writer);
|
|
6910
|
+
return writer.getResultBuffer();
|
|
6911
|
+
};
|
|
6912
|
+
|
|
6913
|
+
|
|
6914
|
+
/**
|
|
6915
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6916
|
+
* format), writing to the given BinaryWriter.
|
|
6917
|
+
* @param {!proto.cms.GameBarWidgetItem} message
|
|
6918
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6919
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6920
|
+
*/
|
|
6921
|
+
proto.cms.GameBarWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
6922
|
+
var f = undefined;
|
|
6923
|
+
f = message.getGeo();
|
|
6924
|
+
if (f.length > 0) {
|
|
6925
|
+
writer.writeString(
|
|
6926
|
+
1,
|
|
6927
|
+
f
|
|
6928
|
+
);
|
|
6929
|
+
}
|
|
6930
|
+
f = message.getContent();
|
|
6931
|
+
if (f.length > 0) {
|
|
6932
|
+
writer.writeString(
|
|
6933
|
+
2,
|
|
6934
|
+
f
|
|
6935
|
+
);
|
|
6936
|
+
}
|
|
6937
|
+
};
|
|
6938
|
+
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* optional string geo = 1;
|
|
6942
|
+
* @return {string}
|
|
6943
|
+
*/
|
|
6944
|
+
proto.cms.GameBarWidgetItem.prototype.getGeo = function() {
|
|
6945
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6946
|
+
};
|
|
6947
|
+
|
|
6948
|
+
|
|
6949
|
+
/**
|
|
6950
|
+
* @param {string} value
|
|
6951
|
+
* @return {!proto.cms.GameBarWidgetItem} returns this
|
|
6952
|
+
*/
|
|
6953
|
+
proto.cms.GameBarWidgetItem.prototype.setGeo = function(value) {
|
|
6954
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6955
|
+
};
|
|
6956
|
+
|
|
6957
|
+
|
|
6958
|
+
/**
|
|
6959
|
+
* optional string content = 2;
|
|
6960
|
+
* @return {string}
|
|
6961
|
+
*/
|
|
6962
|
+
proto.cms.GameBarWidgetItem.prototype.getContent = function() {
|
|
6963
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6964
|
+
};
|
|
6965
|
+
|
|
6966
|
+
|
|
6967
|
+
/**
|
|
6968
|
+
* @param {string} value
|
|
6969
|
+
* @return {!proto.cms.GameBarWidgetItem} returns this
|
|
6970
|
+
*/
|
|
6971
|
+
proto.cms.GameBarWidgetItem.prototype.setContent = function(value) {
|
|
6972
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6973
|
+
};
|
|
6974
|
+
|
|
6975
|
+
|
|
6976
|
+
|
|
6529
6977
|
/**
|
|
6530
6978
|
* Oneof group definitions for this message. Each group defines the field
|
|
6531
6979
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -14875,7 +15323,8 @@ proto.cms.GetPromoRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
14875
15323
|
proto.cms.GetPromoRequest.toObject = function(includeInstance, msg) {
|
|
14876
15324
|
var f, obj = {
|
|
14877
15325
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
14878
|
-
adminSide: jspb.Message.getBooleanFieldWithDefault(msg,
|
|
15326
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
15327
|
+
slug: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
14879
15328
|
};
|
|
14880
15329
|
|
|
14881
15330
|
if (includeInstance) {
|
|
@@ -14916,10 +15365,14 @@ proto.cms.GetPromoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
14916
15365
|
var value = /** @type {number} */ (reader.readInt32());
|
|
14917
15366
|
msg.setId(value);
|
|
14918
15367
|
break;
|
|
14919
|
-
case
|
|
15368
|
+
case 2:
|
|
14920
15369
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
14921
15370
|
msg.setAdminSide(value);
|
|
14922
15371
|
break;
|
|
15372
|
+
case 3:
|
|
15373
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15374
|
+
msg.setSlug(value);
|
|
15375
|
+
break;
|
|
14923
15376
|
default:
|
|
14924
15377
|
reader.skipField();
|
|
14925
15378
|
break;
|
|
@@ -14949,17 +15402,24 @@ proto.cms.GetPromoRequest.prototype.serializeBinary = function() {
|
|
|
14949
15402
|
*/
|
|
14950
15403
|
proto.cms.GetPromoRequest.serializeBinaryToWriter = function(message, writer) {
|
|
14951
15404
|
var f = undefined;
|
|
14952
|
-
f =
|
|
14953
|
-
if (f
|
|
15405
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
15406
|
+
if (f != null) {
|
|
14954
15407
|
writer.writeInt32(
|
|
14955
15408
|
1,
|
|
14956
15409
|
f
|
|
14957
15410
|
);
|
|
14958
15411
|
}
|
|
14959
|
-
f = /** @type {boolean} */ (jspb.Message.getField(message,
|
|
15412
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
14960
15413
|
if (f != null) {
|
|
14961
15414
|
writer.writeBool(
|
|
14962
|
-
|
|
15415
|
+
2,
|
|
15416
|
+
f
|
|
15417
|
+
);
|
|
15418
|
+
}
|
|
15419
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
15420
|
+
if (f != null) {
|
|
15421
|
+
writer.writeString(
|
|
15422
|
+
3,
|
|
14963
15423
|
f
|
|
14964
15424
|
);
|
|
14965
15425
|
}
|
|
@@ -14980,16 +15440,34 @@ proto.cms.GetPromoRequest.prototype.getId = function() {
|
|
|
14980
15440
|
* @return {!proto.cms.GetPromoRequest} returns this
|
|
14981
15441
|
*/
|
|
14982
15442
|
proto.cms.GetPromoRequest.prototype.setId = function(value) {
|
|
14983
|
-
return jspb.Message.
|
|
15443
|
+
return jspb.Message.setField(this, 1, value);
|
|
14984
15444
|
};
|
|
14985
15445
|
|
|
14986
15446
|
|
|
14987
15447
|
/**
|
|
14988
|
-
*
|
|
15448
|
+
* Clears the field making it undefined.
|
|
15449
|
+
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15450
|
+
*/
|
|
15451
|
+
proto.cms.GetPromoRequest.prototype.clearId = function() {
|
|
15452
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
15453
|
+
};
|
|
15454
|
+
|
|
15455
|
+
|
|
15456
|
+
/**
|
|
15457
|
+
* Returns whether this field is set.
|
|
15458
|
+
* @return {boolean}
|
|
15459
|
+
*/
|
|
15460
|
+
proto.cms.GetPromoRequest.prototype.hasId = function() {
|
|
15461
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15462
|
+
};
|
|
15463
|
+
|
|
15464
|
+
|
|
15465
|
+
/**
|
|
15466
|
+
* optional bool admin_side = 2;
|
|
14989
15467
|
* @return {boolean}
|
|
14990
15468
|
*/
|
|
14991
15469
|
proto.cms.GetPromoRequest.prototype.getAdminSide = function() {
|
|
14992
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
15470
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
14993
15471
|
};
|
|
14994
15472
|
|
|
14995
15473
|
|
|
@@ -14998,7 +15476,7 @@ proto.cms.GetPromoRequest.prototype.getAdminSide = function() {
|
|
|
14998
15476
|
* @return {!proto.cms.GetPromoRequest} returns this
|
|
14999
15477
|
*/
|
|
15000
15478
|
proto.cms.GetPromoRequest.prototype.setAdminSide = function(value) {
|
|
15001
|
-
return jspb.Message.setField(this,
|
|
15479
|
+
return jspb.Message.setField(this, 2, value);
|
|
15002
15480
|
};
|
|
15003
15481
|
|
|
15004
15482
|
|
|
@@ -15007,7 +15485,7 @@ proto.cms.GetPromoRequest.prototype.setAdminSide = function(value) {
|
|
|
15007
15485
|
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15008
15486
|
*/
|
|
15009
15487
|
proto.cms.GetPromoRequest.prototype.clearAdminSide = function() {
|
|
15010
|
-
return jspb.Message.setField(this,
|
|
15488
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
15011
15489
|
};
|
|
15012
15490
|
|
|
15013
15491
|
|
|
@@ -15016,7 +15494,43 @@ proto.cms.GetPromoRequest.prototype.clearAdminSide = function() {
|
|
|
15016
15494
|
* @return {boolean}
|
|
15017
15495
|
*/
|
|
15018
15496
|
proto.cms.GetPromoRequest.prototype.hasAdminSide = function() {
|
|
15019
|
-
return jspb.Message.getField(this,
|
|
15497
|
+
return jspb.Message.getField(this, 2) != null;
|
|
15498
|
+
};
|
|
15499
|
+
|
|
15500
|
+
|
|
15501
|
+
/**
|
|
15502
|
+
* optional string slug = 3;
|
|
15503
|
+
* @return {string}
|
|
15504
|
+
*/
|
|
15505
|
+
proto.cms.GetPromoRequest.prototype.getSlug = function() {
|
|
15506
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15507
|
+
};
|
|
15508
|
+
|
|
15509
|
+
|
|
15510
|
+
/**
|
|
15511
|
+
* @param {string} value
|
|
15512
|
+
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15513
|
+
*/
|
|
15514
|
+
proto.cms.GetPromoRequest.prototype.setSlug = function(value) {
|
|
15515
|
+
return jspb.Message.setField(this, 3, value);
|
|
15516
|
+
};
|
|
15517
|
+
|
|
15518
|
+
|
|
15519
|
+
/**
|
|
15520
|
+
* Clears the field making it undefined.
|
|
15521
|
+
* @return {!proto.cms.GetPromoRequest} returns this
|
|
15522
|
+
*/
|
|
15523
|
+
proto.cms.GetPromoRequest.prototype.clearSlug = function() {
|
|
15524
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15525
|
+
};
|
|
15526
|
+
|
|
15527
|
+
|
|
15528
|
+
/**
|
|
15529
|
+
* Returns whether this field is set.
|
|
15530
|
+
* @return {boolean}
|
|
15531
|
+
*/
|
|
15532
|
+
proto.cms.GetPromoRequest.prototype.hasSlug = function() {
|
|
15533
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15020
15534
|
};
|
|
15021
15535
|
|
|
15022
15536
|
|