protobuf-platform 1.2.114 → 1.2.116
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 +21 -0
- package/cms/cms_grpc_pb.js +66 -0
- package/cms/cms_pb.js +890 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -15,6 +15,9 @@ 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);
|
|
20
|
+
rpc getFooterBlocks(GetFooterWidgetRequest) returns (FooterBlocks);
|
|
18
21
|
//Banners
|
|
19
22
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
20
23
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -157,6 +160,24 @@ message HeaderWidgetItem {
|
|
|
157
160
|
string geo = 1;
|
|
158
161
|
string content = 2;
|
|
159
162
|
}
|
|
163
|
+
message GetFooterWidgetRequest {
|
|
164
|
+
optional string geo = 1;
|
|
165
|
+
optional bool admin_side = 2;
|
|
166
|
+
}
|
|
167
|
+
message FooterWidgetItem {
|
|
168
|
+
string geo = 1;
|
|
169
|
+
string content = 2;
|
|
170
|
+
}
|
|
171
|
+
message FooterBlockItem {
|
|
172
|
+
int32 id = 1;
|
|
173
|
+
string title = 2;
|
|
174
|
+
string type = 3;
|
|
175
|
+
optional string geo = 4;
|
|
176
|
+
optional int32 is_active = 5;
|
|
177
|
+
}
|
|
178
|
+
message FooterBlocks {
|
|
179
|
+
repeated FooterBlockItem items = 1;
|
|
180
|
+
}
|
|
160
181
|
//Banners CRUD
|
|
161
182
|
message BannerRequest {
|
|
162
183
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -169,6 +169,17 @@ function deserialize_cms_FooterApplicationsStatusResponse(buffer_arg) {
|
|
|
169
169
|
return cms_pb.FooterApplicationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
function serialize_cms_FooterBlocks(arg) {
|
|
173
|
+
if (!(arg instanceof cms_pb.FooterBlocks)) {
|
|
174
|
+
throw new Error('Expected argument of type cms.FooterBlocks');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_cms_FooterBlocks(buffer_arg) {
|
|
180
|
+
return cms_pb.FooterBlocks.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
172
183
|
function serialize_cms_FooterBrandCoreItemsResponse(arg) {
|
|
173
184
|
if (!(arg instanceof cms_pb.FooterBrandCoreItemsResponse)) {
|
|
174
185
|
throw new Error('Expected argument of type cms.FooterBrandCoreItemsResponse');
|
|
@@ -367,6 +378,17 @@ function deserialize_cms_FooterPaymentsStatusResponse(buffer_arg) {
|
|
|
367
378
|
return cms_pb.FooterPaymentsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
379
|
}
|
|
369
380
|
|
|
381
|
+
function serialize_cms_FooterWidgetItem(arg) {
|
|
382
|
+
if (!(arg instanceof cms_pb.FooterWidgetItem)) {
|
|
383
|
+
throw new Error('Expected argument of type cms.FooterWidgetItem');
|
|
384
|
+
}
|
|
385
|
+
return Buffer.from(arg.serializeBinary());
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
function deserialize_cms_FooterWidgetItem(buffer_arg) {
|
|
389
|
+
return cms_pb.FooterWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
390
|
+
}
|
|
391
|
+
|
|
370
392
|
function serialize_cms_GameWidgetRequest(arg) {
|
|
371
393
|
if (!(arg instanceof cms_pb.GameWidgetRequest)) {
|
|
372
394
|
throw new Error('Expected argument of type cms.GameWidgetRequest');
|
|
@@ -521,6 +543,17 @@ function deserialize_cms_GetFooterPaymentsRequest(buffer_arg) {
|
|
|
521
543
|
return cms_pb.GetFooterPaymentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
522
544
|
}
|
|
523
545
|
|
|
546
|
+
function serialize_cms_GetFooterWidgetRequest(arg) {
|
|
547
|
+
if (!(arg instanceof cms_pb.GetFooterWidgetRequest)) {
|
|
548
|
+
throw new Error('Expected argument of type cms.GetFooterWidgetRequest');
|
|
549
|
+
}
|
|
550
|
+
return Buffer.from(arg.serializeBinary());
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
function deserialize_cms_GetFooterWidgetRequest(buffer_arg) {
|
|
554
|
+
return cms_pb.GetFooterWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
555
|
+
}
|
|
556
|
+
|
|
524
557
|
function serialize_cms_GetGameWidgetRequest(arg) {
|
|
525
558
|
if (!(arg instanceof cms_pb.GetGameWidgetRequest)) {
|
|
526
559
|
throw new Error('Expected argument of type cms.GetGameWidgetRequest');
|
|
@@ -964,6 +997,39 @@ setMainPageWidget: {
|
|
|
964
997
|
responseSerialize: serialize_cms_HeaderWidgetItem,
|
|
965
998
|
responseDeserialize: deserialize_cms_HeaderWidgetItem,
|
|
966
999
|
},
|
|
1000
|
+
setFooterWidget: {
|
|
1001
|
+
path: '/cms.CMS/setFooterWidget',
|
|
1002
|
+
requestStream: false,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
1005
|
+
responseType: cms_pb.FooterWidgetItem,
|
|
1006
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
1007
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
1008
|
+
responseSerialize: serialize_cms_FooterWidgetItem,
|
|
1009
|
+
responseDeserialize: deserialize_cms_FooterWidgetItem,
|
|
1010
|
+
},
|
|
1011
|
+
getFooterWidget: {
|
|
1012
|
+
path: '/cms.CMS/getFooterWidget',
|
|
1013
|
+
requestStream: false,
|
|
1014
|
+
responseStream: false,
|
|
1015
|
+
requestType: cms_pb.GetFooterWidgetRequest,
|
|
1016
|
+
responseType: cms_pb.FooterWidgetItem,
|
|
1017
|
+
requestSerialize: serialize_cms_GetFooterWidgetRequest,
|
|
1018
|
+
requestDeserialize: deserialize_cms_GetFooterWidgetRequest,
|
|
1019
|
+
responseSerialize: serialize_cms_FooterWidgetItem,
|
|
1020
|
+
responseDeserialize: deserialize_cms_FooterWidgetItem,
|
|
1021
|
+
},
|
|
1022
|
+
getFooterBlocks: {
|
|
1023
|
+
path: '/cms.CMS/getFooterBlocks',
|
|
1024
|
+
requestStream: false,
|
|
1025
|
+
responseStream: false,
|
|
1026
|
+
requestType: cms_pb.GetFooterWidgetRequest,
|
|
1027
|
+
responseType: cms_pb.FooterBlocks,
|
|
1028
|
+
requestSerialize: serialize_cms_GetFooterWidgetRequest,
|
|
1029
|
+
requestDeserialize: deserialize_cms_GetFooterWidgetRequest,
|
|
1030
|
+
responseSerialize: serialize_cms_FooterBlocks,
|
|
1031
|
+
responseDeserialize: deserialize_cms_FooterBlocks,
|
|
1032
|
+
},
|
|
967
1033
|
// Banners
|
|
968
1034
|
createSingleBanner: {
|
|
969
1035
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -47,6 +47,8 @@ goog.exportSymbol('proto.cms.FooterApplicationsRequest', null, global);
|
|
|
47
47
|
goog.exportSymbol('proto.cms.FooterApplicationsRequest.PayloadCase', null, global);
|
|
48
48
|
goog.exportSymbol('proto.cms.FooterApplicationsResponse', null, global);
|
|
49
49
|
goog.exportSymbol('proto.cms.FooterApplicationsStatusResponse', null, global);
|
|
50
|
+
goog.exportSymbol('proto.cms.FooterBlockItem', null, global);
|
|
51
|
+
goog.exportSymbol('proto.cms.FooterBlocks', null, global);
|
|
50
52
|
goog.exportSymbol('proto.cms.FooterBrandCoreBrief', null, global);
|
|
51
53
|
goog.exportSymbol('proto.cms.FooterBrandCoreFile', null, global);
|
|
52
54
|
goog.exportSymbol('proto.cms.FooterBrandCoreItem', null, global);
|
|
@@ -79,6 +81,7 @@ goog.exportSymbol('proto.cms.FooterPaymentsItemRequest', null, global);
|
|
|
79
81
|
goog.exportSymbol('proto.cms.FooterPaymentsItemsResponse', null, global);
|
|
80
82
|
goog.exportSymbol('proto.cms.FooterPaymentsResponse', null, global);
|
|
81
83
|
goog.exportSymbol('proto.cms.FooterPaymentsStatusResponse', null, global);
|
|
84
|
+
goog.exportSymbol('proto.cms.FooterWidgetItem', null, global);
|
|
82
85
|
goog.exportSymbol('proto.cms.GameWidgetItem', null, global);
|
|
83
86
|
goog.exportSymbol('proto.cms.GameWidgetItemRequest', null, global);
|
|
84
87
|
goog.exportSymbol('proto.cms.GameWidgetRequest', null, global);
|
|
@@ -96,6 +99,7 @@ goog.exportSymbol('proto.cms.GetFooterMainTextRequest', null, global);
|
|
|
96
99
|
goog.exportSymbol('proto.cms.GetFooterMainTextTranslationRequest', null, global);
|
|
97
100
|
goog.exportSymbol('proto.cms.GetFooterPartnersRequest', null, global);
|
|
98
101
|
goog.exportSymbol('proto.cms.GetFooterPaymentsRequest', null, global);
|
|
102
|
+
goog.exportSymbol('proto.cms.GetFooterWidgetRequest', null, global);
|
|
99
103
|
goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
|
|
100
104
|
goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
|
|
101
105
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
|
@@ -468,6 +472,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
468
472
|
*/
|
|
469
473
|
proto.cms.HeaderWidgetItem.displayName = 'proto.cms.HeaderWidgetItem';
|
|
470
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* Generated by JsPbCodeGenerator.
|
|
477
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
478
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
479
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
480
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
481
|
+
* valid.
|
|
482
|
+
* @extends {jspb.Message}
|
|
483
|
+
* @constructor
|
|
484
|
+
*/
|
|
485
|
+
proto.cms.GetFooterWidgetRequest = function(opt_data) {
|
|
486
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
487
|
+
};
|
|
488
|
+
goog.inherits(proto.cms.GetFooterWidgetRequest, jspb.Message);
|
|
489
|
+
if (goog.DEBUG && !COMPILED) {
|
|
490
|
+
/**
|
|
491
|
+
* @public
|
|
492
|
+
* @override
|
|
493
|
+
*/
|
|
494
|
+
proto.cms.GetFooterWidgetRequest.displayName = 'proto.cms.GetFooterWidgetRequest';
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Generated by JsPbCodeGenerator.
|
|
498
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
499
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
500
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
501
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
502
|
+
* valid.
|
|
503
|
+
* @extends {jspb.Message}
|
|
504
|
+
* @constructor
|
|
505
|
+
*/
|
|
506
|
+
proto.cms.FooterWidgetItem = function(opt_data) {
|
|
507
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
508
|
+
};
|
|
509
|
+
goog.inherits(proto.cms.FooterWidgetItem, jspb.Message);
|
|
510
|
+
if (goog.DEBUG && !COMPILED) {
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @override
|
|
514
|
+
*/
|
|
515
|
+
proto.cms.FooterWidgetItem.displayName = 'proto.cms.FooterWidgetItem';
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Generated by JsPbCodeGenerator.
|
|
519
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
520
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
521
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
522
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
523
|
+
* valid.
|
|
524
|
+
* @extends {jspb.Message}
|
|
525
|
+
* @constructor
|
|
526
|
+
*/
|
|
527
|
+
proto.cms.FooterBlockItem = function(opt_data) {
|
|
528
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
529
|
+
};
|
|
530
|
+
goog.inherits(proto.cms.FooterBlockItem, jspb.Message);
|
|
531
|
+
if (goog.DEBUG && !COMPILED) {
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
* @override
|
|
535
|
+
*/
|
|
536
|
+
proto.cms.FooterBlockItem.displayName = 'proto.cms.FooterBlockItem';
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Generated by JsPbCodeGenerator.
|
|
540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
544
|
+
* valid.
|
|
545
|
+
* @extends {jspb.Message}
|
|
546
|
+
* @constructor
|
|
547
|
+
*/
|
|
548
|
+
proto.cms.FooterBlocks = function(opt_data) {
|
|
549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.FooterBlocks.repeatedFields_, null);
|
|
550
|
+
};
|
|
551
|
+
goog.inherits(proto.cms.FooterBlocks, jspb.Message);
|
|
552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* @override
|
|
556
|
+
*/
|
|
557
|
+
proto.cms.FooterBlocks.displayName = 'proto.cms.FooterBlocks';
|
|
558
|
+
}
|
|
471
559
|
/**
|
|
472
560
|
* Generated by JsPbCodeGenerator.
|
|
473
561
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5636,6 +5724,808 @@ proto.cms.HeaderWidgetItem.prototype.setContent = function(value) {
|
|
|
5636
5724
|
|
|
5637
5725
|
|
|
5638
5726
|
|
|
5727
|
+
|
|
5728
|
+
|
|
5729
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5730
|
+
/**
|
|
5731
|
+
* Creates an object representation of this proto.
|
|
5732
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5733
|
+
* Optional fields that are not set will be set to undefined.
|
|
5734
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5735
|
+
* For the list of reserved names please see:
|
|
5736
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5737
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5738
|
+
* JSPB instance for transitional soy proto support:
|
|
5739
|
+
* http://goto/soy-param-migration
|
|
5740
|
+
* @return {!Object}
|
|
5741
|
+
*/
|
|
5742
|
+
proto.cms.GetFooterWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5743
|
+
return proto.cms.GetFooterWidgetRequest.toObject(opt_includeInstance, this);
|
|
5744
|
+
};
|
|
5745
|
+
|
|
5746
|
+
|
|
5747
|
+
/**
|
|
5748
|
+
* Static version of the {@see toObject} method.
|
|
5749
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5750
|
+
* the JSPB instance for transitional soy proto support:
|
|
5751
|
+
* http://goto/soy-param-migration
|
|
5752
|
+
* @param {!proto.cms.GetFooterWidgetRequest} msg The msg instance to transform.
|
|
5753
|
+
* @return {!Object}
|
|
5754
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5755
|
+
*/
|
|
5756
|
+
proto.cms.GetFooterWidgetRequest.toObject = function(includeInstance, msg) {
|
|
5757
|
+
var f, obj = {
|
|
5758
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5759
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
if (includeInstance) {
|
|
5763
|
+
obj.$jspbMessageInstance = msg;
|
|
5764
|
+
}
|
|
5765
|
+
return obj;
|
|
5766
|
+
};
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
|
|
5770
|
+
/**
|
|
5771
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5772
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5773
|
+
* @return {!proto.cms.GetFooterWidgetRequest}
|
|
5774
|
+
*/
|
|
5775
|
+
proto.cms.GetFooterWidgetRequest.deserializeBinary = function(bytes) {
|
|
5776
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5777
|
+
var msg = new proto.cms.GetFooterWidgetRequest;
|
|
5778
|
+
return proto.cms.GetFooterWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
5779
|
+
};
|
|
5780
|
+
|
|
5781
|
+
|
|
5782
|
+
/**
|
|
5783
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5784
|
+
* given reader into the given message object.
|
|
5785
|
+
* @param {!proto.cms.GetFooterWidgetRequest} msg The message object to deserialize into.
|
|
5786
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5787
|
+
* @return {!proto.cms.GetFooterWidgetRequest}
|
|
5788
|
+
*/
|
|
5789
|
+
proto.cms.GetFooterWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5790
|
+
while (reader.nextField()) {
|
|
5791
|
+
if (reader.isEndGroup()) {
|
|
5792
|
+
break;
|
|
5793
|
+
}
|
|
5794
|
+
var field = reader.getFieldNumber();
|
|
5795
|
+
switch (field) {
|
|
5796
|
+
case 1:
|
|
5797
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5798
|
+
msg.setGeo(value);
|
|
5799
|
+
break;
|
|
5800
|
+
case 2:
|
|
5801
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5802
|
+
msg.setAdminSide(value);
|
|
5803
|
+
break;
|
|
5804
|
+
default:
|
|
5805
|
+
reader.skipField();
|
|
5806
|
+
break;
|
|
5807
|
+
}
|
|
5808
|
+
}
|
|
5809
|
+
return msg;
|
|
5810
|
+
};
|
|
5811
|
+
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5815
|
+
* @return {!Uint8Array}
|
|
5816
|
+
*/
|
|
5817
|
+
proto.cms.GetFooterWidgetRequest.prototype.serializeBinary = function() {
|
|
5818
|
+
var writer = new jspb.BinaryWriter();
|
|
5819
|
+
proto.cms.GetFooterWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
5820
|
+
return writer.getResultBuffer();
|
|
5821
|
+
};
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5826
|
+
* format), writing to the given BinaryWriter.
|
|
5827
|
+
* @param {!proto.cms.GetFooterWidgetRequest} message
|
|
5828
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5829
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5830
|
+
*/
|
|
5831
|
+
proto.cms.GetFooterWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5832
|
+
var f = undefined;
|
|
5833
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
5834
|
+
if (f != null) {
|
|
5835
|
+
writer.writeString(
|
|
5836
|
+
1,
|
|
5837
|
+
f
|
|
5838
|
+
);
|
|
5839
|
+
}
|
|
5840
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
5841
|
+
if (f != null) {
|
|
5842
|
+
writer.writeBool(
|
|
5843
|
+
2,
|
|
5844
|
+
f
|
|
5845
|
+
);
|
|
5846
|
+
}
|
|
5847
|
+
};
|
|
5848
|
+
|
|
5849
|
+
|
|
5850
|
+
/**
|
|
5851
|
+
* optional string geo = 1;
|
|
5852
|
+
* @return {string}
|
|
5853
|
+
*/
|
|
5854
|
+
proto.cms.GetFooterWidgetRequest.prototype.getGeo = function() {
|
|
5855
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5856
|
+
};
|
|
5857
|
+
|
|
5858
|
+
|
|
5859
|
+
/**
|
|
5860
|
+
* @param {string} value
|
|
5861
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5862
|
+
*/
|
|
5863
|
+
proto.cms.GetFooterWidgetRequest.prototype.setGeo = function(value) {
|
|
5864
|
+
return jspb.Message.setField(this, 1, value);
|
|
5865
|
+
};
|
|
5866
|
+
|
|
5867
|
+
|
|
5868
|
+
/**
|
|
5869
|
+
* Clears the field making it undefined.
|
|
5870
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5871
|
+
*/
|
|
5872
|
+
proto.cms.GetFooterWidgetRequest.prototype.clearGeo = function() {
|
|
5873
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
5874
|
+
};
|
|
5875
|
+
|
|
5876
|
+
|
|
5877
|
+
/**
|
|
5878
|
+
* Returns whether this field is set.
|
|
5879
|
+
* @return {boolean}
|
|
5880
|
+
*/
|
|
5881
|
+
proto.cms.GetFooterWidgetRequest.prototype.hasGeo = function() {
|
|
5882
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
|
|
5886
|
+
/**
|
|
5887
|
+
* optional bool admin_side = 2;
|
|
5888
|
+
* @return {boolean}
|
|
5889
|
+
*/
|
|
5890
|
+
proto.cms.GetFooterWidgetRequest.prototype.getAdminSide = function() {
|
|
5891
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
5892
|
+
};
|
|
5893
|
+
|
|
5894
|
+
|
|
5895
|
+
/**
|
|
5896
|
+
* @param {boolean} value
|
|
5897
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5898
|
+
*/
|
|
5899
|
+
proto.cms.GetFooterWidgetRequest.prototype.setAdminSide = function(value) {
|
|
5900
|
+
return jspb.Message.setField(this, 2, value);
|
|
5901
|
+
};
|
|
5902
|
+
|
|
5903
|
+
|
|
5904
|
+
/**
|
|
5905
|
+
* Clears the field making it undefined.
|
|
5906
|
+
* @return {!proto.cms.GetFooterWidgetRequest} returns this
|
|
5907
|
+
*/
|
|
5908
|
+
proto.cms.GetFooterWidgetRequest.prototype.clearAdminSide = function() {
|
|
5909
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
5910
|
+
};
|
|
5911
|
+
|
|
5912
|
+
|
|
5913
|
+
/**
|
|
5914
|
+
* Returns whether this field is set.
|
|
5915
|
+
* @return {boolean}
|
|
5916
|
+
*/
|
|
5917
|
+
proto.cms.GetFooterWidgetRequest.prototype.hasAdminSide = function() {
|
|
5918
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5919
|
+
};
|
|
5920
|
+
|
|
5921
|
+
|
|
5922
|
+
|
|
5923
|
+
|
|
5924
|
+
|
|
5925
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5926
|
+
/**
|
|
5927
|
+
* Creates an object representation of this proto.
|
|
5928
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5929
|
+
* Optional fields that are not set will be set to undefined.
|
|
5930
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5931
|
+
* For the list of reserved names please see:
|
|
5932
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5933
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5934
|
+
* JSPB instance for transitional soy proto support:
|
|
5935
|
+
* http://goto/soy-param-migration
|
|
5936
|
+
* @return {!Object}
|
|
5937
|
+
*/
|
|
5938
|
+
proto.cms.FooterWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
5939
|
+
return proto.cms.FooterWidgetItem.toObject(opt_includeInstance, this);
|
|
5940
|
+
};
|
|
5941
|
+
|
|
5942
|
+
|
|
5943
|
+
/**
|
|
5944
|
+
* Static version of the {@see toObject} method.
|
|
5945
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5946
|
+
* the JSPB instance for transitional soy proto support:
|
|
5947
|
+
* http://goto/soy-param-migration
|
|
5948
|
+
* @param {!proto.cms.FooterWidgetItem} msg The msg instance to transform.
|
|
5949
|
+
* @return {!Object}
|
|
5950
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5951
|
+
*/
|
|
5952
|
+
proto.cms.FooterWidgetItem.toObject = function(includeInstance, msg) {
|
|
5953
|
+
var f, obj = {
|
|
5954
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5955
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5956
|
+
};
|
|
5957
|
+
|
|
5958
|
+
if (includeInstance) {
|
|
5959
|
+
obj.$jspbMessageInstance = msg;
|
|
5960
|
+
}
|
|
5961
|
+
return obj;
|
|
5962
|
+
};
|
|
5963
|
+
}
|
|
5964
|
+
|
|
5965
|
+
|
|
5966
|
+
/**
|
|
5967
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5968
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5969
|
+
* @return {!proto.cms.FooterWidgetItem}
|
|
5970
|
+
*/
|
|
5971
|
+
proto.cms.FooterWidgetItem.deserializeBinary = function(bytes) {
|
|
5972
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5973
|
+
var msg = new proto.cms.FooterWidgetItem;
|
|
5974
|
+
return proto.cms.FooterWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
5975
|
+
};
|
|
5976
|
+
|
|
5977
|
+
|
|
5978
|
+
/**
|
|
5979
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5980
|
+
* given reader into the given message object.
|
|
5981
|
+
* @param {!proto.cms.FooterWidgetItem} msg The message object to deserialize into.
|
|
5982
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5983
|
+
* @return {!proto.cms.FooterWidgetItem}
|
|
5984
|
+
*/
|
|
5985
|
+
proto.cms.FooterWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
5986
|
+
while (reader.nextField()) {
|
|
5987
|
+
if (reader.isEndGroup()) {
|
|
5988
|
+
break;
|
|
5989
|
+
}
|
|
5990
|
+
var field = reader.getFieldNumber();
|
|
5991
|
+
switch (field) {
|
|
5992
|
+
case 1:
|
|
5993
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5994
|
+
msg.setGeo(value);
|
|
5995
|
+
break;
|
|
5996
|
+
case 2:
|
|
5997
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5998
|
+
msg.setContent(value);
|
|
5999
|
+
break;
|
|
6000
|
+
default:
|
|
6001
|
+
reader.skipField();
|
|
6002
|
+
break;
|
|
6003
|
+
}
|
|
6004
|
+
}
|
|
6005
|
+
return msg;
|
|
6006
|
+
};
|
|
6007
|
+
|
|
6008
|
+
|
|
6009
|
+
/**
|
|
6010
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6011
|
+
* @return {!Uint8Array}
|
|
6012
|
+
*/
|
|
6013
|
+
proto.cms.FooterWidgetItem.prototype.serializeBinary = function() {
|
|
6014
|
+
var writer = new jspb.BinaryWriter();
|
|
6015
|
+
proto.cms.FooterWidgetItem.serializeBinaryToWriter(this, writer);
|
|
6016
|
+
return writer.getResultBuffer();
|
|
6017
|
+
};
|
|
6018
|
+
|
|
6019
|
+
|
|
6020
|
+
/**
|
|
6021
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6022
|
+
* format), writing to the given BinaryWriter.
|
|
6023
|
+
* @param {!proto.cms.FooterWidgetItem} message
|
|
6024
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6025
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6026
|
+
*/
|
|
6027
|
+
proto.cms.FooterWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
6028
|
+
var f = undefined;
|
|
6029
|
+
f = message.getGeo();
|
|
6030
|
+
if (f.length > 0) {
|
|
6031
|
+
writer.writeString(
|
|
6032
|
+
1,
|
|
6033
|
+
f
|
|
6034
|
+
);
|
|
6035
|
+
}
|
|
6036
|
+
f = message.getContent();
|
|
6037
|
+
if (f.length > 0) {
|
|
6038
|
+
writer.writeString(
|
|
6039
|
+
2,
|
|
6040
|
+
f
|
|
6041
|
+
);
|
|
6042
|
+
}
|
|
6043
|
+
};
|
|
6044
|
+
|
|
6045
|
+
|
|
6046
|
+
/**
|
|
6047
|
+
* optional string geo = 1;
|
|
6048
|
+
* @return {string}
|
|
6049
|
+
*/
|
|
6050
|
+
proto.cms.FooterWidgetItem.prototype.getGeo = function() {
|
|
6051
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6052
|
+
};
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
/**
|
|
6056
|
+
* @param {string} value
|
|
6057
|
+
* @return {!proto.cms.FooterWidgetItem} returns this
|
|
6058
|
+
*/
|
|
6059
|
+
proto.cms.FooterWidgetItem.prototype.setGeo = function(value) {
|
|
6060
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6061
|
+
};
|
|
6062
|
+
|
|
6063
|
+
|
|
6064
|
+
/**
|
|
6065
|
+
* optional string content = 2;
|
|
6066
|
+
* @return {string}
|
|
6067
|
+
*/
|
|
6068
|
+
proto.cms.FooterWidgetItem.prototype.getContent = function() {
|
|
6069
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6070
|
+
};
|
|
6071
|
+
|
|
6072
|
+
|
|
6073
|
+
/**
|
|
6074
|
+
* @param {string} value
|
|
6075
|
+
* @return {!proto.cms.FooterWidgetItem} returns this
|
|
6076
|
+
*/
|
|
6077
|
+
proto.cms.FooterWidgetItem.prototype.setContent = function(value) {
|
|
6078
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6079
|
+
};
|
|
6080
|
+
|
|
6081
|
+
|
|
6082
|
+
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6086
|
+
/**
|
|
6087
|
+
* Creates an object representation of this proto.
|
|
6088
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6089
|
+
* Optional fields that are not set will be set to undefined.
|
|
6090
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6091
|
+
* For the list of reserved names please see:
|
|
6092
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6093
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6094
|
+
* JSPB instance for transitional soy proto support:
|
|
6095
|
+
* http://goto/soy-param-migration
|
|
6096
|
+
* @return {!Object}
|
|
6097
|
+
*/
|
|
6098
|
+
proto.cms.FooterBlockItem.prototype.toObject = function(opt_includeInstance) {
|
|
6099
|
+
return proto.cms.FooterBlockItem.toObject(opt_includeInstance, this);
|
|
6100
|
+
};
|
|
6101
|
+
|
|
6102
|
+
|
|
6103
|
+
/**
|
|
6104
|
+
* Static version of the {@see toObject} method.
|
|
6105
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6106
|
+
* the JSPB instance for transitional soy proto support:
|
|
6107
|
+
* http://goto/soy-param-migration
|
|
6108
|
+
* @param {!proto.cms.FooterBlockItem} msg The msg instance to transform.
|
|
6109
|
+
* @return {!Object}
|
|
6110
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6111
|
+
*/
|
|
6112
|
+
proto.cms.FooterBlockItem.toObject = function(includeInstance, msg) {
|
|
6113
|
+
var f, obj = {
|
|
6114
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6115
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6116
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6117
|
+
geo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6118
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
6119
|
+
};
|
|
6120
|
+
|
|
6121
|
+
if (includeInstance) {
|
|
6122
|
+
obj.$jspbMessageInstance = msg;
|
|
6123
|
+
}
|
|
6124
|
+
return obj;
|
|
6125
|
+
};
|
|
6126
|
+
}
|
|
6127
|
+
|
|
6128
|
+
|
|
6129
|
+
/**
|
|
6130
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6131
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6132
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6133
|
+
*/
|
|
6134
|
+
proto.cms.FooterBlockItem.deserializeBinary = function(bytes) {
|
|
6135
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6136
|
+
var msg = new proto.cms.FooterBlockItem;
|
|
6137
|
+
return proto.cms.FooterBlockItem.deserializeBinaryFromReader(msg, reader);
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
|
|
6141
|
+
/**
|
|
6142
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6143
|
+
* given reader into the given message object.
|
|
6144
|
+
* @param {!proto.cms.FooterBlockItem} msg The message object to deserialize into.
|
|
6145
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6146
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6147
|
+
*/
|
|
6148
|
+
proto.cms.FooterBlockItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
6149
|
+
while (reader.nextField()) {
|
|
6150
|
+
if (reader.isEndGroup()) {
|
|
6151
|
+
break;
|
|
6152
|
+
}
|
|
6153
|
+
var field = reader.getFieldNumber();
|
|
6154
|
+
switch (field) {
|
|
6155
|
+
case 1:
|
|
6156
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6157
|
+
msg.setId(value);
|
|
6158
|
+
break;
|
|
6159
|
+
case 2:
|
|
6160
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6161
|
+
msg.setTitle(value);
|
|
6162
|
+
break;
|
|
6163
|
+
case 3:
|
|
6164
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6165
|
+
msg.setType(value);
|
|
6166
|
+
break;
|
|
6167
|
+
case 4:
|
|
6168
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6169
|
+
msg.setGeo(value);
|
|
6170
|
+
break;
|
|
6171
|
+
case 5:
|
|
6172
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6173
|
+
msg.setIsActive(value);
|
|
6174
|
+
break;
|
|
6175
|
+
default:
|
|
6176
|
+
reader.skipField();
|
|
6177
|
+
break;
|
|
6178
|
+
}
|
|
6179
|
+
}
|
|
6180
|
+
return msg;
|
|
6181
|
+
};
|
|
6182
|
+
|
|
6183
|
+
|
|
6184
|
+
/**
|
|
6185
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6186
|
+
* @return {!Uint8Array}
|
|
6187
|
+
*/
|
|
6188
|
+
proto.cms.FooterBlockItem.prototype.serializeBinary = function() {
|
|
6189
|
+
var writer = new jspb.BinaryWriter();
|
|
6190
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter(this, writer);
|
|
6191
|
+
return writer.getResultBuffer();
|
|
6192
|
+
};
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
/**
|
|
6196
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6197
|
+
* format), writing to the given BinaryWriter.
|
|
6198
|
+
* @param {!proto.cms.FooterBlockItem} message
|
|
6199
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6201
|
+
*/
|
|
6202
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter = function(message, writer) {
|
|
6203
|
+
var f = undefined;
|
|
6204
|
+
f = message.getId();
|
|
6205
|
+
if (f !== 0) {
|
|
6206
|
+
writer.writeInt32(
|
|
6207
|
+
1,
|
|
6208
|
+
f
|
|
6209
|
+
);
|
|
6210
|
+
}
|
|
6211
|
+
f = message.getTitle();
|
|
6212
|
+
if (f.length > 0) {
|
|
6213
|
+
writer.writeString(
|
|
6214
|
+
2,
|
|
6215
|
+
f
|
|
6216
|
+
);
|
|
6217
|
+
}
|
|
6218
|
+
f = message.getType();
|
|
6219
|
+
if (f.length > 0) {
|
|
6220
|
+
writer.writeString(
|
|
6221
|
+
3,
|
|
6222
|
+
f
|
|
6223
|
+
);
|
|
6224
|
+
}
|
|
6225
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
6226
|
+
if (f != null) {
|
|
6227
|
+
writer.writeString(
|
|
6228
|
+
4,
|
|
6229
|
+
f
|
|
6230
|
+
);
|
|
6231
|
+
}
|
|
6232
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
6233
|
+
if (f != null) {
|
|
6234
|
+
writer.writeInt32(
|
|
6235
|
+
5,
|
|
6236
|
+
f
|
|
6237
|
+
);
|
|
6238
|
+
}
|
|
6239
|
+
};
|
|
6240
|
+
|
|
6241
|
+
|
|
6242
|
+
/**
|
|
6243
|
+
* optional int32 id = 1;
|
|
6244
|
+
* @return {number}
|
|
6245
|
+
*/
|
|
6246
|
+
proto.cms.FooterBlockItem.prototype.getId = function() {
|
|
6247
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6248
|
+
};
|
|
6249
|
+
|
|
6250
|
+
|
|
6251
|
+
/**
|
|
6252
|
+
* @param {number} value
|
|
6253
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6254
|
+
*/
|
|
6255
|
+
proto.cms.FooterBlockItem.prototype.setId = function(value) {
|
|
6256
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6257
|
+
};
|
|
6258
|
+
|
|
6259
|
+
|
|
6260
|
+
/**
|
|
6261
|
+
* optional string title = 2;
|
|
6262
|
+
* @return {string}
|
|
6263
|
+
*/
|
|
6264
|
+
proto.cms.FooterBlockItem.prototype.getTitle = function() {
|
|
6265
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6266
|
+
};
|
|
6267
|
+
|
|
6268
|
+
|
|
6269
|
+
/**
|
|
6270
|
+
* @param {string} value
|
|
6271
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6272
|
+
*/
|
|
6273
|
+
proto.cms.FooterBlockItem.prototype.setTitle = function(value) {
|
|
6274
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6275
|
+
};
|
|
6276
|
+
|
|
6277
|
+
|
|
6278
|
+
/**
|
|
6279
|
+
* optional string type = 3;
|
|
6280
|
+
* @return {string}
|
|
6281
|
+
*/
|
|
6282
|
+
proto.cms.FooterBlockItem.prototype.getType = function() {
|
|
6283
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6284
|
+
};
|
|
6285
|
+
|
|
6286
|
+
|
|
6287
|
+
/**
|
|
6288
|
+
* @param {string} value
|
|
6289
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6290
|
+
*/
|
|
6291
|
+
proto.cms.FooterBlockItem.prototype.setType = function(value) {
|
|
6292
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6293
|
+
};
|
|
6294
|
+
|
|
6295
|
+
|
|
6296
|
+
/**
|
|
6297
|
+
* optional string geo = 4;
|
|
6298
|
+
* @return {string}
|
|
6299
|
+
*/
|
|
6300
|
+
proto.cms.FooterBlockItem.prototype.getGeo = function() {
|
|
6301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6302
|
+
};
|
|
6303
|
+
|
|
6304
|
+
|
|
6305
|
+
/**
|
|
6306
|
+
* @param {string} value
|
|
6307
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6308
|
+
*/
|
|
6309
|
+
proto.cms.FooterBlockItem.prototype.setGeo = function(value) {
|
|
6310
|
+
return jspb.Message.setField(this, 4, value);
|
|
6311
|
+
};
|
|
6312
|
+
|
|
6313
|
+
|
|
6314
|
+
/**
|
|
6315
|
+
* Clears the field making it undefined.
|
|
6316
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6317
|
+
*/
|
|
6318
|
+
proto.cms.FooterBlockItem.prototype.clearGeo = function() {
|
|
6319
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
6320
|
+
};
|
|
6321
|
+
|
|
6322
|
+
|
|
6323
|
+
/**
|
|
6324
|
+
* Returns whether this field is set.
|
|
6325
|
+
* @return {boolean}
|
|
6326
|
+
*/
|
|
6327
|
+
proto.cms.FooterBlockItem.prototype.hasGeo = function() {
|
|
6328
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6329
|
+
};
|
|
6330
|
+
|
|
6331
|
+
|
|
6332
|
+
/**
|
|
6333
|
+
* optional int32 is_active = 5;
|
|
6334
|
+
* @return {number}
|
|
6335
|
+
*/
|
|
6336
|
+
proto.cms.FooterBlockItem.prototype.getIsActive = function() {
|
|
6337
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
6338
|
+
};
|
|
6339
|
+
|
|
6340
|
+
|
|
6341
|
+
/**
|
|
6342
|
+
* @param {number} value
|
|
6343
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6344
|
+
*/
|
|
6345
|
+
proto.cms.FooterBlockItem.prototype.setIsActive = function(value) {
|
|
6346
|
+
return jspb.Message.setField(this, 5, value);
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
/**
|
|
6351
|
+
* Clears the field making it undefined.
|
|
6352
|
+
* @return {!proto.cms.FooterBlockItem} returns this
|
|
6353
|
+
*/
|
|
6354
|
+
proto.cms.FooterBlockItem.prototype.clearIsActive = function() {
|
|
6355
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
6356
|
+
};
|
|
6357
|
+
|
|
6358
|
+
|
|
6359
|
+
/**
|
|
6360
|
+
* Returns whether this field is set.
|
|
6361
|
+
* @return {boolean}
|
|
6362
|
+
*/
|
|
6363
|
+
proto.cms.FooterBlockItem.prototype.hasIsActive = function() {
|
|
6364
|
+
return jspb.Message.getField(this, 5) != null;
|
|
6365
|
+
};
|
|
6366
|
+
|
|
6367
|
+
|
|
6368
|
+
|
|
6369
|
+
/**
|
|
6370
|
+
* List of repeated fields within this message type.
|
|
6371
|
+
* @private {!Array<number>}
|
|
6372
|
+
* @const
|
|
6373
|
+
*/
|
|
6374
|
+
proto.cms.FooterBlocks.repeatedFields_ = [1];
|
|
6375
|
+
|
|
6376
|
+
|
|
6377
|
+
|
|
6378
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6379
|
+
/**
|
|
6380
|
+
* Creates an object representation of this proto.
|
|
6381
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6382
|
+
* Optional fields that are not set will be set to undefined.
|
|
6383
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6384
|
+
* For the list of reserved names please see:
|
|
6385
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6386
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6387
|
+
* JSPB instance for transitional soy proto support:
|
|
6388
|
+
* http://goto/soy-param-migration
|
|
6389
|
+
* @return {!Object}
|
|
6390
|
+
*/
|
|
6391
|
+
proto.cms.FooterBlocks.prototype.toObject = function(opt_includeInstance) {
|
|
6392
|
+
return proto.cms.FooterBlocks.toObject(opt_includeInstance, this);
|
|
6393
|
+
};
|
|
6394
|
+
|
|
6395
|
+
|
|
6396
|
+
/**
|
|
6397
|
+
* Static version of the {@see toObject} method.
|
|
6398
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6399
|
+
* the JSPB instance for transitional soy proto support:
|
|
6400
|
+
* http://goto/soy-param-migration
|
|
6401
|
+
* @param {!proto.cms.FooterBlocks} msg The msg instance to transform.
|
|
6402
|
+
* @return {!Object}
|
|
6403
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6404
|
+
*/
|
|
6405
|
+
proto.cms.FooterBlocks.toObject = function(includeInstance, msg) {
|
|
6406
|
+
var f, obj = {
|
|
6407
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
6408
|
+
proto.cms.FooterBlockItem.toObject, includeInstance)
|
|
6409
|
+
};
|
|
6410
|
+
|
|
6411
|
+
if (includeInstance) {
|
|
6412
|
+
obj.$jspbMessageInstance = msg;
|
|
6413
|
+
}
|
|
6414
|
+
return obj;
|
|
6415
|
+
};
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
|
|
6419
|
+
/**
|
|
6420
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6421
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6422
|
+
* @return {!proto.cms.FooterBlocks}
|
|
6423
|
+
*/
|
|
6424
|
+
proto.cms.FooterBlocks.deserializeBinary = function(bytes) {
|
|
6425
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6426
|
+
var msg = new proto.cms.FooterBlocks;
|
|
6427
|
+
return proto.cms.FooterBlocks.deserializeBinaryFromReader(msg, reader);
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
|
|
6431
|
+
/**
|
|
6432
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6433
|
+
* given reader into the given message object.
|
|
6434
|
+
* @param {!proto.cms.FooterBlocks} msg The message object to deserialize into.
|
|
6435
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6436
|
+
* @return {!proto.cms.FooterBlocks}
|
|
6437
|
+
*/
|
|
6438
|
+
proto.cms.FooterBlocks.deserializeBinaryFromReader = function(msg, reader) {
|
|
6439
|
+
while (reader.nextField()) {
|
|
6440
|
+
if (reader.isEndGroup()) {
|
|
6441
|
+
break;
|
|
6442
|
+
}
|
|
6443
|
+
var field = reader.getFieldNumber();
|
|
6444
|
+
switch (field) {
|
|
6445
|
+
case 1:
|
|
6446
|
+
var value = new proto.cms.FooterBlockItem;
|
|
6447
|
+
reader.readMessage(value,proto.cms.FooterBlockItem.deserializeBinaryFromReader);
|
|
6448
|
+
msg.addItems(value);
|
|
6449
|
+
break;
|
|
6450
|
+
default:
|
|
6451
|
+
reader.skipField();
|
|
6452
|
+
break;
|
|
6453
|
+
}
|
|
6454
|
+
}
|
|
6455
|
+
return msg;
|
|
6456
|
+
};
|
|
6457
|
+
|
|
6458
|
+
|
|
6459
|
+
/**
|
|
6460
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6461
|
+
* @return {!Uint8Array}
|
|
6462
|
+
*/
|
|
6463
|
+
proto.cms.FooterBlocks.prototype.serializeBinary = function() {
|
|
6464
|
+
var writer = new jspb.BinaryWriter();
|
|
6465
|
+
proto.cms.FooterBlocks.serializeBinaryToWriter(this, writer);
|
|
6466
|
+
return writer.getResultBuffer();
|
|
6467
|
+
};
|
|
6468
|
+
|
|
6469
|
+
|
|
6470
|
+
/**
|
|
6471
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6472
|
+
* format), writing to the given BinaryWriter.
|
|
6473
|
+
* @param {!proto.cms.FooterBlocks} message
|
|
6474
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6475
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6476
|
+
*/
|
|
6477
|
+
proto.cms.FooterBlocks.serializeBinaryToWriter = function(message, writer) {
|
|
6478
|
+
var f = undefined;
|
|
6479
|
+
f = message.getItemsList();
|
|
6480
|
+
if (f.length > 0) {
|
|
6481
|
+
writer.writeRepeatedMessage(
|
|
6482
|
+
1,
|
|
6483
|
+
f,
|
|
6484
|
+
proto.cms.FooterBlockItem.serializeBinaryToWriter
|
|
6485
|
+
);
|
|
6486
|
+
}
|
|
6487
|
+
};
|
|
6488
|
+
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* repeated FooterBlockItem items = 1;
|
|
6492
|
+
* @return {!Array<!proto.cms.FooterBlockItem>}
|
|
6493
|
+
*/
|
|
6494
|
+
proto.cms.FooterBlocks.prototype.getItemsList = function() {
|
|
6495
|
+
return /** @type{!Array<!proto.cms.FooterBlockItem>} */ (
|
|
6496
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.FooterBlockItem, 1));
|
|
6497
|
+
};
|
|
6498
|
+
|
|
6499
|
+
|
|
6500
|
+
/**
|
|
6501
|
+
* @param {!Array<!proto.cms.FooterBlockItem>} value
|
|
6502
|
+
* @return {!proto.cms.FooterBlocks} returns this
|
|
6503
|
+
*/
|
|
6504
|
+
proto.cms.FooterBlocks.prototype.setItemsList = function(value) {
|
|
6505
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
6506
|
+
};
|
|
6507
|
+
|
|
6508
|
+
|
|
6509
|
+
/**
|
|
6510
|
+
* @param {!proto.cms.FooterBlockItem=} opt_value
|
|
6511
|
+
* @param {number=} opt_index
|
|
6512
|
+
* @return {!proto.cms.FooterBlockItem}
|
|
6513
|
+
*/
|
|
6514
|
+
proto.cms.FooterBlocks.prototype.addItems = function(opt_value, opt_index) {
|
|
6515
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.FooterBlockItem, opt_index);
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6518
|
+
|
|
6519
|
+
/**
|
|
6520
|
+
* Clears the list making it empty but non-null.
|
|
6521
|
+
* @return {!proto.cms.FooterBlocks} returns this
|
|
6522
|
+
*/
|
|
6523
|
+
proto.cms.FooterBlocks.prototype.clearItemsList = function() {
|
|
6524
|
+
return this.setItemsList([]);
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
|
|
6528
|
+
|
|
5639
6529
|
/**
|
|
5640
6530
|
* Oneof group definitions for this message. Each group defines the field
|
|
5641
6531
|
* numbers belonging to that group. When of these fields' value is set, all
|