protobuf-platform 1.2.182 → 1.2.184
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/bonus/bonus.proto +24 -23
- package/bonus/bonus_pb.js +220 -172
- package/cms/cms.proto +10 -1
- package/cms/cms_grpc_pb.js +44 -0
- package/cms/cms_pb.js +400 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -22,6 +22,8 @@ service CMS {
|
|
|
22
22
|
rpc getGameBarWidget(GetGameBarWidgetRequest) returns (GameBarWidgetItem);
|
|
23
23
|
rpc setProfileMenuWidget(CommonWidgetRequest) returns (ProfileMenuWidgetItem);
|
|
24
24
|
rpc getProfileMenuWidget(GetProfileMenuWidgetRequest) returns (ProfileMenuWidgetItem);
|
|
25
|
+
rpc setMobileMenuWidget(CommonWidgetRequest) returns (MobileMenuWidgetItem);
|
|
26
|
+
rpc getMobileMenuWidget(GetMobileMenuWidgetRequest) returns (MobileMenuWidgetItem);
|
|
25
27
|
//Banners
|
|
26
28
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
27
29
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -196,11 +198,18 @@ message GetProfileMenuWidgetRequest {
|
|
|
196
198
|
optional string geo = 1;
|
|
197
199
|
optional bool admin_side = 2;
|
|
198
200
|
}
|
|
199
|
-
|
|
200
201
|
message ProfileMenuWidgetItem {
|
|
201
202
|
string geo = 1;
|
|
202
203
|
string content = 2;
|
|
203
204
|
}
|
|
205
|
+
message GetMobileMenuWidgetRequest {
|
|
206
|
+
optional string geo = 1;
|
|
207
|
+
optional bool admin_side = 2;
|
|
208
|
+
}
|
|
209
|
+
message MobileMenuWidgetItem {
|
|
210
|
+
string geo = 1;
|
|
211
|
+
string content = 2;
|
|
212
|
+
}
|
|
204
213
|
//Banners CRUD
|
|
205
214
|
message BannerRequest {
|
|
206
215
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -609,6 +609,17 @@ function deserialize_cms_GetMainPageWidgetRequest(buffer_arg) {
|
|
|
609
609
|
return cms_pb.GetMainPageWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
+
function serialize_cms_GetMobileMenuWidgetRequest(arg) {
|
|
613
|
+
if (!(arg instanceof cms_pb.GetMobileMenuWidgetRequest)) {
|
|
614
|
+
throw new Error('Expected argument of type cms.GetMobileMenuWidgetRequest');
|
|
615
|
+
}
|
|
616
|
+
return Buffer.from(arg.serializeBinary());
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
function deserialize_cms_GetMobileMenuWidgetRequest(buffer_arg) {
|
|
620
|
+
return cms_pb.GetMobileMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
621
|
+
}
|
|
622
|
+
|
|
612
623
|
function serialize_cms_GetPageRequest(arg) {
|
|
613
624
|
if (!(arg instanceof cms_pb.GetPageRequest)) {
|
|
614
625
|
throw new Error('Expected argument of type cms.GetPageRequest');
|
|
@@ -719,6 +730,17 @@ function deserialize_cms_MainPageWidgetResponse(buffer_arg) {
|
|
|
719
730
|
return cms_pb.MainPageWidgetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
720
731
|
}
|
|
721
732
|
|
|
733
|
+
function serialize_cms_MobileMenuWidgetItem(arg) {
|
|
734
|
+
if (!(arg instanceof cms_pb.MobileMenuWidgetItem)) {
|
|
735
|
+
throw new Error('Expected argument of type cms.MobileMenuWidgetItem');
|
|
736
|
+
}
|
|
737
|
+
return Buffer.from(arg.serializeBinary());
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function deserialize_cms_MobileMenuWidgetItem(buffer_arg) {
|
|
741
|
+
return cms_pb.MobileMenuWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
742
|
+
}
|
|
743
|
+
|
|
722
744
|
function serialize_cms_PageRequest(arg) {
|
|
723
745
|
if (!(arg instanceof cms_pb.PageRequest)) {
|
|
724
746
|
throw new Error('Expected argument of type cms.PageRequest');
|
|
@@ -1118,6 +1140,28 @@ setMainPageWidget: {
|
|
|
1118
1140
|
responseSerialize: serialize_cms_ProfileMenuWidgetItem,
|
|
1119
1141
|
responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
|
|
1120
1142
|
},
|
|
1143
|
+
setMobileMenuWidget: {
|
|
1144
|
+
path: '/cms.CMS/setMobileMenuWidget',
|
|
1145
|
+
requestStream: false,
|
|
1146
|
+
responseStream: false,
|
|
1147
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
1148
|
+
responseType: cms_pb.MobileMenuWidgetItem,
|
|
1149
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
1150
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
1151
|
+
responseSerialize: serialize_cms_MobileMenuWidgetItem,
|
|
1152
|
+
responseDeserialize: deserialize_cms_MobileMenuWidgetItem,
|
|
1153
|
+
},
|
|
1154
|
+
getMobileMenuWidget: {
|
|
1155
|
+
path: '/cms.CMS/getMobileMenuWidget',
|
|
1156
|
+
requestStream: false,
|
|
1157
|
+
responseStream: false,
|
|
1158
|
+
requestType: cms_pb.GetMobileMenuWidgetRequest,
|
|
1159
|
+
responseType: cms_pb.MobileMenuWidgetItem,
|
|
1160
|
+
requestSerialize: serialize_cms_GetMobileMenuWidgetRequest,
|
|
1161
|
+
requestDeserialize: deserialize_cms_GetMobileMenuWidgetRequest,
|
|
1162
|
+
responseSerialize: serialize_cms_MobileMenuWidgetItem,
|
|
1163
|
+
responseDeserialize: deserialize_cms_MobileMenuWidgetItem,
|
|
1164
|
+
},
|
|
1121
1165
|
// Banners
|
|
1122
1166
|
createSingleBanner: {
|
|
1123
1167
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -105,6 +105,7 @@ goog.exportSymbol('proto.cms.GetGameBarWidgetRequest', null, global);
|
|
|
105
105
|
goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
|
|
106
106
|
goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
|
|
107
107
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
|
108
|
+
goog.exportSymbol('proto.cms.GetMobileMenuWidgetRequest', null, global);
|
|
108
109
|
goog.exportSymbol('proto.cms.GetPageRequest', null, global);
|
|
109
110
|
goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
|
|
110
111
|
goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
|
|
@@ -116,6 +117,7 @@ goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
|
|
|
116
117
|
goog.exportSymbol('proto.cms.LocaleContentItem', null, global);
|
|
117
118
|
goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
|
|
118
119
|
goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
|
|
120
|
+
goog.exportSymbol('proto.cms.MobileMenuWidgetItem', null, global);
|
|
119
121
|
goog.exportSymbol('proto.cms.PageItem', null, global);
|
|
120
122
|
goog.exportSymbol('proto.cms.PageRequest', null, global);
|
|
121
123
|
goog.exportSymbol('proto.cms.PageResponse', null, global);
|
|
@@ -644,6 +646,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
644
646
|
*/
|
|
645
647
|
proto.cms.ProfileMenuWidgetItem.displayName = 'proto.cms.ProfileMenuWidgetItem';
|
|
646
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
* Generated by JsPbCodeGenerator.
|
|
651
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
652
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
653
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
654
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
655
|
+
* valid.
|
|
656
|
+
* @extends {jspb.Message}
|
|
657
|
+
* @constructor
|
|
658
|
+
*/
|
|
659
|
+
proto.cms.GetMobileMenuWidgetRequest = function(opt_data) {
|
|
660
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
661
|
+
};
|
|
662
|
+
goog.inherits(proto.cms.GetMobileMenuWidgetRequest, jspb.Message);
|
|
663
|
+
if (goog.DEBUG && !COMPILED) {
|
|
664
|
+
/**
|
|
665
|
+
* @public
|
|
666
|
+
* @override
|
|
667
|
+
*/
|
|
668
|
+
proto.cms.GetMobileMenuWidgetRequest.displayName = 'proto.cms.GetMobileMenuWidgetRequest';
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Generated by JsPbCodeGenerator.
|
|
672
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
673
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
674
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
675
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
676
|
+
* valid.
|
|
677
|
+
* @extends {jspb.Message}
|
|
678
|
+
* @constructor
|
|
679
|
+
*/
|
|
680
|
+
proto.cms.MobileMenuWidgetItem = function(opt_data) {
|
|
681
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
682
|
+
};
|
|
683
|
+
goog.inherits(proto.cms.MobileMenuWidgetItem, jspb.Message);
|
|
684
|
+
if (goog.DEBUG && !COMPILED) {
|
|
685
|
+
/**
|
|
686
|
+
* @public
|
|
687
|
+
* @override
|
|
688
|
+
*/
|
|
689
|
+
proto.cms.MobileMenuWidgetItem.displayName = 'proto.cms.MobileMenuWidgetItem';
|
|
690
|
+
}
|
|
647
691
|
/**
|
|
648
692
|
* Generated by JsPbCodeGenerator.
|
|
649
693
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7374,6 +7418,362 @@ proto.cms.ProfileMenuWidgetItem.prototype.setContent = function(value) {
|
|
|
7374
7418
|
|
|
7375
7419
|
|
|
7376
7420
|
|
|
7421
|
+
|
|
7422
|
+
|
|
7423
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7424
|
+
/**
|
|
7425
|
+
* Creates an object representation of this proto.
|
|
7426
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7427
|
+
* Optional fields that are not set will be set to undefined.
|
|
7428
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7429
|
+
* For the list of reserved names please see:
|
|
7430
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7431
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7432
|
+
* JSPB instance for transitional soy proto support:
|
|
7433
|
+
* http://goto/soy-param-migration
|
|
7434
|
+
* @return {!Object}
|
|
7435
|
+
*/
|
|
7436
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7437
|
+
return proto.cms.GetMobileMenuWidgetRequest.toObject(opt_includeInstance, this);
|
|
7438
|
+
};
|
|
7439
|
+
|
|
7440
|
+
|
|
7441
|
+
/**
|
|
7442
|
+
* Static version of the {@see toObject} method.
|
|
7443
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7444
|
+
* the JSPB instance for transitional soy proto support:
|
|
7445
|
+
* http://goto/soy-param-migration
|
|
7446
|
+
* @param {!proto.cms.GetMobileMenuWidgetRequest} msg The msg instance to transform.
|
|
7447
|
+
* @return {!Object}
|
|
7448
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7449
|
+
*/
|
|
7450
|
+
proto.cms.GetMobileMenuWidgetRequest.toObject = function(includeInstance, msg) {
|
|
7451
|
+
var f, obj = {
|
|
7452
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7453
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
7454
|
+
};
|
|
7455
|
+
|
|
7456
|
+
if (includeInstance) {
|
|
7457
|
+
obj.$jspbMessageInstance = msg;
|
|
7458
|
+
}
|
|
7459
|
+
return obj;
|
|
7460
|
+
};
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
|
|
7464
|
+
/**
|
|
7465
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7466
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7467
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest}
|
|
7468
|
+
*/
|
|
7469
|
+
proto.cms.GetMobileMenuWidgetRequest.deserializeBinary = function(bytes) {
|
|
7470
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7471
|
+
var msg = new proto.cms.GetMobileMenuWidgetRequest;
|
|
7472
|
+
return proto.cms.GetMobileMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
7473
|
+
};
|
|
7474
|
+
|
|
7475
|
+
|
|
7476
|
+
/**
|
|
7477
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7478
|
+
* given reader into the given message object.
|
|
7479
|
+
* @param {!proto.cms.GetMobileMenuWidgetRequest} msg The message object to deserialize into.
|
|
7480
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7481
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest}
|
|
7482
|
+
*/
|
|
7483
|
+
proto.cms.GetMobileMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7484
|
+
while (reader.nextField()) {
|
|
7485
|
+
if (reader.isEndGroup()) {
|
|
7486
|
+
break;
|
|
7487
|
+
}
|
|
7488
|
+
var field = reader.getFieldNumber();
|
|
7489
|
+
switch (field) {
|
|
7490
|
+
case 1:
|
|
7491
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7492
|
+
msg.setGeo(value);
|
|
7493
|
+
break;
|
|
7494
|
+
case 2:
|
|
7495
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7496
|
+
msg.setAdminSide(value);
|
|
7497
|
+
break;
|
|
7498
|
+
default:
|
|
7499
|
+
reader.skipField();
|
|
7500
|
+
break;
|
|
7501
|
+
}
|
|
7502
|
+
}
|
|
7503
|
+
return msg;
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
|
|
7507
|
+
/**
|
|
7508
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7509
|
+
* @return {!Uint8Array}
|
|
7510
|
+
*/
|
|
7511
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.serializeBinary = function() {
|
|
7512
|
+
var writer = new jspb.BinaryWriter();
|
|
7513
|
+
proto.cms.GetMobileMenuWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
7514
|
+
return writer.getResultBuffer();
|
|
7515
|
+
};
|
|
7516
|
+
|
|
7517
|
+
|
|
7518
|
+
/**
|
|
7519
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7520
|
+
* format), writing to the given BinaryWriter.
|
|
7521
|
+
* @param {!proto.cms.GetMobileMenuWidgetRequest} message
|
|
7522
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7523
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7524
|
+
*/
|
|
7525
|
+
proto.cms.GetMobileMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7526
|
+
var f = undefined;
|
|
7527
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7528
|
+
if (f != null) {
|
|
7529
|
+
writer.writeString(
|
|
7530
|
+
1,
|
|
7531
|
+
f
|
|
7532
|
+
);
|
|
7533
|
+
}
|
|
7534
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
7535
|
+
if (f != null) {
|
|
7536
|
+
writer.writeBool(
|
|
7537
|
+
2,
|
|
7538
|
+
f
|
|
7539
|
+
);
|
|
7540
|
+
}
|
|
7541
|
+
};
|
|
7542
|
+
|
|
7543
|
+
|
|
7544
|
+
/**
|
|
7545
|
+
* optional string geo = 1;
|
|
7546
|
+
* @return {string}
|
|
7547
|
+
*/
|
|
7548
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.getGeo = function() {
|
|
7549
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7550
|
+
};
|
|
7551
|
+
|
|
7552
|
+
|
|
7553
|
+
/**
|
|
7554
|
+
* @param {string} value
|
|
7555
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
|
|
7556
|
+
*/
|
|
7557
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.setGeo = function(value) {
|
|
7558
|
+
return jspb.Message.setField(this, 1, value);
|
|
7559
|
+
};
|
|
7560
|
+
|
|
7561
|
+
|
|
7562
|
+
/**
|
|
7563
|
+
* Clears the field making it undefined.
|
|
7564
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
|
|
7565
|
+
*/
|
|
7566
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.clearGeo = function() {
|
|
7567
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7568
|
+
};
|
|
7569
|
+
|
|
7570
|
+
|
|
7571
|
+
/**
|
|
7572
|
+
* Returns whether this field is set.
|
|
7573
|
+
* @return {boolean}
|
|
7574
|
+
*/
|
|
7575
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.hasGeo = function() {
|
|
7576
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7577
|
+
};
|
|
7578
|
+
|
|
7579
|
+
|
|
7580
|
+
/**
|
|
7581
|
+
* optional bool admin_side = 2;
|
|
7582
|
+
* @return {boolean}
|
|
7583
|
+
*/
|
|
7584
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.getAdminSide = function() {
|
|
7585
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
7586
|
+
};
|
|
7587
|
+
|
|
7588
|
+
|
|
7589
|
+
/**
|
|
7590
|
+
* @param {boolean} value
|
|
7591
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
|
|
7592
|
+
*/
|
|
7593
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.setAdminSide = function(value) {
|
|
7594
|
+
return jspb.Message.setField(this, 2, value);
|
|
7595
|
+
};
|
|
7596
|
+
|
|
7597
|
+
|
|
7598
|
+
/**
|
|
7599
|
+
* Clears the field making it undefined.
|
|
7600
|
+
* @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
|
|
7601
|
+
*/
|
|
7602
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.clearAdminSide = function() {
|
|
7603
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7604
|
+
};
|
|
7605
|
+
|
|
7606
|
+
|
|
7607
|
+
/**
|
|
7608
|
+
* Returns whether this field is set.
|
|
7609
|
+
* @return {boolean}
|
|
7610
|
+
*/
|
|
7611
|
+
proto.cms.GetMobileMenuWidgetRequest.prototype.hasAdminSide = function() {
|
|
7612
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7613
|
+
};
|
|
7614
|
+
|
|
7615
|
+
|
|
7616
|
+
|
|
7617
|
+
|
|
7618
|
+
|
|
7619
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7620
|
+
/**
|
|
7621
|
+
* Creates an object representation of this proto.
|
|
7622
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7623
|
+
* Optional fields that are not set will be set to undefined.
|
|
7624
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7625
|
+
* For the list of reserved names please see:
|
|
7626
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7627
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7628
|
+
* JSPB instance for transitional soy proto support:
|
|
7629
|
+
* http://goto/soy-param-migration
|
|
7630
|
+
* @return {!Object}
|
|
7631
|
+
*/
|
|
7632
|
+
proto.cms.MobileMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
7633
|
+
return proto.cms.MobileMenuWidgetItem.toObject(opt_includeInstance, this);
|
|
7634
|
+
};
|
|
7635
|
+
|
|
7636
|
+
|
|
7637
|
+
/**
|
|
7638
|
+
* Static version of the {@see toObject} method.
|
|
7639
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7640
|
+
* the JSPB instance for transitional soy proto support:
|
|
7641
|
+
* http://goto/soy-param-migration
|
|
7642
|
+
* @param {!proto.cms.MobileMenuWidgetItem} msg The msg instance to transform.
|
|
7643
|
+
* @return {!Object}
|
|
7644
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7645
|
+
*/
|
|
7646
|
+
proto.cms.MobileMenuWidgetItem.toObject = function(includeInstance, msg) {
|
|
7647
|
+
var f, obj = {
|
|
7648
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7649
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7650
|
+
};
|
|
7651
|
+
|
|
7652
|
+
if (includeInstance) {
|
|
7653
|
+
obj.$jspbMessageInstance = msg;
|
|
7654
|
+
}
|
|
7655
|
+
return obj;
|
|
7656
|
+
};
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
|
+
|
|
7660
|
+
/**
|
|
7661
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7662
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7663
|
+
* @return {!proto.cms.MobileMenuWidgetItem}
|
|
7664
|
+
*/
|
|
7665
|
+
proto.cms.MobileMenuWidgetItem.deserializeBinary = function(bytes) {
|
|
7666
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7667
|
+
var msg = new proto.cms.MobileMenuWidgetItem;
|
|
7668
|
+
return proto.cms.MobileMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
7669
|
+
};
|
|
7670
|
+
|
|
7671
|
+
|
|
7672
|
+
/**
|
|
7673
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7674
|
+
* given reader into the given message object.
|
|
7675
|
+
* @param {!proto.cms.MobileMenuWidgetItem} msg The message object to deserialize into.
|
|
7676
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7677
|
+
* @return {!proto.cms.MobileMenuWidgetItem}
|
|
7678
|
+
*/
|
|
7679
|
+
proto.cms.MobileMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
7680
|
+
while (reader.nextField()) {
|
|
7681
|
+
if (reader.isEndGroup()) {
|
|
7682
|
+
break;
|
|
7683
|
+
}
|
|
7684
|
+
var field = reader.getFieldNumber();
|
|
7685
|
+
switch (field) {
|
|
7686
|
+
case 1:
|
|
7687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7688
|
+
msg.setGeo(value);
|
|
7689
|
+
break;
|
|
7690
|
+
case 2:
|
|
7691
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7692
|
+
msg.setContent(value);
|
|
7693
|
+
break;
|
|
7694
|
+
default:
|
|
7695
|
+
reader.skipField();
|
|
7696
|
+
break;
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7699
|
+
return msg;
|
|
7700
|
+
};
|
|
7701
|
+
|
|
7702
|
+
|
|
7703
|
+
/**
|
|
7704
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7705
|
+
* @return {!Uint8Array}
|
|
7706
|
+
*/
|
|
7707
|
+
proto.cms.MobileMenuWidgetItem.prototype.serializeBinary = function() {
|
|
7708
|
+
var writer = new jspb.BinaryWriter();
|
|
7709
|
+
proto.cms.MobileMenuWidgetItem.serializeBinaryToWriter(this, writer);
|
|
7710
|
+
return writer.getResultBuffer();
|
|
7711
|
+
};
|
|
7712
|
+
|
|
7713
|
+
|
|
7714
|
+
/**
|
|
7715
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7716
|
+
* format), writing to the given BinaryWriter.
|
|
7717
|
+
* @param {!proto.cms.MobileMenuWidgetItem} message
|
|
7718
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7719
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7720
|
+
*/
|
|
7721
|
+
proto.cms.MobileMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
7722
|
+
var f = undefined;
|
|
7723
|
+
f = message.getGeo();
|
|
7724
|
+
if (f.length > 0) {
|
|
7725
|
+
writer.writeString(
|
|
7726
|
+
1,
|
|
7727
|
+
f
|
|
7728
|
+
);
|
|
7729
|
+
}
|
|
7730
|
+
f = message.getContent();
|
|
7731
|
+
if (f.length > 0) {
|
|
7732
|
+
writer.writeString(
|
|
7733
|
+
2,
|
|
7734
|
+
f
|
|
7735
|
+
);
|
|
7736
|
+
}
|
|
7737
|
+
};
|
|
7738
|
+
|
|
7739
|
+
|
|
7740
|
+
/**
|
|
7741
|
+
* optional string geo = 1;
|
|
7742
|
+
* @return {string}
|
|
7743
|
+
*/
|
|
7744
|
+
proto.cms.MobileMenuWidgetItem.prototype.getGeo = function() {
|
|
7745
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7746
|
+
};
|
|
7747
|
+
|
|
7748
|
+
|
|
7749
|
+
/**
|
|
7750
|
+
* @param {string} value
|
|
7751
|
+
* @return {!proto.cms.MobileMenuWidgetItem} returns this
|
|
7752
|
+
*/
|
|
7753
|
+
proto.cms.MobileMenuWidgetItem.prototype.setGeo = function(value) {
|
|
7754
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7755
|
+
};
|
|
7756
|
+
|
|
7757
|
+
|
|
7758
|
+
/**
|
|
7759
|
+
* optional string content = 2;
|
|
7760
|
+
* @return {string}
|
|
7761
|
+
*/
|
|
7762
|
+
proto.cms.MobileMenuWidgetItem.prototype.getContent = function() {
|
|
7763
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7764
|
+
};
|
|
7765
|
+
|
|
7766
|
+
|
|
7767
|
+
/**
|
|
7768
|
+
* @param {string} value
|
|
7769
|
+
* @return {!proto.cms.MobileMenuWidgetItem} returns this
|
|
7770
|
+
*/
|
|
7771
|
+
proto.cms.MobileMenuWidgetItem.prototype.setContent = function(value) {
|
|
7772
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7773
|
+
};
|
|
7774
|
+
|
|
7775
|
+
|
|
7776
|
+
|
|
7377
7777
|
/**
|
|
7378
7778
|
* Oneof group definitions for this message. Each group defines the field
|
|
7379
7779
|
* numbers belonging to that group. When of these fields' value is set, all
|