protobuf-platform 1.0.193 → 1.0.195
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 +49 -15
- package/cms/cms_grpc_pb.js +100 -0
- package/cms/cms_pb.js +1761 -237
- package/package.json +1 -1
package/cms/cms_pb.js
CHANGED
@@ -21,6 +21,10 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.cms.BannerGroupItem', null, global);
|
25
|
+
goog.exportSymbol('proto.cms.BannerGroupItemsResponse', null, global);
|
26
|
+
goog.exportSymbol('proto.cms.BannerGroupRequest', null, global);
|
27
|
+
goog.exportSymbol('proto.cms.BannerGroupResponse', null, global);
|
24
28
|
goog.exportSymbol('proto.cms.BannerItem', null, global);
|
25
29
|
goog.exportSymbol('proto.cms.BannerItemRequest', null, global);
|
26
30
|
goog.exportSymbol('proto.cms.BannerItemsResponse', null, global);
|
@@ -28,9 +32,11 @@ goog.exportSymbol('proto.cms.BannerRequest', null, global);
|
|
28
32
|
goog.exportSymbol('proto.cms.BannerRequest.RequestCase', null, global);
|
29
33
|
goog.exportSymbol('proto.cms.BannerResponse', null, global);
|
30
34
|
goog.exportSymbol('proto.cms.BannerStatusResponse', null, global);
|
35
|
+
goog.exportSymbol('proto.cms.BannerTexts', null, global);
|
31
36
|
goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
|
32
37
|
goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
|
33
38
|
goog.exportSymbol('proto.cms.File', null, global);
|
39
|
+
goog.exportSymbol('proto.cms.GetBannerGroupRequest', null, global);
|
34
40
|
goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
|
35
41
|
goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
|
36
42
|
goog.exportSymbol('proto.cms.GetFileRequest', null, global);
|
@@ -303,7 +309,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
303
309
|
* @constructor
|
304
310
|
*/
|
305
311
|
proto.cms.BannerItemRequest = function(opt_data) {
|
306
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
312
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerItemRequest.repeatedFields_, null);
|
307
313
|
};
|
308
314
|
goog.inherits(proto.cms.BannerItemRequest, jspb.Message);
|
309
315
|
if (goog.DEBUG && !COMPILED) {
|
@@ -324,7 +330,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
324
330
|
* @constructor
|
325
331
|
*/
|
326
332
|
proto.cms.BannerItem = function(opt_data) {
|
327
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
333
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerItem.repeatedFields_, null);
|
328
334
|
};
|
329
335
|
goog.inherits(proto.cms.BannerItem, jspb.Message);
|
330
336
|
if (goog.DEBUG && !COMPILED) {
|
@@ -334,6 +340,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
334
340
|
*/
|
335
341
|
proto.cms.BannerItem.displayName = 'proto.cms.BannerItem';
|
336
342
|
}
|
343
|
+
/**
|
344
|
+
* Generated by JsPbCodeGenerator.
|
345
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
346
|
+
* server response, or constructed directly in Javascript. The array is used
|
347
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
348
|
+
* If no data is provided, the constructed object will be empty, but still
|
349
|
+
* valid.
|
350
|
+
* @extends {jspb.Message}
|
351
|
+
* @constructor
|
352
|
+
*/
|
353
|
+
proto.cms.BannerTexts = function(opt_data) {
|
354
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
355
|
+
};
|
356
|
+
goog.inherits(proto.cms.BannerTexts, jspb.Message);
|
357
|
+
if (goog.DEBUG && !COMPILED) {
|
358
|
+
/**
|
359
|
+
* @public
|
360
|
+
* @override
|
361
|
+
*/
|
362
|
+
proto.cms.BannerTexts.displayName = 'proto.cms.BannerTexts';
|
363
|
+
}
|
337
364
|
/**
|
338
365
|
* Generated by JsPbCodeGenerator.
|
339
366
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -418,6 +445,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
418
445
|
*/
|
419
446
|
proto.cms.BannerItemsResponse.displayName = 'proto.cms.BannerItemsResponse';
|
420
447
|
}
|
448
|
+
/**
|
449
|
+
* Generated by JsPbCodeGenerator.
|
450
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
451
|
+
* server response, or constructed directly in Javascript. The array is used
|
452
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
453
|
+
* If no data is provided, the constructed object will be empty, but still
|
454
|
+
* valid.
|
455
|
+
* @extends {jspb.Message}
|
456
|
+
* @constructor
|
457
|
+
*/
|
458
|
+
proto.cms.BannerGroupRequest = function(opt_data) {
|
459
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupRequest.repeatedFields_, null);
|
460
|
+
};
|
461
|
+
goog.inherits(proto.cms.BannerGroupRequest, jspb.Message);
|
462
|
+
if (goog.DEBUG && !COMPILED) {
|
463
|
+
/**
|
464
|
+
* @public
|
465
|
+
* @override
|
466
|
+
*/
|
467
|
+
proto.cms.BannerGroupRequest.displayName = 'proto.cms.BannerGroupRequest';
|
468
|
+
}
|
469
|
+
/**
|
470
|
+
* Generated by JsPbCodeGenerator.
|
471
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
472
|
+
* server response, or constructed directly in Javascript. The array is used
|
473
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
474
|
+
* If no data is provided, the constructed object will be empty, but still
|
475
|
+
* valid.
|
476
|
+
* @extends {jspb.Message}
|
477
|
+
* @constructor
|
478
|
+
*/
|
479
|
+
proto.cms.BannerGroupItem = function(opt_data) {
|
480
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupItem.repeatedFields_, null);
|
481
|
+
};
|
482
|
+
goog.inherits(proto.cms.BannerGroupItem, jspb.Message);
|
483
|
+
if (goog.DEBUG && !COMPILED) {
|
484
|
+
/**
|
485
|
+
* @public
|
486
|
+
* @override
|
487
|
+
*/
|
488
|
+
proto.cms.BannerGroupItem.displayName = 'proto.cms.BannerGroupItem';
|
489
|
+
}
|
490
|
+
/**
|
491
|
+
* Generated by JsPbCodeGenerator.
|
492
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
493
|
+
* server response, or constructed directly in Javascript. The array is used
|
494
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
495
|
+
* If no data is provided, the constructed object will be empty, but still
|
496
|
+
* valid.
|
497
|
+
* @extends {jspb.Message}
|
498
|
+
* @constructor
|
499
|
+
*/
|
500
|
+
proto.cms.GetBannerGroupRequest = function(opt_data) {
|
501
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
502
|
+
};
|
503
|
+
goog.inherits(proto.cms.GetBannerGroupRequest, jspb.Message);
|
504
|
+
if (goog.DEBUG && !COMPILED) {
|
505
|
+
/**
|
506
|
+
* @public
|
507
|
+
* @override
|
508
|
+
*/
|
509
|
+
proto.cms.GetBannerGroupRequest.displayName = 'proto.cms.GetBannerGroupRequest';
|
510
|
+
}
|
511
|
+
/**
|
512
|
+
* Generated by JsPbCodeGenerator.
|
513
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
514
|
+
* server response, or constructed directly in Javascript. The array is used
|
515
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
516
|
+
* If no data is provided, the constructed object will be empty, but still
|
517
|
+
* valid.
|
518
|
+
* @extends {jspb.Message}
|
519
|
+
* @constructor
|
520
|
+
*/
|
521
|
+
proto.cms.BannerGroupResponse = function(opt_data) {
|
522
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
523
|
+
};
|
524
|
+
goog.inherits(proto.cms.BannerGroupResponse, jspb.Message);
|
525
|
+
if (goog.DEBUG && !COMPILED) {
|
526
|
+
/**
|
527
|
+
* @public
|
528
|
+
* @override
|
529
|
+
*/
|
530
|
+
proto.cms.BannerGroupResponse.displayName = 'proto.cms.BannerGroupResponse';
|
531
|
+
}
|
532
|
+
/**
|
533
|
+
* Generated by JsPbCodeGenerator.
|
534
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
535
|
+
* server response, or constructed directly in Javascript. The array is used
|
536
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
537
|
+
* If no data is provided, the constructed object will be empty, but still
|
538
|
+
* valid.
|
539
|
+
* @extends {jspb.Message}
|
540
|
+
* @constructor
|
541
|
+
*/
|
542
|
+
proto.cms.BannerGroupItemsResponse = function(opt_data) {
|
543
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupItemsResponse.repeatedFields_, null);
|
544
|
+
};
|
545
|
+
goog.inherits(proto.cms.BannerGroupItemsResponse, jspb.Message);
|
546
|
+
if (goog.DEBUG && !COMPILED) {
|
547
|
+
/**
|
548
|
+
* @public
|
549
|
+
* @override
|
550
|
+
*/
|
551
|
+
proto.cms.BannerGroupItemsResponse.displayName = 'proto.cms.BannerGroupItemsResponse';
|
552
|
+
}
|
421
553
|
|
422
554
|
|
423
555
|
|
@@ -2735,6 +2867,13 @@ proto.cms.BannerRequest.prototype.hasImageSmall = function() {
|
|
2735
2867
|
|
2736
2868
|
|
2737
2869
|
|
2870
|
+
/**
|
2871
|
+
* List of repeated fields within this message type.
|
2872
|
+
* @private {!Array<number>}
|
2873
|
+
* @const
|
2874
|
+
*/
|
2875
|
+
proto.cms.BannerItemRequest.repeatedFields_ = [7];
|
2876
|
+
|
2738
2877
|
|
2739
2878
|
|
2740
2879
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -2767,13 +2906,13 @@ proto.cms.BannerItemRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2767
2906
|
proto.cms.BannerItemRequest.toObject = function(includeInstance, msg) {
|
2768
2907
|
var f, obj = {
|
2769
2908
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
|
2776
|
-
|
2909
|
+
bannerGroupId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2910
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2911
|
+
ctaType: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2912
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
2913
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
2914
|
+
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
2915
|
+
proto.cms.BannerTexts.toObject, includeInstance)
|
2777
2916
|
};
|
2778
2917
|
|
2779
2918
|
if (includeInstance) {
|
@@ -2815,32 +2954,29 @@ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2815
2954
|
msg.setId(value);
|
2816
2955
|
break;
|
2817
2956
|
case 2:
|
2818
|
-
var value = /** @type {
|
2819
|
-
msg.
|
2957
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2958
|
+
msg.setBannerGroupId(value);
|
2820
2959
|
break;
|
2821
2960
|
case 3:
|
2822
2961
|
var value = /** @type {string} */ (reader.readString());
|
2823
|
-
msg.
|
2962
|
+
msg.setGeo(value);
|
2824
2963
|
break;
|
2825
2964
|
case 4:
|
2826
2965
|
var value = /** @type {string} */ (reader.readString());
|
2827
|
-
msg.
|
2966
|
+
msg.setCtaType(value);
|
2828
2967
|
break;
|
2829
2968
|
case 5:
|
2830
2969
|
var value = /** @type {string} */ (reader.readString());
|
2831
|
-
msg.
|
2970
|
+
msg.setAnchor(value);
|
2832
2971
|
break;
|
2833
2972
|
case 6:
|
2834
|
-
var value = /** @type {string} */ (reader.readString());
|
2835
|
-
msg.setCtaText(value);
|
2836
|
-
break;
|
2837
|
-
case 7:
|
2838
2973
|
var value = /** @type {number} */ (reader.readInt32());
|
2839
2974
|
msg.setIsActive(value);
|
2840
2975
|
break;
|
2841
|
-
case
|
2842
|
-
var value =
|
2843
|
-
|
2976
|
+
case 7:
|
2977
|
+
var value = new proto.cms.BannerTexts;
|
2978
|
+
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
2979
|
+
msg.addTexts(value);
|
2844
2980
|
break;
|
2845
2981
|
default:
|
2846
2982
|
reader.skipField();
|
@@ -2878,9 +3014,9 @@ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
2878
3014
|
f
|
2879
3015
|
);
|
2880
3016
|
}
|
2881
|
-
f = /** @type {
|
3017
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2882
3018
|
if (f != null) {
|
2883
|
-
writer.
|
3019
|
+
writer.writeInt32(
|
2884
3020
|
2,
|
2885
3021
|
f
|
2886
3022
|
);
|
@@ -2906,25 +3042,19 @@ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
2906
3042
|
f
|
2907
3043
|
);
|
2908
3044
|
}
|
2909
|
-
f = /** @type {
|
3045
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
2910
3046
|
if (f != null) {
|
2911
|
-
writer.
|
3047
|
+
writer.writeInt32(
|
2912
3048
|
6,
|
2913
3049
|
f
|
2914
3050
|
);
|
2915
3051
|
}
|
2916
|
-
f =
|
2917
|
-
if (f
|
2918
|
-
writer.
|
3052
|
+
f = message.getTextsList();
|
3053
|
+
if (f.length > 0) {
|
3054
|
+
writer.writeRepeatedMessage(
|
2919
3055
|
7,
|
2920
|
-
f
|
2921
|
-
|
2922
|
-
}
|
2923
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
2924
|
-
if (f != null) {
|
2925
|
-
writer.writeString(
|
2926
|
-
8,
|
2927
|
-
f
|
3056
|
+
f,
|
3057
|
+
proto.cms.BannerTexts.serializeBinaryToWriter
|
2928
3058
|
);
|
2929
3059
|
}
|
2930
3060
|
};
|
@@ -2967,19 +3097,19 @@ proto.cms.BannerItemRequest.prototype.hasId = function() {
|
|
2967
3097
|
|
2968
3098
|
|
2969
3099
|
/**
|
2970
|
-
* optional
|
2971
|
-
* @return {
|
3100
|
+
* optional int32 banner_group_id = 2;
|
3101
|
+
* @return {number}
|
2972
3102
|
*/
|
2973
|
-
proto.cms.BannerItemRequest.prototype.
|
2974
|
-
return /** @type {
|
3103
|
+
proto.cms.BannerItemRequest.prototype.getBannerGroupId = function() {
|
3104
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2975
3105
|
};
|
2976
3106
|
|
2977
3107
|
|
2978
3108
|
/**
|
2979
|
-
* @param {
|
3109
|
+
* @param {number} value
|
2980
3110
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2981
3111
|
*/
|
2982
|
-
proto.cms.BannerItemRequest.prototype.
|
3112
|
+
proto.cms.BannerItemRequest.prototype.setBannerGroupId = function(value) {
|
2983
3113
|
return jspb.Message.setField(this, 2, value);
|
2984
3114
|
};
|
2985
3115
|
|
@@ -2988,7 +3118,7 @@ proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
|
2988
3118
|
* Clears the field making it undefined.
|
2989
3119
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2990
3120
|
*/
|
2991
|
-
proto.cms.BannerItemRequest.prototype.
|
3121
|
+
proto.cms.BannerItemRequest.prototype.clearBannerGroupId = function() {
|
2992
3122
|
return jspb.Message.setField(this, 2, undefined);
|
2993
3123
|
};
|
2994
3124
|
|
@@ -2997,16 +3127,16 @@ proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
|
2997
3127
|
* Returns whether this field is set.
|
2998
3128
|
* @return {boolean}
|
2999
3129
|
*/
|
3000
|
-
proto.cms.BannerItemRequest.prototype.
|
3130
|
+
proto.cms.BannerItemRequest.prototype.hasBannerGroupId = function() {
|
3001
3131
|
return jspb.Message.getField(this, 2) != null;
|
3002
3132
|
};
|
3003
3133
|
|
3004
3134
|
|
3005
3135
|
/**
|
3006
|
-
* optional string
|
3136
|
+
* optional string geo = 3;
|
3007
3137
|
* @return {string}
|
3008
3138
|
*/
|
3009
|
-
proto.cms.BannerItemRequest.prototype.
|
3139
|
+
proto.cms.BannerItemRequest.prototype.getGeo = function() {
|
3010
3140
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3011
3141
|
};
|
3012
3142
|
|
@@ -3015,7 +3145,7 @@ proto.cms.BannerItemRequest.prototype.getTitle = function() {
|
|
3015
3145
|
* @param {string} value
|
3016
3146
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3017
3147
|
*/
|
3018
|
-
proto.cms.BannerItemRequest.prototype.
|
3148
|
+
proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
3019
3149
|
return jspb.Message.setField(this, 3, value);
|
3020
3150
|
};
|
3021
3151
|
|
@@ -3024,7 +3154,7 @@ proto.cms.BannerItemRequest.prototype.setTitle = function(value) {
|
|
3024
3154
|
* Clears the field making it undefined.
|
3025
3155
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3026
3156
|
*/
|
3027
|
-
proto.cms.BannerItemRequest.prototype.
|
3157
|
+
proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
3028
3158
|
return jspb.Message.setField(this, 3, undefined);
|
3029
3159
|
};
|
3030
3160
|
|
@@ -3033,16 +3163,16 @@ proto.cms.BannerItemRequest.prototype.clearTitle = function() {
|
|
3033
3163
|
* Returns whether this field is set.
|
3034
3164
|
* @return {boolean}
|
3035
3165
|
*/
|
3036
|
-
proto.cms.BannerItemRequest.prototype.
|
3166
|
+
proto.cms.BannerItemRequest.prototype.hasGeo = function() {
|
3037
3167
|
return jspb.Message.getField(this, 3) != null;
|
3038
3168
|
};
|
3039
3169
|
|
3040
3170
|
|
3041
3171
|
/**
|
3042
|
-
* optional string
|
3172
|
+
* optional string cta_type = 4;
|
3043
3173
|
* @return {string}
|
3044
3174
|
*/
|
3045
|
-
proto.cms.BannerItemRequest.prototype.
|
3175
|
+
proto.cms.BannerItemRequest.prototype.getCtaType = function() {
|
3046
3176
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3047
3177
|
};
|
3048
3178
|
|
@@ -3051,7 +3181,7 @@ proto.cms.BannerItemRequest.prototype.getContent = function() {
|
|
3051
3181
|
* @param {string} value
|
3052
3182
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3053
3183
|
*/
|
3054
|
-
proto.cms.BannerItemRequest.prototype.
|
3184
|
+
proto.cms.BannerItemRequest.prototype.setCtaType = function(value) {
|
3055
3185
|
return jspb.Message.setField(this, 4, value);
|
3056
3186
|
};
|
3057
3187
|
|
@@ -3060,7 +3190,7 @@ proto.cms.BannerItemRequest.prototype.setContent = function(value) {
|
|
3060
3190
|
* Clears the field making it undefined.
|
3061
3191
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3062
3192
|
*/
|
3063
|
-
proto.cms.BannerItemRequest.prototype.
|
3193
|
+
proto.cms.BannerItemRequest.prototype.clearCtaType = function() {
|
3064
3194
|
return jspb.Message.setField(this, 4, undefined);
|
3065
3195
|
};
|
3066
3196
|
|
@@ -3069,16 +3199,16 @@ proto.cms.BannerItemRequest.prototype.clearContent = function() {
|
|
3069
3199
|
* Returns whether this field is set.
|
3070
3200
|
* @return {boolean}
|
3071
3201
|
*/
|
3072
|
-
proto.cms.BannerItemRequest.prototype.
|
3202
|
+
proto.cms.BannerItemRequest.prototype.hasCtaType = function() {
|
3073
3203
|
return jspb.Message.getField(this, 4) != null;
|
3074
3204
|
};
|
3075
3205
|
|
3076
3206
|
|
3077
3207
|
/**
|
3078
|
-
* optional string
|
3208
|
+
* optional string anchor = 5;
|
3079
3209
|
* @return {string}
|
3080
3210
|
*/
|
3081
|
-
proto.cms.BannerItemRequest.prototype.
|
3211
|
+
proto.cms.BannerItemRequest.prototype.getAnchor = function() {
|
3082
3212
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3083
3213
|
};
|
3084
3214
|
|
@@ -3087,7 +3217,7 @@ proto.cms.BannerItemRequest.prototype.getCtaType = function() {
|
|
3087
3217
|
* @param {string} value
|
3088
3218
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3089
3219
|
*/
|
3090
|
-
proto.cms.BannerItemRequest.prototype.
|
3220
|
+
proto.cms.BannerItemRequest.prototype.setAnchor = function(value) {
|
3091
3221
|
return jspb.Message.setField(this, 5, value);
|
3092
3222
|
};
|
3093
3223
|
|
@@ -3096,7 +3226,7 @@ proto.cms.BannerItemRequest.prototype.setCtaType = function(value) {
|
|
3096
3226
|
* Clears the field making it undefined.
|
3097
3227
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3098
3228
|
*/
|
3099
|
-
proto.cms.BannerItemRequest.prototype.
|
3229
|
+
proto.cms.BannerItemRequest.prototype.clearAnchor = function() {
|
3100
3230
|
return jspb.Message.setField(this, 5, undefined);
|
3101
3231
|
};
|
3102
3232
|
|
@@ -3105,25 +3235,25 @@ proto.cms.BannerItemRequest.prototype.clearCtaType = function() {
|
|
3105
3235
|
* Returns whether this field is set.
|
3106
3236
|
* @return {boolean}
|
3107
3237
|
*/
|
3108
|
-
proto.cms.BannerItemRequest.prototype.
|
3238
|
+
proto.cms.BannerItemRequest.prototype.hasAnchor = function() {
|
3109
3239
|
return jspb.Message.getField(this, 5) != null;
|
3110
3240
|
};
|
3111
3241
|
|
3112
3242
|
|
3113
3243
|
/**
|
3114
|
-
* optional
|
3115
|
-
* @return {
|
3244
|
+
* optional int32 is_active = 6;
|
3245
|
+
* @return {number}
|
3116
3246
|
*/
|
3117
|
-
proto.cms.BannerItemRequest.prototype.
|
3118
|
-
return /** @type {
|
3247
|
+
proto.cms.BannerItemRequest.prototype.getIsActive = function() {
|
3248
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
3119
3249
|
};
|
3120
3250
|
|
3121
3251
|
|
3122
3252
|
/**
|
3123
|
-
* @param {
|
3253
|
+
* @param {number} value
|
3124
3254
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3125
3255
|
*/
|
3126
|
-
proto.cms.BannerItemRequest.prototype.
|
3256
|
+
proto.cms.BannerItemRequest.prototype.setIsActive = function(value) {
|
3127
3257
|
return jspb.Message.setField(this, 6, value);
|
3128
3258
|
};
|
3129
3259
|
|
@@ -3132,7 +3262,7 @@ proto.cms.BannerItemRequest.prototype.setCtaText = function(value) {
|
|
3132
3262
|
* Clears the field making it undefined.
|
3133
3263
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3134
3264
|
*/
|
3135
|
-
proto.cms.BannerItemRequest.prototype.
|
3265
|
+
proto.cms.BannerItemRequest.prototype.clearIsActive = function() {
|
3136
3266
|
return jspb.Message.setField(this, 6, undefined);
|
3137
3267
|
};
|
3138
3268
|
|
@@ -3141,83 +3271,56 @@ proto.cms.BannerItemRequest.prototype.clearCtaText = function() {
|
|
3141
3271
|
* Returns whether this field is set.
|
3142
3272
|
* @return {boolean}
|
3143
3273
|
*/
|
3144
|
-
proto.cms.BannerItemRequest.prototype.
|
3274
|
+
proto.cms.BannerItemRequest.prototype.hasIsActive = function() {
|
3145
3275
|
return jspb.Message.getField(this, 6) != null;
|
3146
3276
|
};
|
3147
3277
|
|
3148
3278
|
|
3149
3279
|
/**
|
3150
|
-
*
|
3151
|
-
* @return {
|
3152
|
-
*/
|
3153
|
-
proto.cms.BannerItemRequest.prototype.getIsActive = function() {
|
3154
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
3155
|
-
};
|
3156
|
-
|
3157
|
-
|
3158
|
-
/**
|
3159
|
-
* @param {number} value
|
3160
|
-
* @return {!proto.cms.BannerItemRequest} returns this
|
3280
|
+
* repeated BannerTexts texts = 7;
|
3281
|
+
* @return {!Array<!proto.cms.BannerTexts>}
|
3161
3282
|
*/
|
3162
|
-
proto.cms.BannerItemRequest.prototype.
|
3163
|
-
return
|
3283
|
+
proto.cms.BannerItemRequest.prototype.getTextsList = function() {
|
3284
|
+
return /** @type{!Array<!proto.cms.BannerTexts>} */ (
|
3285
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 7));
|
3164
3286
|
};
|
3165
3287
|
|
3166
3288
|
|
3167
3289
|
/**
|
3168
|
-
*
|
3290
|
+
* @param {!Array<!proto.cms.BannerTexts>} value
|
3169
3291
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3170
|
-
|
3171
|
-
proto.cms.BannerItemRequest.prototype.
|
3172
|
-
return jspb.Message.
|
3173
|
-
};
|
3174
|
-
|
3175
|
-
|
3176
|
-
/**
|
3177
|
-
* Returns whether this field is set.
|
3178
|
-
* @return {boolean}
|
3179
|
-
*/
|
3180
|
-
proto.cms.BannerItemRequest.prototype.hasIsActive = function() {
|
3181
|
-
return jspb.Message.getField(this, 7) != null;
|
3292
|
+
*/
|
3293
|
+
proto.cms.BannerItemRequest.prototype.setTextsList = function(value) {
|
3294
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
3182
3295
|
};
|
3183
3296
|
|
3184
3297
|
|
3185
3298
|
/**
|
3186
|
-
*
|
3187
|
-
* @
|
3299
|
+
* @param {!proto.cms.BannerTexts=} opt_value
|
3300
|
+
* @param {number=} opt_index
|
3301
|
+
* @return {!proto.cms.BannerTexts}
|
3188
3302
|
*/
|
3189
|
-
proto.cms.BannerItemRequest.prototype.
|
3190
|
-
return
|
3303
|
+
proto.cms.BannerItemRequest.prototype.addTexts = function(opt_value, opt_index) {
|
3304
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cms.BannerTexts, opt_index);
|
3191
3305
|
};
|
3192
3306
|
|
3193
3307
|
|
3194
3308
|
/**
|
3195
|
-
*
|
3309
|
+
* Clears the list making it empty but non-null.
|
3196
3310
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3197
3311
|
*/
|
3198
|
-
proto.cms.BannerItemRequest.prototype.
|
3199
|
-
return
|
3312
|
+
proto.cms.BannerItemRequest.prototype.clearTextsList = function() {
|
3313
|
+
return this.setTextsList([]);
|
3200
3314
|
};
|
3201
3315
|
|
3202
3316
|
|
3203
|
-
/**
|
3204
|
-
* Clears the field making it undefined.
|
3205
|
-
* @return {!proto.cms.BannerItemRequest} returns this
|
3206
|
-
*/
|
3207
|
-
proto.cms.BannerItemRequest.prototype.clearAnchor = function() {
|
3208
|
-
return jspb.Message.setField(this, 8, undefined);
|
3209
|
-
};
|
3210
|
-
|
3211
3317
|
|
3212
3318
|
/**
|
3213
|
-
*
|
3214
|
-
* @
|
3319
|
+
* List of repeated fields within this message type.
|
3320
|
+
* @private {!Array<number>}
|
3321
|
+
* @const
|
3215
3322
|
*/
|
3216
|
-
proto.cms.
|
3217
|
-
return jspb.Message.getField(this, 8) != null;
|
3218
|
-
};
|
3219
|
-
|
3220
|
-
|
3323
|
+
proto.cms.BannerItem.repeatedFields_ = [7];
|
3221
3324
|
|
3222
3325
|
|
3223
3326
|
|
@@ -3252,14 +3355,12 @@ proto.cms.BannerItem.toObject = function(includeInstance, msg) {
|
|
3252
3355
|
var f, obj = {
|
3253
3356
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3254
3357
|
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
3260
|
-
|
3261
|
-
imageSmall: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
3262
|
-
anchor: jspb.Message.getFieldWithDefault(msg, 10, "")
|
3358
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3359
|
+
imageBig: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3360
|
+
imageSmall: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3361
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3362
|
+
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
3363
|
+
proto.cms.BannerTexts.toObject, includeInstance)
|
3263
3364
|
};
|
3264
3365
|
|
3265
3366
|
if (includeInstance) {
|
@@ -3305,37 +3406,26 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3305
3406
|
msg.setGeo(value);
|
3306
3407
|
break;
|
3307
3408
|
case 3:
|
3308
|
-
var value = /** @type {string} */ (reader.readString());
|
3309
|
-
msg.setTitle(value);
|
3310
|
-
break;
|
3311
|
-
case 4:
|
3312
|
-
var value = /** @type {string} */ (reader.readString());
|
3313
|
-
msg.setContent(value);
|
3314
|
-
break;
|
3315
|
-
case 5:
|
3316
|
-
var value = /** @type {string} */ (reader.readString());
|
3317
|
-
msg.setCtaType(value);
|
3318
|
-
break;
|
3319
|
-
case 6:
|
3320
|
-
var value = /** @type {string} */ (reader.readString());
|
3321
|
-
msg.setCtaText(value);
|
3322
|
-
break;
|
3323
|
-
case 7:
|
3324
3409
|
var value = /** @type {number} */ (reader.readInt32());
|
3325
3410
|
msg.setIsActive(value);
|
3326
3411
|
break;
|
3327
|
-
case
|
3412
|
+
case 4:
|
3328
3413
|
var value = /** @type {string} */ (reader.readString());
|
3329
3414
|
msg.setImageBig(value);
|
3330
3415
|
break;
|
3331
|
-
case
|
3416
|
+
case 5:
|
3332
3417
|
var value = /** @type {string} */ (reader.readString());
|
3333
3418
|
msg.setImageSmall(value);
|
3334
3419
|
break;
|
3335
|
-
case
|
3420
|
+
case 6:
|
3336
3421
|
var value = /** @type {string} */ (reader.readString());
|
3337
3422
|
msg.setAnchor(value);
|
3338
3423
|
break;
|
3424
|
+
case 7:
|
3425
|
+
var value = new proto.cms.BannerTexts;
|
3426
|
+
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
3427
|
+
msg.addTexts(value);
|
3428
|
+
break;
|
3339
3429
|
default:
|
3340
3430
|
reader.skipField();
|
3341
3431
|
break;
|
@@ -3379,9 +3469,9 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3379
3469
|
f
|
3380
3470
|
);
|
3381
3471
|
}
|
3382
|
-
f = /** @type {
|
3472
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3383
3473
|
if (f != null) {
|
3384
|
-
writer.
|
3474
|
+
writer.writeInt32(
|
3385
3475
|
3,
|
3386
3476
|
f
|
3387
3477
|
);
|
@@ -3407,32 +3497,12 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3407
3497
|
f
|
3408
3498
|
);
|
3409
3499
|
}
|
3410
|
-
f =
|
3411
|
-
if (f
|
3412
|
-
writer.
|
3500
|
+
f = message.getTextsList();
|
3501
|
+
if (f.length > 0) {
|
3502
|
+
writer.writeRepeatedMessage(
|
3413
3503
|
7,
|
3414
|
-
f
|
3415
|
-
|
3416
|
-
}
|
3417
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
3418
|
-
if (f != null) {
|
3419
|
-
writer.writeString(
|
3420
|
-
8,
|
3421
|
-
f
|
3422
|
-
);
|
3423
|
-
}
|
3424
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
3425
|
-
if (f != null) {
|
3426
|
-
writer.writeString(
|
3427
|
-
9,
|
3428
|
-
f
|
3429
|
-
);
|
3430
|
-
}
|
3431
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
3432
|
-
if (f != null) {
|
3433
|
-
writer.writeString(
|
3434
|
-
10,
|
3435
|
-
f
|
3504
|
+
f,
|
3505
|
+
proto.cms.BannerTexts.serializeBinaryToWriter
|
3436
3506
|
);
|
3437
3507
|
}
|
3438
3508
|
};
|
@@ -3511,19 +3581,19 @@ proto.cms.BannerItem.prototype.hasGeo = function() {
|
|
3511
3581
|
|
3512
3582
|
|
3513
3583
|
/**
|
3514
|
-
* optional
|
3515
|
-
* @return {
|
3584
|
+
* optional int32 is_active = 3;
|
3585
|
+
* @return {number}
|
3516
3586
|
*/
|
3517
|
-
proto.cms.BannerItem.prototype.
|
3518
|
-
return /** @type {
|
3587
|
+
proto.cms.BannerItem.prototype.getIsActive = function() {
|
3588
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3519
3589
|
};
|
3520
3590
|
|
3521
3591
|
|
3522
3592
|
/**
|
3523
|
-
* @param {
|
3593
|
+
* @param {number} value
|
3524
3594
|
* @return {!proto.cms.BannerItem} returns this
|
3525
3595
|
*/
|
3526
|
-
proto.cms.BannerItem.prototype.
|
3596
|
+
proto.cms.BannerItem.prototype.setIsActive = function(value) {
|
3527
3597
|
return jspb.Message.setField(this, 3, value);
|
3528
3598
|
};
|
3529
3599
|
|
@@ -3532,7 +3602,7 @@ proto.cms.BannerItem.prototype.setTitle = function(value) {
|
|
3532
3602
|
* Clears the field making it undefined.
|
3533
3603
|
* @return {!proto.cms.BannerItem} returns this
|
3534
3604
|
*/
|
3535
|
-
proto.cms.BannerItem.prototype.
|
3605
|
+
proto.cms.BannerItem.prototype.clearIsActive = function() {
|
3536
3606
|
return jspb.Message.setField(this, 3, undefined);
|
3537
3607
|
};
|
3538
3608
|
|
@@ -3541,16 +3611,16 @@ proto.cms.BannerItem.prototype.clearTitle = function() {
|
|
3541
3611
|
* Returns whether this field is set.
|
3542
3612
|
* @return {boolean}
|
3543
3613
|
*/
|
3544
|
-
proto.cms.BannerItem.prototype.
|
3614
|
+
proto.cms.BannerItem.prototype.hasIsActive = function() {
|
3545
3615
|
return jspb.Message.getField(this, 3) != null;
|
3546
3616
|
};
|
3547
3617
|
|
3548
3618
|
|
3549
3619
|
/**
|
3550
|
-
* optional string
|
3620
|
+
* optional string image_big = 4;
|
3551
3621
|
* @return {string}
|
3552
3622
|
*/
|
3553
|
-
proto.cms.BannerItem.prototype.
|
3623
|
+
proto.cms.BannerItem.prototype.getImageBig = function() {
|
3554
3624
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3555
3625
|
};
|
3556
3626
|
|
@@ -3559,7 +3629,7 @@ proto.cms.BannerItem.prototype.getContent = function() {
|
|
3559
3629
|
* @param {string} value
|
3560
3630
|
* @return {!proto.cms.BannerItem} returns this
|
3561
3631
|
*/
|
3562
|
-
proto.cms.BannerItem.prototype.
|
3632
|
+
proto.cms.BannerItem.prototype.setImageBig = function(value) {
|
3563
3633
|
return jspb.Message.setField(this, 4, value);
|
3564
3634
|
};
|
3565
3635
|
|
@@ -3568,7 +3638,7 @@ proto.cms.BannerItem.prototype.setContent = function(value) {
|
|
3568
3638
|
* Clears the field making it undefined.
|
3569
3639
|
* @return {!proto.cms.BannerItem} returns this
|
3570
3640
|
*/
|
3571
|
-
proto.cms.BannerItem.prototype.
|
3641
|
+
proto.cms.BannerItem.prototype.clearImageBig = function() {
|
3572
3642
|
return jspb.Message.setField(this, 4, undefined);
|
3573
3643
|
};
|
3574
3644
|
|
@@ -3577,16 +3647,16 @@ proto.cms.BannerItem.prototype.clearContent = function() {
|
|
3577
3647
|
* Returns whether this field is set.
|
3578
3648
|
* @return {boolean}
|
3579
3649
|
*/
|
3580
|
-
proto.cms.BannerItem.prototype.
|
3650
|
+
proto.cms.BannerItem.prototype.hasImageBig = function() {
|
3581
3651
|
return jspb.Message.getField(this, 4) != null;
|
3582
3652
|
};
|
3583
3653
|
|
3584
3654
|
|
3585
3655
|
/**
|
3586
|
-
* optional string
|
3656
|
+
* optional string image_small = 5;
|
3587
3657
|
* @return {string}
|
3588
3658
|
*/
|
3589
|
-
proto.cms.BannerItem.prototype.
|
3659
|
+
proto.cms.BannerItem.prototype.getImageSmall = function() {
|
3590
3660
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3591
3661
|
};
|
3592
3662
|
|
@@ -3595,7 +3665,7 @@ proto.cms.BannerItem.prototype.getCtaType = function() {
|
|
3595
3665
|
* @param {string} value
|
3596
3666
|
* @return {!proto.cms.BannerItem} returns this
|
3597
3667
|
*/
|
3598
|
-
proto.cms.BannerItem.prototype.
|
3668
|
+
proto.cms.BannerItem.prototype.setImageSmall = function(value) {
|
3599
3669
|
return jspb.Message.setField(this, 5, value);
|
3600
3670
|
};
|
3601
3671
|
|
@@ -3604,7 +3674,7 @@ proto.cms.BannerItem.prototype.setCtaType = function(value) {
|
|
3604
3674
|
* Clears the field making it undefined.
|
3605
3675
|
* @return {!proto.cms.BannerItem} returns this
|
3606
3676
|
*/
|
3607
|
-
proto.cms.BannerItem.prototype.
|
3677
|
+
proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
3608
3678
|
return jspb.Message.setField(this, 5, undefined);
|
3609
3679
|
};
|
3610
3680
|
|
@@ -3613,16 +3683,16 @@ proto.cms.BannerItem.prototype.clearCtaType = function() {
|
|
3613
3683
|
* Returns whether this field is set.
|
3614
3684
|
* @return {boolean}
|
3615
3685
|
*/
|
3616
|
-
proto.cms.BannerItem.prototype.
|
3686
|
+
proto.cms.BannerItem.prototype.hasImageSmall = function() {
|
3617
3687
|
return jspb.Message.getField(this, 5) != null;
|
3618
3688
|
};
|
3619
3689
|
|
3620
3690
|
|
3621
3691
|
/**
|
3622
|
-
* optional string
|
3692
|
+
* optional string anchor = 6;
|
3623
3693
|
* @return {string}
|
3624
3694
|
*/
|
3625
|
-
proto.cms.BannerItem.prototype.
|
3695
|
+
proto.cms.BannerItem.prototype.getAnchor = function() {
|
3626
3696
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3627
3697
|
};
|
3628
3698
|
|
@@ -3631,7 +3701,7 @@ proto.cms.BannerItem.prototype.getCtaText = function() {
|
|
3631
3701
|
* @param {string} value
|
3632
3702
|
* @return {!proto.cms.BannerItem} returns this
|
3633
3703
|
*/
|
3634
|
-
proto.cms.BannerItem.prototype.
|
3704
|
+
proto.cms.BannerItem.prototype.setAnchor = function(value) {
|
3635
3705
|
return jspb.Message.setField(this, 6, value);
|
3636
3706
|
};
|
3637
3707
|
|
@@ -3640,7 +3710,7 @@ proto.cms.BannerItem.prototype.setCtaText = function(value) {
|
|
3640
3710
|
* Clears the field making it undefined.
|
3641
3711
|
* @return {!proto.cms.BannerItem} returns this
|
3642
3712
|
*/
|
3643
|
-
proto.cms.BannerItem.prototype.
|
3713
|
+
proto.cms.BannerItem.prototype.clearAnchor = function() {
|
3644
3714
|
return jspb.Message.setField(this, 6, undefined);
|
3645
3715
|
};
|
3646
3716
|
|
@@ -3649,35 +3719,251 @@ proto.cms.BannerItem.prototype.clearCtaText = function() {
|
|
3649
3719
|
* Returns whether this field is set.
|
3650
3720
|
* @return {boolean}
|
3651
3721
|
*/
|
3652
|
-
proto.cms.BannerItem.prototype.
|
3722
|
+
proto.cms.BannerItem.prototype.hasAnchor = function() {
|
3653
3723
|
return jspb.Message.getField(this, 6) != null;
|
3654
3724
|
};
|
3655
3725
|
|
3656
3726
|
|
3657
3727
|
/**
|
3658
|
-
*
|
3659
|
-
* @return {
|
3728
|
+
* repeated BannerTexts texts = 7;
|
3729
|
+
* @return {!Array<!proto.cms.BannerTexts>}
|
3660
3730
|
*/
|
3661
|
-
proto.cms.BannerItem.prototype.
|
3662
|
-
return /** @type
|
3731
|
+
proto.cms.BannerItem.prototype.getTextsList = function() {
|
3732
|
+
return /** @type{!Array<!proto.cms.BannerTexts>} */ (
|
3733
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 7));
|
3663
3734
|
};
|
3664
3735
|
|
3665
3736
|
|
3666
3737
|
/**
|
3667
|
-
* @param {
|
3738
|
+
* @param {!Array<!proto.cms.BannerTexts>} value
|
3668
3739
|
* @return {!proto.cms.BannerItem} returns this
|
3740
|
+
*/
|
3741
|
+
proto.cms.BannerItem.prototype.setTextsList = function(value) {
|
3742
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
3743
|
+
};
|
3744
|
+
|
3745
|
+
|
3746
|
+
/**
|
3747
|
+
* @param {!proto.cms.BannerTexts=} opt_value
|
3748
|
+
* @param {number=} opt_index
|
3749
|
+
* @return {!proto.cms.BannerTexts}
|
3669
3750
|
*/
|
3670
|
-
proto.cms.BannerItem.prototype.
|
3671
|
-
return jspb.Message.
|
3751
|
+
proto.cms.BannerItem.prototype.addTexts = function(opt_value, opt_index) {
|
3752
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cms.BannerTexts, opt_index);
|
3672
3753
|
};
|
3673
3754
|
|
3674
3755
|
|
3675
3756
|
/**
|
3676
|
-
* Clears the
|
3757
|
+
* Clears the list making it empty but non-null.
|
3677
3758
|
* @return {!proto.cms.BannerItem} returns this
|
3678
3759
|
*/
|
3679
|
-
proto.cms.BannerItem.prototype.
|
3680
|
-
return
|
3760
|
+
proto.cms.BannerItem.prototype.clearTextsList = function() {
|
3761
|
+
return this.setTextsList([]);
|
3762
|
+
};
|
3763
|
+
|
3764
|
+
|
3765
|
+
|
3766
|
+
|
3767
|
+
|
3768
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3769
|
+
/**
|
3770
|
+
* Creates an object representation of this proto.
|
3771
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3772
|
+
* Optional fields that are not set will be set to undefined.
|
3773
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3774
|
+
* For the list of reserved names please see:
|
3775
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3776
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3777
|
+
* JSPB instance for transitional soy proto support:
|
3778
|
+
* http://goto/soy-param-migration
|
3779
|
+
* @return {!Object}
|
3780
|
+
*/
|
3781
|
+
proto.cms.BannerTexts.prototype.toObject = function(opt_includeInstance) {
|
3782
|
+
return proto.cms.BannerTexts.toObject(opt_includeInstance, this);
|
3783
|
+
};
|
3784
|
+
|
3785
|
+
|
3786
|
+
/**
|
3787
|
+
* Static version of the {@see toObject} method.
|
3788
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3789
|
+
* the JSPB instance for transitional soy proto support:
|
3790
|
+
* http://goto/soy-param-migration
|
3791
|
+
* @param {!proto.cms.BannerTexts} msg The msg instance to transform.
|
3792
|
+
* @return {!Object}
|
3793
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3794
|
+
*/
|
3795
|
+
proto.cms.BannerTexts.toObject = function(includeInstance, msg) {
|
3796
|
+
var f, obj = {
|
3797
|
+
locale: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
3798
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3799
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
3800
|
+
cta: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3801
|
+
note: jspb.Message.getFieldWithDefault(msg, 5, "")
|
3802
|
+
};
|
3803
|
+
|
3804
|
+
if (includeInstance) {
|
3805
|
+
obj.$jspbMessageInstance = msg;
|
3806
|
+
}
|
3807
|
+
return obj;
|
3808
|
+
};
|
3809
|
+
}
|
3810
|
+
|
3811
|
+
|
3812
|
+
/**
|
3813
|
+
* Deserializes binary data (in protobuf wire format).
|
3814
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3815
|
+
* @return {!proto.cms.BannerTexts}
|
3816
|
+
*/
|
3817
|
+
proto.cms.BannerTexts.deserializeBinary = function(bytes) {
|
3818
|
+
var reader = new jspb.BinaryReader(bytes);
|
3819
|
+
var msg = new proto.cms.BannerTexts;
|
3820
|
+
return proto.cms.BannerTexts.deserializeBinaryFromReader(msg, reader);
|
3821
|
+
};
|
3822
|
+
|
3823
|
+
|
3824
|
+
/**
|
3825
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3826
|
+
* given reader into the given message object.
|
3827
|
+
* @param {!proto.cms.BannerTexts} msg The message object to deserialize into.
|
3828
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3829
|
+
* @return {!proto.cms.BannerTexts}
|
3830
|
+
*/
|
3831
|
+
proto.cms.BannerTexts.deserializeBinaryFromReader = function(msg, reader) {
|
3832
|
+
while (reader.nextField()) {
|
3833
|
+
if (reader.isEndGroup()) {
|
3834
|
+
break;
|
3835
|
+
}
|
3836
|
+
var field = reader.getFieldNumber();
|
3837
|
+
switch (field) {
|
3838
|
+
case 1:
|
3839
|
+
var value = /** @type {string} */ (reader.readString());
|
3840
|
+
msg.setLocale(value);
|
3841
|
+
break;
|
3842
|
+
case 2:
|
3843
|
+
var value = /** @type {string} */ (reader.readString());
|
3844
|
+
msg.setTitle(value);
|
3845
|
+
break;
|
3846
|
+
case 3:
|
3847
|
+
var value = /** @type {string} */ (reader.readString());
|
3848
|
+
msg.setContent(value);
|
3849
|
+
break;
|
3850
|
+
case 4:
|
3851
|
+
var value = /** @type {string} */ (reader.readString());
|
3852
|
+
msg.setCta(value);
|
3853
|
+
break;
|
3854
|
+
case 5:
|
3855
|
+
var value = /** @type {string} */ (reader.readString());
|
3856
|
+
msg.setNote(value);
|
3857
|
+
break;
|
3858
|
+
default:
|
3859
|
+
reader.skipField();
|
3860
|
+
break;
|
3861
|
+
}
|
3862
|
+
}
|
3863
|
+
return msg;
|
3864
|
+
};
|
3865
|
+
|
3866
|
+
|
3867
|
+
/**
|
3868
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3869
|
+
* @return {!Uint8Array}
|
3870
|
+
*/
|
3871
|
+
proto.cms.BannerTexts.prototype.serializeBinary = function() {
|
3872
|
+
var writer = new jspb.BinaryWriter();
|
3873
|
+
proto.cms.BannerTexts.serializeBinaryToWriter(this, writer);
|
3874
|
+
return writer.getResultBuffer();
|
3875
|
+
};
|
3876
|
+
|
3877
|
+
|
3878
|
+
/**
|
3879
|
+
* Serializes the given message to binary data (in protobuf wire
|
3880
|
+
* format), writing to the given BinaryWriter.
|
3881
|
+
* @param {!proto.cms.BannerTexts} message
|
3882
|
+
* @param {!jspb.BinaryWriter} writer
|
3883
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3884
|
+
*/
|
3885
|
+
proto.cms.BannerTexts.serializeBinaryToWriter = function(message, writer) {
|
3886
|
+
var f = undefined;
|
3887
|
+
f = message.getLocale();
|
3888
|
+
if (f.length > 0) {
|
3889
|
+
writer.writeString(
|
3890
|
+
1,
|
3891
|
+
f
|
3892
|
+
);
|
3893
|
+
}
|
3894
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3895
|
+
if (f != null) {
|
3896
|
+
writer.writeString(
|
3897
|
+
2,
|
3898
|
+
f
|
3899
|
+
);
|
3900
|
+
}
|
3901
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3902
|
+
if (f != null) {
|
3903
|
+
writer.writeString(
|
3904
|
+
3,
|
3905
|
+
f
|
3906
|
+
);
|
3907
|
+
}
|
3908
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3909
|
+
if (f != null) {
|
3910
|
+
writer.writeString(
|
3911
|
+
4,
|
3912
|
+
f
|
3913
|
+
);
|
3914
|
+
}
|
3915
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
3916
|
+
if (f != null) {
|
3917
|
+
writer.writeString(
|
3918
|
+
5,
|
3919
|
+
f
|
3920
|
+
);
|
3921
|
+
}
|
3922
|
+
};
|
3923
|
+
|
3924
|
+
|
3925
|
+
/**
|
3926
|
+
* optional string locale = 1;
|
3927
|
+
* @return {string}
|
3928
|
+
*/
|
3929
|
+
proto.cms.BannerTexts.prototype.getLocale = function() {
|
3930
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3931
|
+
};
|
3932
|
+
|
3933
|
+
|
3934
|
+
/**
|
3935
|
+
* @param {string} value
|
3936
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3937
|
+
*/
|
3938
|
+
proto.cms.BannerTexts.prototype.setLocale = function(value) {
|
3939
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
3940
|
+
};
|
3941
|
+
|
3942
|
+
|
3943
|
+
/**
|
3944
|
+
* optional string title = 2;
|
3945
|
+
* @return {string}
|
3946
|
+
*/
|
3947
|
+
proto.cms.BannerTexts.prototype.getTitle = function() {
|
3948
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3949
|
+
};
|
3950
|
+
|
3951
|
+
|
3952
|
+
/**
|
3953
|
+
* @param {string} value
|
3954
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3955
|
+
*/
|
3956
|
+
proto.cms.BannerTexts.prototype.setTitle = function(value) {
|
3957
|
+
return jspb.Message.setField(this, 2, value);
|
3958
|
+
};
|
3959
|
+
|
3960
|
+
|
3961
|
+
/**
|
3962
|
+
* Clears the field making it undefined.
|
3963
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3964
|
+
*/
|
3965
|
+
proto.cms.BannerTexts.prototype.clearTitle = function() {
|
3966
|
+
return jspb.Message.setField(this, 2, undefined);
|
3681
3967
|
};
|
3682
3968
|
|
3683
3969
|
|
@@ -3685,35 +3971,35 @@ proto.cms.BannerItem.prototype.clearIsActive = function() {
|
|
3685
3971
|
* Returns whether this field is set.
|
3686
3972
|
* @return {boolean}
|
3687
3973
|
*/
|
3688
|
-
proto.cms.
|
3689
|
-
return jspb.Message.getField(this,
|
3974
|
+
proto.cms.BannerTexts.prototype.hasTitle = function() {
|
3975
|
+
return jspb.Message.getField(this, 2) != null;
|
3690
3976
|
};
|
3691
3977
|
|
3692
3978
|
|
3693
3979
|
/**
|
3694
|
-
* optional string
|
3980
|
+
* optional string content = 3;
|
3695
3981
|
* @return {string}
|
3696
3982
|
*/
|
3697
|
-
proto.cms.
|
3698
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3983
|
+
proto.cms.BannerTexts.prototype.getContent = function() {
|
3984
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3699
3985
|
};
|
3700
3986
|
|
3701
3987
|
|
3702
3988
|
/**
|
3703
3989
|
* @param {string} value
|
3704
|
-
* @return {!proto.cms.
|
3990
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3705
3991
|
*/
|
3706
|
-
proto.cms.
|
3707
|
-
return jspb.Message.setField(this,
|
3992
|
+
proto.cms.BannerTexts.prototype.setContent = function(value) {
|
3993
|
+
return jspb.Message.setField(this, 3, value);
|
3708
3994
|
};
|
3709
3995
|
|
3710
3996
|
|
3711
3997
|
/**
|
3712
3998
|
* Clears the field making it undefined.
|
3713
|
-
* @return {!proto.cms.
|
3999
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3714
4000
|
*/
|
3715
|
-
proto.cms.
|
3716
|
-
return jspb.Message.setField(this,
|
4001
|
+
proto.cms.BannerTexts.prototype.clearContent = function() {
|
4002
|
+
return jspb.Message.setField(this, 3, undefined);
|
3717
4003
|
};
|
3718
4004
|
|
3719
4005
|
|
@@ -3721,35 +4007,35 @@ proto.cms.BannerItem.prototype.clearImageBig = function() {
|
|
3721
4007
|
* Returns whether this field is set.
|
3722
4008
|
* @return {boolean}
|
3723
4009
|
*/
|
3724
|
-
proto.cms.
|
3725
|
-
return jspb.Message.getField(this,
|
4010
|
+
proto.cms.BannerTexts.prototype.hasContent = function() {
|
4011
|
+
return jspb.Message.getField(this, 3) != null;
|
3726
4012
|
};
|
3727
4013
|
|
3728
4014
|
|
3729
4015
|
/**
|
3730
|
-
* optional string
|
4016
|
+
* optional string cta = 4;
|
3731
4017
|
* @return {string}
|
3732
4018
|
*/
|
3733
|
-
proto.cms.
|
3734
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
4019
|
+
proto.cms.BannerTexts.prototype.getCta = function() {
|
4020
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3735
4021
|
};
|
3736
4022
|
|
3737
4023
|
|
3738
4024
|
/**
|
3739
4025
|
* @param {string} value
|
3740
|
-
* @return {!proto.cms.
|
4026
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3741
4027
|
*/
|
3742
|
-
proto.cms.
|
3743
|
-
return jspb.Message.setField(this,
|
4028
|
+
proto.cms.BannerTexts.prototype.setCta = function(value) {
|
4029
|
+
return jspb.Message.setField(this, 4, value);
|
3744
4030
|
};
|
3745
4031
|
|
3746
4032
|
|
3747
4033
|
/**
|
3748
4034
|
* Clears the field making it undefined.
|
3749
|
-
* @return {!proto.cms.
|
4035
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3750
4036
|
*/
|
3751
|
-
proto.cms.
|
3752
|
-
return jspb.Message.setField(this,
|
4037
|
+
proto.cms.BannerTexts.prototype.clearCta = function() {
|
4038
|
+
return jspb.Message.setField(this, 4, undefined);
|
3753
4039
|
};
|
3754
4040
|
|
3755
4041
|
|
@@ -3757,35 +4043,35 @@ proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
|
3757
4043
|
* Returns whether this field is set.
|
3758
4044
|
* @return {boolean}
|
3759
4045
|
*/
|
3760
|
-
proto.cms.
|
3761
|
-
return jspb.Message.getField(this,
|
4046
|
+
proto.cms.BannerTexts.prototype.hasCta = function() {
|
4047
|
+
return jspb.Message.getField(this, 4) != null;
|
3762
4048
|
};
|
3763
4049
|
|
3764
4050
|
|
3765
4051
|
/**
|
3766
|
-
* optional string
|
4052
|
+
* optional string note = 5;
|
3767
4053
|
* @return {string}
|
3768
4054
|
*/
|
3769
|
-
proto.cms.
|
3770
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
4055
|
+
proto.cms.BannerTexts.prototype.getNote = function() {
|
4056
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3771
4057
|
};
|
3772
4058
|
|
3773
4059
|
|
3774
4060
|
/**
|
3775
4061
|
* @param {string} value
|
3776
|
-
* @return {!proto.cms.
|
4062
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3777
4063
|
*/
|
3778
|
-
proto.cms.
|
3779
|
-
return jspb.Message.setField(this,
|
4064
|
+
proto.cms.BannerTexts.prototype.setNote = function(value) {
|
4065
|
+
return jspb.Message.setField(this, 5, value);
|
3780
4066
|
};
|
3781
4067
|
|
3782
4068
|
|
3783
4069
|
/**
|
3784
4070
|
* Clears the field making it undefined.
|
3785
|
-
* @return {!proto.cms.
|
4071
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3786
4072
|
*/
|
3787
|
-
proto.cms.
|
3788
|
-
return jspb.Message.setField(this,
|
4073
|
+
proto.cms.BannerTexts.prototype.clearNote = function() {
|
4074
|
+
return jspb.Message.setField(this, 5, undefined);
|
3789
4075
|
};
|
3790
4076
|
|
3791
4077
|
|
@@ -3793,8 +4079,8 @@ proto.cms.BannerItem.prototype.clearAnchor = function() {
|
|
3793
4079
|
* Returns whether this field is set.
|
3794
4080
|
* @return {boolean}
|
3795
4081
|
*/
|
3796
|
-
proto.cms.
|
3797
|
-
return jspb.Message.getField(this,
|
4082
|
+
proto.cms.BannerTexts.prototype.hasNote = function() {
|
4083
|
+
return jspb.Message.getField(this, 5) != null;
|
3798
4084
|
};
|
3799
4085
|
|
3800
4086
|
|
@@ -4513,4 +4799,1242 @@ proto.cms.BannerItemsResponse.prototype.hasTotalItems = function() {
|
|
4513
4799
|
};
|
4514
4800
|
|
4515
4801
|
|
4802
|
+
|
4803
|
+
/**
|
4804
|
+
* List of repeated fields within this message type.
|
4805
|
+
* @private {!Array<number>}
|
4806
|
+
* @const
|
4807
|
+
*/
|
4808
|
+
proto.cms.BannerGroupRequest.repeatedFields_ = [3];
|
4809
|
+
|
4810
|
+
|
4811
|
+
|
4812
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4813
|
+
/**
|
4814
|
+
* Creates an object representation of this proto.
|
4815
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4816
|
+
* Optional fields that are not set will be set to undefined.
|
4817
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4818
|
+
* For the list of reserved names please see:
|
4819
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4820
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4821
|
+
* JSPB instance for transitional soy proto support:
|
4822
|
+
* http://goto/soy-param-migration
|
4823
|
+
* @return {!Object}
|
4824
|
+
*/
|
4825
|
+
proto.cms.BannerGroupRequest.prototype.toObject = function(opt_includeInstance) {
|
4826
|
+
return proto.cms.BannerGroupRequest.toObject(opt_includeInstance, this);
|
4827
|
+
};
|
4828
|
+
|
4829
|
+
|
4830
|
+
/**
|
4831
|
+
* Static version of the {@see toObject} method.
|
4832
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4833
|
+
* the JSPB instance for transitional soy proto support:
|
4834
|
+
* http://goto/soy-param-migration
|
4835
|
+
* @param {!proto.cms.BannerGroupRequest} msg The msg instance to transform.
|
4836
|
+
* @return {!Object}
|
4837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4838
|
+
*/
|
4839
|
+
proto.cms.BannerGroupRequest.toObject = function(includeInstance, msg) {
|
4840
|
+
var f, obj = {
|
4841
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4842
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
4843
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
4844
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
4845
|
+
};
|
4846
|
+
|
4847
|
+
if (includeInstance) {
|
4848
|
+
obj.$jspbMessageInstance = msg;
|
4849
|
+
}
|
4850
|
+
return obj;
|
4851
|
+
};
|
4852
|
+
}
|
4853
|
+
|
4854
|
+
|
4855
|
+
/**
|
4856
|
+
* Deserializes binary data (in protobuf wire format).
|
4857
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4858
|
+
* @return {!proto.cms.BannerGroupRequest}
|
4859
|
+
*/
|
4860
|
+
proto.cms.BannerGroupRequest.deserializeBinary = function(bytes) {
|
4861
|
+
var reader = new jspb.BinaryReader(bytes);
|
4862
|
+
var msg = new proto.cms.BannerGroupRequest;
|
4863
|
+
return proto.cms.BannerGroupRequest.deserializeBinaryFromReader(msg, reader);
|
4864
|
+
};
|
4865
|
+
|
4866
|
+
|
4867
|
+
/**
|
4868
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4869
|
+
* given reader into the given message object.
|
4870
|
+
* @param {!proto.cms.BannerGroupRequest} msg The message object to deserialize into.
|
4871
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4872
|
+
* @return {!proto.cms.BannerGroupRequest}
|
4873
|
+
*/
|
4874
|
+
proto.cms.BannerGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4875
|
+
while (reader.nextField()) {
|
4876
|
+
if (reader.isEndGroup()) {
|
4877
|
+
break;
|
4878
|
+
}
|
4879
|
+
var field = reader.getFieldNumber();
|
4880
|
+
switch (field) {
|
4881
|
+
case 1:
|
4882
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4883
|
+
msg.setId(value);
|
4884
|
+
break;
|
4885
|
+
case 2:
|
4886
|
+
var value = /** @type {string} */ (reader.readString());
|
4887
|
+
msg.setTitle(value);
|
4888
|
+
break;
|
4889
|
+
case 3:
|
4890
|
+
var value = /** @type {string} */ (reader.readString());
|
4891
|
+
msg.addGeo(value);
|
4892
|
+
break;
|
4893
|
+
case 4:
|
4894
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4895
|
+
msg.setIsActive(value);
|
4896
|
+
break;
|
4897
|
+
default:
|
4898
|
+
reader.skipField();
|
4899
|
+
break;
|
4900
|
+
}
|
4901
|
+
}
|
4902
|
+
return msg;
|
4903
|
+
};
|
4904
|
+
|
4905
|
+
|
4906
|
+
/**
|
4907
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4908
|
+
* @return {!Uint8Array}
|
4909
|
+
*/
|
4910
|
+
proto.cms.BannerGroupRequest.prototype.serializeBinary = function() {
|
4911
|
+
var writer = new jspb.BinaryWriter();
|
4912
|
+
proto.cms.BannerGroupRequest.serializeBinaryToWriter(this, writer);
|
4913
|
+
return writer.getResultBuffer();
|
4914
|
+
};
|
4915
|
+
|
4916
|
+
|
4917
|
+
/**
|
4918
|
+
* Serializes the given message to binary data (in protobuf wire
|
4919
|
+
* format), writing to the given BinaryWriter.
|
4920
|
+
* @param {!proto.cms.BannerGroupRequest} message
|
4921
|
+
* @param {!jspb.BinaryWriter} writer
|
4922
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4923
|
+
*/
|
4924
|
+
proto.cms.BannerGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
4925
|
+
var f = undefined;
|
4926
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
4927
|
+
if (f != null) {
|
4928
|
+
writer.writeInt32(
|
4929
|
+
1,
|
4930
|
+
f
|
4931
|
+
);
|
4932
|
+
}
|
4933
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4934
|
+
if (f != null) {
|
4935
|
+
writer.writeString(
|
4936
|
+
2,
|
4937
|
+
f
|
4938
|
+
);
|
4939
|
+
}
|
4940
|
+
f = message.getGeoList();
|
4941
|
+
if (f.length > 0) {
|
4942
|
+
writer.writeRepeatedString(
|
4943
|
+
3,
|
4944
|
+
f
|
4945
|
+
);
|
4946
|
+
}
|
4947
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
4948
|
+
if (f != null) {
|
4949
|
+
writer.writeInt32(
|
4950
|
+
4,
|
4951
|
+
f
|
4952
|
+
);
|
4953
|
+
}
|
4954
|
+
};
|
4955
|
+
|
4956
|
+
|
4957
|
+
/**
|
4958
|
+
* optional int32 id = 1;
|
4959
|
+
* @return {number}
|
4960
|
+
*/
|
4961
|
+
proto.cms.BannerGroupRequest.prototype.getId = function() {
|
4962
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4963
|
+
};
|
4964
|
+
|
4965
|
+
|
4966
|
+
/**
|
4967
|
+
* @param {number} value
|
4968
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
4969
|
+
*/
|
4970
|
+
proto.cms.BannerGroupRequest.prototype.setId = function(value) {
|
4971
|
+
return jspb.Message.setField(this, 1, value);
|
4972
|
+
};
|
4973
|
+
|
4974
|
+
|
4975
|
+
/**
|
4976
|
+
* Clears the field making it undefined.
|
4977
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
4978
|
+
*/
|
4979
|
+
proto.cms.BannerGroupRequest.prototype.clearId = function() {
|
4980
|
+
return jspb.Message.setField(this, 1, undefined);
|
4981
|
+
};
|
4982
|
+
|
4983
|
+
|
4984
|
+
/**
|
4985
|
+
* Returns whether this field is set.
|
4986
|
+
* @return {boolean}
|
4987
|
+
*/
|
4988
|
+
proto.cms.BannerGroupRequest.prototype.hasId = function() {
|
4989
|
+
return jspb.Message.getField(this, 1) != null;
|
4990
|
+
};
|
4991
|
+
|
4992
|
+
|
4993
|
+
/**
|
4994
|
+
* optional string title = 2;
|
4995
|
+
* @return {string}
|
4996
|
+
*/
|
4997
|
+
proto.cms.BannerGroupRequest.prototype.getTitle = function() {
|
4998
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
4999
|
+
};
|
5000
|
+
|
5001
|
+
|
5002
|
+
/**
|
5003
|
+
* @param {string} value
|
5004
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5005
|
+
*/
|
5006
|
+
proto.cms.BannerGroupRequest.prototype.setTitle = function(value) {
|
5007
|
+
return jspb.Message.setField(this, 2, value);
|
5008
|
+
};
|
5009
|
+
|
5010
|
+
|
5011
|
+
/**
|
5012
|
+
* Clears the field making it undefined.
|
5013
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5014
|
+
*/
|
5015
|
+
proto.cms.BannerGroupRequest.prototype.clearTitle = function() {
|
5016
|
+
return jspb.Message.setField(this, 2, undefined);
|
5017
|
+
};
|
5018
|
+
|
5019
|
+
|
5020
|
+
/**
|
5021
|
+
* Returns whether this field is set.
|
5022
|
+
* @return {boolean}
|
5023
|
+
*/
|
5024
|
+
proto.cms.BannerGroupRequest.prototype.hasTitle = function() {
|
5025
|
+
return jspb.Message.getField(this, 2) != null;
|
5026
|
+
};
|
5027
|
+
|
5028
|
+
|
5029
|
+
/**
|
5030
|
+
* repeated string geo = 3;
|
5031
|
+
* @return {!Array<string>}
|
5032
|
+
*/
|
5033
|
+
proto.cms.BannerGroupRequest.prototype.getGeoList = function() {
|
5034
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
5035
|
+
};
|
5036
|
+
|
5037
|
+
|
5038
|
+
/**
|
5039
|
+
* @param {!Array<string>} value
|
5040
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5041
|
+
*/
|
5042
|
+
proto.cms.BannerGroupRequest.prototype.setGeoList = function(value) {
|
5043
|
+
return jspb.Message.setField(this, 3, value || []);
|
5044
|
+
};
|
5045
|
+
|
5046
|
+
|
5047
|
+
/**
|
5048
|
+
* @param {string} value
|
5049
|
+
* @param {number=} opt_index
|
5050
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5051
|
+
*/
|
5052
|
+
proto.cms.BannerGroupRequest.prototype.addGeo = function(value, opt_index) {
|
5053
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
5054
|
+
};
|
5055
|
+
|
5056
|
+
|
5057
|
+
/**
|
5058
|
+
* Clears the list making it empty but non-null.
|
5059
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5060
|
+
*/
|
5061
|
+
proto.cms.BannerGroupRequest.prototype.clearGeoList = function() {
|
5062
|
+
return this.setGeoList([]);
|
5063
|
+
};
|
5064
|
+
|
5065
|
+
|
5066
|
+
/**
|
5067
|
+
* optional int32 is_active = 4;
|
5068
|
+
* @return {number}
|
5069
|
+
*/
|
5070
|
+
proto.cms.BannerGroupRequest.prototype.getIsActive = function() {
|
5071
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5072
|
+
};
|
5073
|
+
|
5074
|
+
|
5075
|
+
/**
|
5076
|
+
* @param {number} value
|
5077
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5078
|
+
*/
|
5079
|
+
proto.cms.BannerGroupRequest.prototype.setIsActive = function(value) {
|
5080
|
+
return jspb.Message.setField(this, 4, value);
|
5081
|
+
};
|
5082
|
+
|
5083
|
+
|
5084
|
+
/**
|
5085
|
+
* Clears the field making it undefined.
|
5086
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5087
|
+
*/
|
5088
|
+
proto.cms.BannerGroupRequest.prototype.clearIsActive = function() {
|
5089
|
+
return jspb.Message.setField(this, 4, undefined);
|
5090
|
+
};
|
5091
|
+
|
5092
|
+
|
5093
|
+
/**
|
5094
|
+
* Returns whether this field is set.
|
5095
|
+
* @return {boolean}
|
5096
|
+
*/
|
5097
|
+
proto.cms.BannerGroupRequest.prototype.hasIsActive = function() {
|
5098
|
+
return jspb.Message.getField(this, 4) != null;
|
5099
|
+
};
|
5100
|
+
|
5101
|
+
|
5102
|
+
|
5103
|
+
/**
|
5104
|
+
* List of repeated fields within this message type.
|
5105
|
+
* @private {!Array<number>}
|
5106
|
+
* @const
|
5107
|
+
*/
|
5108
|
+
proto.cms.BannerGroupItem.repeatedFields_ = [3,5];
|
5109
|
+
|
5110
|
+
|
5111
|
+
|
5112
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5113
|
+
/**
|
5114
|
+
* Creates an object representation of this proto.
|
5115
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5116
|
+
* Optional fields that are not set will be set to undefined.
|
5117
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5118
|
+
* For the list of reserved names please see:
|
5119
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5120
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5121
|
+
* JSPB instance for transitional soy proto support:
|
5122
|
+
* http://goto/soy-param-migration
|
5123
|
+
* @return {!Object}
|
5124
|
+
*/
|
5125
|
+
proto.cms.BannerGroupItem.prototype.toObject = function(opt_includeInstance) {
|
5126
|
+
return proto.cms.BannerGroupItem.toObject(opt_includeInstance, this);
|
5127
|
+
};
|
5128
|
+
|
5129
|
+
|
5130
|
+
/**
|
5131
|
+
* Static version of the {@see toObject} method.
|
5132
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5133
|
+
* the JSPB instance for transitional soy proto support:
|
5134
|
+
* http://goto/soy-param-migration
|
5135
|
+
* @param {!proto.cms.BannerGroupItem} msg The msg instance to transform.
|
5136
|
+
* @return {!Object}
|
5137
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5138
|
+
*/
|
5139
|
+
proto.cms.BannerGroupItem.toObject = function(includeInstance, msg) {
|
5140
|
+
var f, obj = {
|
5141
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5142
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5143
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
5144
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
5145
|
+
bannersList: jspb.Message.toObjectList(msg.getBannersList(),
|
5146
|
+
proto.cms.BannerItem.toObject, includeInstance)
|
5147
|
+
};
|
5148
|
+
|
5149
|
+
if (includeInstance) {
|
5150
|
+
obj.$jspbMessageInstance = msg;
|
5151
|
+
}
|
5152
|
+
return obj;
|
5153
|
+
};
|
5154
|
+
}
|
5155
|
+
|
5156
|
+
|
5157
|
+
/**
|
5158
|
+
* Deserializes binary data (in protobuf wire format).
|
5159
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5160
|
+
* @return {!proto.cms.BannerGroupItem}
|
5161
|
+
*/
|
5162
|
+
proto.cms.BannerGroupItem.deserializeBinary = function(bytes) {
|
5163
|
+
var reader = new jspb.BinaryReader(bytes);
|
5164
|
+
var msg = new proto.cms.BannerGroupItem;
|
5165
|
+
return proto.cms.BannerGroupItem.deserializeBinaryFromReader(msg, reader);
|
5166
|
+
};
|
5167
|
+
|
5168
|
+
|
5169
|
+
/**
|
5170
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5171
|
+
* given reader into the given message object.
|
5172
|
+
* @param {!proto.cms.BannerGroupItem} msg The message object to deserialize into.
|
5173
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5174
|
+
* @return {!proto.cms.BannerGroupItem}
|
5175
|
+
*/
|
5176
|
+
proto.cms.BannerGroupItem.deserializeBinaryFromReader = function(msg, reader) {
|
5177
|
+
while (reader.nextField()) {
|
5178
|
+
if (reader.isEndGroup()) {
|
5179
|
+
break;
|
5180
|
+
}
|
5181
|
+
var field = reader.getFieldNumber();
|
5182
|
+
switch (field) {
|
5183
|
+
case 1:
|
5184
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5185
|
+
msg.setId(value);
|
5186
|
+
break;
|
5187
|
+
case 2:
|
5188
|
+
var value = /** @type {string} */ (reader.readString());
|
5189
|
+
msg.setTitle(value);
|
5190
|
+
break;
|
5191
|
+
case 3:
|
5192
|
+
var value = /** @type {string} */ (reader.readString());
|
5193
|
+
msg.addGeo(value);
|
5194
|
+
break;
|
5195
|
+
case 4:
|
5196
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5197
|
+
msg.setIsActive(value);
|
5198
|
+
break;
|
5199
|
+
case 5:
|
5200
|
+
var value = new proto.cms.BannerItem;
|
5201
|
+
reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
|
5202
|
+
msg.addBanners(value);
|
5203
|
+
break;
|
5204
|
+
default:
|
5205
|
+
reader.skipField();
|
5206
|
+
break;
|
5207
|
+
}
|
5208
|
+
}
|
5209
|
+
return msg;
|
5210
|
+
};
|
5211
|
+
|
5212
|
+
|
5213
|
+
/**
|
5214
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5215
|
+
* @return {!Uint8Array}
|
5216
|
+
*/
|
5217
|
+
proto.cms.BannerGroupItem.prototype.serializeBinary = function() {
|
5218
|
+
var writer = new jspb.BinaryWriter();
|
5219
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter(this, writer);
|
5220
|
+
return writer.getResultBuffer();
|
5221
|
+
};
|
5222
|
+
|
5223
|
+
|
5224
|
+
/**
|
5225
|
+
* Serializes the given message to binary data (in protobuf wire
|
5226
|
+
* format), writing to the given BinaryWriter.
|
5227
|
+
* @param {!proto.cms.BannerGroupItem} message
|
5228
|
+
* @param {!jspb.BinaryWriter} writer
|
5229
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5230
|
+
*/
|
5231
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter = function(message, writer) {
|
5232
|
+
var f = undefined;
|
5233
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
5234
|
+
if (f != null) {
|
5235
|
+
writer.writeInt32(
|
5236
|
+
1,
|
5237
|
+
f
|
5238
|
+
);
|
5239
|
+
}
|
5240
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
5241
|
+
if (f != null) {
|
5242
|
+
writer.writeString(
|
5243
|
+
2,
|
5244
|
+
f
|
5245
|
+
);
|
5246
|
+
}
|
5247
|
+
f = message.getGeoList();
|
5248
|
+
if (f.length > 0) {
|
5249
|
+
writer.writeRepeatedString(
|
5250
|
+
3,
|
5251
|
+
f
|
5252
|
+
);
|
5253
|
+
}
|
5254
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5255
|
+
if (f != null) {
|
5256
|
+
writer.writeInt32(
|
5257
|
+
4,
|
5258
|
+
f
|
5259
|
+
);
|
5260
|
+
}
|
5261
|
+
f = message.getBannersList();
|
5262
|
+
if (f.length > 0) {
|
5263
|
+
writer.writeRepeatedMessage(
|
5264
|
+
5,
|
5265
|
+
f,
|
5266
|
+
proto.cms.BannerItem.serializeBinaryToWriter
|
5267
|
+
);
|
5268
|
+
}
|
5269
|
+
};
|
5270
|
+
|
5271
|
+
|
5272
|
+
/**
|
5273
|
+
* optional int32 id = 1;
|
5274
|
+
* @return {number}
|
5275
|
+
*/
|
5276
|
+
proto.cms.BannerGroupItem.prototype.getId = function() {
|
5277
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5278
|
+
};
|
5279
|
+
|
5280
|
+
|
5281
|
+
/**
|
5282
|
+
* @param {number} value
|
5283
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5284
|
+
*/
|
5285
|
+
proto.cms.BannerGroupItem.prototype.setId = function(value) {
|
5286
|
+
return jspb.Message.setField(this, 1, value);
|
5287
|
+
};
|
5288
|
+
|
5289
|
+
|
5290
|
+
/**
|
5291
|
+
* Clears the field making it undefined.
|
5292
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5293
|
+
*/
|
5294
|
+
proto.cms.BannerGroupItem.prototype.clearId = function() {
|
5295
|
+
return jspb.Message.setField(this, 1, undefined);
|
5296
|
+
};
|
5297
|
+
|
5298
|
+
|
5299
|
+
/**
|
5300
|
+
* Returns whether this field is set.
|
5301
|
+
* @return {boolean}
|
5302
|
+
*/
|
5303
|
+
proto.cms.BannerGroupItem.prototype.hasId = function() {
|
5304
|
+
return jspb.Message.getField(this, 1) != null;
|
5305
|
+
};
|
5306
|
+
|
5307
|
+
|
5308
|
+
/**
|
5309
|
+
* optional string title = 2;
|
5310
|
+
* @return {string}
|
5311
|
+
*/
|
5312
|
+
proto.cms.BannerGroupItem.prototype.getTitle = function() {
|
5313
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5314
|
+
};
|
5315
|
+
|
5316
|
+
|
5317
|
+
/**
|
5318
|
+
* @param {string} value
|
5319
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5320
|
+
*/
|
5321
|
+
proto.cms.BannerGroupItem.prototype.setTitle = function(value) {
|
5322
|
+
return jspb.Message.setField(this, 2, value);
|
5323
|
+
};
|
5324
|
+
|
5325
|
+
|
5326
|
+
/**
|
5327
|
+
* Clears the field making it undefined.
|
5328
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5329
|
+
*/
|
5330
|
+
proto.cms.BannerGroupItem.prototype.clearTitle = function() {
|
5331
|
+
return jspb.Message.setField(this, 2, undefined);
|
5332
|
+
};
|
5333
|
+
|
5334
|
+
|
5335
|
+
/**
|
5336
|
+
* Returns whether this field is set.
|
5337
|
+
* @return {boolean}
|
5338
|
+
*/
|
5339
|
+
proto.cms.BannerGroupItem.prototype.hasTitle = function() {
|
5340
|
+
return jspb.Message.getField(this, 2) != null;
|
5341
|
+
};
|
5342
|
+
|
5343
|
+
|
5344
|
+
/**
|
5345
|
+
* repeated string geo = 3;
|
5346
|
+
* @return {!Array<string>}
|
5347
|
+
*/
|
5348
|
+
proto.cms.BannerGroupItem.prototype.getGeoList = function() {
|
5349
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
5350
|
+
};
|
5351
|
+
|
5352
|
+
|
5353
|
+
/**
|
5354
|
+
* @param {!Array<string>} value
|
5355
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5356
|
+
*/
|
5357
|
+
proto.cms.BannerGroupItem.prototype.setGeoList = function(value) {
|
5358
|
+
return jspb.Message.setField(this, 3, value || []);
|
5359
|
+
};
|
5360
|
+
|
5361
|
+
|
5362
|
+
/**
|
5363
|
+
* @param {string} value
|
5364
|
+
* @param {number=} opt_index
|
5365
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5366
|
+
*/
|
5367
|
+
proto.cms.BannerGroupItem.prototype.addGeo = function(value, opt_index) {
|
5368
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
5369
|
+
};
|
5370
|
+
|
5371
|
+
|
5372
|
+
/**
|
5373
|
+
* Clears the list making it empty but non-null.
|
5374
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5375
|
+
*/
|
5376
|
+
proto.cms.BannerGroupItem.prototype.clearGeoList = function() {
|
5377
|
+
return this.setGeoList([]);
|
5378
|
+
};
|
5379
|
+
|
5380
|
+
|
5381
|
+
/**
|
5382
|
+
* optional int32 is_active = 4;
|
5383
|
+
* @return {number}
|
5384
|
+
*/
|
5385
|
+
proto.cms.BannerGroupItem.prototype.getIsActive = function() {
|
5386
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5387
|
+
};
|
5388
|
+
|
5389
|
+
|
5390
|
+
/**
|
5391
|
+
* @param {number} value
|
5392
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5393
|
+
*/
|
5394
|
+
proto.cms.BannerGroupItem.prototype.setIsActive = function(value) {
|
5395
|
+
return jspb.Message.setField(this, 4, value);
|
5396
|
+
};
|
5397
|
+
|
5398
|
+
|
5399
|
+
/**
|
5400
|
+
* Clears the field making it undefined.
|
5401
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5402
|
+
*/
|
5403
|
+
proto.cms.BannerGroupItem.prototype.clearIsActive = function() {
|
5404
|
+
return jspb.Message.setField(this, 4, undefined);
|
5405
|
+
};
|
5406
|
+
|
5407
|
+
|
5408
|
+
/**
|
5409
|
+
* Returns whether this field is set.
|
5410
|
+
* @return {boolean}
|
5411
|
+
*/
|
5412
|
+
proto.cms.BannerGroupItem.prototype.hasIsActive = function() {
|
5413
|
+
return jspb.Message.getField(this, 4) != null;
|
5414
|
+
};
|
5415
|
+
|
5416
|
+
|
5417
|
+
/**
|
5418
|
+
* repeated BannerItem banners = 5;
|
5419
|
+
* @return {!Array<!proto.cms.BannerItem>}
|
5420
|
+
*/
|
5421
|
+
proto.cms.BannerGroupItem.prototype.getBannersList = function() {
|
5422
|
+
return /** @type{!Array<!proto.cms.BannerItem>} */ (
|
5423
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerItem, 5));
|
5424
|
+
};
|
5425
|
+
|
5426
|
+
|
5427
|
+
/**
|
5428
|
+
* @param {!Array<!proto.cms.BannerItem>} value
|
5429
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5430
|
+
*/
|
5431
|
+
proto.cms.BannerGroupItem.prototype.setBannersList = function(value) {
|
5432
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
5433
|
+
};
|
5434
|
+
|
5435
|
+
|
5436
|
+
/**
|
5437
|
+
* @param {!proto.cms.BannerItem=} opt_value
|
5438
|
+
* @param {number=} opt_index
|
5439
|
+
* @return {!proto.cms.BannerItem}
|
5440
|
+
*/
|
5441
|
+
proto.cms.BannerGroupItem.prototype.addBanners = function(opt_value, opt_index) {
|
5442
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cms.BannerItem, opt_index);
|
5443
|
+
};
|
5444
|
+
|
5445
|
+
|
5446
|
+
/**
|
5447
|
+
* Clears the list making it empty but non-null.
|
5448
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5449
|
+
*/
|
5450
|
+
proto.cms.BannerGroupItem.prototype.clearBannersList = function() {
|
5451
|
+
return this.setBannersList([]);
|
5452
|
+
};
|
5453
|
+
|
5454
|
+
|
5455
|
+
|
5456
|
+
|
5457
|
+
|
5458
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5459
|
+
/**
|
5460
|
+
* Creates an object representation of this proto.
|
5461
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5462
|
+
* Optional fields that are not set will be set to undefined.
|
5463
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5464
|
+
* For the list of reserved names please see:
|
5465
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5466
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5467
|
+
* JSPB instance for transitional soy proto support:
|
5468
|
+
* http://goto/soy-param-migration
|
5469
|
+
* @return {!Object}
|
5470
|
+
*/
|
5471
|
+
proto.cms.GetBannerGroupRequest.prototype.toObject = function(opt_includeInstance) {
|
5472
|
+
return proto.cms.GetBannerGroupRequest.toObject(opt_includeInstance, this);
|
5473
|
+
};
|
5474
|
+
|
5475
|
+
|
5476
|
+
/**
|
5477
|
+
* Static version of the {@see toObject} method.
|
5478
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5479
|
+
* the JSPB instance for transitional soy proto support:
|
5480
|
+
* http://goto/soy-param-migration
|
5481
|
+
* @param {!proto.cms.GetBannerGroupRequest} msg The msg instance to transform.
|
5482
|
+
* @return {!Object}
|
5483
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5484
|
+
*/
|
5485
|
+
proto.cms.GetBannerGroupRequest.toObject = function(includeInstance, msg) {
|
5486
|
+
var f, obj = {
|
5487
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5488
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
5489
|
+
};
|
5490
|
+
|
5491
|
+
if (includeInstance) {
|
5492
|
+
obj.$jspbMessageInstance = msg;
|
5493
|
+
}
|
5494
|
+
return obj;
|
5495
|
+
};
|
5496
|
+
}
|
5497
|
+
|
5498
|
+
|
5499
|
+
/**
|
5500
|
+
* Deserializes binary data (in protobuf wire format).
|
5501
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5502
|
+
* @return {!proto.cms.GetBannerGroupRequest}
|
5503
|
+
*/
|
5504
|
+
proto.cms.GetBannerGroupRequest.deserializeBinary = function(bytes) {
|
5505
|
+
var reader = new jspb.BinaryReader(bytes);
|
5506
|
+
var msg = new proto.cms.GetBannerGroupRequest;
|
5507
|
+
return proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader(msg, reader);
|
5508
|
+
};
|
5509
|
+
|
5510
|
+
|
5511
|
+
/**
|
5512
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5513
|
+
* given reader into the given message object.
|
5514
|
+
* @param {!proto.cms.GetBannerGroupRequest} msg The message object to deserialize into.
|
5515
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5516
|
+
* @return {!proto.cms.GetBannerGroupRequest}
|
5517
|
+
*/
|
5518
|
+
proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5519
|
+
while (reader.nextField()) {
|
5520
|
+
if (reader.isEndGroup()) {
|
5521
|
+
break;
|
5522
|
+
}
|
5523
|
+
var field = reader.getFieldNumber();
|
5524
|
+
switch (field) {
|
5525
|
+
case 1:
|
5526
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5527
|
+
msg.setId(value);
|
5528
|
+
break;
|
5529
|
+
case 2:
|
5530
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
5531
|
+
msg.setAdminSide(value);
|
5532
|
+
break;
|
5533
|
+
default:
|
5534
|
+
reader.skipField();
|
5535
|
+
break;
|
5536
|
+
}
|
5537
|
+
}
|
5538
|
+
return msg;
|
5539
|
+
};
|
5540
|
+
|
5541
|
+
|
5542
|
+
/**
|
5543
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5544
|
+
* @return {!Uint8Array}
|
5545
|
+
*/
|
5546
|
+
proto.cms.GetBannerGroupRequest.prototype.serializeBinary = function() {
|
5547
|
+
var writer = new jspb.BinaryWriter();
|
5548
|
+
proto.cms.GetBannerGroupRequest.serializeBinaryToWriter(this, writer);
|
5549
|
+
return writer.getResultBuffer();
|
5550
|
+
};
|
5551
|
+
|
5552
|
+
|
5553
|
+
/**
|
5554
|
+
* Serializes the given message to binary data (in protobuf wire
|
5555
|
+
* format), writing to the given BinaryWriter.
|
5556
|
+
* @param {!proto.cms.GetBannerGroupRequest} message
|
5557
|
+
* @param {!jspb.BinaryWriter} writer
|
5558
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5559
|
+
*/
|
5560
|
+
proto.cms.GetBannerGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
5561
|
+
var f = undefined;
|
5562
|
+
f = message.getId();
|
5563
|
+
if (f !== 0) {
|
5564
|
+
writer.writeInt32(
|
5565
|
+
1,
|
5566
|
+
f
|
5567
|
+
);
|
5568
|
+
}
|
5569
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
5570
|
+
if (f != null) {
|
5571
|
+
writer.writeBool(
|
5572
|
+
2,
|
5573
|
+
f
|
5574
|
+
);
|
5575
|
+
}
|
5576
|
+
};
|
5577
|
+
|
5578
|
+
|
5579
|
+
/**
|
5580
|
+
* optional int32 id = 1;
|
5581
|
+
* @return {number}
|
5582
|
+
*/
|
5583
|
+
proto.cms.GetBannerGroupRequest.prototype.getId = function() {
|
5584
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5585
|
+
};
|
5586
|
+
|
5587
|
+
|
5588
|
+
/**
|
5589
|
+
* @param {number} value
|
5590
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
5591
|
+
*/
|
5592
|
+
proto.cms.GetBannerGroupRequest.prototype.setId = function(value) {
|
5593
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5594
|
+
};
|
5595
|
+
|
5596
|
+
|
5597
|
+
/**
|
5598
|
+
* optional bool admin_side = 2;
|
5599
|
+
* @return {boolean}
|
5600
|
+
*/
|
5601
|
+
proto.cms.GetBannerGroupRequest.prototype.getAdminSide = function() {
|
5602
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
5603
|
+
};
|
5604
|
+
|
5605
|
+
|
5606
|
+
/**
|
5607
|
+
* @param {boolean} value
|
5608
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
5609
|
+
*/
|
5610
|
+
proto.cms.GetBannerGroupRequest.prototype.setAdminSide = function(value) {
|
5611
|
+
return jspb.Message.setField(this, 2, value);
|
5612
|
+
};
|
5613
|
+
|
5614
|
+
|
5615
|
+
/**
|
5616
|
+
* Clears the field making it undefined.
|
5617
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
5618
|
+
*/
|
5619
|
+
proto.cms.GetBannerGroupRequest.prototype.clearAdminSide = function() {
|
5620
|
+
return jspb.Message.setField(this, 2, undefined);
|
5621
|
+
};
|
5622
|
+
|
5623
|
+
|
5624
|
+
/**
|
5625
|
+
* Returns whether this field is set.
|
5626
|
+
* @return {boolean}
|
5627
|
+
*/
|
5628
|
+
proto.cms.GetBannerGroupRequest.prototype.hasAdminSide = function() {
|
5629
|
+
return jspb.Message.getField(this, 2) != null;
|
5630
|
+
};
|
5631
|
+
|
5632
|
+
|
5633
|
+
|
5634
|
+
|
5635
|
+
|
5636
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5637
|
+
/**
|
5638
|
+
* Creates an object representation of this proto.
|
5639
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5640
|
+
* Optional fields that are not set will be set to undefined.
|
5641
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5642
|
+
* For the list of reserved names please see:
|
5643
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5644
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5645
|
+
* JSPB instance for transitional soy proto support:
|
5646
|
+
* http://goto/soy-param-migration
|
5647
|
+
* @return {!Object}
|
5648
|
+
*/
|
5649
|
+
proto.cms.BannerGroupResponse.prototype.toObject = function(opt_includeInstance) {
|
5650
|
+
return proto.cms.BannerGroupResponse.toObject(opt_includeInstance, this);
|
5651
|
+
};
|
5652
|
+
|
5653
|
+
|
5654
|
+
/**
|
5655
|
+
* Static version of the {@see toObject} method.
|
5656
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5657
|
+
* the JSPB instance for transitional soy proto support:
|
5658
|
+
* http://goto/soy-param-migration
|
5659
|
+
* @param {!proto.cms.BannerGroupResponse} msg The msg instance to transform.
|
5660
|
+
* @return {!Object}
|
5661
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5662
|
+
*/
|
5663
|
+
proto.cms.BannerGroupResponse.toObject = function(includeInstance, msg) {
|
5664
|
+
var f, obj = {
|
5665
|
+
data: (f = msg.getData()) && proto.cms.BannerGroupItem.toObject(includeInstance, f)
|
5666
|
+
};
|
5667
|
+
|
5668
|
+
if (includeInstance) {
|
5669
|
+
obj.$jspbMessageInstance = msg;
|
5670
|
+
}
|
5671
|
+
return obj;
|
5672
|
+
};
|
5673
|
+
}
|
5674
|
+
|
5675
|
+
|
5676
|
+
/**
|
5677
|
+
* Deserializes binary data (in protobuf wire format).
|
5678
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5679
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5680
|
+
*/
|
5681
|
+
proto.cms.BannerGroupResponse.deserializeBinary = function(bytes) {
|
5682
|
+
var reader = new jspb.BinaryReader(bytes);
|
5683
|
+
var msg = new proto.cms.BannerGroupResponse;
|
5684
|
+
return proto.cms.BannerGroupResponse.deserializeBinaryFromReader(msg, reader);
|
5685
|
+
};
|
5686
|
+
|
5687
|
+
|
5688
|
+
/**
|
5689
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5690
|
+
* given reader into the given message object.
|
5691
|
+
* @param {!proto.cms.BannerGroupResponse} msg The message object to deserialize into.
|
5692
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5693
|
+
* @return {!proto.cms.BannerGroupResponse}
|
5694
|
+
*/
|
5695
|
+
proto.cms.BannerGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5696
|
+
while (reader.nextField()) {
|
5697
|
+
if (reader.isEndGroup()) {
|
5698
|
+
break;
|
5699
|
+
}
|
5700
|
+
var field = reader.getFieldNumber();
|
5701
|
+
switch (field) {
|
5702
|
+
case 1:
|
5703
|
+
var value = new proto.cms.BannerGroupItem;
|
5704
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5705
|
+
msg.setData(value);
|
5706
|
+
break;
|
5707
|
+
default:
|
5708
|
+
reader.skipField();
|
5709
|
+
break;
|
5710
|
+
}
|
5711
|
+
}
|
5712
|
+
return msg;
|
5713
|
+
};
|
5714
|
+
|
5715
|
+
|
5716
|
+
/**
|
5717
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5718
|
+
* @return {!Uint8Array}
|
5719
|
+
*/
|
5720
|
+
proto.cms.BannerGroupResponse.prototype.serializeBinary = function() {
|
5721
|
+
var writer = new jspb.BinaryWriter();
|
5722
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter(this, writer);
|
5723
|
+
return writer.getResultBuffer();
|
5724
|
+
};
|
5725
|
+
|
5726
|
+
|
5727
|
+
/**
|
5728
|
+
* Serializes the given message to binary data (in protobuf wire
|
5729
|
+
* format), writing to the given BinaryWriter.
|
5730
|
+
* @param {!proto.cms.BannerGroupResponse} message
|
5731
|
+
* @param {!jspb.BinaryWriter} writer
|
5732
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5733
|
+
*/
|
5734
|
+
proto.cms.BannerGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
5735
|
+
var f = undefined;
|
5736
|
+
f = message.getData();
|
5737
|
+
if (f != null) {
|
5738
|
+
writer.writeMessage(
|
5739
|
+
1,
|
5740
|
+
f,
|
5741
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5742
|
+
);
|
5743
|
+
}
|
5744
|
+
};
|
5745
|
+
|
5746
|
+
|
5747
|
+
/**
|
5748
|
+
* optional BannerGroupItem data = 1;
|
5749
|
+
* @return {?proto.cms.BannerGroupItem}
|
5750
|
+
*/
|
5751
|
+
proto.cms.BannerGroupResponse.prototype.getData = function() {
|
5752
|
+
return /** @type{?proto.cms.BannerGroupItem} */ (
|
5753
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5754
|
+
};
|
5755
|
+
|
5756
|
+
|
5757
|
+
/**
|
5758
|
+
* @param {?proto.cms.BannerGroupItem|undefined} value
|
5759
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5760
|
+
*/
|
5761
|
+
proto.cms.BannerGroupResponse.prototype.setData = function(value) {
|
5762
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
5763
|
+
};
|
5764
|
+
|
5765
|
+
|
5766
|
+
/**
|
5767
|
+
* Clears the message field making it undefined.
|
5768
|
+
* @return {!proto.cms.BannerGroupResponse} returns this
|
5769
|
+
*/
|
5770
|
+
proto.cms.BannerGroupResponse.prototype.clearData = function() {
|
5771
|
+
return this.setData(undefined);
|
5772
|
+
};
|
5773
|
+
|
5774
|
+
|
5775
|
+
/**
|
5776
|
+
* Returns whether this field is set.
|
5777
|
+
* @return {boolean}
|
5778
|
+
*/
|
5779
|
+
proto.cms.BannerGroupResponse.prototype.hasData = function() {
|
5780
|
+
return jspb.Message.getField(this, 1) != null;
|
5781
|
+
};
|
5782
|
+
|
5783
|
+
|
5784
|
+
|
5785
|
+
/**
|
5786
|
+
* List of repeated fields within this message type.
|
5787
|
+
* @private {!Array<number>}
|
5788
|
+
* @const
|
5789
|
+
*/
|
5790
|
+
proto.cms.BannerGroupItemsResponse.repeatedFields_ = [1];
|
5791
|
+
|
5792
|
+
|
5793
|
+
|
5794
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5795
|
+
/**
|
5796
|
+
* Creates an object representation of this proto.
|
5797
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5798
|
+
* Optional fields that are not set will be set to undefined.
|
5799
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5800
|
+
* For the list of reserved names please see:
|
5801
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5802
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5803
|
+
* JSPB instance for transitional soy proto support:
|
5804
|
+
* http://goto/soy-param-migration
|
5805
|
+
* @return {!Object}
|
5806
|
+
*/
|
5807
|
+
proto.cms.BannerGroupItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
5808
|
+
return proto.cms.BannerGroupItemsResponse.toObject(opt_includeInstance, this);
|
5809
|
+
};
|
5810
|
+
|
5811
|
+
|
5812
|
+
/**
|
5813
|
+
* Static version of the {@see toObject} method.
|
5814
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5815
|
+
* the JSPB instance for transitional soy proto support:
|
5816
|
+
* http://goto/soy-param-migration
|
5817
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The msg instance to transform.
|
5818
|
+
* @return {!Object}
|
5819
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5820
|
+
*/
|
5821
|
+
proto.cms.BannerGroupItemsResponse.toObject = function(includeInstance, msg) {
|
5822
|
+
var f, obj = {
|
5823
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5824
|
+
proto.cms.BannerGroupItem.toObject, includeInstance),
|
5825
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5826
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
5827
|
+
};
|
5828
|
+
|
5829
|
+
if (includeInstance) {
|
5830
|
+
obj.$jspbMessageInstance = msg;
|
5831
|
+
}
|
5832
|
+
return obj;
|
5833
|
+
};
|
5834
|
+
}
|
5835
|
+
|
5836
|
+
|
5837
|
+
/**
|
5838
|
+
* Deserializes binary data (in protobuf wire format).
|
5839
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5840
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5841
|
+
*/
|
5842
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinary = function(bytes) {
|
5843
|
+
var reader = new jspb.BinaryReader(bytes);
|
5844
|
+
var msg = new proto.cms.BannerGroupItemsResponse;
|
5845
|
+
return proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader(msg, reader);
|
5846
|
+
};
|
5847
|
+
|
5848
|
+
|
5849
|
+
/**
|
5850
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5851
|
+
* given reader into the given message object.
|
5852
|
+
* @param {!proto.cms.BannerGroupItemsResponse} msg The message object to deserialize into.
|
5853
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5854
|
+
* @return {!proto.cms.BannerGroupItemsResponse}
|
5855
|
+
*/
|
5856
|
+
proto.cms.BannerGroupItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5857
|
+
while (reader.nextField()) {
|
5858
|
+
if (reader.isEndGroup()) {
|
5859
|
+
break;
|
5860
|
+
}
|
5861
|
+
var field = reader.getFieldNumber();
|
5862
|
+
switch (field) {
|
5863
|
+
case 1:
|
5864
|
+
var value = new proto.cms.BannerGroupItem;
|
5865
|
+
reader.readMessage(value,proto.cms.BannerGroupItem.deserializeBinaryFromReader);
|
5866
|
+
msg.addItems(value);
|
5867
|
+
break;
|
5868
|
+
case 2:
|
5869
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5870
|
+
msg.setTotalPages(value);
|
5871
|
+
break;
|
5872
|
+
case 3:
|
5873
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5874
|
+
msg.setTotalItems(value);
|
5875
|
+
break;
|
5876
|
+
default:
|
5877
|
+
reader.skipField();
|
5878
|
+
break;
|
5879
|
+
}
|
5880
|
+
}
|
5881
|
+
return msg;
|
5882
|
+
};
|
5883
|
+
|
5884
|
+
|
5885
|
+
/**
|
5886
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5887
|
+
* @return {!Uint8Array}
|
5888
|
+
*/
|
5889
|
+
proto.cms.BannerGroupItemsResponse.prototype.serializeBinary = function() {
|
5890
|
+
var writer = new jspb.BinaryWriter();
|
5891
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter(this, writer);
|
5892
|
+
return writer.getResultBuffer();
|
5893
|
+
};
|
5894
|
+
|
5895
|
+
|
5896
|
+
/**
|
5897
|
+
* Serializes the given message to binary data (in protobuf wire
|
5898
|
+
* format), writing to the given BinaryWriter.
|
5899
|
+
* @param {!proto.cms.BannerGroupItemsResponse} message
|
5900
|
+
* @param {!jspb.BinaryWriter} writer
|
5901
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5902
|
+
*/
|
5903
|
+
proto.cms.BannerGroupItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
5904
|
+
var f = undefined;
|
5905
|
+
f = message.getItemsList();
|
5906
|
+
if (f.length > 0) {
|
5907
|
+
writer.writeRepeatedMessage(
|
5908
|
+
1,
|
5909
|
+
f,
|
5910
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter
|
5911
|
+
);
|
5912
|
+
}
|
5913
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5914
|
+
if (f != null) {
|
5915
|
+
writer.writeInt32(
|
5916
|
+
2,
|
5917
|
+
f
|
5918
|
+
);
|
5919
|
+
}
|
5920
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5921
|
+
if (f != null) {
|
5922
|
+
writer.writeInt32(
|
5923
|
+
3,
|
5924
|
+
f
|
5925
|
+
);
|
5926
|
+
}
|
5927
|
+
};
|
5928
|
+
|
5929
|
+
|
5930
|
+
/**
|
5931
|
+
* repeated BannerGroupItem items = 1;
|
5932
|
+
* @return {!Array<!proto.cms.BannerGroupItem>}
|
5933
|
+
*/
|
5934
|
+
proto.cms.BannerGroupItemsResponse.prototype.getItemsList = function() {
|
5935
|
+
return /** @type{!Array<!proto.cms.BannerGroupItem>} */ (
|
5936
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerGroupItem, 1));
|
5937
|
+
};
|
5938
|
+
|
5939
|
+
|
5940
|
+
/**
|
5941
|
+
* @param {!Array<!proto.cms.BannerGroupItem>} value
|
5942
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5943
|
+
*/
|
5944
|
+
proto.cms.BannerGroupItemsResponse.prototype.setItemsList = function(value) {
|
5945
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
5946
|
+
};
|
5947
|
+
|
5948
|
+
|
5949
|
+
/**
|
5950
|
+
* @param {!proto.cms.BannerGroupItem=} opt_value
|
5951
|
+
* @param {number=} opt_index
|
5952
|
+
* @return {!proto.cms.BannerGroupItem}
|
5953
|
+
*/
|
5954
|
+
proto.cms.BannerGroupItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
5955
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerGroupItem, opt_index);
|
5956
|
+
};
|
5957
|
+
|
5958
|
+
|
5959
|
+
/**
|
5960
|
+
* Clears the list making it empty but non-null.
|
5961
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5962
|
+
*/
|
5963
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearItemsList = function() {
|
5964
|
+
return this.setItemsList([]);
|
5965
|
+
};
|
5966
|
+
|
5967
|
+
|
5968
|
+
/**
|
5969
|
+
* optional int32 total_pages = 2;
|
5970
|
+
* @return {number}
|
5971
|
+
*/
|
5972
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalPages = function() {
|
5973
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5974
|
+
};
|
5975
|
+
|
5976
|
+
|
5977
|
+
/**
|
5978
|
+
* @param {number} value
|
5979
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5980
|
+
*/
|
5981
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalPages = function(value) {
|
5982
|
+
return jspb.Message.setField(this, 2, value);
|
5983
|
+
};
|
5984
|
+
|
5985
|
+
|
5986
|
+
/**
|
5987
|
+
* Clears the field making it undefined.
|
5988
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
5989
|
+
*/
|
5990
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalPages = function() {
|
5991
|
+
return jspb.Message.setField(this, 2, undefined);
|
5992
|
+
};
|
5993
|
+
|
5994
|
+
|
5995
|
+
/**
|
5996
|
+
* Returns whether this field is set.
|
5997
|
+
* @return {boolean}
|
5998
|
+
*/
|
5999
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalPages = function() {
|
6000
|
+
return jspb.Message.getField(this, 2) != null;
|
6001
|
+
};
|
6002
|
+
|
6003
|
+
|
6004
|
+
/**
|
6005
|
+
* optional int32 total_items = 3;
|
6006
|
+
* @return {number}
|
6007
|
+
*/
|
6008
|
+
proto.cms.BannerGroupItemsResponse.prototype.getTotalItems = function() {
|
6009
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6010
|
+
};
|
6011
|
+
|
6012
|
+
|
6013
|
+
/**
|
6014
|
+
* @param {number} value
|
6015
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6016
|
+
*/
|
6017
|
+
proto.cms.BannerGroupItemsResponse.prototype.setTotalItems = function(value) {
|
6018
|
+
return jspb.Message.setField(this, 3, value);
|
6019
|
+
};
|
6020
|
+
|
6021
|
+
|
6022
|
+
/**
|
6023
|
+
* Clears the field making it undefined.
|
6024
|
+
* @return {!proto.cms.BannerGroupItemsResponse} returns this
|
6025
|
+
*/
|
6026
|
+
proto.cms.BannerGroupItemsResponse.prototype.clearTotalItems = function() {
|
6027
|
+
return jspb.Message.setField(this, 3, undefined);
|
6028
|
+
};
|
6029
|
+
|
6030
|
+
|
6031
|
+
/**
|
6032
|
+
* Returns whether this field is set.
|
6033
|
+
* @return {boolean}
|
6034
|
+
*/
|
6035
|
+
proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
|
6036
|
+
return jspb.Message.getField(this, 3) != null;
|
6037
|
+
};
|
6038
|
+
|
6039
|
+
|
4516
6040
|
goog.object.extend(exports, proto.cms);
|