protobuf-platform 1.2.114 → 1.2.115
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 +10 -0
- 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
|
@@ -15,6 +15,8 @@ service CMS {
|
|
|
15
15
|
rpc getSignUpFormWidget(GetSignUpFormWidgetRequest) returns (SignUpFormWidgetItem);
|
|
16
16
|
rpc setHeaderWidget(CommonWidgetRequest) returns (HeaderWidgetItem);
|
|
17
17
|
rpc getHeaderWidget(GetHeaderWidgetRequest) returns (HeaderWidgetItem);
|
|
18
|
+
rpc setFooterWidget(CommonWidgetRequest) returns (FooterWidgetItem);
|
|
19
|
+
rpc getFooterWidget(GetFooterWidgetRequest) returns (FooterWidgetItem);
|
|
18
20
|
//Banners
|
|
19
21
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
20
22
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -157,6 +159,14 @@ message HeaderWidgetItem {
|
|
|
157
159
|
string geo = 1;
|
|
158
160
|
string content = 2;
|
|
159
161
|
}
|
|
162
|
+
message GetFooterWidgetRequest {
|
|
163
|
+
optional string geo = 1;
|
|
164
|
+
optional bool admin_side = 2;
|
|
165
|
+
}
|
|
166
|
+
message FooterWidgetItem {
|
|
167
|
+
string geo = 1;
|
|
168
|
+
string content = 2;
|
|
169
|
+
}
|
|
160
170
|
//Banners CRUD
|
|
161
171
|
message BannerRequest {
|
|
162
172
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -367,6 +367,17 @@ function deserialize_cms_FooterPaymentsStatusResponse(buffer_arg) {
|
|
|
367
367
|
return cms_pb.FooterPaymentsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
function serialize_cms_FooterWidgetItem(arg) {
|
|
371
|
+
if (!(arg instanceof cms_pb.FooterWidgetItem)) {
|
|
372
|
+
throw new Error('Expected argument of type cms.FooterWidgetItem');
|
|
373
|
+
}
|
|
374
|
+
return Buffer.from(arg.serializeBinary());
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function deserialize_cms_FooterWidgetItem(buffer_arg) {
|
|
378
|
+
return cms_pb.FooterWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
379
|
+
}
|
|
380
|
+
|
|
370
381
|
function serialize_cms_GameWidgetRequest(arg) {
|
|
371
382
|
if (!(arg instanceof cms_pb.GameWidgetRequest)) {
|
|
372
383
|
throw new Error('Expected argument of type cms.GameWidgetRequest');
|
|
@@ -521,6 +532,17 @@ function deserialize_cms_GetFooterPaymentsRequest(buffer_arg) {
|
|
|
521
532
|
return cms_pb.GetFooterPaymentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
522
533
|
}
|
|
523
534
|
|
|
535
|
+
function serialize_cms_GetFooterWidgetRequest(arg) {
|
|
536
|
+
if (!(arg instanceof cms_pb.GetFooterWidgetRequest)) {
|
|
537
|
+
throw new Error('Expected argument of type cms.GetFooterWidgetRequest');
|
|
538
|
+
}
|
|
539
|
+
return Buffer.from(arg.serializeBinary());
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
function deserialize_cms_GetFooterWidgetRequest(buffer_arg) {
|
|
543
|
+
return cms_pb.GetFooterWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
544
|
+
}
|
|
545
|
+
|
|
524
546
|
function serialize_cms_GetGameWidgetRequest(arg) {
|
|
525
547
|
if (!(arg instanceof cms_pb.GetGameWidgetRequest)) {
|
|
526
548
|
throw new Error('Expected argument of type cms.GetGameWidgetRequest');
|
|
@@ -964,6 +986,28 @@ setMainPageWidget: {
|
|
|
964
986
|
responseSerialize: serialize_cms_HeaderWidgetItem,
|
|
965
987
|
responseDeserialize: deserialize_cms_HeaderWidgetItem,
|
|
966
988
|
},
|
|
989
|
+
setFooterWidget: {
|
|
990
|
+
path: '/cms.CMS/setFooterWidget',
|
|
991
|
+
requestStream: false,
|
|
992
|
+
responseStream: false,
|
|
993
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
994
|
+
responseType: cms_pb.FooterWidgetItem,
|
|
995
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
996
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
997
|
+
responseSerialize: serialize_cms_FooterWidgetItem,
|
|
998
|
+
responseDeserialize: deserialize_cms_FooterWidgetItem,
|
|
999
|
+
},
|
|
1000
|
+
getFooterWidget: {
|
|
1001
|
+
path: '/cms.CMS/getFooterWidget',
|
|
1002
|
+
requestStream: false,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
requestType: cms_pb.GetFooterWidgetRequest,
|
|
1005
|
+
responseType: cms_pb.FooterWidgetItem,
|
|
1006
|
+
requestSerialize: serialize_cms_GetFooterWidgetRequest,
|
|
1007
|
+
requestDeserialize: deserialize_cms_GetFooterWidgetRequest,
|
|
1008
|
+
responseSerialize: serialize_cms_FooterWidgetItem,
|
|
1009
|
+
responseDeserialize: deserialize_cms_FooterWidgetItem,
|
|
1010
|
+
},
|
|
967
1011
|
// Banners
|
|
968
1012
|
createSingleBanner: {
|
|
969
1013
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -79,6 +79,7 @@ goog.exportSymbol('proto.cms.FooterPaymentsItemRequest', null, global);
|
|
|
79
79
|
goog.exportSymbol('proto.cms.FooterPaymentsItemsResponse', null, global);
|
|
80
80
|
goog.exportSymbol('proto.cms.FooterPaymentsResponse', null, global);
|
|
81
81
|
goog.exportSymbol('proto.cms.FooterPaymentsStatusResponse', null, global);
|
|
82
|
+
goog.exportSymbol('proto.cms.FooterWidgetItem', null, global);
|
|
82
83
|
goog.exportSymbol('proto.cms.GameWidgetItem', null, global);
|
|
83
84
|
goog.exportSymbol('proto.cms.GameWidgetItemRequest', null, global);
|
|
84
85
|
goog.exportSymbol('proto.cms.GameWidgetRequest', null, global);
|
|
@@ -96,6 +97,7 @@ goog.exportSymbol('proto.cms.GetFooterMainTextRequest', null, global);
|
|
|
96
97
|
goog.exportSymbol('proto.cms.GetFooterMainTextTranslationRequest', null, global);
|
|
97
98
|
goog.exportSymbol('proto.cms.GetFooterPartnersRequest', null, global);
|
|
98
99
|
goog.exportSymbol('proto.cms.GetFooterPaymentsRequest', null, global);
|
|
100
|
+
goog.exportSymbol('proto.cms.GetFooterWidgetRequest', null, global);
|
|
99
101
|
goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
|
|
100
102
|
goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
|
|
101
103
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
|
@@ -468,6 +470,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
468
470
|
*/
|
|
469
471
|
proto.cms.HeaderWidgetItem.displayName = 'proto.cms.HeaderWidgetItem';
|
|
470
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* Generated by JsPbCodeGenerator.
|
|
475
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
476
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
477
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
478
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
479
|
+
* valid.
|
|
480
|
+
* @extends {jspb.Message}
|
|
481
|
+
* @constructor
|
|
482
|
+
*/
|
|
483
|
+
proto.cms.GetFooterWidgetRequest = function(opt_data) {
|
|
484
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
485
|
+
};
|
|
486
|
+
goog.inherits(proto.cms.GetFooterWidgetRequest, jspb.Message);
|
|
487
|
+
if (goog.DEBUG && !COMPILED) {
|
|
488
|
+
/**
|
|
489
|
+
* @public
|
|
490
|
+
* @override
|
|
491
|
+
*/
|
|
492
|
+
proto.cms.GetFooterWidgetRequest.displayName = 'proto.cms.GetFooterWidgetRequest';
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Generated by JsPbCodeGenerator.
|
|
496
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
497
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
498
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
499
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
500
|
+
* valid.
|
|
501
|
+
* @extends {jspb.Message}
|
|
502
|
+
* @constructor
|
|
503
|
+
*/
|
|
504
|
+
proto.cms.FooterWidgetItem = function(opt_data) {
|
|
505
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
506
|
+
};
|
|
507
|
+
goog.inherits(proto.cms.FooterWidgetItem, jspb.Message);
|
|
508
|
+
if (goog.DEBUG && !COMPILED) {
|
|
509
|
+
/**
|
|
510
|
+
* @public
|
|
511
|
+
* @override
|
|
512
|
+
*/
|
|
513
|
+
proto.cms.FooterWidgetItem.displayName = 'proto.cms.FooterWidgetItem';
|
|
514
|
+
}
|
|
471
515
|
/**
|
|
472
516
|
* Generated by JsPbCodeGenerator.
|
|
473
517
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5636,6 +5680,362 @@ proto.cms.HeaderWidgetItem.prototype.setContent = function(value) {
|
|
|
5636
5680
|
|
|
5637
5681
|
|
|
5638
5682
|
|
|
5683
|
+
|
|
5684
|
+
|
|
5685
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5686
|
+
/**
|
|
5687
|
+
* Creates an object representation of this proto.
|
|
5688
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5689
|
+
* Optional fields that are not set will be set to undefined.
|
|
5690
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5691
|
+
* For the list of reserved names please see:
|
|
5692
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5693
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5694
|
+
* JSPB instance for transitional soy proto support:
|
|
5695
|
+
* http://goto/soy-param-migration
|
|
5696
|
+
* @return {!Object}
|
|
5697
|
+
*/
|
|
5698
|
+
proto.cms.GetFooterWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5699
|
+
return proto.cms.GetFooterWidgetRequest.toObject(opt_includeInstance, this);
|
|
5700
|
+
};
|
|
5701
|
+
|
|
5702
|
+
|
|
5703
|
+
/**
|
|
5704
|
+
* Static version of the {@see toObject} method.
|
|
5705
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5706
|
+
* the JSPB instance for transitional soy proto support:
|
|
5707
|
+
* http://goto/soy-param-migration
|
|
5708
|
+
* @param {!proto.cms.GetFooterWidgetRequest} msg The msg instance to transform.
|
|
5709
|
+
* @return {!Object}
|
|
5710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5711
|
+
*/
|
|
5712
|
+
proto.cms.GetFooterWidgetRequest.toObject = function(includeInstance, msg) {
|
|
5713
|
+
var f, obj = {
|
|
5714
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5715
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5716
|
+
};
|
|
5717
|
+
|
|
5718
|
+
if (includeInstance) {
|
|
5719
|
+
obj.$jspbMessageInstance = msg;
|
|
5720
|
+
}
|
|
5721
|
+
return obj;
|
|
5722
|
+
};
|
|
5723
|
+
}
|
|
5724
|
+
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5728
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5729
|
+
* @return {!proto.cms.GetFooterWidgetRequest}
|
|
5730
|
+
*/
|
|
5731
|
+
proto.cms.GetFooterWidgetRequest.deserializeBinary = function(bytes) {
|
|
5732
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5733
|
+
var msg = new proto.cms.GetFooterWidgetRequest;
|
|
5734
|
+
return proto.cms.GetFooterWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
5735
|
+
};
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
/**
|
|
5739
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5740
|
+
* given reader into the given message object.
|
|
5741
|
+
* @param {!proto.cms.GetFooterWidgetRequest} msg The message object to deserialize into.
|
|
5742
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5743
|
+
* @return {!proto.cms.GetFooterWidgetRequest}
|
|
5744
|
+
*/
|
|
5745
|
+
proto.cms.GetFooterWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5746
|
+
while (reader.nextField()) {
|
|
5747
|
+
if (reader.isEndGroup()) {
|
|
5748
|
+
break;
|
|
5749
|
+
}
|
|
5750
|
+
var field = reader.getFieldNumber();
|
|
5751
|
+
switch (field) {
|
|
5752
|
+
case 1:
|
|
5753
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5754
|
+
msg.setGeo(value);
|
|
5755
|
+
break;
|
|
5756
|
+
case 2:
|
|
5757
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5758
|
+
msg.setAdminSide(value);
|
|
5759
|
+
break;
|
|
5760
|
+
default:
|
|
5761
|
+
reader.skipField();
|
|
5762
|
+
break;
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
return msg;
|
|
5766
|
+
};
|
|
5767
|
+
|
|
5768
|
+
|
|
5769
|
+
/**
|
|
5770
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5771
|
+
* @return {!Uint8Array}
|
|
5772
|
+
*/
|
|
5773
|
+
proto.cms.GetFooterWidgetRequest.prototype.serializeBinary = function() {
|
|
5774
|
+
var writer = new jspb.BinaryWriter();
|
|
5775
|
+
proto.cms.GetFooterWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
5776
|
+
return writer.getResultBuffer();
|
|
5777
|
+
};
|
|
5778
|
+
|
|
5779
|
+
|
|
5780
|
+
/**
|
|
5781
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5782
|
+
* format), writing to the given BinaryWriter.
|
|
5783
|
+
* @param {!proto.cms.GetFooterWidgetRequest} message
|
|
5784
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5785
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5786
|
+
*/
|
|
5787
|
+
proto.cms.GetFooterWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5788
|
+
var f = undefined;
|
|
5789
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
5790
|
+
if (f != null) {
|
|
5791
|
+
writer.writeString(
|
|
5792
|
+
1,
|
|
5793
|
+
f
|
|
5794
|
+
);
|
|
5795
|
+
}
|
|
5796
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
5797
|
+
if (f != null) {
|
|
5798
|
+
writer.writeBool(
|
|
5799
|
+
2,
|
|
5800
|
+
f
|
|
5801
|
+
);
|
|
5802
|
+
}
|
|
5803
|
+
};
|
|
5804
|
+
|
|
5805
|
+
|
|
5806
|
+
/**
|
|
5807
|
+
* optional string geo = 1;
|
|
5808
|
+
* @return {string}
|
|
5809
|
+
*/
|
|
5810
|
+
proto.cms.GetFooterWidgetRequest.prototype.getGeo = function() {
|
|
5811
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5812
|
+
};
|
|
5813
|
+
|
|
5814
|
+
|
|
5815
|
+
/**
|
|
5816
|
+
* @param {string} value
|
|
5817
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5818
|
+
*/
|
|
5819
|
+
proto.cms.GetFooterWidgetRequest.prototype.setGeo = function(value) {
|
|
5820
|
+
return jspb.Message.setField(this, 1, value);
|
|
5821
|
+
};
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* Clears the field making it undefined.
|
|
5826
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5827
|
+
*/
|
|
5828
|
+
proto.cms.GetFooterWidgetRequest.prototype.clearGeo = function() {
|
|
5829
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
5830
|
+
};
|
|
5831
|
+
|
|
5832
|
+
|
|
5833
|
+
/**
|
|
5834
|
+
* Returns whether this field is set.
|
|
5835
|
+
* @return {boolean}
|
|
5836
|
+
*/
|
|
5837
|
+
proto.cms.GetFooterWidgetRequest.prototype.hasGeo = function() {
|
|
5838
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5839
|
+
};
|
|
5840
|
+
|
|
5841
|
+
|
|
5842
|
+
/**
|
|
5843
|
+
* optional bool admin_side = 2;
|
|
5844
|
+
* @return {boolean}
|
|
5845
|
+
*/
|
|
5846
|
+
proto.cms.GetFooterWidgetRequest.prototype.getAdminSide = function() {
|
|
5847
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
5848
|
+
};
|
|
5849
|
+
|
|
5850
|
+
|
|
5851
|
+
/**
|
|
5852
|
+
* @param {boolean} value
|
|
5853
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5854
|
+
*/
|
|
5855
|
+
proto.cms.GetFooterWidgetRequest.prototype.setAdminSide = function(value) {
|
|
5856
|
+
return jspb.Message.setField(this, 2, value);
|
|
5857
|
+
};
|
|
5858
|
+
|
|
5859
|
+
|
|
5860
|
+
/**
|
|
5861
|
+
* Clears the field making it undefined.
|
|
5862
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5863
|
+
*/
|
|
5864
|
+
proto.cms.GetFooterWidgetRequest.prototype.clearAdminSide = function() {
|
|
5865
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5866
|
+
};
|
|
5867
|
+
|
|
5868
|
+
|
|
5869
|
+
/**
|
|
5870
|
+
* Returns whether this field is set.
|
|
5871
|
+
* @return {boolean}
|
|
5872
|
+
*/
|
|
5873
|
+
proto.cms.GetFooterWidgetRequest.prototype.hasAdminSide = function() {
|
|
5874
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5875
|
+
};
|
|
5876
|
+
|
|
5877
|
+
|
|
5878
|
+
|
|
5879
|
+
|
|
5880
|
+
|
|
5881
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5882
|
+
/**
|
|
5883
|
+
* Creates an object representation of this proto.
|
|
5884
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5885
|
+
* Optional fields that are not set will be set to undefined.
|
|
5886
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5887
|
+
* For the list of reserved names please see:
|
|
5888
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5889
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5890
|
+
* JSPB instance for transitional soy proto support:
|
|
5891
|
+
* http://goto/soy-param-migration
|
|
5892
|
+
* @return {!Object}
|
|
5893
|
+
*/
|
|
5894
|
+
proto.cms.FooterWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
5895
|
+
return proto.cms.FooterWidgetItem.toObject(opt_includeInstance, this);
|
|
5896
|
+
};
|
|
5897
|
+
|
|
5898
|
+
|
|
5899
|
+
/**
|
|
5900
|
+
* Static version of the {@see toObject} method.
|
|
5901
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5902
|
+
* the JSPB instance for transitional soy proto support:
|
|
5903
|
+
* http://goto/soy-param-migration
|
|
5904
|
+
* @param {!proto.cms.FooterWidgetItem} msg The msg instance to transform.
|
|
5905
|
+
* @return {!Object}
|
|
5906
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5907
|
+
*/
|
|
5908
|
+
proto.cms.FooterWidgetItem.toObject = function(includeInstance, msg) {
|
|
5909
|
+
var f, obj = {
|
|
5910
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5911
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5912
|
+
};
|
|
5913
|
+
|
|
5914
|
+
if (includeInstance) {
|
|
5915
|
+
obj.$jspbMessageInstance = msg;
|
|
5916
|
+
}
|
|
5917
|
+
return obj;
|
|
5918
|
+
};
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
|
|
5922
|
+
/**
|
|
5923
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5924
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5925
|
+
* @return {!proto.cms.FooterWidgetItem}
|
|
5926
|
+
*/
|
|
5927
|
+
proto.cms.FooterWidgetItem.deserializeBinary = function(bytes) {
|
|
5928
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5929
|
+
var msg = new proto.cms.FooterWidgetItem;
|
|
5930
|
+
return proto.cms.FooterWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
5931
|
+
};
|
|
5932
|
+
|
|
5933
|
+
|
|
5934
|
+
/**
|
|
5935
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5936
|
+
* given reader into the given message object.
|
|
5937
|
+
* @param {!proto.cms.FooterWidgetItem} msg The message object to deserialize into.
|
|
5938
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5939
|
+
* @return {!proto.cms.FooterWidgetItem}
|
|
5940
|
+
*/
|
|
5941
|
+
proto.cms.FooterWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
5942
|
+
while (reader.nextField()) {
|
|
5943
|
+
if (reader.isEndGroup()) {
|
|
5944
|
+
break;
|
|
5945
|
+
}
|
|
5946
|
+
var field = reader.getFieldNumber();
|
|
5947
|
+
switch (field) {
|
|
5948
|
+
case 1:
|
|
5949
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5950
|
+
msg.setGeo(value);
|
|
5951
|
+
break;
|
|
5952
|
+
case 2:
|
|
5953
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5954
|
+
msg.setContent(value);
|
|
5955
|
+
break;
|
|
5956
|
+
default:
|
|
5957
|
+
reader.skipField();
|
|
5958
|
+
break;
|
|
5959
|
+
}
|
|
5960
|
+
}
|
|
5961
|
+
return msg;
|
|
5962
|
+
};
|
|
5963
|
+
|
|
5964
|
+
|
|
5965
|
+
/**
|
|
5966
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5967
|
+
* @return {!Uint8Array}
|
|
5968
|
+
*/
|
|
5969
|
+
proto.cms.FooterWidgetItem.prototype.serializeBinary = function() {
|
|
5970
|
+
var writer = new jspb.BinaryWriter();
|
|
5971
|
+
proto.cms.FooterWidgetItem.serializeBinaryToWriter(this, writer);
|
|
5972
|
+
return writer.getResultBuffer();
|
|
5973
|
+
};
|
|
5974
|
+
|
|
5975
|
+
|
|
5976
|
+
/**
|
|
5977
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5978
|
+
* format), writing to the given BinaryWriter.
|
|
5979
|
+
* @param {!proto.cms.FooterWidgetItem} message
|
|
5980
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5981
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5982
|
+
*/
|
|
5983
|
+
proto.cms.FooterWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
5984
|
+
var f = undefined;
|
|
5985
|
+
f = message.getGeo();
|
|
5986
|
+
if (f.length > 0) {
|
|
5987
|
+
writer.writeString(
|
|
5988
|
+
1,
|
|
5989
|
+
f
|
|
5990
|
+
);
|
|
5991
|
+
}
|
|
5992
|
+
f = message.getContent();
|
|
5993
|
+
if (f.length > 0) {
|
|
5994
|
+
writer.writeString(
|
|
5995
|
+
2,
|
|
5996
|
+
f
|
|
5997
|
+
);
|
|
5998
|
+
}
|
|
5999
|
+
};
|
|
6000
|
+
|
|
6001
|
+
|
|
6002
|
+
/**
|
|
6003
|
+
* optional string geo = 1;
|
|
6004
|
+
* @return {string}
|
|
6005
|
+
*/
|
|
6006
|
+
proto.cms.FooterWidgetItem.prototype.getGeo = function() {
|
|
6007
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6008
|
+
};
|
|
6009
|
+
|
|
6010
|
+
|
|
6011
|
+
/**
|
|
6012
|
+
* @param {string} value
|
|
6013
|
+
* @return {!proto.cms.FooterWidgetItem} returns this
|
|
6014
|
+
*/
|
|
6015
|
+
proto.cms.FooterWidgetItem.prototype.setGeo = function(value) {
|
|
6016
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6017
|
+
};
|
|
6018
|
+
|
|
6019
|
+
|
|
6020
|
+
/**
|
|
6021
|
+
* optional string content = 2;
|
|
6022
|
+
* @return {string}
|
|
6023
|
+
*/
|
|
6024
|
+
proto.cms.FooterWidgetItem.prototype.getContent = function() {
|
|
6025
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6026
|
+
};
|
|
6027
|
+
|
|
6028
|
+
|
|
6029
|
+
/**
|
|
6030
|
+
* @param {string} value
|
|
6031
|
+
* @return {!proto.cms.FooterWidgetItem} returns this
|
|
6032
|
+
*/
|
|
6033
|
+
proto.cms.FooterWidgetItem.prototype.setContent = function(value) {
|
|
6034
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6035
|
+
};
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
|
|
5639
6039
|
/**
|
|
5640
6040
|
* Oneof group definitions for this message. Each group defines the field
|
|
5641
6041
|
* numbers belonging to that group. When of these fields' value is set, all
|