protobuf-platform 1.0.192 → 1.0.194
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 +37 -10
- package/cms/cms_grpc_pb.js +56 -1
- package/cms/cms_pb.js +1800 -487
- package/package.json +1 -1
package/cms/cms_pb.js
CHANGED
@@ -21,6 +21,8 @@ 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.BannerGroupRequest', null, global);
|
24
26
|
goog.exportSymbol('proto.cms.BannerItem', null, global);
|
25
27
|
goog.exportSymbol('proto.cms.BannerItemRequest', null, global);
|
26
28
|
goog.exportSymbol('proto.cms.BannerItemsResponse', null, global);
|
@@ -28,9 +30,11 @@ goog.exportSymbol('proto.cms.BannerRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.cms.BannerRequest.RequestCase', null, global);
|
29
31
|
goog.exportSymbol('proto.cms.BannerResponse', null, global);
|
30
32
|
goog.exportSymbol('proto.cms.BannerStatusResponse', null, global);
|
33
|
+
goog.exportSymbol('proto.cms.BannerTexts', null, global);
|
31
34
|
goog.exportSymbol('proto.cms.BurgerMenuWidgetItem', null, global);
|
32
35
|
goog.exportSymbol('proto.cms.CommonWidgetRequest', null, global);
|
33
36
|
goog.exportSymbol('proto.cms.File', null, global);
|
37
|
+
goog.exportSymbol('proto.cms.GetBannerGroupRequest', null, global);
|
34
38
|
goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
|
35
39
|
goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
|
36
40
|
goog.exportSymbol('proto.cms.GetFileRequest', null, global);
|
@@ -303,7 +307,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
303
307
|
* @constructor
|
304
308
|
*/
|
305
309
|
proto.cms.BannerItemRequest = function(opt_data) {
|
306
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
310
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerItemRequest.repeatedFields_, null);
|
307
311
|
};
|
308
312
|
goog.inherits(proto.cms.BannerItemRequest, jspb.Message);
|
309
313
|
if (goog.DEBUG && !COMPILED) {
|
@@ -324,7 +328,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
324
328
|
* @constructor
|
325
329
|
*/
|
326
330
|
proto.cms.BannerItem = function(opt_data) {
|
327
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
331
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerItem.repeatedFields_, null);
|
328
332
|
};
|
329
333
|
goog.inherits(proto.cms.BannerItem, jspb.Message);
|
330
334
|
if (goog.DEBUG && !COMPILED) {
|
@@ -334,6 +338,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
334
338
|
*/
|
335
339
|
proto.cms.BannerItem.displayName = 'proto.cms.BannerItem';
|
336
340
|
}
|
341
|
+
/**
|
342
|
+
* Generated by JsPbCodeGenerator.
|
343
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
344
|
+
* server response, or constructed directly in Javascript. The array is used
|
345
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
346
|
+
* If no data is provided, the constructed object will be empty, but still
|
347
|
+
* valid.
|
348
|
+
* @extends {jspb.Message}
|
349
|
+
* @constructor
|
350
|
+
*/
|
351
|
+
proto.cms.BannerTexts = function(opt_data) {
|
352
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
353
|
+
};
|
354
|
+
goog.inherits(proto.cms.BannerTexts, jspb.Message);
|
355
|
+
if (goog.DEBUG && !COMPILED) {
|
356
|
+
/**
|
357
|
+
* @public
|
358
|
+
* @override
|
359
|
+
*/
|
360
|
+
proto.cms.BannerTexts.displayName = 'proto.cms.BannerTexts';
|
361
|
+
}
|
337
362
|
/**
|
338
363
|
* Generated by JsPbCodeGenerator.
|
339
364
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -418,6 +443,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
418
443
|
*/
|
419
444
|
proto.cms.BannerItemsResponse.displayName = 'proto.cms.BannerItemsResponse';
|
420
445
|
}
|
446
|
+
/**
|
447
|
+
* Generated by JsPbCodeGenerator.
|
448
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
449
|
+
* server response, or constructed directly in Javascript. The array is used
|
450
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
451
|
+
* If no data is provided, the constructed object will be empty, but still
|
452
|
+
* valid.
|
453
|
+
* @extends {jspb.Message}
|
454
|
+
* @constructor
|
455
|
+
*/
|
456
|
+
proto.cms.BannerGroupRequest = function(opt_data) {
|
457
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupRequest.repeatedFields_, null);
|
458
|
+
};
|
459
|
+
goog.inherits(proto.cms.BannerGroupRequest, jspb.Message);
|
460
|
+
if (goog.DEBUG && !COMPILED) {
|
461
|
+
/**
|
462
|
+
* @public
|
463
|
+
* @override
|
464
|
+
*/
|
465
|
+
proto.cms.BannerGroupRequest.displayName = 'proto.cms.BannerGroupRequest';
|
466
|
+
}
|
467
|
+
/**
|
468
|
+
* Generated by JsPbCodeGenerator.
|
469
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
470
|
+
* server response, or constructed directly in Javascript. The array is used
|
471
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
472
|
+
* If no data is provided, the constructed object will be empty, but still
|
473
|
+
* valid.
|
474
|
+
* @extends {jspb.Message}
|
475
|
+
* @constructor
|
476
|
+
*/
|
477
|
+
proto.cms.BannerGroupItem = function(opt_data) {
|
478
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.BannerGroupItem.repeatedFields_, null);
|
479
|
+
};
|
480
|
+
goog.inherits(proto.cms.BannerGroupItem, jspb.Message);
|
481
|
+
if (goog.DEBUG && !COMPILED) {
|
482
|
+
/**
|
483
|
+
* @public
|
484
|
+
* @override
|
485
|
+
*/
|
486
|
+
proto.cms.BannerGroupItem.displayName = 'proto.cms.BannerGroupItem';
|
487
|
+
}
|
488
|
+
/**
|
489
|
+
* Generated by JsPbCodeGenerator.
|
490
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
491
|
+
* server response, or constructed directly in Javascript. The array is used
|
492
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
493
|
+
* If no data is provided, the constructed object will be empty, but still
|
494
|
+
* valid.
|
495
|
+
* @extends {jspb.Message}
|
496
|
+
* @constructor
|
497
|
+
*/
|
498
|
+
proto.cms.GetBannerGroupRequest = function(opt_data) {
|
499
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
500
|
+
};
|
501
|
+
goog.inherits(proto.cms.GetBannerGroupRequest, jspb.Message);
|
502
|
+
if (goog.DEBUG && !COMPILED) {
|
503
|
+
/**
|
504
|
+
* @public
|
505
|
+
* @override
|
506
|
+
*/
|
507
|
+
proto.cms.GetBannerGroupRequest.displayName = 'proto.cms.GetBannerGroupRequest';
|
508
|
+
}
|
421
509
|
|
422
510
|
|
423
511
|
|
@@ -2735,6 +2823,13 @@ proto.cms.BannerRequest.prototype.hasImageSmall = function() {
|
|
2735
2823
|
|
2736
2824
|
|
2737
2825
|
|
2826
|
+
/**
|
2827
|
+
* List of repeated fields within this message type.
|
2828
|
+
* @private {!Array<number>}
|
2829
|
+
* @const
|
2830
|
+
*/
|
2831
|
+
proto.cms.BannerItemRequest.repeatedFields_ = [7];
|
2832
|
+
|
2738
2833
|
|
2739
2834
|
|
2740
2835
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -2766,12 +2861,14 @@ proto.cms.BannerItemRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2766
2861
|
*/
|
2767
2862
|
proto.cms.BannerItemRequest.toObject = function(includeInstance, msg) {
|
2768
2863
|
var f, obj = {
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2864
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2865
|
+
bannerGroupId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2866
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2772
2867
|
ctaType: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2773
|
-
|
2774
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
2868
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
2869
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
2870
|
+
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
2871
|
+
proto.cms.BannerTexts.toObject, includeInstance)
|
2775
2872
|
};
|
2776
2873
|
|
2777
2874
|
if (includeInstance) {
|
@@ -2809,16 +2906,16 @@ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2809
2906
|
var field = reader.getFieldNumber();
|
2810
2907
|
switch (field) {
|
2811
2908
|
case 1:
|
2812
|
-
var value = /** @type {
|
2813
|
-
msg.
|
2909
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2910
|
+
msg.setId(value);
|
2814
2911
|
break;
|
2815
2912
|
case 2:
|
2816
|
-
var value = /** @type {
|
2817
|
-
msg.
|
2913
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2914
|
+
msg.setBannerGroupId(value);
|
2818
2915
|
break;
|
2819
2916
|
case 3:
|
2820
2917
|
var value = /** @type {string} */ (reader.readString());
|
2821
|
-
msg.
|
2918
|
+
msg.setGeo(value);
|
2822
2919
|
break;
|
2823
2920
|
case 4:
|
2824
2921
|
var value = /** @type {string} */ (reader.readString());
|
@@ -2826,12 +2923,17 @@ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2826
2923
|
break;
|
2827
2924
|
case 5:
|
2828
2925
|
var value = /** @type {string} */ (reader.readString());
|
2829
|
-
msg.
|
2926
|
+
msg.setAnchor(value);
|
2830
2927
|
break;
|
2831
2928
|
case 6:
|
2832
2929
|
var value = /** @type {number} */ (reader.readInt32());
|
2833
2930
|
msg.setIsActive(value);
|
2834
2931
|
break;
|
2932
|
+
case 7:
|
2933
|
+
var value = new proto.cms.BannerTexts;
|
2934
|
+
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
2935
|
+
msg.addTexts(value);
|
2936
|
+
break;
|
2835
2937
|
default:
|
2836
2938
|
reader.skipField();
|
2837
2939
|
break;
|
@@ -2861,16 +2963,16 @@ proto.cms.BannerItemRequest.prototype.serializeBinary = function() {
|
|
2861
2963
|
*/
|
2862
2964
|
proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2863
2965
|
var f = undefined;
|
2864
|
-
f = /** @type {
|
2966
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2865
2967
|
if (f != null) {
|
2866
|
-
writer.
|
2968
|
+
writer.writeInt32(
|
2867
2969
|
1,
|
2868
2970
|
f
|
2869
2971
|
);
|
2870
2972
|
}
|
2871
|
-
f = /** @type {
|
2973
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2872
2974
|
if (f != null) {
|
2873
|
-
writer.
|
2975
|
+
writer.writeInt32(
|
2874
2976
|
2,
|
2875
2977
|
f
|
2876
2978
|
);
|
@@ -2903,23 +3005,31 @@ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
2903
3005
|
f
|
2904
3006
|
);
|
2905
3007
|
}
|
3008
|
+
f = message.getTextsList();
|
3009
|
+
if (f.length > 0) {
|
3010
|
+
writer.writeRepeatedMessage(
|
3011
|
+
7,
|
3012
|
+
f,
|
3013
|
+
proto.cms.BannerTexts.serializeBinaryToWriter
|
3014
|
+
);
|
3015
|
+
}
|
2906
3016
|
};
|
2907
3017
|
|
2908
3018
|
|
2909
3019
|
/**
|
2910
|
-
* optional
|
2911
|
-
* @return {
|
3020
|
+
* optional int32 id = 1;
|
3021
|
+
* @return {number}
|
2912
3022
|
*/
|
2913
|
-
proto.cms.BannerItemRequest.prototype.
|
2914
|
-
return /** @type {
|
3023
|
+
proto.cms.BannerItemRequest.prototype.getId = function() {
|
3024
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2915
3025
|
};
|
2916
3026
|
|
2917
3027
|
|
2918
3028
|
/**
|
2919
|
-
* @param {
|
3029
|
+
* @param {number} value
|
2920
3030
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2921
3031
|
*/
|
2922
|
-
proto.cms.BannerItemRequest.prototype.
|
3032
|
+
proto.cms.BannerItemRequest.prototype.setId = function(value) {
|
2923
3033
|
return jspb.Message.setField(this, 1, value);
|
2924
3034
|
};
|
2925
3035
|
|
@@ -2928,7 +3038,7 @@ proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
|
2928
3038
|
* Clears the field making it undefined.
|
2929
3039
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2930
3040
|
*/
|
2931
|
-
proto.cms.BannerItemRequest.prototype.
|
3041
|
+
proto.cms.BannerItemRequest.prototype.clearId = function() {
|
2932
3042
|
return jspb.Message.setField(this, 1, undefined);
|
2933
3043
|
};
|
2934
3044
|
|
@@ -2937,25 +3047,25 @@ proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
|
2937
3047
|
* Returns whether this field is set.
|
2938
3048
|
* @return {boolean}
|
2939
3049
|
*/
|
2940
|
-
proto.cms.BannerItemRequest.prototype.
|
3050
|
+
proto.cms.BannerItemRequest.prototype.hasId = function() {
|
2941
3051
|
return jspb.Message.getField(this, 1) != null;
|
2942
3052
|
};
|
2943
3053
|
|
2944
3054
|
|
2945
3055
|
/**
|
2946
|
-
* optional
|
2947
|
-
* @return {
|
3056
|
+
* optional int32 banner_group_id = 2;
|
3057
|
+
* @return {number}
|
2948
3058
|
*/
|
2949
|
-
proto.cms.BannerItemRequest.prototype.
|
2950
|
-
return /** @type {
|
3059
|
+
proto.cms.BannerItemRequest.prototype.getBannerGroupId = function() {
|
3060
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2951
3061
|
};
|
2952
3062
|
|
2953
3063
|
|
2954
3064
|
/**
|
2955
|
-
* @param {
|
3065
|
+
* @param {number} value
|
2956
3066
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2957
3067
|
*/
|
2958
|
-
proto.cms.BannerItemRequest.prototype.
|
3068
|
+
proto.cms.BannerItemRequest.prototype.setBannerGroupId = function(value) {
|
2959
3069
|
return jspb.Message.setField(this, 2, value);
|
2960
3070
|
};
|
2961
3071
|
|
@@ -2964,7 +3074,7 @@ proto.cms.BannerItemRequest.prototype.setTitle = function(value) {
|
|
2964
3074
|
* Clears the field making it undefined.
|
2965
3075
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2966
3076
|
*/
|
2967
|
-
proto.cms.BannerItemRequest.prototype.
|
3077
|
+
proto.cms.BannerItemRequest.prototype.clearBannerGroupId = function() {
|
2968
3078
|
return jspb.Message.setField(this, 2, undefined);
|
2969
3079
|
};
|
2970
3080
|
|
@@ -2973,16 +3083,16 @@ proto.cms.BannerItemRequest.prototype.clearTitle = function() {
|
|
2973
3083
|
* Returns whether this field is set.
|
2974
3084
|
* @return {boolean}
|
2975
3085
|
*/
|
2976
|
-
proto.cms.BannerItemRequest.prototype.
|
3086
|
+
proto.cms.BannerItemRequest.prototype.hasBannerGroupId = function() {
|
2977
3087
|
return jspb.Message.getField(this, 2) != null;
|
2978
3088
|
};
|
2979
3089
|
|
2980
3090
|
|
2981
3091
|
/**
|
2982
|
-
* optional string
|
3092
|
+
* optional string geo = 3;
|
2983
3093
|
* @return {string}
|
2984
3094
|
*/
|
2985
|
-
proto.cms.BannerItemRequest.prototype.
|
3095
|
+
proto.cms.BannerItemRequest.prototype.getGeo = function() {
|
2986
3096
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2987
3097
|
};
|
2988
3098
|
|
@@ -2991,7 +3101,7 @@ proto.cms.BannerItemRequest.prototype.getContent = function() {
|
|
2991
3101
|
* @param {string} value
|
2992
3102
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2993
3103
|
*/
|
2994
|
-
proto.cms.BannerItemRequest.prototype.
|
3104
|
+
proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
2995
3105
|
return jspb.Message.setField(this, 3, value);
|
2996
3106
|
};
|
2997
3107
|
|
@@ -3000,7 +3110,7 @@ proto.cms.BannerItemRequest.prototype.setContent = function(value) {
|
|
3000
3110
|
* Clears the field making it undefined.
|
3001
3111
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3002
3112
|
*/
|
3003
|
-
proto.cms.BannerItemRequest.prototype.
|
3113
|
+
proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
3004
3114
|
return jspb.Message.setField(this, 3, undefined);
|
3005
3115
|
};
|
3006
3116
|
|
@@ -3009,7 +3119,7 @@ proto.cms.BannerItemRequest.prototype.clearContent = function() {
|
|
3009
3119
|
* Returns whether this field is set.
|
3010
3120
|
* @return {boolean}
|
3011
3121
|
*/
|
3012
|
-
proto.cms.BannerItemRequest.prototype.
|
3122
|
+
proto.cms.BannerItemRequest.prototype.hasGeo = function() {
|
3013
3123
|
return jspb.Message.getField(this, 3) != null;
|
3014
3124
|
};
|
3015
3125
|
|
@@ -3051,10 +3161,10 @@ proto.cms.BannerItemRequest.prototype.hasCtaType = function() {
|
|
3051
3161
|
|
3052
3162
|
|
3053
3163
|
/**
|
3054
|
-
* optional string
|
3164
|
+
* optional string anchor = 5;
|
3055
3165
|
* @return {string}
|
3056
3166
|
*/
|
3057
|
-
proto.cms.BannerItemRequest.prototype.
|
3167
|
+
proto.cms.BannerItemRequest.prototype.getAnchor = function() {
|
3058
3168
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3059
3169
|
};
|
3060
3170
|
|
@@ -3063,7 +3173,7 @@ proto.cms.BannerItemRequest.prototype.getCtaText = function() {
|
|
3063
3173
|
* @param {string} value
|
3064
3174
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3065
3175
|
*/
|
3066
|
-
proto.cms.BannerItemRequest.prototype.
|
3176
|
+
proto.cms.BannerItemRequest.prototype.setAnchor = function(value) {
|
3067
3177
|
return jspb.Message.setField(this, 5, value);
|
3068
3178
|
};
|
3069
3179
|
|
@@ -3072,7 +3182,7 @@ proto.cms.BannerItemRequest.prototype.setCtaText = function(value) {
|
|
3072
3182
|
* Clears the field making it undefined.
|
3073
3183
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3074
3184
|
*/
|
3075
|
-
proto.cms.BannerItemRequest.prototype.
|
3185
|
+
proto.cms.BannerItemRequest.prototype.clearAnchor = function() {
|
3076
3186
|
return jspb.Message.setField(this, 5, undefined);
|
3077
3187
|
};
|
3078
3188
|
|
@@ -3081,7 +3191,7 @@ proto.cms.BannerItemRequest.prototype.clearCtaText = function() {
|
|
3081
3191
|
* Returns whether this field is set.
|
3082
3192
|
* @return {boolean}
|
3083
3193
|
*/
|
3084
|
-
proto.cms.BannerItemRequest.prototype.
|
3194
|
+
proto.cms.BannerItemRequest.prototype.hasAnchor = function() {
|
3085
3195
|
return jspb.Message.getField(this, 5) != null;
|
3086
3196
|
};
|
3087
3197
|
|
@@ -3122,6 +3232,51 @@ proto.cms.BannerItemRequest.prototype.hasIsActive = function() {
|
|
3122
3232
|
};
|
3123
3233
|
|
3124
3234
|
|
3235
|
+
/**
|
3236
|
+
* repeated BannerTexts texts = 7;
|
3237
|
+
* @return {!Array<!proto.cms.BannerTexts>}
|
3238
|
+
*/
|
3239
|
+
proto.cms.BannerItemRequest.prototype.getTextsList = function() {
|
3240
|
+
return /** @type{!Array<!proto.cms.BannerTexts>} */ (
|
3241
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 7));
|
3242
|
+
};
|
3243
|
+
|
3244
|
+
|
3245
|
+
/**
|
3246
|
+
* @param {!Array<!proto.cms.BannerTexts>} value
|
3247
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
3248
|
+
*/
|
3249
|
+
proto.cms.BannerItemRequest.prototype.setTextsList = function(value) {
|
3250
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
3251
|
+
};
|
3252
|
+
|
3253
|
+
|
3254
|
+
/**
|
3255
|
+
* @param {!proto.cms.BannerTexts=} opt_value
|
3256
|
+
* @param {number=} opt_index
|
3257
|
+
* @return {!proto.cms.BannerTexts}
|
3258
|
+
*/
|
3259
|
+
proto.cms.BannerItemRequest.prototype.addTexts = function(opt_value, opt_index) {
|
3260
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cms.BannerTexts, opt_index);
|
3261
|
+
};
|
3262
|
+
|
3263
|
+
|
3264
|
+
/**
|
3265
|
+
* Clears the list making it empty but non-null.
|
3266
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
3267
|
+
*/
|
3268
|
+
proto.cms.BannerItemRequest.prototype.clearTextsList = function() {
|
3269
|
+
return this.setTextsList([]);
|
3270
|
+
};
|
3271
|
+
|
3272
|
+
|
3273
|
+
|
3274
|
+
/**
|
3275
|
+
* List of repeated fields within this message type.
|
3276
|
+
* @private {!Array<number>}
|
3277
|
+
* @const
|
3278
|
+
*/
|
3279
|
+
proto.cms.BannerItem.repeatedFields_ = [7];
|
3125
3280
|
|
3126
3281
|
|
3127
3282
|
|
@@ -3154,14 +3309,14 @@ proto.cms.BannerItem.prototype.toObject = function(opt_includeInstance) {
|
|
3154
3309
|
*/
|
3155
3310
|
proto.cms.BannerItem.toObject = function(includeInstance, msg) {
|
3156
3311
|
var f, obj = {
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3312
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3313
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3314
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3315
|
+
imageBig: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3316
|
+
imageSmall: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3317
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3318
|
+
textsList: jspb.Message.toObjectList(msg.getTextsList(),
|
3319
|
+
proto.cms.BannerTexts.toObject, includeInstance)
|
3165
3320
|
};
|
3166
3321
|
|
3167
3322
|
if (includeInstance) {
|
@@ -3199,36 +3354,33 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3199
3354
|
var field = reader.getFieldNumber();
|
3200
3355
|
switch (field) {
|
3201
3356
|
case 1:
|
3202
|
-
var value = /** @type {
|
3203
|
-
msg.
|
3357
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3358
|
+
msg.setId(value);
|
3204
3359
|
break;
|
3205
3360
|
case 2:
|
3206
3361
|
var value = /** @type {string} */ (reader.readString());
|
3207
|
-
msg.
|
3362
|
+
msg.setGeo(value);
|
3208
3363
|
break;
|
3209
3364
|
case 3:
|
3210
|
-
var value = /** @type {
|
3211
|
-
msg.
|
3365
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3366
|
+
msg.setIsActive(value);
|
3212
3367
|
break;
|
3213
3368
|
case 4:
|
3214
3369
|
var value = /** @type {string} */ (reader.readString());
|
3215
|
-
msg.
|
3370
|
+
msg.setImageBig(value);
|
3216
3371
|
break;
|
3217
3372
|
case 5:
|
3218
3373
|
var value = /** @type {string} */ (reader.readString());
|
3219
|
-
msg.
|
3374
|
+
msg.setImageSmall(value);
|
3220
3375
|
break;
|
3221
3376
|
case 6:
|
3222
|
-
var value = /** @type {number} */ (reader.readInt32());
|
3223
|
-
msg.setIsActive(value);
|
3224
|
-
break;
|
3225
|
-
case 7:
|
3226
3377
|
var value = /** @type {string} */ (reader.readString());
|
3227
|
-
msg.
|
3378
|
+
msg.setAnchor(value);
|
3228
3379
|
break;
|
3229
|
-
case
|
3230
|
-
var value =
|
3231
|
-
|
3380
|
+
case 7:
|
3381
|
+
var value = new proto.cms.BannerTexts;
|
3382
|
+
reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
|
3383
|
+
msg.addTexts(value);
|
3232
3384
|
break;
|
3233
3385
|
default:
|
3234
3386
|
reader.skipField();
|
@@ -3259,9 +3411,9 @@ proto.cms.BannerItem.prototype.serializeBinary = function() {
|
|
3259
3411
|
*/
|
3260
3412
|
proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
3261
3413
|
var f = undefined;
|
3262
|
-
f = /** @type {
|
3414
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3263
3415
|
if (f != null) {
|
3264
|
-
writer.
|
3416
|
+
writer.writeInt32(
|
3265
3417
|
1,
|
3266
3418
|
f
|
3267
3419
|
);
|
@@ -3273,9 +3425,9 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3273
3425
|
f
|
3274
3426
|
);
|
3275
3427
|
}
|
3276
|
-
f = /** @type {
|
3428
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3277
3429
|
if (f != null) {
|
3278
|
-
writer.
|
3430
|
+
writer.writeInt32(
|
3279
3431
|
3,
|
3280
3432
|
f
|
3281
3433
|
);
|
@@ -3294,44 +3446,38 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3294
3446
|
f
|
3295
3447
|
);
|
3296
3448
|
}
|
3297
|
-
f = /** @type {
|
3449
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
3298
3450
|
if (f != null) {
|
3299
|
-
writer.
|
3451
|
+
writer.writeString(
|
3300
3452
|
6,
|
3301
3453
|
f
|
3302
3454
|
);
|
3303
3455
|
}
|
3304
|
-
f =
|
3305
|
-
if (f
|
3306
|
-
writer.
|
3456
|
+
f = message.getTextsList();
|
3457
|
+
if (f.length > 0) {
|
3458
|
+
writer.writeRepeatedMessage(
|
3307
3459
|
7,
|
3308
|
-
f
|
3309
|
-
|
3310
|
-
}
|
3311
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
3312
|
-
if (f != null) {
|
3313
|
-
writer.writeString(
|
3314
|
-
8,
|
3315
|
-
f
|
3460
|
+
f,
|
3461
|
+
proto.cms.BannerTexts.serializeBinaryToWriter
|
3316
3462
|
);
|
3317
3463
|
}
|
3318
3464
|
};
|
3319
3465
|
|
3320
3466
|
|
3321
3467
|
/**
|
3322
|
-
* optional
|
3323
|
-
* @return {
|
3468
|
+
* optional int32 id = 1;
|
3469
|
+
* @return {number}
|
3324
3470
|
*/
|
3325
|
-
proto.cms.BannerItem.prototype.
|
3326
|
-
return /** @type {
|
3471
|
+
proto.cms.BannerItem.prototype.getId = function() {
|
3472
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3327
3473
|
};
|
3328
3474
|
|
3329
3475
|
|
3330
3476
|
/**
|
3331
|
-
* @param {
|
3477
|
+
* @param {number} value
|
3332
3478
|
* @return {!proto.cms.BannerItem} returns this
|
3333
3479
|
*/
|
3334
|
-
proto.cms.BannerItem.prototype.
|
3480
|
+
proto.cms.BannerItem.prototype.setId = function(value) {
|
3335
3481
|
return jspb.Message.setField(this, 1, value);
|
3336
3482
|
};
|
3337
3483
|
|
@@ -3340,7 +3486,7 @@ proto.cms.BannerItem.prototype.setGeo = function(value) {
|
|
3340
3486
|
* Clears the field making it undefined.
|
3341
3487
|
* @return {!proto.cms.BannerItem} returns this
|
3342
3488
|
*/
|
3343
|
-
proto.cms.BannerItem.prototype.
|
3489
|
+
proto.cms.BannerItem.prototype.clearId = function() {
|
3344
3490
|
return jspb.Message.setField(this, 1, undefined);
|
3345
3491
|
};
|
3346
3492
|
|
@@ -3349,16 +3495,16 @@ proto.cms.BannerItem.prototype.clearGeo = function() {
|
|
3349
3495
|
* Returns whether this field is set.
|
3350
3496
|
* @return {boolean}
|
3351
3497
|
*/
|
3352
|
-
proto.cms.BannerItem.prototype.
|
3498
|
+
proto.cms.BannerItem.prototype.hasId = function() {
|
3353
3499
|
return jspb.Message.getField(this, 1) != null;
|
3354
3500
|
};
|
3355
3501
|
|
3356
3502
|
|
3357
3503
|
/**
|
3358
|
-
* optional string
|
3504
|
+
* optional string geo = 2;
|
3359
3505
|
* @return {string}
|
3360
3506
|
*/
|
3361
|
-
proto.cms.BannerItem.prototype.
|
3507
|
+
proto.cms.BannerItem.prototype.getGeo = function() {
|
3362
3508
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3363
3509
|
};
|
3364
3510
|
|
@@ -3367,7 +3513,7 @@ proto.cms.BannerItem.prototype.getTitle = function() {
|
|
3367
3513
|
* @param {string} value
|
3368
3514
|
* @return {!proto.cms.BannerItem} returns this
|
3369
3515
|
*/
|
3370
|
-
proto.cms.BannerItem.prototype.
|
3516
|
+
proto.cms.BannerItem.prototype.setGeo = function(value) {
|
3371
3517
|
return jspb.Message.setField(this, 2, value);
|
3372
3518
|
};
|
3373
3519
|
|
@@ -3376,7 +3522,7 @@ proto.cms.BannerItem.prototype.setTitle = function(value) {
|
|
3376
3522
|
* Clears the field making it undefined.
|
3377
3523
|
* @return {!proto.cms.BannerItem} returns this
|
3378
3524
|
*/
|
3379
|
-
proto.cms.BannerItem.prototype.
|
3525
|
+
proto.cms.BannerItem.prototype.clearGeo = function() {
|
3380
3526
|
return jspb.Message.setField(this, 2, undefined);
|
3381
3527
|
};
|
3382
3528
|
|
@@ -3385,25 +3531,25 @@ proto.cms.BannerItem.prototype.clearTitle = function() {
|
|
3385
3531
|
* Returns whether this field is set.
|
3386
3532
|
* @return {boolean}
|
3387
3533
|
*/
|
3388
|
-
proto.cms.BannerItem.prototype.
|
3534
|
+
proto.cms.BannerItem.prototype.hasGeo = function() {
|
3389
3535
|
return jspb.Message.getField(this, 2) != null;
|
3390
3536
|
};
|
3391
3537
|
|
3392
3538
|
|
3393
3539
|
/**
|
3394
|
-
* optional
|
3395
|
-
* @return {
|
3540
|
+
* optional int32 is_active = 3;
|
3541
|
+
* @return {number}
|
3396
3542
|
*/
|
3397
|
-
proto.cms.BannerItem.prototype.
|
3398
|
-
return /** @type {
|
3543
|
+
proto.cms.BannerItem.prototype.getIsActive = function() {
|
3544
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3399
3545
|
};
|
3400
3546
|
|
3401
3547
|
|
3402
3548
|
/**
|
3403
|
-
* @param {
|
3549
|
+
* @param {number} value
|
3404
3550
|
* @return {!proto.cms.BannerItem} returns this
|
3405
3551
|
*/
|
3406
|
-
proto.cms.BannerItem.prototype.
|
3552
|
+
proto.cms.BannerItem.prototype.setIsActive = function(value) {
|
3407
3553
|
return jspb.Message.setField(this, 3, value);
|
3408
3554
|
};
|
3409
3555
|
|
@@ -3412,7 +3558,7 @@ proto.cms.BannerItem.prototype.setContent = function(value) {
|
|
3412
3558
|
* Clears the field making it undefined.
|
3413
3559
|
* @return {!proto.cms.BannerItem} returns this
|
3414
3560
|
*/
|
3415
|
-
proto.cms.BannerItem.prototype.
|
3561
|
+
proto.cms.BannerItem.prototype.clearIsActive = function() {
|
3416
3562
|
return jspb.Message.setField(this, 3, undefined);
|
3417
3563
|
};
|
3418
3564
|
|
@@ -3421,16 +3567,16 @@ proto.cms.BannerItem.prototype.clearContent = function() {
|
|
3421
3567
|
* Returns whether this field is set.
|
3422
3568
|
* @return {boolean}
|
3423
3569
|
*/
|
3424
|
-
proto.cms.BannerItem.prototype.
|
3570
|
+
proto.cms.BannerItem.prototype.hasIsActive = function() {
|
3425
3571
|
return jspb.Message.getField(this, 3) != null;
|
3426
3572
|
};
|
3427
3573
|
|
3428
3574
|
|
3429
3575
|
/**
|
3430
|
-
* optional string
|
3576
|
+
* optional string image_big = 4;
|
3431
3577
|
* @return {string}
|
3432
3578
|
*/
|
3433
|
-
proto.cms.BannerItem.prototype.
|
3579
|
+
proto.cms.BannerItem.prototype.getImageBig = function() {
|
3434
3580
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3435
3581
|
};
|
3436
3582
|
|
@@ -3439,7 +3585,7 @@ proto.cms.BannerItem.prototype.getCtaType = function() {
|
|
3439
3585
|
* @param {string} value
|
3440
3586
|
* @return {!proto.cms.BannerItem} returns this
|
3441
3587
|
*/
|
3442
|
-
proto.cms.BannerItem.prototype.
|
3588
|
+
proto.cms.BannerItem.prototype.setImageBig = function(value) {
|
3443
3589
|
return jspb.Message.setField(this, 4, value);
|
3444
3590
|
};
|
3445
3591
|
|
@@ -3448,7 +3594,7 @@ proto.cms.BannerItem.prototype.setCtaType = function(value) {
|
|
3448
3594
|
* Clears the field making it undefined.
|
3449
3595
|
* @return {!proto.cms.BannerItem} returns this
|
3450
3596
|
*/
|
3451
|
-
proto.cms.BannerItem.prototype.
|
3597
|
+
proto.cms.BannerItem.prototype.clearImageBig = function() {
|
3452
3598
|
return jspb.Message.setField(this, 4, undefined);
|
3453
3599
|
};
|
3454
3600
|
|
@@ -3457,16 +3603,16 @@ proto.cms.BannerItem.prototype.clearCtaType = function() {
|
|
3457
3603
|
* Returns whether this field is set.
|
3458
3604
|
* @return {boolean}
|
3459
3605
|
*/
|
3460
|
-
proto.cms.BannerItem.prototype.
|
3606
|
+
proto.cms.BannerItem.prototype.hasImageBig = function() {
|
3461
3607
|
return jspb.Message.getField(this, 4) != null;
|
3462
3608
|
};
|
3463
3609
|
|
3464
3610
|
|
3465
3611
|
/**
|
3466
|
-
* optional string
|
3612
|
+
* optional string image_small = 5;
|
3467
3613
|
* @return {string}
|
3468
3614
|
*/
|
3469
|
-
proto.cms.BannerItem.prototype.
|
3615
|
+
proto.cms.BannerItem.prototype.getImageSmall = function() {
|
3470
3616
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3471
3617
|
};
|
3472
3618
|
|
@@ -3475,7 +3621,7 @@ proto.cms.BannerItem.prototype.getCtaText = function() {
|
|
3475
3621
|
* @param {string} value
|
3476
3622
|
* @return {!proto.cms.BannerItem} returns this
|
3477
3623
|
*/
|
3478
|
-
proto.cms.BannerItem.prototype.
|
3624
|
+
proto.cms.BannerItem.prototype.setImageSmall = function(value) {
|
3479
3625
|
return jspb.Message.setField(this, 5, value);
|
3480
3626
|
};
|
3481
3627
|
|
@@ -3484,7 +3630,7 @@ proto.cms.BannerItem.prototype.setCtaText = function(value) {
|
|
3484
3630
|
* Clears the field making it undefined.
|
3485
3631
|
* @return {!proto.cms.BannerItem} returns this
|
3486
3632
|
*/
|
3487
|
-
proto.cms.BannerItem.prototype.
|
3633
|
+
proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
3488
3634
|
return jspb.Message.setField(this, 5, undefined);
|
3489
3635
|
};
|
3490
3636
|
|
@@ -3493,25 +3639,25 @@ proto.cms.BannerItem.prototype.clearCtaText = function() {
|
|
3493
3639
|
* Returns whether this field is set.
|
3494
3640
|
* @return {boolean}
|
3495
3641
|
*/
|
3496
|
-
proto.cms.BannerItem.prototype.
|
3642
|
+
proto.cms.BannerItem.prototype.hasImageSmall = function() {
|
3497
3643
|
return jspb.Message.getField(this, 5) != null;
|
3498
3644
|
};
|
3499
3645
|
|
3500
3646
|
|
3501
3647
|
/**
|
3502
|
-
* optional
|
3503
|
-
* @return {
|
3648
|
+
* optional string anchor = 6;
|
3649
|
+
* @return {string}
|
3504
3650
|
*/
|
3505
|
-
proto.cms.BannerItem.prototype.
|
3506
|
-
return /** @type {
|
3651
|
+
proto.cms.BannerItem.prototype.getAnchor = function() {
|
3652
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3507
3653
|
};
|
3508
3654
|
|
3509
3655
|
|
3510
3656
|
/**
|
3511
|
-
* @param {
|
3657
|
+
* @param {string} value
|
3512
3658
|
* @return {!proto.cms.BannerItem} returns this
|
3513
3659
|
*/
|
3514
|
-
proto.cms.BannerItem.prototype.
|
3660
|
+
proto.cms.BannerItem.prototype.setAnchor = function(value) {
|
3515
3661
|
return jspb.Message.setField(this, 6, value);
|
3516
3662
|
};
|
3517
3663
|
|
@@ -3520,7 +3666,7 @@ proto.cms.BannerItem.prototype.setIsActive = function(value) {
|
|
3520
3666
|
* Clears the field making it undefined.
|
3521
3667
|
* @return {!proto.cms.BannerItem} returns this
|
3522
3668
|
*/
|
3523
|
-
proto.cms.BannerItem.prototype.
|
3669
|
+
proto.cms.BannerItem.prototype.clearAnchor = function() {
|
3524
3670
|
return jspb.Message.setField(this, 6, undefined);
|
3525
3671
|
};
|
3526
3672
|
|
@@ -3529,35 +3675,1301 @@ proto.cms.BannerItem.prototype.clearIsActive = function() {
|
|
3529
3675
|
* Returns whether this field is set.
|
3530
3676
|
* @return {boolean}
|
3531
3677
|
*/
|
3532
|
-
proto.cms.BannerItem.prototype.
|
3678
|
+
proto.cms.BannerItem.prototype.hasAnchor = function() {
|
3533
3679
|
return jspb.Message.getField(this, 6) != null;
|
3534
3680
|
};
|
3535
3681
|
|
3536
3682
|
|
3537
3683
|
/**
|
3538
|
-
*
|
3539
|
-
* @return {
|
3684
|
+
* repeated BannerTexts texts = 7;
|
3685
|
+
* @return {!Array<!proto.cms.BannerTexts>}
|
3540
3686
|
*/
|
3541
|
-
proto.cms.BannerItem.prototype.
|
3542
|
-
return /** @type
|
3687
|
+
proto.cms.BannerItem.prototype.getTextsList = function() {
|
3688
|
+
return /** @type{!Array<!proto.cms.BannerTexts>} */ (
|
3689
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 7));
|
3690
|
+
};
|
3691
|
+
|
3692
|
+
|
3693
|
+
/**
|
3694
|
+
* @param {!Array<!proto.cms.BannerTexts>} value
|
3695
|
+
* @return {!proto.cms.BannerItem} returns this
|
3696
|
+
*/
|
3697
|
+
proto.cms.BannerItem.prototype.setTextsList = function(value) {
|
3698
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
3699
|
+
};
|
3700
|
+
|
3701
|
+
|
3702
|
+
/**
|
3703
|
+
* @param {!proto.cms.BannerTexts=} opt_value
|
3704
|
+
* @param {number=} opt_index
|
3705
|
+
* @return {!proto.cms.BannerTexts}
|
3706
|
+
*/
|
3707
|
+
proto.cms.BannerItem.prototype.addTexts = function(opt_value, opt_index) {
|
3708
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cms.BannerTexts, opt_index);
|
3709
|
+
};
|
3710
|
+
|
3711
|
+
|
3712
|
+
/**
|
3713
|
+
* Clears the list making it empty but non-null.
|
3714
|
+
* @return {!proto.cms.BannerItem} returns this
|
3715
|
+
*/
|
3716
|
+
proto.cms.BannerItem.prototype.clearTextsList = function() {
|
3717
|
+
return this.setTextsList([]);
|
3718
|
+
};
|
3719
|
+
|
3720
|
+
|
3721
|
+
|
3722
|
+
|
3723
|
+
|
3724
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3725
|
+
/**
|
3726
|
+
* Creates an object representation of this proto.
|
3727
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3728
|
+
* Optional fields that are not set will be set to undefined.
|
3729
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3730
|
+
* For the list of reserved names please see:
|
3731
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3732
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3733
|
+
* JSPB instance for transitional soy proto support:
|
3734
|
+
* http://goto/soy-param-migration
|
3735
|
+
* @return {!Object}
|
3736
|
+
*/
|
3737
|
+
proto.cms.BannerTexts.prototype.toObject = function(opt_includeInstance) {
|
3738
|
+
return proto.cms.BannerTexts.toObject(opt_includeInstance, this);
|
3739
|
+
};
|
3740
|
+
|
3741
|
+
|
3742
|
+
/**
|
3743
|
+
* Static version of the {@see toObject} method.
|
3744
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3745
|
+
* the JSPB instance for transitional soy proto support:
|
3746
|
+
* http://goto/soy-param-migration
|
3747
|
+
* @param {!proto.cms.BannerTexts} msg The msg instance to transform.
|
3748
|
+
* @return {!Object}
|
3749
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3750
|
+
*/
|
3751
|
+
proto.cms.BannerTexts.toObject = function(includeInstance, msg) {
|
3752
|
+
var f, obj = {
|
3753
|
+
locale: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
3754
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3755
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
3756
|
+
cta: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3757
|
+
note: jspb.Message.getFieldWithDefault(msg, 5, "")
|
3758
|
+
};
|
3759
|
+
|
3760
|
+
if (includeInstance) {
|
3761
|
+
obj.$jspbMessageInstance = msg;
|
3762
|
+
}
|
3763
|
+
return obj;
|
3764
|
+
};
|
3765
|
+
}
|
3766
|
+
|
3767
|
+
|
3768
|
+
/**
|
3769
|
+
* Deserializes binary data (in protobuf wire format).
|
3770
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3771
|
+
* @return {!proto.cms.BannerTexts}
|
3772
|
+
*/
|
3773
|
+
proto.cms.BannerTexts.deserializeBinary = function(bytes) {
|
3774
|
+
var reader = new jspb.BinaryReader(bytes);
|
3775
|
+
var msg = new proto.cms.BannerTexts;
|
3776
|
+
return proto.cms.BannerTexts.deserializeBinaryFromReader(msg, reader);
|
3777
|
+
};
|
3778
|
+
|
3779
|
+
|
3780
|
+
/**
|
3781
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3782
|
+
* given reader into the given message object.
|
3783
|
+
* @param {!proto.cms.BannerTexts} msg The message object to deserialize into.
|
3784
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3785
|
+
* @return {!proto.cms.BannerTexts}
|
3786
|
+
*/
|
3787
|
+
proto.cms.BannerTexts.deserializeBinaryFromReader = function(msg, reader) {
|
3788
|
+
while (reader.nextField()) {
|
3789
|
+
if (reader.isEndGroup()) {
|
3790
|
+
break;
|
3791
|
+
}
|
3792
|
+
var field = reader.getFieldNumber();
|
3793
|
+
switch (field) {
|
3794
|
+
case 1:
|
3795
|
+
var value = /** @type {string} */ (reader.readString());
|
3796
|
+
msg.setLocale(value);
|
3797
|
+
break;
|
3798
|
+
case 2:
|
3799
|
+
var value = /** @type {string} */ (reader.readString());
|
3800
|
+
msg.setTitle(value);
|
3801
|
+
break;
|
3802
|
+
case 3:
|
3803
|
+
var value = /** @type {string} */ (reader.readString());
|
3804
|
+
msg.setContent(value);
|
3805
|
+
break;
|
3806
|
+
case 4:
|
3807
|
+
var value = /** @type {string} */ (reader.readString());
|
3808
|
+
msg.setCta(value);
|
3809
|
+
break;
|
3810
|
+
case 5:
|
3811
|
+
var value = /** @type {string} */ (reader.readString());
|
3812
|
+
msg.setNote(value);
|
3813
|
+
break;
|
3814
|
+
default:
|
3815
|
+
reader.skipField();
|
3816
|
+
break;
|
3817
|
+
}
|
3818
|
+
}
|
3819
|
+
return msg;
|
3820
|
+
};
|
3821
|
+
|
3822
|
+
|
3823
|
+
/**
|
3824
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3825
|
+
* @return {!Uint8Array}
|
3826
|
+
*/
|
3827
|
+
proto.cms.BannerTexts.prototype.serializeBinary = function() {
|
3828
|
+
var writer = new jspb.BinaryWriter();
|
3829
|
+
proto.cms.BannerTexts.serializeBinaryToWriter(this, writer);
|
3830
|
+
return writer.getResultBuffer();
|
3831
|
+
};
|
3832
|
+
|
3833
|
+
|
3834
|
+
/**
|
3835
|
+
* Serializes the given message to binary data (in protobuf wire
|
3836
|
+
* format), writing to the given BinaryWriter.
|
3837
|
+
* @param {!proto.cms.BannerTexts} message
|
3838
|
+
* @param {!jspb.BinaryWriter} writer
|
3839
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3840
|
+
*/
|
3841
|
+
proto.cms.BannerTexts.serializeBinaryToWriter = function(message, writer) {
|
3842
|
+
var f = undefined;
|
3843
|
+
f = message.getLocale();
|
3844
|
+
if (f.length > 0) {
|
3845
|
+
writer.writeString(
|
3846
|
+
1,
|
3847
|
+
f
|
3848
|
+
);
|
3849
|
+
}
|
3850
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3851
|
+
if (f != null) {
|
3852
|
+
writer.writeString(
|
3853
|
+
2,
|
3854
|
+
f
|
3855
|
+
);
|
3856
|
+
}
|
3857
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
3858
|
+
if (f != null) {
|
3859
|
+
writer.writeString(
|
3860
|
+
3,
|
3861
|
+
f
|
3862
|
+
);
|
3863
|
+
}
|
3864
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
3865
|
+
if (f != null) {
|
3866
|
+
writer.writeString(
|
3867
|
+
4,
|
3868
|
+
f
|
3869
|
+
);
|
3870
|
+
}
|
3871
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
3872
|
+
if (f != null) {
|
3873
|
+
writer.writeString(
|
3874
|
+
5,
|
3875
|
+
f
|
3876
|
+
);
|
3877
|
+
}
|
3878
|
+
};
|
3879
|
+
|
3880
|
+
|
3881
|
+
/**
|
3882
|
+
* optional string locale = 1;
|
3883
|
+
* @return {string}
|
3884
|
+
*/
|
3885
|
+
proto.cms.BannerTexts.prototype.getLocale = function() {
|
3886
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3887
|
+
};
|
3888
|
+
|
3889
|
+
|
3890
|
+
/**
|
3891
|
+
* @param {string} value
|
3892
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3893
|
+
*/
|
3894
|
+
proto.cms.BannerTexts.prototype.setLocale = function(value) {
|
3895
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
3896
|
+
};
|
3897
|
+
|
3898
|
+
|
3899
|
+
/**
|
3900
|
+
* optional string title = 2;
|
3901
|
+
* @return {string}
|
3902
|
+
*/
|
3903
|
+
proto.cms.BannerTexts.prototype.getTitle = function() {
|
3904
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3905
|
+
};
|
3906
|
+
|
3907
|
+
|
3908
|
+
/**
|
3909
|
+
* @param {string} value
|
3910
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3911
|
+
*/
|
3912
|
+
proto.cms.BannerTexts.prototype.setTitle = function(value) {
|
3913
|
+
return jspb.Message.setField(this, 2, value);
|
3914
|
+
};
|
3915
|
+
|
3916
|
+
|
3917
|
+
/**
|
3918
|
+
* Clears the field making it undefined.
|
3919
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3920
|
+
*/
|
3921
|
+
proto.cms.BannerTexts.prototype.clearTitle = function() {
|
3922
|
+
return jspb.Message.setField(this, 2, undefined);
|
3923
|
+
};
|
3924
|
+
|
3925
|
+
|
3926
|
+
/**
|
3927
|
+
* Returns whether this field is set.
|
3928
|
+
* @return {boolean}
|
3929
|
+
*/
|
3930
|
+
proto.cms.BannerTexts.prototype.hasTitle = function() {
|
3931
|
+
return jspb.Message.getField(this, 2) != null;
|
3932
|
+
};
|
3933
|
+
|
3934
|
+
|
3935
|
+
/**
|
3936
|
+
* optional string content = 3;
|
3937
|
+
* @return {string}
|
3938
|
+
*/
|
3939
|
+
proto.cms.BannerTexts.prototype.getContent = function() {
|
3940
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3941
|
+
};
|
3942
|
+
|
3943
|
+
|
3944
|
+
/**
|
3945
|
+
* @param {string} value
|
3946
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3947
|
+
*/
|
3948
|
+
proto.cms.BannerTexts.prototype.setContent = function(value) {
|
3949
|
+
return jspb.Message.setField(this, 3, value);
|
3950
|
+
};
|
3951
|
+
|
3952
|
+
|
3953
|
+
/**
|
3954
|
+
* Clears the field making it undefined.
|
3955
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3956
|
+
*/
|
3957
|
+
proto.cms.BannerTexts.prototype.clearContent = function() {
|
3958
|
+
return jspb.Message.setField(this, 3, undefined);
|
3959
|
+
};
|
3960
|
+
|
3961
|
+
|
3962
|
+
/**
|
3963
|
+
* Returns whether this field is set.
|
3964
|
+
* @return {boolean}
|
3965
|
+
*/
|
3966
|
+
proto.cms.BannerTexts.prototype.hasContent = function() {
|
3967
|
+
return jspb.Message.getField(this, 3) != null;
|
3968
|
+
};
|
3969
|
+
|
3970
|
+
|
3971
|
+
/**
|
3972
|
+
* optional string cta = 4;
|
3973
|
+
* @return {string}
|
3974
|
+
*/
|
3975
|
+
proto.cms.BannerTexts.prototype.getCta = function() {
|
3976
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3977
|
+
};
|
3978
|
+
|
3979
|
+
|
3980
|
+
/**
|
3981
|
+
* @param {string} value
|
3982
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3983
|
+
*/
|
3984
|
+
proto.cms.BannerTexts.prototype.setCta = function(value) {
|
3985
|
+
return jspb.Message.setField(this, 4, value);
|
3986
|
+
};
|
3987
|
+
|
3988
|
+
|
3989
|
+
/**
|
3990
|
+
* Clears the field making it undefined.
|
3991
|
+
* @return {!proto.cms.BannerTexts} returns this
|
3992
|
+
*/
|
3993
|
+
proto.cms.BannerTexts.prototype.clearCta = function() {
|
3994
|
+
return jspb.Message.setField(this, 4, undefined);
|
3995
|
+
};
|
3996
|
+
|
3997
|
+
|
3998
|
+
/**
|
3999
|
+
* Returns whether this field is set.
|
4000
|
+
* @return {boolean}
|
4001
|
+
*/
|
4002
|
+
proto.cms.BannerTexts.prototype.hasCta = function() {
|
4003
|
+
return jspb.Message.getField(this, 4) != null;
|
4004
|
+
};
|
4005
|
+
|
4006
|
+
|
4007
|
+
/**
|
4008
|
+
* optional string note = 5;
|
4009
|
+
* @return {string}
|
4010
|
+
*/
|
4011
|
+
proto.cms.BannerTexts.prototype.getNote = function() {
|
4012
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
4013
|
+
};
|
4014
|
+
|
4015
|
+
|
4016
|
+
/**
|
4017
|
+
* @param {string} value
|
4018
|
+
* @return {!proto.cms.BannerTexts} returns this
|
4019
|
+
*/
|
4020
|
+
proto.cms.BannerTexts.prototype.setNote = function(value) {
|
4021
|
+
return jspb.Message.setField(this, 5, value);
|
4022
|
+
};
|
4023
|
+
|
4024
|
+
|
4025
|
+
/**
|
4026
|
+
* Clears the field making it undefined.
|
4027
|
+
* @return {!proto.cms.BannerTexts} returns this
|
4028
|
+
*/
|
4029
|
+
proto.cms.BannerTexts.prototype.clearNote = function() {
|
4030
|
+
return jspb.Message.setField(this, 5, undefined);
|
4031
|
+
};
|
4032
|
+
|
4033
|
+
|
4034
|
+
/**
|
4035
|
+
* Returns whether this field is set.
|
4036
|
+
* @return {boolean}
|
4037
|
+
*/
|
4038
|
+
proto.cms.BannerTexts.prototype.hasNote = function() {
|
4039
|
+
return jspb.Message.getField(this, 5) != null;
|
4040
|
+
};
|
4041
|
+
|
4042
|
+
|
4043
|
+
|
4044
|
+
|
4045
|
+
|
4046
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4047
|
+
/**
|
4048
|
+
* Creates an object representation of this proto.
|
4049
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4050
|
+
* Optional fields that are not set will be set to undefined.
|
4051
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4052
|
+
* For the list of reserved names please see:
|
4053
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4054
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4055
|
+
* JSPB instance for transitional soy proto support:
|
4056
|
+
* http://goto/soy-param-migration
|
4057
|
+
* @return {!Object}
|
4058
|
+
*/
|
4059
|
+
proto.cms.BannerResponse.prototype.toObject = function(opt_includeInstance) {
|
4060
|
+
return proto.cms.BannerResponse.toObject(opt_includeInstance, this);
|
4061
|
+
};
|
4062
|
+
|
4063
|
+
|
4064
|
+
/**
|
4065
|
+
* Static version of the {@see toObject} method.
|
4066
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4067
|
+
* the JSPB instance for transitional soy proto support:
|
4068
|
+
* http://goto/soy-param-migration
|
4069
|
+
* @param {!proto.cms.BannerResponse} msg The msg instance to transform.
|
4070
|
+
* @return {!Object}
|
4071
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4072
|
+
*/
|
4073
|
+
proto.cms.BannerResponse.toObject = function(includeInstance, msg) {
|
4074
|
+
var f, obj = {
|
4075
|
+
data: (f = msg.getData()) && proto.cms.BannerItem.toObject(includeInstance, f)
|
4076
|
+
};
|
4077
|
+
|
4078
|
+
if (includeInstance) {
|
4079
|
+
obj.$jspbMessageInstance = msg;
|
4080
|
+
}
|
4081
|
+
return obj;
|
4082
|
+
};
|
4083
|
+
}
|
4084
|
+
|
4085
|
+
|
4086
|
+
/**
|
4087
|
+
* Deserializes binary data (in protobuf wire format).
|
4088
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4089
|
+
* @return {!proto.cms.BannerResponse}
|
4090
|
+
*/
|
4091
|
+
proto.cms.BannerResponse.deserializeBinary = function(bytes) {
|
4092
|
+
var reader = new jspb.BinaryReader(bytes);
|
4093
|
+
var msg = new proto.cms.BannerResponse;
|
4094
|
+
return proto.cms.BannerResponse.deserializeBinaryFromReader(msg, reader);
|
4095
|
+
};
|
4096
|
+
|
4097
|
+
|
4098
|
+
/**
|
4099
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4100
|
+
* given reader into the given message object.
|
4101
|
+
* @param {!proto.cms.BannerResponse} msg The message object to deserialize into.
|
4102
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4103
|
+
* @return {!proto.cms.BannerResponse}
|
4104
|
+
*/
|
4105
|
+
proto.cms.BannerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
4106
|
+
while (reader.nextField()) {
|
4107
|
+
if (reader.isEndGroup()) {
|
4108
|
+
break;
|
4109
|
+
}
|
4110
|
+
var field = reader.getFieldNumber();
|
4111
|
+
switch (field) {
|
4112
|
+
case 1:
|
4113
|
+
var value = new proto.cms.BannerItem;
|
4114
|
+
reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
|
4115
|
+
msg.setData(value);
|
4116
|
+
break;
|
4117
|
+
default:
|
4118
|
+
reader.skipField();
|
4119
|
+
break;
|
4120
|
+
}
|
4121
|
+
}
|
4122
|
+
return msg;
|
4123
|
+
};
|
4124
|
+
|
4125
|
+
|
4126
|
+
/**
|
4127
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4128
|
+
* @return {!Uint8Array}
|
4129
|
+
*/
|
4130
|
+
proto.cms.BannerResponse.prototype.serializeBinary = function() {
|
4131
|
+
var writer = new jspb.BinaryWriter();
|
4132
|
+
proto.cms.BannerResponse.serializeBinaryToWriter(this, writer);
|
4133
|
+
return writer.getResultBuffer();
|
4134
|
+
};
|
4135
|
+
|
4136
|
+
|
4137
|
+
/**
|
4138
|
+
* Serializes the given message to binary data (in protobuf wire
|
4139
|
+
* format), writing to the given BinaryWriter.
|
4140
|
+
* @param {!proto.cms.BannerResponse} message
|
4141
|
+
* @param {!jspb.BinaryWriter} writer
|
4142
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4143
|
+
*/
|
4144
|
+
proto.cms.BannerResponse.serializeBinaryToWriter = function(message, writer) {
|
4145
|
+
var f = undefined;
|
4146
|
+
f = message.getData();
|
4147
|
+
if (f != null) {
|
4148
|
+
writer.writeMessage(
|
4149
|
+
1,
|
4150
|
+
f,
|
4151
|
+
proto.cms.BannerItem.serializeBinaryToWriter
|
4152
|
+
);
|
4153
|
+
}
|
4154
|
+
};
|
4155
|
+
|
4156
|
+
|
4157
|
+
/**
|
4158
|
+
* optional BannerItem data = 1;
|
4159
|
+
* @return {?proto.cms.BannerItem}
|
4160
|
+
*/
|
4161
|
+
proto.cms.BannerResponse.prototype.getData = function() {
|
4162
|
+
return /** @type{?proto.cms.BannerItem} */ (
|
4163
|
+
jspb.Message.getWrapperField(this, proto.cms.BannerItem, 1));
|
4164
|
+
};
|
4165
|
+
|
4166
|
+
|
4167
|
+
/**
|
4168
|
+
* @param {?proto.cms.BannerItem|undefined} value
|
4169
|
+
* @return {!proto.cms.BannerResponse} returns this
|
4170
|
+
*/
|
4171
|
+
proto.cms.BannerResponse.prototype.setData = function(value) {
|
4172
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
4173
|
+
};
|
4174
|
+
|
4175
|
+
|
4176
|
+
/**
|
4177
|
+
* Clears the message field making it undefined.
|
4178
|
+
* @return {!proto.cms.BannerResponse} returns this
|
4179
|
+
*/
|
4180
|
+
proto.cms.BannerResponse.prototype.clearData = function() {
|
4181
|
+
return this.setData(undefined);
|
4182
|
+
};
|
4183
|
+
|
4184
|
+
|
4185
|
+
/**
|
4186
|
+
* Returns whether this field is set.
|
4187
|
+
* @return {boolean}
|
4188
|
+
*/
|
4189
|
+
proto.cms.BannerResponse.prototype.hasData = function() {
|
4190
|
+
return jspb.Message.getField(this, 1) != null;
|
4191
|
+
};
|
4192
|
+
|
4193
|
+
|
4194
|
+
|
4195
|
+
|
4196
|
+
|
4197
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4198
|
+
/**
|
4199
|
+
* Creates an object representation of this proto.
|
4200
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4201
|
+
* Optional fields that are not set will be set to undefined.
|
4202
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4203
|
+
* For the list of reserved names please see:
|
4204
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4205
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4206
|
+
* JSPB instance for transitional soy proto support:
|
4207
|
+
* http://goto/soy-param-migration
|
4208
|
+
* @return {!Object}
|
4209
|
+
*/
|
4210
|
+
proto.cms.GetBannerRequest.prototype.toObject = function(opt_includeInstance) {
|
4211
|
+
return proto.cms.GetBannerRequest.toObject(opt_includeInstance, this);
|
4212
|
+
};
|
4213
|
+
|
4214
|
+
|
4215
|
+
/**
|
4216
|
+
* Static version of the {@see toObject} method.
|
4217
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4218
|
+
* the JSPB instance for transitional soy proto support:
|
4219
|
+
* http://goto/soy-param-migration
|
4220
|
+
* @param {!proto.cms.GetBannerRequest} msg The msg instance to transform.
|
4221
|
+
* @return {!Object}
|
4222
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4223
|
+
*/
|
4224
|
+
proto.cms.GetBannerRequest.toObject = function(includeInstance, msg) {
|
4225
|
+
var f, obj = {
|
4226
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4227
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
4228
|
+
};
|
4229
|
+
|
4230
|
+
if (includeInstance) {
|
4231
|
+
obj.$jspbMessageInstance = msg;
|
4232
|
+
}
|
4233
|
+
return obj;
|
4234
|
+
};
|
4235
|
+
}
|
4236
|
+
|
4237
|
+
|
4238
|
+
/**
|
4239
|
+
* Deserializes binary data (in protobuf wire format).
|
4240
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4241
|
+
* @return {!proto.cms.GetBannerRequest}
|
4242
|
+
*/
|
4243
|
+
proto.cms.GetBannerRequest.deserializeBinary = function(bytes) {
|
4244
|
+
var reader = new jspb.BinaryReader(bytes);
|
4245
|
+
var msg = new proto.cms.GetBannerRequest;
|
4246
|
+
return proto.cms.GetBannerRequest.deserializeBinaryFromReader(msg, reader);
|
4247
|
+
};
|
4248
|
+
|
4249
|
+
|
4250
|
+
/**
|
4251
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4252
|
+
* given reader into the given message object.
|
4253
|
+
* @param {!proto.cms.GetBannerRequest} msg The message object to deserialize into.
|
4254
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4255
|
+
* @return {!proto.cms.GetBannerRequest}
|
4256
|
+
*/
|
4257
|
+
proto.cms.GetBannerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4258
|
+
while (reader.nextField()) {
|
4259
|
+
if (reader.isEndGroup()) {
|
4260
|
+
break;
|
4261
|
+
}
|
4262
|
+
var field = reader.getFieldNumber();
|
4263
|
+
switch (field) {
|
4264
|
+
case 1:
|
4265
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4266
|
+
msg.setId(value);
|
4267
|
+
break;
|
4268
|
+
case 4:
|
4269
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
4270
|
+
msg.setAdminSide(value);
|
4271
|
+
break;
|
4272
|
+
default:
|
4273
|
+
reader.skipField();
|
4274
|
+
break;
|
4275
|
+
}
|
4276
|
+
}
|
4277
|
+
return msg;
|
4278
|
+
};
|
4279
|
+
|
4280
|
+
|
4281
|
+
/**
|
4282
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4283
|
+
* @return {!Uint8Array}
|
4284
|
+
*/
|
4285
|
+
proto.cms.GetBannerRequest.prototype.serializeBinary = function() {
|
4286
|
+
var writer = new jspb.BinaryWriter();
|
4287
|
+
proto.cms.GetBannerRequest.serializeBinaryToWriter(this, writer);
|
4288
|
+
return writer.getResultBuffer();
|
4289
|
+
};
|
4290
|
+
|
4291
|
+
|
4292
|
+
/**
|
4293
|
+
* Serializes the given message to binary data (in protobuf wire
|
4294
|
+
* format), writing to the given BinaryWriter.
|
4295
|
+
* @param {!proto.cms.GetBannerRequest} message
|
4296
|
+
* @param {!jspb.BinaryWriter} writer
|
4297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4298
|
+
*/
|
4299
|
+
proto.cms.GetBannerRequest.serializeBinaryToWriter = function(message, writer) {
|
4300
|
+
var f = undefined;
|
4301
|
+
f = message.getId();
|
4302
|
+
if (f !== 0) {
|
4303
|
+
writer.writeInt32(
|
4304
|
+
1,
|
4305
|
+
f
|
4306
|
+
);
|
4307
|
+
}
|
4308
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
4309
|
+
if (f != null) {
|
4310
|
+
writer.writeBool(
|
4311
|
+
4,
|
4312
|
+
f
|
4313
|
+
);
|
4314
|
+
}
|
4315
|
+
};
|
4316
|
+
|
4317
|
+
|
4318
|
+
/**
|
4319
|
+
* optional int32 id = 1;
|
4320
|
+
* @return {number}
|
4321
|
+
*/
|
4322
|
+
proto.cms.GetBannerRequest.prototype.getId = function() {
|
4323
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4324
|
+
};
|
4325
|
+
|
4326
|
+
|
4327
|
+
/**
|
4328
|
+
* @param {number} value
|
4329
|
+
* @return {!proto.cms.GetBannerRequest} returns this
|
4330
|
+
*/
|
4331
|
+
proto.cms.GetBannerRequest.prototype.setId = function(value) {
|
4332
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
4333
|
+
};
|
4334
|
+
|
4335
|
+
|
4336
|
+
/**
|
4337
|
+
* optional bool admin_side = 4;
|
4338
|
+
* @return {boolean}
|
4339
|
+
*/
|
4340
|
+
proto.cms.GetBannerRequest.prototype.getAdminSide = function() {
|
4341
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
4342
|
+
};
|
4343
|
+
|
4344
|
+
|
4345
|
+
/**
|
4346
|
+
* @param {boolean} value
|
4347
|
+
* @return {!proto.cms.GetBannerRequest} returns this
|
4348
|
+
*/
|
4349
|
+
proto.cms.GetBannerRequest.prototype.setAdminSide = function(value) {
|
4350
|
+
return jspb.Message.setField(this, 4, value);
|
4351
|
+
};
|
4352
|
+
|
4353
|
+
|
4354
|
+
/**
|
4355
|
+
* Clears the field making it undefined.
|
4356
|
+
* @return {!proto.cms.GetBannerRequest} returns this
|
4357
|
+
*/
|
4358
|
+
proto.cms.GetBannerRequest.prototype.clearAdminSide = function() {
|
4359
|
+
return jspb.Message.setField(this, 4, undefined);
|
4360
|
+
};
|
4361
|
+
|
4362
|
+
|
4363
|
+
/**
|
4364
|
+
* Returns whether this field is set.
|
4365
|
+
* @return {boolean}
|
4366
|
+
*/
|
4367
|
+
proto.cms.GetBannerRequest.prototype.hasAdminSide = function() {
|
4368
|
+
return jspb.Message.getField(this, 4) != null;
|
4369
|
+
};
|
4370
|
+
|
4371
|
+
|
4372
|
+
|
4373
|
+
|
4374
|
+
|
4375
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4376
|
+
/**
|
4377
|
+
* Creates an object representation of this proto.
|
4378
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4379
|
+
* Optional fields that are not set will be set to undefined.
|
4380
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4381
|
+
* For the list of reserved names please see:
|
4382
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4383
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4384
|
+
* JSPB instance for transitional soy proto support:
|
4385
|
+
* http://goto/soy-param-migration
|
4386
|
+
* @return {!Object}
|
4387
|
+
*/
|
4388
|
+
proto.cms.BannerStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
4389
|
+
return proto.cms.BannerStatusResponse.toObject(opt_includeInstance, this);
|
4390
|
+
};
|
4391
|
+
|
4392
|
+
|
4393
|
+
/**
|
4394
|
+
* Static version of the {@see toObject} method.
|
4395
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4396
|
+
* the JSPB instance for transitional soy proto support:
|
4397
|
+
* http://goto/soy-param-migration
|
4398
|
+
* @param {!proto.cms.BannerStatusResponse} msg The msg instance to transform.
|
4399
|
+
* @return {!Object}
|
4400
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4401
|
+
*/
|
4402
|
+
proto.cms.BannerStatusResponse.toObject = function(includeInstance, msg) {
|
4403
|
+
var f, obj = {
|
4404
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
4405
|
+
};
|
4406
|
+
|
4407
|
+
if (includeInstance) {
|
4408
|
+
obj.$jspbMessageInstance = msg;
|
4409
|
+
}
|
4410
|
+
return obj;
|
4411
|
+
};
|
4412
|
+
}
|
4413
|
+
|
4414
|
+
|
4415
|
+
/**
|
4416
|
+
* Deserializes binary data (in protobuf wire format).
|
4417
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4418
|
+
* @return {!proto.cms.BannerStatusResponse}
|
4419
|
+
*/
|
4420
|
+
proto.cms.BannerStatusResponse.deserializeBinary = function(bytes) {
|
4421
|
+
var reader = new jspb.BinaryReader(bytes);
|
4422
|
+
var msg = new proto.cms.BannerStatusResponse;
|
4423
|
+
return proto.cms.BannerStatusResponse.deserializeBinaryFromReader(msg, reader);
|
4424
|
+
};
|
4425
|
+
|
4426
|
+
|
4427
|
+
/**
|
4428
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4429
|
+
* given reader into the given message object.
|
4430
|
+
* @param {!proto.cms.BannerStatusResponse} msg The message object to deserialize into.
|
4431
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4432
|
+
* @return {!proto.cms.BannerStatusResponse}
|
4433
|
+
*/
|
4434
|
+
proto.cms.BannerStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
4435
|
+
while (reader.nextField()) {
|
4436
|
+
if (reader.isEndGroup()) {
|
4437
|
+
break;
|
4438
|
+
}
|
4439
|
+
var field = reader.getFieldNumber();
|
4440
|
+
switch (field) {
|
4441
|
+
case 1:
|
4442
|
+
var value = /** @type {string} */ (reader.readString());
|
4443
|
+
msg.setStatus(value);
|
4444
|
+
break;
|
4445
|
+
default:
|
4446
|
+
reader.skipField();
|
4447
|
+
break;
|
4448
|
+
}
|
4449
|
+
}
|
4450
|
+
return msg;
|
4451
|
+
};
|
4452
|
+
|
4453
|
+
|
4454
|
+
/**
|
4455
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4456
|
+
* @return {!Uint8Array}
|
4457
|
+
*/
|
4458
|
+
proto.cms.BannerStatusResponse.prototype.serializeBinary = function() {
|
4459
|
+
var writer = new jspb.BinaryWriter();
|
4460
|
+
proto.cms.BannerStatusResponse.serializeBinaryToWriter(this, writer);
|
4461
|
+
return writer.getResultBuffer();
|
4462
|
+
};
|
4463
|
+
|
4464
|
+
|
4465
|
+
/**
|
4466
|
+
* Serializes the given message to binary data (in protobuf wire
|
4467
|
+
* format), writing to the given BinaryWriter.
|
4468
|
+
* @param {!proto.cms.BannerStatusResponse} message
|
4469
|
+
* @param {!jspb.BinaryWriter} writer
|
4470
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4471
|
+
*/
|
4472
|
+
proto.cms.BannerStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
4473
|
+
var f = undefined;
|
4474
|
+
f = message.getStatus();
|
4475
|
+
if (f.length > 0) {
|
4476
|
+
writer.writeString(
|
4477
|
+
1,
|
4478
|
+
f
|
4479
|
+
);
|
4480
|
+
}
|
4481
|
+
};
|
4482
|
+
|
4483
|
+
|
4484
|
+
/**
|
4485
|
+
* optional string status = 1;
|
4486
|
+
* @return {string}
|
4487
|
+
*/
|
4488
|
+
proto.cms.BannerStatusResponse.prototype.getStatus = function() {
|
4489
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
4490
|
+
};
|
4491
|
+
|
4492
|
+
|
4493
|
+
/**
|
4494
|
+
* @param {string} value
|
4495
|
+
* @return {!proto.cms.BannerStatusResponse} returns this
|
4496
|
+
*/
|
4497
|
+
proto.cms.BannerStatusResponse.prototype.setStatus = function(value) {
|
4498
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
4499
|
+
};
|
4500
|
+
|
4501
|
+
|
4502
|
+
|
4503
|
+
/**
|
4504
|
+
* List of repeated fields within this message type.
|
4505
|
+
* @private {!Array<number>}
|
4506
|
+
* @const
|
4507
|
+
*/
|
4508
|
+
proto.cms.BannerItemsResponse.repeatedFields_ = [1];
|
4509
|
+
|
4510
|
+
|
4511
|
+
|
4512
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4513
|
+
/**
|
4514
|
+
* Creates an object representation of this proto.
|
4515
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4516
|
+
* Optional fields that are not set will be set to undefined.
|
4517
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4518
|
+
* For the list of reserved names please see:
|
4519
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4520
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4521
|
+
* JSPB instance for transitional soy proto support:
|
4522
|
+
* http://goto/soy-param-migration
|
4523
|
+
* @return {!Object}
|
4524
|
+
*/
|
4525
|
+
proto.cms.BannerItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
4526
|
+
return proto.cms.BannerItemsResponse.toObject(opt_includeInstance, this);
|
4527
|
+
};
|
4528
|
+
|
4529
|
+
|
4530
|
+
/**
|
4531
|
+
* Static version of the {@see toObject} method.
|
4532
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4533
|
+
* the JSPB instance for transitional soy proto support:
|
4534
|
+
* http://goto/soy-param-migration
|
4535
|
+
* @param {!proto.cms.BannerItemsResponse} msg The msg instance to transform.
|
4536
|
+
* @return {!Object}
|
4537
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4538
|
+
*/
|
4539
|
+
proto.cms.BannerItemsResponse.toObject = function(includeInstance, msg) {
|
4540
|
+
var f, obj = {
|
4541
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
4542
|
+
proto.cms.BannerItem.toObject, includeInstance),
|
4543
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4544
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
4545
|
+
};
|
4546
|
+
|
4547
|
+
if (includeInstance) {
|
4548
|
+
obj.$jspbMessageInstance = msg;
|
4549
|
+
}
|
4550
|
+
return obj;
|
4551
|
+
};
|
4552
|
+
}
|
4553
|
+
|
4554
|
+
|
4555
|
+
/**
|
4556
|
+
* Deserializes binary data (in protobuf wire format).
|
4557
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4558
|
+
* @return {!proto.cms.BannerItemsResponse}
|
4559
|
+
*/
|
4560
|
+
proto.cms.BannerItemsResponse.deserializeBinary = function(bytes) {
|
4561
|
+
var reader = new jspb.BinaryReader(bytes);
|
4562
|
+
var msg = new proto.cms.BannerItemsResponse;
|
4563
|
+
return proto.cms.BannerItemsResponse.deserializeBinaryFromReader(msg, reader);
|
4564
|
+
};
|
4565
|
+
|
4566
|
+
|
4567
|
+
/**
|
4568
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4569
|
+
* given reader into the given message object.
|
4570
|
+
* @param {!proto.cms.BannerItemsResponse} msg The message object to deserialize into.
|
4571
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4572
|
+
* @return {!proto.cms.BannerItemsResponse}
|
4573
|
+
*/
|
4574
|
+
proto.cms.BannerItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
4575
|
+
while (reader.nextField()) {
|
4576
|
+
if (reader.isEndGroup()) {
|
4577
|
+
break;
|
4578
|
+
}
|
4579
|
+
var field = reader.getFieldNumber();
|
4580
|
+
switch (field) {
|
4581
|
+
case 1:
|
4582
|
+
var value = new proto.cms.BannerItem;
|
4583
|
+
reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
|
4584
|
+
msg.addItems(value);
|
4585
|
+
break;
|
4586
|
+
case 2:
|
4587
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4588
|
+
msg.setTotalPages(value);
|
4589
|
+
break;
|
4590
|
+
case 3:
|
4591
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4592
|
+
msg.setTotalItems(value);
|
4593
|
+
break;
|
4594
|
+
default:
|
4595
|
+
reader.skipField();
|
4596
|
+
break;
|
4597
|
+
}
|
4598
|
+
}
|
4599
|
+
return msg;
|
4600
|
+
};
|
4601
|
+
|
4602
|
+
|
4603
|
+
/**
|
4604
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4605
|
+
* @return {!Uint8Array}
|
4606
|
+
*/
|
4607
|
+
proto.cms.BannerItemsResponse.prototype.serializeBinary = function() {
|
4608
|
+
var writer = new jspb.BinaryWriter();
|
4609
|
+
proto.cms.BannerItemsResponse.serializeBinaryToWriter(this, writer);
|
4610
|
+
return writer.getResultBuffer();
|
4611
|
+
};
|
4612
|
+
|
4613
|
+
|
4614
|
+
/**
|
4615
|
+
* Serializes the given message to binary data (in protobuf wire
|
4616
|
+
* format), writing to the given BinaryWriter.
|
4617
|
+
* @param {!proto.cms.BannerItemsResponse} message
|
4618
|
+
* @param {!jspb.BinaryWriter} writer
|
4619
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4620
|
+
*/
|
4621
|
+
proto.cms.BannerItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
4622
|
+
var f = undefined;
|
4623
|
+
f = message.getItemsList();
|
4624
|
+
if (f.length > 0) {
|
4625
|
+
writer.writeRepeatedMessage(
|
4626
|
+
1,
|
4627
|
+
f,
|
4628
|
+
proto.cms.BannerItem.serializeBinaryToWriter
|
4629
|
+
);
|
4630
|
+
}
|
4631
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
4632
|
+
if (f != null) {
|
4633
|
+
writer.writeInt32(
|
4634
|
+
2,
|
4635
|
+
f
|
4636
|
+
);
|
4637
|
+
}
|
4638
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
4639
|
+
if (f != null) {
|
4640
|
+
writer.writeInt32(
|
4641
|
+
3,
|
4642
|
+
f
|
4643
|
+
);
|
4644
|
+
}
|
4645
|
+
};
|
4646
|
+
|
4647
|
+
|
4648
|
+
/**
|
4649
|
+
* repeated BannerItem items = 1;
|
4650
|
+
* @return {!Array<!proto.cms.BannerItem>}
|
4651
|
+
*/
|
4652
|
+
proto.cms.BannerItemsResponse.prototype.getItemsList = function() {
|
4653
|
+
return /** @type{!Array<!proto.cms.BannerItem>} */ (
|
4654
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerItem, 1));
|
4655
|
+
};
|
4656
|
+
|
4657
|
+
|
4658
|
+
/**
|
4659
|
+
* @param {!Array<!proto.cms.BannerItem>} value
|
4660
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4661
|
+
*/
|
4662
|
+
proto.cms.BannerItemsResponse.prototype.setItemsList = function(value) {
|
4663
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
4664
|
+
};
|
4665
|
+
|
4666
|
+
|
4667
|
+
/**
|
4668
|
+
* @param {!proto.cms.BannerItem=} opt_value
|
4669
|
+
* @param {number=} opt_index
|
4670
|
+
* @return {!proto.cms.BannerItem}
|
4671
|
+
*/
|
4672
|
+
proto.cms.BannerItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
4673
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerItem, opt_index);
|
4674
|
+
};
|
4675
|
+
|
4676
|
+
|
4677
|
+
/**
|
4678
|
+
* Clears the list making it empty but non-null.
|
4679
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4680
|
+
*/
|
4681
|
+
proto.cms.BannerItemsResponse.prototype.clearItemsList = function() {
|
4682
|
+
return this.setItemsList([]);
|
4683
|
+
};
|
4684
|
+
|
4685
|
+
|
4686
|
+
/**
|
4687
|
+
* optional int32 total_pages = 2;
|
4688
|
+
* @return {number}
|
4689
|
+
*/
|
4690
|
+
proto.cms.BannerItemsResponse.prototype.getTotalPages = function() {
|
4691
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
4692
|
+
};
|
4693
|
+
|
4694
|
+
|
4695
|
+
/**
|
4696
|
+
* @param {number} value
|
4697
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4698
|
+
*/
|
4699
|
+
proto.cms.BannerItemsResponse.prototype.setTotalPages = function(value) {
|
4700
|
+
return jspb.Message.setField(this, 2, value);
|
4701
|
+
};
|
4702
|
+
|
4703
|
+
|
4704
|
+
/**
|
4705
|
+
* Clears the field making it undefined.
|
4706
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4707
|
+
*/
|
4708
|
+
proto.cms.BannerItemsResponse.prototype.clearTotalPages = function() {
|
4709
|
+
return jspb.Message.setField(this, 2, undefined);
|
4710
|
+
};
|
4711
|
+
|
4712
|
+
|
4713
|
+
/**
|
4714
|
+
* Returns whether this field is set.
|
4715
|
+
* @return {boolean}
|
4716
|
+
*/
|
4717
|
+
proto.cms.BannerItemsResponse.prototype.hasTotalPages = function() {
|
4718
|
+
return jspb.Message.getField(this, 2) != null;
|
4719
|
+
};
|
4720
|
+
|
4721
|
+
|
4722
|
+
/**
|
4723
|
+
* optional int32 total_items = 3;
|
4724
|
+
* @return {number}
|
4725
|
+
*/
|
4726
|
+
proto.cms.BannerItemsResponse.prototype.getTotalItems = function() {
|
4727
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
4728
|
+
};
|
4729
|
+
|
4730
|
+
|
4731
|
+
/**
|
4732
|
+
* @param {number} value
|
4733
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4734
|
+
*/
|
4735
|
+
proto.cms.BannerItemsResponse.prototype.setTotalItems = function(value) {
|
4736
|
+
return jspb.Message.setField(this, 3, value);
|
4737
|
+
};
|
4738
|
+
|
4739
|
+
|
4740
|
+
/**
|
4741
|
+
* Clears the field making it undefined.
|
4742
|
+
* @return {!proto.cms.BannerItemsResponse} returns this
|
4743
|
+
*/
|
4744
|
+
proto.cms.BannerItemsResponse.prototype.clearTotalItems = function() {
|
4745
|
+
return jspb.Message.setField(this, 3, undefined);
|
4746
|
+
};
|
4747
|
+
|
4748
|
+
|
4749
|
+
/**
|
4750
|
+
* Returns whether this field is set.
|
4751
|
+
* @return {boolean}
|
4752
|
+
*/
|
4753
|
+
proto.cms.BannerItemsResponse.prototype.hasTotalItems = function() {
|
4754
|
+
return jspb.Message.getField(this, 3) != null;
|
4755
|
+
};
|
4756
|
+
|
4757
|
+
|
4758
|
+
|
4759
|
+
/**
|
4760
|
+
* List of repeated fields within this message type.
|
4761
|
+
* @private {!Array<number>}
|
4762
|
+
* @const
|
4763
|
+
*/
|
4764
|
+
proto.cms.BannerGroupRequest.repeatedFields_ = [3];
|
4765
|
+
|
4766
|
+
|
4767
|
+
|
4768
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4769
|
+
/**
|
4770
|
+
* Creates an object representation of this proto.
|
4771
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4772
|
+
* Optional fields that are not set will be set to undefined.
|
4773
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4774
|
+
* For the list of reserved names please see:
|
4775
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4776
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4777
|
+
* JSPB instance for transitional soy proto support:
|
4778
|
+
* http://goto/soy-param-migration
|
4779
|
+
* @return {!Object}
|
4780
|
+
*/
|
4781
|
+
proto.cms.BannerGroupRequest.prototype.toObject = function(opt_includeInstance) {
|
4782
|
+
return proto.cms.BannerGroupRequest.toObject(opt_includeInstance, this);
|
4783
|
+
};
|
4784
|
+
|
4785
|
+
|
4786
|
+
/**
|
4787
|
+
* Static version of the {@see toObject} method.
|
4788
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4789
|
+
* the JSPB instance for transitional soy proto support:
|
4790
|
+
* http://goto/soy-param-migration
|
4791
|
+
* @param {!proto.cms.BannerGroupRequest} msg The msg instance to transform.
|
4792
|
+
* @return {!Object}
|
4793
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4794
|
+
*/
|
4795
|
+
proto.cms.BannerGroupRequest.toObject = function(includeInstance, msg) {
|
4796
|
+
var f, obj = {
|
4797
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4798
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
4799
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
4800
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
4801
|
+
};
|
4802
|
+
|
4803
|
+
if (includeInstance) {
|
4804
|
+
obj.$jspbMessageInstance = msg;
|
4805
|
+
}
|
4806
|
+
return obj;
|
4807
|
+
};
|
4808
|
+
}
|
4809
|
+
|
4810
|
+
|
4811
|
+
/**
|
4812
|
+
* Deserializes binary data (in protobuf wire format).
|
4813
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4814
|
+
* @return {!proto.cms.BannerGroupRequest}
|
4815
|
+
*/
|
4816
|
+
proto.cms.BannerGroupRequest.deserializeBinary = function(bytes) {
|
4817
|
+
var reader = new jspb.BinaryReader(bytes);
|
4818
|
+
var msg = new proto.cms.BannerGroupRequest;
|
4819
|
+
return proto.cms.BannerGroupRequest.deserializeBinaryFromReader(msg, reader);
|
4820
|
+
};
|
4821
|
+
|
4822
|
+
|
4823
|
+
/**
|
4824
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4825
|
+
* given reader into the given message object.
|
4826
|
+
* @param {!proto.cms.BannerGroupRequest} msg The message object to deserialize into.
|
4827
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4828
|
+
* @return {!proto.cms.BannerGroupRequest}
|
4829
|
+
*/
|
4830
|
+
proto.cms.BannerGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4831
|
+
while (reader.nextField()) {
|
4832
|
+
if (reader.isEndGroup()) {
|
4833
|
+
break;
|
4834
|
+
}
|
4835
|
+
var field = reader.getFieldNumber();
|
4836
|
+
switch (field) {
|
4837
|
+
case 1:
|
4838
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4839
|
+
msg.setId(value);
|
4840
|
+
break;
|
4841
|
+
case 2:
|
4842
|
+
var value = /** @type {string} */ (reader.readString());
|
4843
|
+
msg.setTitle(value);
|
4844
|
+
break;
|
4845
|
+
case 3:
|
4846
|
+
var value = /** @type {string} */ (reader.readString());
|
4847
|
+
msg.addGeo(value);
|
4848
|
+
break;
|
4849
|
+
case 4:
|
4850
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4851
|
+
msg.setIsActive(value);
|
4852
|
+
break;
|
4853
|
+
default:
|
4854
|
+
reader.skipField();
|
4855
|
+
break;
|
4856
|
+
}
|
4857
|
+
}
|
4858
|
+
return msg;
|
4859
|
+
};
|
4860
|
+
|
4861
|
+
|
4862
|
+
/**
|
4863
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4864
|
+
* @return {!Uint8Array}
|
4865
|
+
*/
|
4866
|
+
proto.cms.BannerGroupRequest.prototype.serializeBinary = function() {
|
4867
|
+
var writer = new jspb.BinaryWriter();
|
4868
|
+
proto.cms.BannerGroupRequest.serializeBinaryToWriter(this, writer);
|
4869
|
+
return writer.getResultBuffer();
|
4870
|
+
};
|
4871
|
+
|
4872
|
+
|
4873
|
+
/**
|
4874
|
+
* Serializes the given message to binary data (in protobuf wire
|
4875
|
+
* format), writing to the given BinaryWriter.
|
4876
|
+
* @param {!proto.cms.BannerGroupRequest} message
|
4877
|
+
* @param {!jspb.BinaryWriter} writer
|
4878
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4879
|
+
*/
|
4880
|
+
proto.cms.BannerGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
4881
|
+
var f = undefined;
|
4882
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
4883
|
+
if (f != null) {
|
4884
|
+
writer.writeInt32(
|
4885
|
+
1,
|
4886
|
+
f
|
4887
|
+
);
|
4888
|
+
}
|
4889
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4890
|
+
if (f != null) {
|
4891
|
+
writer.writeString(
|
4892
|
+
2,
|
4893
|
+
f
|
4894
|
+
);
|
4895
|
+
}
|
4896
|
+
f = message.getGeoList();
|
4897
|
+
if (f.length > 0) {
|
4898
|
+
writer.writeRepeatedString(
|
4899
|
+
3,
|
4900
|
+
f
|
4901
|
+
);
|
4902
|
+
}
|
4903
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
4904
|
+
if (f != null) {
|
4905
|
+
writer.writeInt32(
|
4906
|
+
4,
|
4907
|
+
f
|
4908
|
+
);
|
4909
|
+
}
|
4910
|
+
};
|
4911
|
+
|
4912
|
+
|
4913
|
+
/**
|
4914
|
+
* optional int32 id = 1;
|
4915
|
+
* @return {number}
|
4916
|
+
*/
|
4917
|
+
proto.cms.BannerGroupRequest.prototype.getId = function() {
|
4918
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4919
|
+
};
|
4920
|
+
|
4921
|
+
|
4922
|
+
/**
|
4923
|
+
* @param {number} value
|
4924
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
4925
|
+
*/
|
4926
|
+
proto.cms.BannerGroupRequest.prototype.setId = function(value) {
|
4927
|
+
return jspb.Message.setField(this, 1, value);
|
4928
|
+
};
|
4929
|
+
|
4930
|
+
|
4931
|
+
/**
|
4932
|
+
* Clears the field making it undefined.
|
4933
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
4934
|
+
*/
|
4935
|
+
proto.cms.BannerGroupRequest.prototype.clearId = function() {
|
4936
|
+
return jspb.Message.setField(this, 1, undefined);
|
4937
|
+
};
|
4938
|
+
|
4939
|
+
|
4940
|
+
/**
|
4941
|
+
* Returns whether this field is set.
|
4942
|
+
* @return {boolean}
|
4943
|
+
*/
|
4944
|
+
proto.cms.BannerGroupRequest.prototype.hasId = function() {
|
4945
|
+
return jspb.Message.getField(this, 1) != null;
|
4946
|
+
};
|
4947
|
+
|
4948
|
+
|
4949
|
+
/**
|
4950
|
+
* optional string title = 2;
|
4951
|
+
* @return {string}
|
4952
|
+
*/
|
4953
|
+
proto.cms.BannerGroupRequest.prototype.getTitle = function() {
|
4954
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3543
4955
|
};
|
3544
4956
|
|
3545
4957
|
|
3546
4958
|
/**
|
3547
4959
|
* @param {string} value
|
3548
|
-
* @return {!proto.cms.
|
4960
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
3549
4961
|
*/
|
3550
|
-
proto.cms.
|
3551
|
-
return jspb.Message.setField(this,
|
4962
|
+
proto.cms.BannerGroupRequest.prototype.setTitle = function(value) {
|
4963
|
+
return jspb.Message.setField(this, 2, value);
|
3552
4964
|
};
|
3553
4965
|
|
3554
4966
|
|
3555
4967
|
/**
|
3556
4968
|
* Clears the field making it undefined.
|
3557
|
-
* @return {!proto.cms.
|
4969
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
3558
4970
|
*/
|
3559
|
-
proto.cms.
|
3560
|
-
return jspb.Message.setField(this,
|
4971
|
+
proto.cms.BannerGroupRequest.prototype.clearTitle = function() {
|
4972
|
+
return jspb.Message.setField(this, 2, undefined);
|
3561
4973
|
};
|
3562
4974
|
|
3563
4975
|
|
@@ -3565,35 +4977,72 @@ proto.cms.BannerItem.prototype.clearImageBig = function() {
|
|
3565
4977
|
* Returns whether this field is set.
|
3566
4978
|
* @return {boolean}
|
3567
4979
|
*/
|
3568
|
-
proto.cms.
|
3569
|
-
return jspb.Message.getField(this,
|
4980
|
+
proto.cms.BannerGroupRequest.prototype.hasTitle = function() {
|
4981
|
+
return jspb.Message.getField(this, 2) != null;
|
3570
4982
|
};
|
3571
4983
|
|
3572
4984
|
|
3573
4985
|
/**
|
3574
|
-
*
|
3575
|
-
* @return {string}
|
4986
|
+
* repeated string geo = 3;
|
4987
|
+
* @return {!Array<string>}
|
3576
4988
|
*/
|
3577
|
-
proto.cms.
|
3578
|
-
return /** @type {string} */ (jspb.Message.
|
4989
|
+
proto.cms.BannerGroupRequest.prototype.getGeoList = function() {
|
4990
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
4991
|
+
};
|
4992
|
+
|
4993
|
+
|
4994
|
+
/**
|
4995
|
+
* @param {!Array<string>} value
|
4996
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
4997
|
+
*/
|
4998
|
+
proto.cms.BannerGroupRequest.prototype.setGeoList = function(value) {
|
4999
|
+
return jspb.Message.setField(this, 3, value || []);
|
3579
5000
|
};
|
3580
5001
|
|
3581
5002
|
|
3582
5003
|
/**
|
3583
5004
|
* @param {string} value
|
3584
|
-
* @
|
5005
|
+
* @param {number=} opt_index
|
5006
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
3585
5007
|
*/
|
3586
|
-
proto.cms.
|
3587
|
-
return jspb.Message.
|
5008
|
+
proto.cms.BannerGroupRequest.prototype.addGeo = function(value, opt_index) {
|
5009
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
5010
|
+
};
|
5011
|
+
|
5012
|
+
|
5013
|
+
/**
|
5014
|
+
* Clears the list making it empty but non-null.
|
5015
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5016
|
+
*/
|
5017
|
+
proto.cms.BannerGroupRequest.prototype.clearGeoList = function() {
|
5018
|
+
return this.setGeoList([]);
|
5019
|
+
};
|
5020
|
+
|
5021
|
+
|
5022
|
+
/**
|
5023
|
+
* optional int32 is_active = 4;
|
5024
|
+
* @return {number}
|
5025
|
+
*/
|
5026
|
+
proto.cms.BannerGroupRequest.prototype.getIsActive = function() {
|
5027
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5028
|
+
};
|
5029
|
+
|
5030
|
+
|
5031
|
+
/**
|
5032
|
+
* @param {number} value
|
5033
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
5034
|
+
*/
|
5035
|
+
proto.cms.BannerGroupRequest.prototype.setIsActive = function(value) {
|
5036
|
+
return jspb.Message.setField(this, 4, value);
|
3588
5037
|
};
|
3589
5038
|
|
3590
5039
|
|
3591
5040
|
/**
|
3592
5041
|
* Clears the field making it undefined.
|
3593
|
-
* @return {!proto.cms.
|
5042
|
+
* @return {!proto.cms.BannerGroupRequest} returns this
|
3594
5043
|
*/
|
3595
|
-
proto.cms.
|
3596
|
-
return jspb.Message.setField(this,
|
5044
|
+
proto.cms.BannerGroupRequest.prototype.clearIsActive = function() {
|
5045
|
+
return jspb.Message.setField(this, 4, undefined);
|
3597
5046
|
};
|
3598
5047
|
|
3599
5048
|
|
@@ -3601,12 +5050,19 @@ proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
|
3601
5050
|
* Returns whether this field is set.
|
3602
5051
|
* @return {boolean}
|
3603
5052
|
*/
|
3604
|
-
proto.cms.
|
3605
|
-
return jspb.Message.getField(this,
|
5053
|
+
proto.cms.BannerGroupRequest.prototype.hasIsActive = function() {
|
5054
|
+
return jspb.Message.getField(this, 4) != null;
|
3606
5055
|
};
|
3607
5056
|
|
3608
5057
|
|
3609
5058
|
|
5059
|
+
/**
|
5060
|
+
* List of repeated fields within this message type.
|
5061
|
+
* @private {!Array<number>}
|
5062
|
+
* @const
|
5063
|
+
*/
|
5064
|
+
proto.cms.BannerGroupItem.repeatedFields_ = [3,5];
|
5065
|
+
|
3610
5066
|
|
3611
5067
|
|
3612
5068
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -3622,8 +5078,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3622
5078
|
* http://goto/soy-param-migration
|
3623
5079
|
* @return {!Object}
|
3624
5080
|
*/
|
3625
|
-
proto.cms.
|
3626
|
-
return proto.cms.
|
5081
|
+
proto.cms.BannerGroupItem.prototype.toObject = function(opt_includeInstance) {
|
5082
|
+
return proto.cms.BannerGroupItem.toObject(opt_includeInstance, this);
|
3627
5083
|
};
|
3628
5084
|
|
3629
5085
|
|
@@ -3632,13 +5088,18 @@ proto.cms.BannerResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3632
5088
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3633
5089
|
* the JSPB instance for transitional soy proto support:
|
3634
5090
|
* http://goto/soy-param-migration
|
3635
|
-
* @param {!proto.cms.
|
5091
|
+
* @param {!proto.cms.BannerGroupItem} msg The msg instance to transform.
|
3636
5092
|
* @return {!Object}
|
3637
5093
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3638
5094
|
*/
|
3639
|
-
proto.cms.
|
5095
|
+
proto.cms.BannerGroupItem.toObject = function(includeInstance, msg) {
|
3640
5096
|
var f, obj = {
|
3641
|
-
|
5097
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5098
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5099
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
5100
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
5101
|
+
bannersList: jspb.Message.toObjectList(msg.getBannersList(),
|
5102
|
+
proto.cms.BannerItem.toObject, includeInstance)
|
3642
5103
|
};
|
3643
5104
|
|
3644
5105
|
if (includeInstance) {
|
@@ -3652,23 +5113,23 @@ proto.cms.BannerResponse.toObject = function(includeInstance, msg) {
|
|
3652
5113
|
/**
|
3653
5114
|
* Deserializes binary data (in protobuf wire format).
|
3654
5115
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3655
|
-
* @return {!proto.cms.
|
5116
|
+
* @return {!proto.cms.BannerGroupItem}
|
3656
5117
|
*/
|
3657
|
-
proto.cms.
|
5118
|
+
proto.cms.BannerGroupItem.deserializeBinary = function(bytes) {
|
3658
5119
|
var reader = new jspb.BinaryReader(bytes);
|
3659
|
-
var msg = new proto.cms.
|
3660
|
-
return proto.cms.
|
5120
|
+
var msg = new proto.cms.BannerGroupItem;
|
5121
|
+
return proto.cms.BannerGroupItem.deserializeBinaryFromReader(msg, reader);
|
3661
5122
|
};
|
3662
5123
|
|
3663
5124
|
|
3664
5125
|
/**
|
3665
5126
|
* Deserializes binary data (in protobuf wire format) from the
|
3666
5127
|
* given reader into the given message object.
|
3667
|
-
* @param {!proto.cms.
|
5128
|
+
* @param {!proto.cms.BannerGroupItem} msg The message object to deserialize into.
|
3668
5129
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3669
|
-
* @return {!proto.cms.
|
5130
|
+
* @return {!proto.cms.BannerGroupItem}
|
3670
5131
|
*/
|
3671
|
-
proto.cms.
|
5132
|
+
proto.cms.BannerGroupItem.deserializeBinaryFromReader = function(msg, reader) {
|
3672
5133
|
while (reader.nextField()) {
|
3673
5134
|
if (reader.isEndGroup()) {
|
3674
5135
|
break;
|
@@ -3676,9 +5137,25 @@ proto.cms.BannerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3676
5137
|
var field = reader.getFieldNumber();
|
3677
5138
|
switch (field) {
|
3678
5139
|
case 1:
|
5140
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5141
|
+
msg.setId(value);
|
5142
|
+
break;
|
5143
|
+
case 2:
|
5144
|
+
var value = /** @type {string} */ (reader.readString());
|
5145
|
+
msg.setTitle(value);
|
5146
|
+
break;
|
5147
|
+
case 3:
|
5148
|
+
var value = /** @type {string} */ (reader.readString());
|
5149
|
+
msg.addGeo(value);
|
5150
|
+
break;
|
5151
|
+
case 4:
|
5152
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5153
|
+
msg.setIsActive(value);
|
5154
|
+
break;
|
5155
|
+
case 5:
|
3679
5156
|
var value = new proto.cms.BannerItem;
|
3680
5157
|
reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
|
3681
|
-
msg.
|
5158
|
+
msg.addBanners(value);
|
3682
5159
|
break;
|
3683
5160
|
default:
|
3684
5161
|
reader.skipField();
|
@@ -3693,9 +5170,9 @@ proto.cms.BannerResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3693
5170
|
* Serializes the message to binary data (in protobuf wire format).
|
3694
5171
|
* @return {!Uint8Array}
|
3695
5172
|
*/
|
3696
|
-
proto.cms.
|
5173
|
+
proto.cms.BannerGroupItem.prototype.serializeBinary = function() {
|
3697
5174
|
var writer = new jspb.BinaryWriter();
|
3698
|
-
proto.cms.
|
5175
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter(this, writer);
|
3699
5176
|
return writer.getResultBuffer();
|
3700
5177
|
};
|
3701
5178
|
|
@@ -3703,16 +5180,44 @@ proto.cms.BannerResponse.prototype.serializeBinary = function() {
|
|
3703
5180
|
/**
|
3704
5181
|
* Serializes the given message to binary data (in protobuf wire
|
3705
5182
|
* format), writing to the given BinaryWriter.
|
3706
|
-
* @param {!proto.cms.
|
5183
|
+
* @param {!proto.cms.BannerGroupItem} message
|
3707
5184
|
* @param {!jspb.BinaryWriter} writer
|
3708
5185
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3709
5186
|
*/
|
3710
|
-
proto.cms.
|
5187
|
+
proto.cms.BannerGroupItem.serializeBinaryToWriter = function(message, writer) {
|
3711
5188
|
var f = undefined;
|
3712
|
-
f =
|
5189
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3713
5190
|
if (f != null) {
|
3714
|
-
writer.
|
5191
|
+
writer.writeInt32(
|
3715
5192
|
1,
|
5193
|
+
f
|
5194
|
+
);
|
5195
|
+
}
|
5196
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
5197
|
+
if (f != null) {
|
5198
|
+
writer.writeString(
|
5199
|
+
2,
|
5200
|
+
f
|
5201
|
+
);
|
5202
|
+
}
|
5203
|
+
f = message.getGeoList();
|
5204
|
+
if (f.length > 0) {
|
5205
|
+
writer.writeRepeatedString(
|
5206
|
+
3,
|
5207
|
+
f
|
5208
|
+
);
|
5209
|
+
}
|
5210
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5211
|
+
if (f != null) {
|
5212
|
+
writer.writeInt32(
|
5213
|
+
4,
|
5214
|
+
f
|
5215
|
+
);
|
5216
|
+
}
|
5217
|
+
f = message.getBannersList();
|
5218
|
+
if (f.length > 0) {
|
5219
|
+
writer.writeRepeatedMessage(
|
5220
|
+
5,
|
3716
5221
|
f,
|
3717
5222
|
proto.cms.BannerItem.serializeBinaryToWriter
|
3718
5223
|
);
|
@@ -3721,30 +5226,29 @@ proto.cms.BannerResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3721
5226
|
|
3722
5227
|
|
3723
5228
|
/**
|
3724
|
-
* optional
|
3725
|
-
* @return {
|
5229
|
+
* optional int32 id = 1;
|
5230
|
+
* @return {number}
|
3726
5231
|
*/
|
3727
|
-
proto.cms.
|
3728
|
-
return /** @type{
|
3729
|
-
jspb.Message.getWrapperField(this, proto.cms.BannerItem, 1));
|
5232
|
+
proto.cms.BannerGroupItem.prototype.getId = function() {
|
5233
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3730
5234
|
};
|
3731
5235
|
|
3732
5236
|
|
3733
5237
|
/**
|
3734
|
-
* @param {
|
3735
|
-
* @return {!proto.cms.
|
3736
|
-
*/
|
3737
|
-
proto.cms.
|
3738
|
-
return jspb.Message.
|
5238
|
+
* @param {number} value
|
5239
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5240
|
+
*/
|
5241
|
+
proto.cms.BannerGroupItem.prototype.setId = function(value) {
|
5242
|
+
return jspb.Message.setField(this, 1, value);
|
3739
5243
|
};
|
3740
5244
|
|
3741
5245
|
|
3742
5246
|
/**
|
3743
|
-
* Clears the
|
3744
|
-
* @return {!proto.cms.
|
5247
|
+
* Clears the field making it undefined.
|
5248
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3745
5249
|
*/
|
3746
|
-
proto.cms.
|
3747
|
-
return
|
5250
|
+
proto.cms.BannerGroupItem.prototype.clearId = function() {
|
5251
|
+
return jspb.Message.setField(this, 1, undefined);
|
3748
5252
|
};
|
3749
5253
|
|
3750
5254
|
|
@@ -3752,278 +5256,158 @@ proto.cms.BannerResponse.prototype.clearData = function() {
|
|
3752
5256
|
* Returns whether this field is set.
|
3753
5257
|
* @return {boolean}
|
3754
5258
|
*/
|
3755
|
-
proto.cms.
|
5259
|
+
proto.cms.BannerGroupItem.prototype.hasId = function() {
|
3756
5260
|
return jspb.Message.getField(this, 1) != null;
|
3757
5261
|
};
|
3758
5262
|
|
3759
5263
|
|
3760
|
-
|
3761
|
-
|
3762
|
-
|
3763
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3764
|
-
/**
|
3765
|
-
* Creates an object representation of this proto.
|
3766
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3767
|
-
* Optional fields that are not set will be set to undefined.
|
3768
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3769
|
-
* For the list of reserved names please see:
|
3770
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3771
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3772
|
-
* JSPB instance for transitional soy proto support:
|
3773
|
-
* http://goto/soy-param-migration
|
3774
|
-
* @return {!Object}
|
3775
|
-
*/
|
3776
|
-
proto.cms.GetBannerRequest.prototype.toObject = function(opt_includeInstance) {
|
3777
|
-
return proto.cms.GetBannerRequest.toObject(opt_includeInstance, this);
|
3778
|
-
};
|
3779
|
-
|
3780
|
-
|
3781
5264
|
/**
|
3782
|
-
*
|
3783
|
-
* @
|
3784
|
-
* the JSPB instance for transitional soy proto support:
|
3785
|
-
* http://goto/soy-param-migration
|
3786
|
-
* @param {!proto.cms.GetBannerRequest} msg The msg instance to transform.
|
3787
|
-
* @return {!Object}
|
3788
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5265
|
+
* optional string title = 2;
|
5266
|
+
* @return {string}
|
3789
5267
|
*/
|
3790
|
-
proto.cms.
|
3791
|
-
|
3792
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
3793
|
-
};
|
3794
|
-
|
3795
|
-
if (includeInstance) {
|
3796
|
-
obj.$jspbMessageInstance = msg;
|
3797
|
-
}
|
3798
|
-
return obj;
|
5268
|
+
proto.cms.BannerGroupItem.prototype.getTitle = function() {
|
5269
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3799
5270
|
};
|
3800
|
-
}
|
3801
5271
|
|
3802
5272
|
|
3803
5273
|
/**
|
3804
|
-
*
|
3805
|
-
* @
|
3806
|
-
* @return {!proto.cms.GetBannerRequest}
|
5274
|
+
* @param {string} value
|
5275
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3807
5276
|
*/
|
3808
|
-
proto.cms.
|
3809
|
-
|
3810
|
-
var msg = new proto.cms.GetBannerRequest;
|
3811
|
-
return proto.cms.GetBannerRequest.deserializeBinaryFromReader(msg, reader);
|
5277
|
+
proto.cms.BannerGroupItem.prototype.setTitle = function(value) {
|
5278
|
+
return jspb.Message.setField(this, 2, value);
|
3812
5279
|
};
|
3813
5280
|
|
3814
5281
|
|
3815
5282
|
/**
|
3816
|
-
*
|
3817
|
-
*
|
3818
|
-
* @param {!proto.cms.GetBannerRequest} msg The message object to deserialize into.
|
3819
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3820
|
-
* @return {!proto.cms.GetBannerRequest}
|
5283
|
+
* Clears the field making it undefined.
|
5284
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3821
5285
|
*/
|
3822
|
-
proto.cms.
|
3823
|
-
|
3824
|
-
if (reader.isEndGroup()) {
|
3825
|
-
break;
|
3826
|
-
}
|
3827
|
-
var field = reader.getFieldNumber();
|
3828
|
-
switch (field) {
|
3829
|
-
case 1:
|
3830
|
-
var value = /** @type {number} */ (reader.readInt32());
|
3831
|
-
msg.setId(value);
|
3832
|
-
break;
|
3833
|
-
default:
|
3834
|
-
reader.skipField();
|
3835
|
-
break;
|
3836
|
-
}
|
3837
|
-
}
|
3838
|
-
return msg;
|
5286
|
+
proto.cms.BannerGroupItem.prototype.clearTitle = function() {
|
5287
|
+
return jspb.Message.setField(this, 2, undefined);
|
3839
5288
|
};
|
3840
5289
|
|
3841
5290
|
|
3842
5291
|
/**
|
3843
|
-
*
|
3844
|
-
* @return {
|
5292
|
+
* Returns whether this field is set.
|
5293
|
+
* @return {boolean}
|
3845
5294
|
*/
|
3846
|
-
proto.cms.
|
3847
|
-
|
3848
|
-
proto.cms.GetBannerRequest.serializeBinaryToWriter(this, writer);
|
3849
|
-
return writer.getResultBuffer();
|
5295
|
+
proto.cms.BannerGroupItem.prototype.hasTitle = function() {
|
5296
|
+
return jspb.Message.getField(this, 2) != null;
|
3850
5297
|
};
|
3851
5298
|
|
3852
5299
|
|
3853
5300
|
/**
|
3854
|
-
*
|
3855
|
-
*
|
3856
|
-
* @param {!proto.cms.GetBannerRequest} message
|
3857
|
-
* @param {!jspb.BinaryWriter} writer
|
3858
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5301
|
+
* repeated string geo = 3;
|
5302
|
+
* @return {!Array<string>}
|
3859
5303
|
*/
|
3860
|
-
proto.cms.
|
3861
|
-
|
3862
|
-
f = message.getId();
|
3863
|
-
if (f !== 0) {
|
3864
|
-
writer.writeInt32(
|
3865
|
-
1,
|
3866
|
-
f
|
3867
|
-
);
|
3868
|
-
}
|
5304
|
+
proto.cms.BannerGroupItem.prototype.getGeoList = function() {
|
5305
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
3869
5306
|
};
|
3870
5307
|
|
3871
5308
|
|
3872
5309
|
/**
|
3873
|
-
*
|
3874
|
-
* @return {
|
5310
|
+
* @param {!Array<string>} value
|
5311
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3875
5312
|
*/
|
3876
|
-
proto.cms.
|
3877
|
-
return
|
5313
|
+
proto.cms.BannerGroupItem.prototype.setGeoList = function(value) {
|
5314
|
+
return jspb.Message.setField(this, 3, value || []);
|
3878
5315
|
};
|
3879
5316
|
|
3880
5317
|
|
3881
5318
|
/**
|
3882
|
-
* @param {
|
3883
|
-
* @
|
5319
|
+
* @param {string} value
|
5320
|
+
* @param {number=} opt_index
|
5321
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3884
5322
|
*/
|
3885
|
-
proto.cms.
|
3886
|
-
return jspb.Message.
|
5323
|
+
proto.cms.BannerGroupItem.prototype.addGeo = function(value, opt_index) {
|
5324
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
3887
5325
|
};
|
3888
5326
|
|
3889
5327
|
|
3890
|
-
|
3891
|
-
|
3892
|
-
|
3893
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3894
5328
|
/**
|
3895
|
-
*
|
3896
|
-
*
|
3897
|
-
* Optional fields that are not set will be set to undefined.
|
3898
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3899
|
-
* For the list of reserved names please see:
|
3900
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3901
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3902
|
-
* JSPB instance for transitional soy proto support:
|
3903
|
-
* http://goto/soy-param-migration
|
3904
|
-
* @return {!Object}
|
5329
|
+
* Clears the list making it empty but non-null.
|
5330
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3905
5331
|
*/
|
3906
|
-
proto.cms.
|
3907
|
-
return
|
5332
|
+
proto.cms.BannerGroupItem.prototype.clearGeoList = function() {
|
5333
|
+
return this.setGeoList([]);
|
3908
5334
|
};
|
3909
5335
|
|
3910
5336
|
|
3911
5337
|
/**
|
3912
|
-
*
|
3913
|
-
* @
|
3914
|
-
* the JSPB instance for transitional soy proto support:
|
3915
|
-
* http://goto/soy-param-migration
|
3916
|
-
* @param {!proto.cms.BannerStatusResponse} msg The msg instance to transform.
|
3917
|
-
* @return {!Object}
|
3918
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5338
|
+
* optional int32 is_active = 4;
|
5339
|
+
* @return {number}
|
3919
5340
|
*/
|
3920
|
-
proto.cms.
|
3921
|
-
|
3922
|
-
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
3923
|
-
};
|
3924
|
-
|
3925
|
-
if (includeInstance) {
|
3926
|
-
obj.$jspbMessageInstance = msg;
|
3927
|
-
}
|
3928
|
-
return obj;
|
5341
|
+
proto.cms.BannerGroupItem.prototype.getIsActive = function() {
|
5342
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
3929
5343
|
};
|
3930
|
-
}
|
3931
5344
|
|
3932
5345
|
|
3933
5346
|
/**
|
3934
|
-
*
|
3935
|
-
* @
|
3936
|
-
* @return {!proto.cms.BannerStatusResponse}
|
5347
|
+
* @param {number} value
|
5348
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3937
5349
|
*/
|
3938
|
-
proto.cms.
|
3939
|
-
|
3940
|
-
var msg = new proto.cms.BannerStatusResponse;
|
3941
|
-
return proto.cms.BannerStatusResponse.deserializeBinaryFromReader(msg, reader);
|
5350
|
+
proto.cms.BannerGroupItem.prototype.setIsActive = function(value) {
|
5351
|
+
return jspb.Message.setField(this, 4, value);
|
3942
5352
|
};
|
3943
5353
|
|
3944
5354
|
|
3945
5355
|
/**
|
3946
|
-
*
|
3947
|
-
*
|
3948
|
-
* @param {!proto.cms.BannerStatusResponse} msg The message object to deserialize into.
|
3949
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3950
|
-
* @return {!proto.cms.BannerStatusResponse}
|
5356
|
+
* Clears the field making it undefined.
|
5357
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
3951
5358
|
*/
|
3952
|
-
proto.cms.
|
3953
|
-
|
3954
|
-
if (reader.isEndGroup()) {
|
3955
|
-
break;
|
3956
|
-
}
|
3957
|
-
var field = reader.getFieldNumber();
|
3958
|
-
switch (field) {
|
3959
|
-
case 1:
|
3960
|
-
var value = /** @type {string} */ (reader.readString());
|
3961
|
-
msg.setStatus(value);
|
3962
|
-
break;
|
3963
|
-
default:
|
3964
|
-
reader.skipField();
|
3965
|
-
break;
|
3966
|
-
}
|
3967
|
-
}
|
3968
|
-
return msg;
|
5359
|
+
proto.cms.BannerGroupItem.prototype.clearIsActive = function() {
|
5360
|
+
return jspb.Message.setField(this, 4, undefined);
|
3969
5361
|
};
|
3970
5362
|
|
3971
5363
|
|
3972
5364
|
/**
|
3973
|
-
*
|
3974
|
-
* @return {
|
5365
|
+
* Returns whether this field is set.
|
5366
|
+
* @return {boolean}
|
3975
5367
|
*/
|
3976
|
-
proto.cms.
|
3977
|
-
|
3978
|
-
proto.cms.BannerStatusResponse.serializeBinaryToWriter(this, writer);
|
3979
|
-
return writer.getResultBuffer();
|
5368
|
+
proto.cms.BannerGroupItem.prototype.hasIsActive = function() {
|
5369
|
+
return jspb.Message.getField(this, 4) != null;
|
3980
5370
|
};
|
3981
5371
|
|
3982
5372
|
|
3983
5373
|
/**
|
3984
|
-
*
|
3985
|
-
*
|
3986
|
-
* @param {!proto.cms.BannerStatusResponse} message
|
3987
|
-
* @param {!jspb.BinaryWriter} writer
|
3988
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5374
|
+
* repeated BannerItem banners = 5;
|
5375
|
+
* @return {!Array<!proto.cms.BannerItem>}
|
3989
5376
|
*/
|
3990
|
-
proto.cms.
|
3991
|
-
|
3992
|
-
|
3993
|
-
if (f.length > 0) {
|
3994
|
-
writer.writeString(
|
3995
|
-
1,
|
3996
|
-
f
|
3997
|
-
);
|
3998
|
-
}
|
5377
|
+
proto.cms.BannerGroupItem.prototype.getBannersList = function() {
|
5378
|
+
return /** @type{!Array<!proto.cms.BannerItem>} */ (
|
5379
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerItem, 5));
|
3999
5380
|
};
|
4000
5381
|
|
4001
5382
|
|
4002
5383
|
/**
|
4003
|
-
*
|
4004
|
-
* @return {
|
4005
|
-
|
4006
|
-
proto.cms.
|
4007
|
-
return
|
5384
|
+
* @param {!Array<!proto.cms.BannerItem>} value
|
5385
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
5386
|
+
*/
|
5387
|
+
proto.cms.BannerGroupItem.prototype.setBannersList = function(value) {
|
5388
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
4008
5389
|
};
|
4009
5390
|
|
4010
5391
|
|
4011
5392
|
/**
|
4012
|
-
* @param {
|
4013
|
-
* @
|
5393
|
+
* @param {!proto.cms.BannerItem=} opt_value
|
5394
|
+
* @param {number=} opt_index
|
5395
|
+
* @return {!proto.cms.BannerItem}
|
4014
5396
|
*/
|
4015
|
-
proto.cms.
|
4016
|
-
return jspb.Message.
|
5397
|
+
proto.cms.BannerGroupItem.prototype.addBanners = function(opt_value, opt_index) {
|
5398
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.cms.BannerItem, opt_index);
|
4017
5399
|
};
|
4018
5400
|
|
4019
5401
|
|
4020
|
-
|
4021
5402
|
/**
|
4022
|
-
*
|
4023
|
-
* @
|
4024
|
-
* @const
|
5403
|
+
* Clears the list making it empty but non-null.
|
5404
|
+
* @return {!proto.cms.BannerGroupItem} returns this
|
4025
5405
|
*/
|
4026
|
-
proto.cms.
|
5406
|
+
proto.cms.BannerGroupItem.prototype.clearBannersList = function() {
|
5407
|
+
return this.setBannersList([]);
|
5408
|
+
};
|
5409
|
+
|
5410
|
+
|
4027
5411
|
|
4028
5412
|
|
4029
5413
|
|
@@ -4040,8 +5424,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4040
5424
|
* http://goto/soy-param-migration
|
4041
5425
|
* @return {!Object}
|
4042
5426
|
*/
|
4043
|
-
proto.cms.
|
4044
|
-
return proto.cms.
|
5427
|
+
proto.cms.GetBannerGroupRequest.prototype.toObject = function(opt_includeInstance) {
|
5428
|
+
return proto.cms.GetBannerGroupRequest.toObject(opt_includeInstance, this);
|
4045
5429
|
};
|
4046
5430
|
|
4047
5431
|
|
@@ -4050,16 +5434,14 @@ proto.cms.BannerItemsResponse.prototype.toObject = function(opt_includeInstance)
|
|
4050
5434
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4051
5435
|
* the JSPB instance for transitional soy proto support:
|
4052
5436
|
* http://goto/soy-param-migration
|
4053
|
-
* @param {!proto.cms.
|
5437
|
+
* @param {!proto.cms.GetBannerGroupRequest} msg The msg instance to transform.
|
4054
5438
|
* @return {!Object}
|
4055
5439
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4056
5440
|
*/
|
4057
|
-
proto.cms.
|
5441
|
+
proto.cms.GetBannerGroupRequest.toObject = function(includeInstance, msg) {
|
4058
5442
|
var f, obj = {
|
4059
|
-
|
4060
|
-
|
4061
|
-
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4062
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
5443
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5444
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
4063
5445
|
};
|
4064
5446
|
|
4065
5447
|
if (includeInstance) {
|
@@ -4073,23 +5455,23 @@ proto.cms.BannerItemsResponse.toObject = function(includeInstance, msg) {
|
|
4073
5455
|
/**
|
4074
5456
|
* Deserializes binary data (in protobuf wire format).
|
4075
5457
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4076
|
-
* @return {!proto.cms.
|
5458
|
+
* @return {!proto.cms.GetBannerGroupRequest}
|
4077
5459
|
*/
|
4078
|
-
proto.cms.
|
5460
|
+
proto.cms.GetBannerGroupRequest.deserializeBinary = function(bytes) {
|
4079
5461
|
var reader = new jspb.BinaryReader(bytes);
|
4080
|
-
var msg = new proto.cms.
|
4081
|
-
return proto.cms.
|
5462
|
+
var msg = new proto.cms.GetBannerGroupRequest;
|
5463
|
+
return proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader(msg, reader);
|
4082
5464
|
};
|
4083
5465
|
|
4084
5466
|
|
4085
5467
|
/**
|
4086
5468
|
* Deserializes binary data (in protobuf wire format) from the
|
4087
5469
|
* given reader into the given message object.
|
4088
|
-
* @param {!proto.cms.
|
5470
|
+
* @param {!proto.cms.GetBannerGroupRequest} msg The message object to deserialize into.
|
4089
5471
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4090
|
-
* @return {!proto.cms.
|
5472
|
+
* @return {!proto.cms.GetBannerGroupRequest}
|
4091
5473
|
*/
|
4092
|
-
proto.cms.
|
5474
|
+
proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4093
5475
|
while (reader.nextField()) {
|
4094
5476
|
if (reader.isEndGroup()) {
|
4095
5477
|
break;
|
@@ -4097,17 +5479,12 @@ proto.cms.BannerItemsResponse.deserializeBinaryFromReader = function(msg, reader
|
|
4097
5479
|
var field = reader.getFieldNumber();
|
4098
5480
|
switch (field) {
|
4099
5481
|
case 1:
|
4100
|
-
var value = new proto.cms.BannerItem;
|
4101
|
-
reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
|
4102
|
-
msg.addItems(value);
|
4103
|
-
break;
|
4104
|
-
case 2:
|
4105
5482
|
var value = /** @type {number} */ (reader.readInt32());
|
4106
|
-
msg.
|
5483
|
+
msg.setId(value);
|
4107
5484
|
break;
|
4108
|
-
case
|
4109
|
-
var value = /** @type {
|
4110
|
-
msg.
|
5485
|
+
case 2:
|
5486
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
5487
|
+
msg.setAdminSide(value);
|
4111
5488
|
break;
|
4112
5489
|
default:
|
4113
5490
|
reader.skipField();
|
@@ -4122,9 +5499,9 @@ proto.cms.BannerItemsResponse.deserializeBinaryFromReader = function(msg, reader
|
|
4122
5499
|
* Serializes the message to binary data (in protobuf wire format).
|
4123
5500
|
* @return {!Uint8Array}
|
4124
5501
|
*/
|
4125
|
-
proto.cms.
|
5502
|
+
proto.cms.GetBannerGroupRequest.prototype.serializeBinary = function() {
|
4126
5503
|
var writer = new jspb.BinaryWriter();
|
4127
|
-
proto.cms.
|
5504
|
+
proto.cms.GetBannerGroupRequest.serializeBinaryToWriter(this, writer);
|
4128
5505
|
return writer.getResultBuffer();
|
4129
5506
|
};
|
4130
5507
|
|
@@ -4132,31 +5509,23 @@ proto.cms.BannerItemsResponse.prototype.serializeBinary = function() {
|
|
4132
5509
|
/**
|
4133
5510
|
* Serializes the given message to binary data (in protobuf wire
|
4134
5511
|
* format), writing to the given BinaryWriter.
|
4135
|
-
* @param {!proto.cms.
|
5512
|
+
* @param {!proto.cms.GetBannerGroupRequest} message
|
4136
5513
|
* @param {!jspb.BinaryWriter} writer
|
4137
5514
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4138
5515
|
*/
|
4139
|
-
proto.cms.
|
5516
|
+
proto.cms.GetBannerGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
4140
5517
|
var f = undefined;
|
4141
|
-
f = message.
|
4142
|
-
if (f
|
4143
|
-
writer.writeRepeatedMessage(
|
4144
|
-
1,
|
4145
|
-
f,
|
4146
|
-
proto.cms.BannerItem.serializeBinaryToWriter
|
4147
|
-
);
|
4148
|
-
}
|
4149
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
4150
|
-
if (f != null) {
|
5518
|
+
f = message.getId();
|
5519
|
+
if (f !== 0) {
|
4151
5520
|
writer.writeInt32(
|
4152
|
-
|
5521
|
+
1,
|
4153
5522
|
f
|
4154
5523
|
);
|
4155
5524
|
}
|
4156
|
-
f = /** @type {
|
5525
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
4157
5526
|
if (f != null) {
|
4158
|
-
writer.
|
4159
|
-
|
5527
|
+
writer.writeBool(
|
5528
|
+
2,
|
4160
5529
|
f
|
4161
5530
|
);
|
4162
5531
|
}
|
@@ -4164,103 +5533,47 @@ proto.cms.BannerItemsResponse.serializeBinaryToWriter = function(message, writer
|
|
4164
5533
|
|
4165
5534
|
|
4166
5535
|
/**
|
4167
|
-
*
|
4168
|
-
* @return {!Array<!proto.cms.BannerItem>}
|
4169
|
-
*/
|
4170
|
-
proto.cms.BannerItemsResponse.prototype.getItemsList = function() {
|
4171
|
-
return /** @type{!Array<!proto.cms.BannerItem>} */ (
|
4172
|
-
jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerItem, 1));
|
4173
|
-
};
|
4174
|
-
|
4175
|
-
|
4176
|
-
/**
|
4177
|
-
* @param {!Array<!proto.cms.BannerItem>} value
|
4178
|
-
* @return {!proto.cms.BannerItemsResponse} returns this
|
4179
|
-
*/
|
4180
|
-
proto.cms.BannerItemsResponse.prototype.setItemsList = function(value) {
|
4181
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
4182
|
-
};
|
4183
|
-
|
4184
|
-
|
4185
|
-
/**
|
4186
|
-
* @param {!proto.cms.BannerItem=} opt_value
|
4187
|
-
* @param {number=} opt_index
|
4188
|
-
* @return {!proto.cms.BannerItem}
|
4189
|
-
*/
|
4190
|
-
proto.cms.BannerItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
4191
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.BannerItem, opt_index);
|
4192
|
-
};
|
4193
|
-
|
4194
|
-
|
4195
|
-
/**
|
4196
|
-
* Clears the list making it empty but non-null.
|
4197
|
-
* @return {!proto.cms.BannerItemsResponse} returns this
|
4198
|
-
*/
|
4199
|
-
proto.cms.BannerItemsResponse.prototype.clearItemsList = function() {
|
4200
|
-
return this.setItemsList([]);
|
4201
|
-
};
|
4202
|
-
|
4203
|
-
|
4204
|
-
/**
|
4205
|
-
* optional int32 total_pages = 2;
|
5536
|
+
* optional int32 id = 1;
|
4206
5537
|
* @return {number}
|
4207
5538
|
*/
|
4208
|
-
proto.cms.
|
4209
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
5539
|
+
proto.cms.GetBannerGroupRequest.prototype.getId = function() {
|
5540
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4210
5541
|
};
|
4211
5542
|
|
4212
5543
|
|
4213
5544
|
/**
|
4214
5545
|
* @param {number} value
|
4215
|
-
* @return {!proto.cms.
|
4216
|
-
*/
|
4217
|
-
proto.cms.BannerItemsResponse.prototype.setTotalPages = function(value) {
|
4218
|
-
return jspb.Message.setField(this, 2, value);
|
4219
|
-
};
|
4220
|
-
|
4221
|
-
|
4222
|
-
/**
|
4223
|
-
* Clears the field making it undefined.
|
4224
|
-
* @return {!proto.cms.BannerItemsResponse} returns this
|
5546
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
4225
5547
|
*/
|
4226
|
-
proto.cms.
|
4227
|
-
return jspb.Message.
|
5548
|
+
proto.cms.GetBannerGroupRequest.prototype.setId = function(value) {
|
5549
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
4228
5550
|
};
|
4229
5551
|
|
4230
5552
|
|
4231
5553
|
/**
|
4232
|
-
*
|
5554
|
+
* optional bool admin_side = 2;
|
4233
5555
|
* @return {boolean}
|
4234
5556
|
*/
|
4235
|
-
proto.cms.
|
4236
|
-
return jspb.Message.
|
4237
|
-
};
|
4238
|
-
|
4239
|
-
|
4240
|
-
/**
|
4241
|
-
* optional int32 total_items = 3;
|
4242
|
-
* @return {number}
|
4243
|
-
*/
|
4244
|
-
proto.cms.BannerItemsResponse.prototype.getTotalItems = function() {
|
4245
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
5557
|
+
proto.cms.GetBannerGroupRequest.prototype.getAdminSide = function() {
|
5558
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
4246
5559
|
};
|
4247
5560
|
|
4248
5561
|
|
4249
5562
|
/**
|
4250
|
-
* @param {
|
4251
|
-
* @return {!proto.cms.
|
5563
|
+
* @param {boolean} value
|
5564
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
4252
5565
|
*/
|
4253
|
-
proto.cms.
|
4254
|
-
return jspb.Message.setField(this,
|
5566
|
+
proto.cms.GetBannerGroupRequest.prototype.setAdminSide = function(value) {
|
5567
|
+
return jspb.Message.setField(this, 2, value);
|
4255
5568
|
};
|
4256
5569
|
|
4257
5570
|
|
4258
5571
|
/**
|
4259
5572
|
* Clears the field making it undefined.
|
4260
|
-
* @return {!proto.cms.
|
5573
|
+
* @return {!proto.cms.GetBannerGroupRequest} returns this
|
4261
5574
|
*/
|
4262
|
-
proto.cms.
|
4263
|
-
return jspb.Message.setField(this,
|
5575
|
+
proto.cms.GetBannerGroupRequest.prototype.clearAdminSide = function() {
|
5576
|
+
return jspb.Message.setField(this, 2, undefined);
|
4264
5577
|
};
|
4265
5578
|
|
4266
5579
|
|
@@ -4268,8 +5581,8 @@ proto.cms.BannerItemsResponse.prototype.clearTotalItems = function() {
|
|
4268
5581
|
* Returns whether this field is set.
|
4269
5582
|
* @return {boolean}
|
4270
5583
|
*/
|
4271
|
-
proto.cms.
|
4272
|
-
return jspb.Message.getField(this,
|
5584
|
+
proto.cms.GetBannerGroupRequest.prototype.hasAdminSide = function() {
|
5585
|
+
return jspb.Message.getField(this, 2) != null;
|
4273
5586
|
};
|
4274
5587
|
|
4275
5588
|
|