protobuf-platform 1.0.191 → 1.0.193
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 +20 -14
- package/cms/cms_grpc_pb.js +33 -0
- package/cms/cms_pb.js +347 -107
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -4,6 +4,7 @@ package cms;
|
|
4
4
|
|
5
5
|
service CMS {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
rpc getMediaResource(GetFileRequest) returns (stream File);
|
7
8
|
//Widgets
|
8
9
|
rpc setMainPageWidget(CommonWidgetRequest) returns (MainPageWidgetItem);
|
9
10
|
rpc getMainPageWidget(GetMainPageWidgetRequest) returns (MainPageWidgetItem);
|
@@ -64,28 +65,33 @@ message BannerRequest {
|
|
64
65
|
}
|
65
66
|
}
|
66
67
|
message BannerItemRequest {
|
67
|
-
optional
|
68
|
-
optional string
|
69
|
-
optional string
|
70
|
-
optional string
|
71
|
-
optional string
|
72
|
-
optional
|
68
|
+
optional int32 id = 1;
|
69
|
+
optional string geo = 2;
|
70
|
+
optional string title = 3;
|
71
|
+
optional string content = 4;
|
72
|
+
optional string cta_type = 5;
|
73
|
+
optional string cta_text = 6;
|
74
|
+
optional int32 is_active = 7;
|
75
|
+
optional string anchor = 8;
|
73
76
|
}
|
74
77
|
message BannerItem {
|
75
|
-
optional
|
76
|
-
optional string
|
77
|
-
optional string
|
78
|
-
optional string
|
79
|
-
optional string
|
80
|
-
optional
|
81
|
-
optional
|
82
|
-
optional string
|
78
|
+
optional int32 id = 1;
|
79
|
+
optional string geo = 2;
|
80
|
+
optional string title = 3;
|
81
|
+
optional string content = 4;
|
82
|
+
optional string cta_type = 5;
|
83
|
+
optional string cta_text = 6;
|
84
|
+
optional int32 is_active = 7;
|
85
|
+
optional string image_big = 8;
|
86
|
+
optional string image_small = 9;
|
87
|
+
optional string anchor = 10;
|
83
88
|
}
|
84
89
|
message BannerResponse {
|
85
90
|
BannerItem data = 1;
|
86
91
|
}
|
87
92
|
message GetBannerRequest {
|
88
93
|
int32 id = 1;
|
94
|
+
optional bool admin_side = 4;
|
89
95
|
}
|
90
96
|
message BannerStatusResponse {
|
91
97
|
string status = 1;
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -70,6 +70,17 @@ function deserialize_cms_CommonWidgetRequest(buffer_arg) {
|
|
70
70
|
return cms_pb.CommonWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
71
|
}
|
72
72
|
|
73
|
+
function serialize_cms_File(arg) {
|
74
|
+
if (!(arg instanceof cms_pb.File)) {
|
75
|
+
throw new Error('Expected argument of type cms.File');
|
76
|
+
}
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
78
|
+
}
|
79
|
+
|
80
|
+
function deserialize_cms_File(buffer_arg) {
|
81
|
+
return cms_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
82
|
+
}
|
83
|
+
|
73
84
|
function serialize_cms_GetBannerRequest(arg) {
|
74
85
|
if (!(arg instanceof cms_pb.GetBannerRequest)) {
|
75
86
|
throw new Error('Expected argument of type cms.GetBannerRequest');
|
@@ -92,6 +103,17 @@ function deserialize_cms_GetBurgerMenuWidgetRequest(buffer_arg) {
|
|
92
103
|
return cms_pb.GetBurgerMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
104
|
}
|
94
105
|
|
106
|
+
function serialize_cms_GetFileRequest(arg) {
|
107
|
+
if (!(arg instanceof cms_pb.GetFileRequest)) {
|
108
|
+
throw new Error('Expected argument of type cms.GetFileRequest');
|
109
|
+
}
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
111
|
+
}
|
112
|
+
|
113
|
+
function deserialize_cms_GetFileRequest(buffer_arg) {
|
114
|
+
return cms_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
115
|
+
}
|
116
|
+
|
95
117
|
function serialize_cms_GetMainPageWidgetRequest(arg) {
|
96
118
|
if (!(arg instanceof cms_pb.GetMainPageWidgetRequest)) {
|
97
119
|
throw new Error('Expected argument of type cms.GetMainPageWidgetRequest');
|
@@ -171,6 +193,17 @@ var CMSService = exports.CMSService = {
|
|
171
193
|
responseSerialize: serialize_cms_PongResponse,
|
172
194
|
responseDeserialize: deserialize_cms_PongResponse,
|
173
195
|
},
|
196
|
+
getMediaResource: {
|
197
|
+
path: '/cms.CMS/getMediaResource',
|
198
|
+
requestStream: false,
|
199
|
+
responseStream: true,
|
200
|
+
requestType: cms_pb.GetFileRequest,
|
201
|
+
responseType: cms_pb.File,
|
202
|
+
requestSerialize: serialize_cms_GetFileRequest,
|
203
|
+
requestDeserialize: deserialize_cms_GetFileRequest,
|
204
|
+
responseSerialize: serialize_cms_File,
|
205
|
+
responseDeserialize: deserialize_cms_File,
|
206
|
+
},
|
174
207
|
// Widgets
|
175
208
|
setMainPageWidget: {
|
176
209
|
path: '/cms.CMS/setMainPageWidget',
|
package/cms/cms_pb.js
CHANGED
@@ -2766,12 +2766,14 @@ proto.cms.BannerItemRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2766
2766
|
*/
|
2767
2767
|
proto.cms.BannerItemRequest.toObject = function(includeInstance, msg) {
|
2768
2768
|
var f, obj = {
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2769
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2770
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2771
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2772
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2773
|
+
ctaType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
2774
|
+
ctaText: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
2775
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
2776
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 8, "")
|
2775
2777
|
};
|
2776
2778
|
|
2777
2779
|
if (includeInstance) {
|
@@ -2809,29 +2811,37 @@ proto.cms.BannerItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2809
2811
|
var field = reader.getFieldNumber();
|
2810
2812
|
switch (field) {
|
2811
2813
|
case 1:
|
2814
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2815
|
+
msg.setId(value);
|
2816
|
+
break;
|
2817
|
+
case 2:
|
2812
2818
|
var value = /** @type {string} */ (reader.readString());
|
2813
2819
|
msg.setGeo(value);
|
2814
2820
|
break;
|
2815
|
-
case
|
2821
|
+
case 3:
|
2816
2822
|
var value = /** @type {string} */ (reader.readString());
|
2817
2823
|
msg.setTitle(value);
|
2818
2824
|
break;
|
2819
|
-
case
|
2825
|
+
case 4:
|
2820
2826
|
var value = /** @type {string} */ (reader.readString());
|
2821
2827
|
msg.setContent(value);
|
2822
2828
|
break;
|
2823
|
-
case
|
2829
|
+
case 5:
|
2824
2830
|
var value = /** @type {string} */ (reader.readString());
|
2825
2831
|
msg.setCtaType(value);
|
2826
2832
|
break;
|
2827
|
-
case
|
2833
|
+
case 6:
|
2828
2834
|
var value = /** @type {string} */ (reader.readString());
|
2829
2835
|
msg.setCtaText(value);
|
2830
2836
|
break;
|
2831
|
-
case
|
2837
|
+
case 7:
|
2832
2838
|
var value = /** @type {number} */ (reader.readInt32());
|
2833
2839
|
msg.setIsActive(value);
|
2834
2840
|
break;
|
2841
|
+
case 8:
|
2842
|
+
var value = /** @type {string} */ (reader.readString());
|
2843
|
+
msg.setAnchor(value);
|
2844
|
+
break;
|
2835
2845
|
default:
|
2836
2846
|
reader.skipField();
|
2837
2847
|
break;
|
@@ -2861,9 +2871,9 @@ proto.cms.BannerItemRequest.prototype.serializeBinary = function() {
|
|
2861
2871
|
*/
|
2862
2872
|
proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer) {
|
2863
2873
|
var f = undefined;
|
2864
|
-
f = /** @type {
|
2874
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2865
2875
|
if (f != null) {
|
2866
|
-
writer.
|
2876
|
+
writer.writeInt32(
|
2867
2877
|
1,
|
2868
2878
|
f
|
2869
2879
|
);
|
@@ -2896,22 +2906,72 @@ proto.cms.BannerItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
2896
2906
|
f
|
2897
2907
|
);
|
2898
2908
|
}
|
2899
|
-
f = /** @type {
|
2909
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
2900
2910
|
if (f != null) {
|
2901
|
-
writer.
|
2911
|
+
writer.writeString(
|
2902
2912
|
6,
|
2903
2913
|
f
|
2904
2914
|
);
|
2905
2915
|
}
|
2916
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
2917
|
+
if (f != null) {
|
2918
|
+
writer.writeInt32(
|
2919
|
+
7,
|
2920
|
+
f
|
2921
|
+
);
|
2922
|
+
}
|
2923
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
2924
|
+
if (f != null) {
|
2925
|
+
writer.writeString(
|
2926
|
+
8,
|
2927
|
+
f
|
2928
|
+
);
|
2929
|
+
}
|
2906
2930
|
};
|
2907
2931
|
|
2908
2932
|
|
2909
2933
|
/**
|
2910
|
-
* optional
|
2934
|
+
* optional int32 id = 1;
|
2935
|
+
* @return {number}
|
2936
|
+
*/
|
2937
|
+
proto.cms.BannerItemRequest.prototype.getId = function() {
|
2938
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2939
|
+
};
|
2940
|
+
|
2941
|
+
|
2942
|
+
/**
|
2943
|
+
* @param {number} value
|
2944
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
2945
|
+
*/
|
2946
|
+
proto.cms.BannerItemRequest.prototype.setId = function(value) {
|
2947
|
+
return jspb.Message.setField(this, 1, value);
|
2948
|
+
};
|
2949
|
+
|
2950
|
+
|
2951
|
+
/**
|
2952
|
+
* Clears the field making it undefined.
|
2953
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
2954
|
+
*/
|
2955
|
+
proto.cms.BannerItemRequest.prototype.clearId = function() {
|
2956
|
+
return jspb.Message.setField(this, 1, undefined);
|
2957
|
+
};
|
2958
|
+
|
2959
|
+
|
2960
|
+
/**
|
2961
|
+
* Returns whether this field is set.
|
2962
|
+
* @return {boolean}
|
2963
|
+
*/
|
2964
|
+
proto.cms.BannerItemRequest.prototype.hasId = function() {
|
2965
|
+
return jspb.Message.getField(this, 1) != null;
|
2966
|
+
};
|
2967
|
+
|
2968
|
+
|
2969
|
+
/**
|
2970
|
+
* optional string geo = 2;
|
2911
2971
|
* @return {string}
|
2912
2972
|
*/
|
2913
2973
|
proto.cms.BannerItemRequest.prototype.getGeo = function() {
|
2914
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
2974
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2915
2975
|
};
|
2916
2976
|
|
2917
2977
|
|
@@ -2920,7 +2980,7 @@ proto.cms.BannerItemRequest.prototype.getGeo = function() {
|
|
2920
2980
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2921
2981
|
*/
|
2922
2982
|
proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
2923
|
-
return jspb.Message.setField(this,
|
2983
|
+
return jspb.Message.setField(this, 2, value);
|
2924
2984
|
};
|
2925
2985
|
|
2926
2986
|
|
@@ -2929,7 +2989,7 @@ proto.cms.BannerItemRequest.prototype.setGeo = function(value) {
|
|
2929
2989
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2930
2990
|
*/
|
2931
2991
|
proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
2932
|
-
return jspb.Message.setField(this,
|
2992
|
+
return jspb.Message.setField(this, 2, undefined);
|
2933
2993
|
};
|
2934
2994
|
|
2935
2995
|
|
@@ -2938,16 +2998,16 @@ proto.cms.BannerItemRequest.prototype.clearGeo = function() {
|
|
2938
2998
|
* @return {boolean}
|
2939
2999
|
*/
|
2940
3000
|
proto.cms.BannerItemRequest.prototype.hasGeo = function() {
|
2941
|
-
return jspb.Message.getField(this,
|
3001
|
+
return jspb.Message.getField(this, 2) != null;
|
2942
3002
|
};
|
2943
3003
|
|
2944
3004
|
|
2945
3005
|
/**
|
2946
|
-
* optional string title =
|
3006
|
+
* optional string title = 3;
|
2947
3007
|
* @return {string}
|
2948
3008
|
*/
|
2949
3009
|
proto.cms.BannerItemRequest.prototype.getTitle = function() {
|
2950
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3010
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2951
3011
|
};
|
2952
3012
|
|
2953
3013
|
|
@@ -2956,7 +3016,7 @@ proto.cms.BannerItemRequest.prototype.getTitle = function() {
|
|
2956
3016
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2957
3017
|
*/
|
2958
3018
|
proto.cms.BannerItemRequest.prototype.setTitle = function(value) {
|
2959
|
-
return jspb.Message.setField(this,
|
3019
|
+
return jspb.Message.setField(this, 3, value);
|
2960
3020
|
};
|
2961
3021
|
|
2962
3022
|
|
@@ -2965,7 +3025,7 @@ proto.cms.BannerItemRequest.prototype.setTitle = function(value) {
|
|
2965
3025
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2966
3026
|
*/
|
2967
3027
|
proto.cms.BannerItemRequest.prototype.clearTitle = function() {
|
2968
|
-
return jspb.Message.setField(this,
|
3028
|
+
return jspb.Message.setField(this, 3, undefined);
|
2969
3029
|
};
|
2970
3030
|
|
2971
3031
|
|
@@ -2974,16 +3034,16 @@ proto.cms.BannerItemRequest.prototype.clearTitle = function() {
|
|
2974
3034
|
* @return {boolean}
|
2975
3035
|
*/
|
2976
3036
|
proto.cms.BannerItemRequest.prototype.hasTitle = function() {
|
2977
|
-
return jspb.Message.getField(this,
|
3037
|
+
return jspb.Message.getField(this, 3) != null;
|
2978
3038
|
};
|
2979
3039
|
|
2980
3040
|
|
2981
3041
|
/**
|
2982
|
-
* optional string content =
|
3042
|
+
* optional string content = 4;
|
2983
3043
|
* @return {string}
|
2984
3044
|
*/
|
2985
3045
|
proto.cms.BannerItemRequest.prototype.getContent = function() {
|
2986
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3046
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2987
3047
|
};
|
2988
3048
|
|
2989
3049
|
|
@@ -2992,7 +3052,7 @@ proto.cms.BannerItemRequest.prototype.getContent = function() {
|
|
2992
3052
|
* @return {!proto.cms.BannerItemRequest} returns this
|
2993
3053
|
*/
|
2994
3054
|
proto.cms.BannerItemRequest.prototype.setContent = function(value) {
|
2995
|
-
return jspb.Message.setField(this,
|
3055
|
+
return jspb.Message.setField(this, 4, value);
|
2996
3056
|
};
|
2997
3057
|
|
2998
3058
|
|
@@ -3001,7 +3061,7 @@ proto.cms.BannerItemRequest.prototype.setContent = function(value) {
|
|
3001
3061
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3002
3062
|
*/
|
3003
3063
|
proto.cms.BannerItemRequest.prototype.clearContent = function() {
|
3004
|
-
return jspb.Message.setField(this,
|
3064
|
+
return jspb.Message.setField(this, 4, undefined);
|
3005
3065
|
};
|
3006
3066
|
|
3007
3067
|
|
@@ -3010,16 +3070,16 @@ proto.cms.BannerItemRequest.prototype.clearContent = function() {
|
|
3010
3070
|
* @return {boolean}
|
3011
3071
|
*/
|
3012
3072
|
proto.cms.BannerItemRequest.prototype.hasContent = function() {
|
3013
|
-
return jspb.Message.getField(this,
|
3073
|
+
return jspb.Message.getField(this, 4) != null;
|
3014
3074
|
};
|
3015
3075
|
|
3016
3076
|
|
3017
3077
|
/**
|
3018
|
-
* optional string cta_type =
|
3078
|
+
* optional string cta_type = 5;
|
3019
3079
|
* @return {string}
|
3020
3080
|
*/
|
3021
3081
|
proto.cms.BannerItemRequest.prototype.getCtaType = function() {
|
3022
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3082
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3023
3083
|
};
|
3024
3084
|
|
3025
3085
|
|
@@ -3028,7 +3088,7 @@ proto.cms.BannerItemRequest.prototype.getCtaType = function() {
|
|
3028
3088
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3029
3089
|
*/
|
3030
3090
|
proto.cms.BannerItemRequest.prototype.setCtaType = function(value) {
|
3031
|
-
return jspb.Message.setField(this,
|
3091
|
+
return jspb.Message.setField(this, 5, value);
|
3032
3092
|
};
|
3033
3093
|
|
3034
3094
|
|
@@ -3037,7 +3097,7 @@ proto.cms.BannerItemRequest.prototype.setCtaType = function(value) {
|
|
3037
3097
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3038
3098
|
*/
|
3039
3099
|
proto.cms.BannerItemRequest.prototype.clearCtaType = function() {
|
3040
|
-
return jspb.Message.setField(this,
|
3100
|
+
return jspb.Message.setField(this, 5, undefined);
|
3041
3101
|
};
|
3042
3102
|
|
3043
3103
|
|
@@ -3046,16 +3106,16 @@ proto.cms.BannerItemRequest.prototype.clearCtaType = function() {
|
|
3046
3106
|
* @return {boolean}
|
3047
3107
|
*/
|
3048
3108
|
proto.cms.BannerItemRequest.prototype.hasCtaType = function() {
|
3049
|
-
return jspb.Message.getField(this,
|
3109
|
+
return jspb.Message.getField(this, 5) != null;
|
3050
3110
|
};
|
3051
3111
|
|
3052
3112
|
|
3053
3113
|
/**
|
3054
|
-
* optional string cta_text =
|
3114
|
+
* optional string cta_text = 6;
|
3055
3115
|
* @return {string}
|
3056
3116
|
*/
|
3057
3117
|
proto.cms.BannerItemRequest.prototype.getCtaText = function() {
|
3058
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3118
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3059
3119
|
};
|
3060
3120
|
|
3061
3121
|
|
@@ -3064,7 +3124,7 @@ proto.cms.BannerItemRequest.prototype.getCtaText = function() {
|
|
3064
3124
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3065
3125
|
*/
|
3066
3126
|
proto.cms.BannerItemRequest.prototype.setCtaText = function(value) {
|
3067
|
-
return jspb.Message.setField(this,
|
3127
|
+
return jspb.Message.setField(this, 6, value);
|
3068
3128
|
};
|
3069
3129
|
|
3070
3130
|
|
@@ -3073,7 +3133,7 @@ proto.cms.BannerItemRequest.prototype.setCtaText = function(value) {
|
|
3073
3133
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3074
3134
|
*/
|
3075
3135
|
proto.cms.BannerItemRequest.prototype.clearCtaText = function() {
|
3076
|
-
return jspb.Message.setField(this,
|
3136
|
+
return jspb.Message.setField(this, 6, undefined);
|
3077
3137
|
};
|
3078
3138
|
|
3079
3139
|
|
@@ -3082,16 +3142,16 @@ proto.cms.BannerItemRequest.prototype.clearCtaText = function() {
|
|
3082
3142
|
* @return {boolean}
|
3083
3143
|
*/
|
3084
3144
|
proto.cms.BannerItemRequest.prototype.hasCtaText = function() {
|
3085
|
-
return jspb.Message.getField(this,
|
3145
|
+
return jspb.Message.getField(this, 6) != null;
|
3086
3146
|
};
|
3087
3147
|
|
3088
3148
|
|
3089
3149
|
/**
|
3090
|
-
* optional int32 is_active =
|
3150
|
+
* optional int32 is_active = 7;
|
3091
3151
|
* @return {number}
|
3092
3152
|
*/
|
3093
3153
|
proto.cms.BannerItemRequest.prototype.getIsActive = function() {
|
3094
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
3154
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
3095
3155
|
};
|
3096
3156
|
|
3097
3157
|
|
@@ -3100,7 +3160,7 @@ proto.cms.BannerItemRequest.prototype.getIsActive = function() {
|
|
3100
3160
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3101
3161
|
*/
|
3102
3162
|
proto.cms.BannerItemRequest.prototype.setIsActive = function(value) {
|
3103
|
-
return jspb.Message.setField(this,
|
3163
|
+
return jspb.Message.setField(this, 7, value);
|
3104
3164
|
};
|
3105
3165
|
|
3106
3166
|
|
@@ -3109,7 +3169,7 @@ proto.cms.BannerItemRequest.prototype.setIsActive = function(value) {
|
|
3109
3169
|
* @return {!proto.cms.BannerItemRequest} returns this
|
3110
3170
|
*/
|
3111
3171
|
proto.cms.BannerItemRequest.prototype.clearIsActive = function() {
|
3112
|
-
return jspb.Message.setField(this,
|
3172
|
+
return jspb.Message.setField(this, 7, undefined);
|
3113
3173
|
};
|
3114
3174
|
|
3115
3175
|
|
@@ -3118,7 +3178,43 @@ proto.cms.BannerItemRequest.prototype.clearIsActive = function() {
|
|
3118
3178
|
* @return {boolean}
|
3119
3179
|
*/
|
3120
3180
|
proto.cms.BannerItemRequest.prototype.hasIsActive = function() {
|
3121
|
-
return jspb.Message.getField(this,
|
3181
|
+
return jspb.Message.getField(this, 7) != null;
|
3182
|
+
};
|
3183
|
+
|
3184
|
+
|
3185
|
+
/**
|
3186
|
+
* optional string anchor = 8;
|
3187
|
+
* @return {string}
|
3188
|
+
*/
|
3189
|
+
proto.cms.BannerItemRequest.prototype.getAnchor = function() {
|
3190
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
3191
|
+
};
|
3192
|
+
|
3193
|
+
|
3194
|
+
/**
|
3195
|
+
* @param {string} value
|
3196
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
3197
|
+
*/
|
3198
|
+
proto.cms.BannerItemRequest.prototype.setAnchor = function(value) {
|
3199
|
+
return jspb.Message.setField(this, 8, value);
|
3200
|
+
};
|
3201
|
+
|
3202
|
+
|
3203
|
+
/**
|
3204
|
+
* Clears the field making it undefined.
|
3205
|
+
* @return {!proto.cms.BannerItemRequest} returns this
|
3206
|
+
*/
|
3207
|
+
proto.cms.BannerItemRequest.prototype.clearAnchor = function() {
|
3208
|
+
return jspb.Message.setField(this, 8, undefined);
|
3209
|
+
};
|
3210
|
+
|
3211
|
+
|
3212
|
+
/**
|
3213
|
+
* Returns whether this field is set.
|
3214
|
+
* @return {boolean}
|
3215
|
+
*/
|
3216
|
+
proto.cms.BannerItemRequest.prototype.hasAnchor = function() {
|
3217
|
+
return jspb.Message.getField(this, 8) != null;
|
3122
3218
|
};
|
3123
3219
|
|
3124
3220
|
|
@@ -3154,14 +3250,16 @@ proto.cms.BannerItem.prototype.toObject = function(opt_includeInstance) {
|
|
3154
3250
|
*/
|
3155
3251
|
proto.cms.BannerItem.toObject = function(includeInstance, msg) {
|
3156
3252
|
var f, obj = {
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3253
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3254
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3255
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
3256
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3257
|
+
ctaType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3258
|
+
ctaText: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3259
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
3260
|
+
imageBig: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
3261
|
+
imageSmall: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
3262
|
+
anchor: jspb.Message.getFieldWithDefault(msg, 10, "")
|
3165
3263
|
};
|
3166
3264
|
|
3167
3265
|
if (includeInstance) {
|
@@ -3199,37 +3297,45 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
3199
3297
|
var field = reader.getFieldNumber();
|
3200
3298
|
switch (field) {
|
3201
3299
|
case 1:
|
3300
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3301
|
+
msg.setId(value);
|
3302
|
+
break;
|
3303
|
+
case 2:
|
3202
3304
|
var value = /** @type {string} */ (reader.readString());
|
3203
3305
|
msg.setGeo(value);
|
3204
3306
|
break;
|
3205
|
-
case
|
3307
|
+
case 3:
|
3206
3308
|
var value = /** @type {string} */ (reader.readString());
|
3207
3309
|
msg.setTitle(value);
|
3208
3310
|
break;
|
3209
|
-
case
|
3311
|
+
case 4:
|
3210
3312
|
var value = /** @type {string} */ (reader.readString());
|
3211
3313
|
msg.setContent(value);
|
3212
3314
|
break;
|
3213
|
-
case
|
3315
|
+
case 5:
|
3214
3316
|
var value = /** @type {string} */ (reader.readString());
|
3215
3317
|
msg.setCtaType(value);
|
3216
3318
|
break;
|
3217
|
-
case
|
3319
|
+
case 6:
|
3218
3320
|
var value = /** @type {string} */ (reader.readString());
|
3219
3321
|
msg.setCtaText(value);
|
3220
3322
|
break;
|
3221
|
-
case
|
3323
|
+
case 7:
|
3222
3324
|
var value = /** @type {number} */ (reader.readInt32());
|
3223
3325
|
msg.setIsActive(value);
|
3224
3326
|
break;
|
3225
|
-
case
|
3327
|
+
case 8:
|
3226
3328
|
var value = /** @type {string} */ (reader.readString());
|
3227
3329
|
msg.setImageBig(value);
|
3228
3330
|
break;
|
3229
|
-
case
|
3331
|
+
case 9:
|
3230
3332
|
var value = /** @type {string} */ (reader.readString());
|
3231
3333
|
msg.setImageSmall(value);
|
3232
3334
|
break;
|
3335
|
+
case 10:
|
3336
|
+
var value = /** @type {string} */ (reader.readString());
|
3337
|
+
msg.setAnchor(value);
|
3338
|
+
break;
|
3233
3339
|
default:
|
3234
3340
|
reader.skipField();
|
3235
3341
|
break;
|
@@ -3259,9 +3365,9 @@ proto.cms.BannerItem.prototype.serializeBinary = function() {
|
|
3259
3365
|
*/
|
3260
3366
|
proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
3261
3367
|
var f = undefined;
|
3262
|
-
f = /** @type {
|
3368
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3263
3369
|
if (f != null) {
|
3264
|
-
writer.
|
3370
|
+
writer.writeInt32(
|
3265
3371
|
1,
|
3266
3372
|
f
|
3267
3373
|
);
|
@@ -3294,16 +3400,16 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3294
3400
|
f
|
3295
3401
|
);
|
3296
3402
|
}
|
3297
|
-
f = /** @type {
|
3403
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
3298
3404
|
if (f != null) {
|
3299
|
-
writer.
|
3405
|
+
writer.writeString(
|
3300
3406
|
6,
|
3301
3407
|
f
|
3302
3408
|
);
|
3303
3409
|
}
|
3304
|
-
f = /** @type {
|
3410
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
3305
3411
|
if (f != null) {
|
3306
|
-
writer.
|
3412
|
+
writer.writeInt32(
|
3307
3413
|
7,
|
3308
3414
|
f
|
3309
3415
|
);
|
@@ -3315,15 +3421,65 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
|
|
3315
3421
|
f
|
3316
3422
|
);
|
3317
3423
|
}
|
3424
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
3425
|
+
if (f != null) {
|
3426
|
+
writer.writeString(
|
3427
|
+
9,
|
3428
|
+
f
|
3429
|
+
);
|
3430
|
+
}
|
3431
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
3432
|
+
if (f != null) {
|
3433
|
+
writer.writeString(
|
3434
|
+
10,
|
3435
|
+
f
|
3436
|
+
);
|
3437
|
+
}
|
3318
3438
|
};
|
3319
3439
|
|
3320
3440
|
|
3321
3441
|
/**
|
3322
|
-
* optional
|
3442
|
+
* optional int32 id = 1;
|
3443
|
+
* @return {number}
|
3444
|
+
*/
|
3445
|
+
proto.cms.BannerItem.prototype.getId = function() {
|
3446
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3447
|
+
};
|
3448
|
+
|
3449
|
+
|
3450
|
+
/**
|
3451
|
+
* @param {number} value
|
3452
|
+
* @return {!proto.cms.BannerItem} returns this
|
3453
|
+
*/
|
3454
|
+
proto.cms.BannerItem.prototype.setId = function(value) {
|
3455
|
+
return jspb.Message.setField(this, 1, value);
|
3456
|
+
};
|
3457
|
+
|
3458
|
+
|
3459
|
+
/**
|
3460
|
+
* Clears the field making it undefined.
|
3461
|
+
* @return {!proto.cms.BannerItem} returns this
|
3462
|
+
*/
|
3463
|
+
proto.cms.BannerItem.prototype.clearId = function() {
|
3464
|
+
return jspb.Message.setField(this, 1, undefined);
|
3465
|
+
};
|
3466
|
+
|
3467
|
+
|
3468
|
+
/**
|
3469
|
+
* Returns whether this field is set.
|
3470
|
+
* @return {boolean}
|
3471
|
+
*/
|
3472
|
+
proto.cms.BannerItem.prototype.hasId = function() {
|
3473
|
+
return jspb.Message.getField(this, 1) != null;
|
3474
|
+
};
|
3475
|
+
|
3476
|
+
|
3477
|
+
/**
|
3478
|
+
* optional string geo = 2;
|
3323
3479
|
* @return {string}
|
3324
3480
|
*/
|
3325
3481
|
proto.cms.BannerItem.prototype.getGeo = function() {
|
3326
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3482
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3327
3483
|
};
|
3328
3484
|
|
3329
3485
|
|
@@ -3332,7 +3488,7 @@ proto.cms.BannerItem.prototype.getGeo = function() {
|
|
3332
3488
|
* @return {!proto.cms.BannerItem} returns this
|
3333
3489
|
*/
|
3334
3490
|
proto.cms.BannerItem.prototype.setGeo = function(value) {
|
3335
|
-
return jspb.Message.setField(this,
|
3491
|
+
return jspb.Message.setField(this, 2, value);
|
3336
3492
|
};
|
3337
3493
|
|
3338
3494
|
|
@@ -3341,7 +3497,7 @@ proto.cms.BannerItem.prototype.setGeo = function(value) {
|
|
3341
3497
|
* @return {!proto.cms.BannerItem} returns this
|
3342
3498
|
*/
|
3343
3499
|
proto.cms.BannerItem.prototype.clearGeo = function() {
|
3344
|
-
return jspb.Message.setField(this,
|
3500
|
+
return jspb.Message.setField(this, 2, undefined);
|
3345
3501
|
};
|
3346
3502
|
|
3347
3503
|
|
@@ -3350,16 +3506,16 @@ proto.cms.BannerItem.prototype.clearGeo = function() {
|
|
3350
3506
|
* @return {boolean}
|
3351
3507
|
*/
|
3352
3508
|
proto.cms.BannerItem.prototype.hasGeo = function() {
|
3353
|
-
return jspb.Message.getField(this,
|
3509
|
+
return jspb.Message.getField(this, 2) != null;
|
3354
3510
|
};
|
3355
3511
|
|
3356
3512
|
|
3357
3513
|
/**
|
3358
|
-
* optional string title =
|
3514
|
+
* optional string title = 3;
|
3359
3515
|
* @return {string}
|
3360
3516
|
*/
|
3361
3517
|
proto.cms.BannerItem.prototype.getTitle = function() {
|
3362
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3518
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
3363
3519
|
};
|
3364
3520
|
|
3365
3521
|
|
@@ -3368,7 +3524,7 @@ proto.cms.BannerItem.prototype.getTitle = function() {
|
|
3368
3524
|
* @return {!proto.cms.BannerItem} returns this
|
3369
3525
|
*/
|
3370
3526
|
proto.cms.BannerItem.prototype.setTitle = function(value) {
|
3371
|
-
return jspb.Message.setField(this,
|
3527
|
+
return jspb.Message.setField(this, 3, value);
|
3372
3528
|
};
|
3373
3529
|
|
3374
3530
|
|
@@ -3377,7 +3533,7 @@ proto.cms.BannerItem.prototype.setTitle = function(value) {
|
|
3377
3533
|
* @return {!proto.cms.BannerItem} returns this
|
3378
3534
|
*/
|
3379
3535
|
proto.cms.BannerItem.prototype.clearTitle = function() {
|
3380
|
-
return jspb.Message.setField(this,
|
3536
|
+
return jspb.Message.setField(this, 3, undefined);
|
3381
3537
|
};
|
3382
3538
|
|
3383
3539
|
|
@@ -3386,16 +3542,16 @@ proto.cms.BannerItem.prototype.clearTitle = function() {
|
|
3386
3542
|
* @return {boolean}
|
3387
3543
|
*/
|
3388
3544
|
proto.cms.BannerItem.prototype.hasTitle = function() {
|
3389
|
-
return jspb.Message.getField(this,
|
3545
|
+
return jspb.Message.getField(this, 3) != null;
|
3390
3546
|
};
|
3391
3547
|
|
3392
3548
|
|
3393
3549
|
/**
|
3394
|
-
* optional string content =
|
3550
|
+
* optional string content = 4;
|
3395
3551
|
* @return {string}
|
3396
3552
|
*/
|
3397
3553
|
proto.cms.BannerItem.prototype.getContent = function() {
|
3398
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3554
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
3399
3555
|
};
|
3400
3556
|
|
3401
3557
|
|
@@ -3404,7 +3560,7 @@ proto.cms.BannerItem.prototype.getContent = function() {
|
|
3404
3560
|
* @return {!proto.cms.BannerItem} returns this
|
3405
3561
|
*/
|
3406
3562
|
proto.cms.BannerItem.prototype.setContent = function(value) {
|
3407
|
-
return jspb.Message.setField(this,
|
3563
|
+
return jspb.Message.setField(this, 4, value);
|
3408
3564
|
};
|
3409
3565
|
|
3410
3566
|
|
@@ -3413,7 +3569,7 @@ proto.cms.BannerItem.prototype.setContent = function(value) {
|
|
3413
3569
|
* @return {!proto.cms.BannerItem} returns this
|
3414
3570
|
*/
|
3415
3571
|
proto.cms.BannerItem.prototype.clearContent = function() {
|
3416
|
-
return jspb.Message.setField(this,
|
3572
|
+
return jspb.Message.setField(this, 4, undefined);
|
3417
3573
|
};
|
3418
3574
|
|
3419
3575
|
|
@@ -3422,16 +3578,16 @@ proto.cms.BannerItem.prototype.clearContent = function() {
|
|
3422
3578
|
* @return {boolean}
|
3423
3579
|
*/
|
3424
3580
|
proto.cms.BannerItem.prototype.hasContent = function() {
|
3425
|
-
return jspb.Message.getField(this,
|
3581
|
+
return jspb.Message.getField(this, 4) != null;
|
3426
3582
|
};
|
3427
3583
|
|
3428
3584
|
|
3429
3585
|
/**
|
3430
|
-
* optional string cta_type =
|
3586
|
+
* optional string cta_type = 5;
|
3431
3587
|
* @return {string}
|
3432
3588
|
*/
|
3433
3589
|
proto.cms.BannerItem.prototype.getCtaType = function() {
|
3434
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3590
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
3435
3591
|
};
|
3436
3592
|
|
3437
3593
|
|
@@ -3440,7 +3596,7 @@ proto.cms.BannerItem.prototype.getCtaType = function() {
|
|
3440
3596
|
* @return {!proto.cms.BannerItem} returns this
|
3441
3597
|
*/
|
3442
3598
|
proto.cms.BannerItem.prototype.setCtaType = function(value) {
|
3443
|
-
return jspb.Message.setField(this,
|
3599
|
+
return jspb.Message.setField(this, 5, value);
|
3444
3600
|
};
|
3445
3601
|
|
3446
3602
|
|
@@ -3449,7 +3605,7 @@ proto.cms.BannerItem.prototype.setCtaType = function(value) {
|
|
3449
3605
|
* @return {!proto.cms.BannerItem} returns this
|
3450
3606
|
*/
|
3451
3607
|
proto.cms.BannerItem.prototype.clearCtaType = function() {
|
3452
|
-
return jspb.Message.setField(this,
|
3608
|
+
return jspb.Message.setField(this, 5, undefined);
|
3453
3609
|
};
|
3454
3610
|
|
3455
3611
|
|
@@ -3458,16 +3614,16 @@ proto.cms.BannerItem.prototype.clearCtaType = function() {
|
|
3458
3614
|
* @return {boolean}
|
3459
3615
|
*/
|
3460
3616
|
proto.cms.BannerItem.prototype.hasCtaType = function() {
|
3461
|
-
return jspb.Message.getField(this,
|
3617
|
+
return jspb.Message.getField(this, 5) != null;
|
3462
3618
|
};
|
3463
3619
|
|
3464
3620
|
|
3465
3621
|
/**
|
3466
|
-
* optional string cta_text =
|
3622
|
+
* optional string cta_text = 6;
|
3467
3623
|
* @return {string}
|
3468
3624
|
*/
|
3469
3625
|
proto.cms.BannerItem.prototype.getCtaText = function() {
|
3470
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3626
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
3471
3627
|
};
|
3472
3628
|
|
3473
3629
|
|
@@ -3476,7 +3632,7 @@ proto.cms.BannerItem.prototype.getCtaText = function() {
|
|
3476
3632
|
* @return {!proto.cms.BannerItem} returns this
|
3477
3633
|
*/
|
3478
3634
|
proto.cms.BannerItem.prototype.setCtaText = function(value) {
|
3479
|
-
return jspb.Message.setField(this,
|
3635
|
+
return jspb.Message.setField(this, 6, value);
|
3480
3636
|
};
|
3481
3637
|
|
3482
3638
|
|
@@ -3485,7 +3641,7 @@ proto.cms.BannerItem.prototype.setCtaText = function(value) {
|
|
3485
3641
|
* @return {!proto.cms.BannerItem} returns this
|
3486
3642
|
*/
|
3487
3643
|
proto.cms.BannerItem.prototype.clearCtaText = function() {
|
3488
|
-
return jspb.Message.setField(this,
|
3644
|
+
return jspb.Message.setField(this, 6, undefined);
|
3489
3645
|
};
|
3490
3646
|
|
3491
3647
|
|
@@ -3494,16 +3650,16 @@ proto.cms.BannerItem.prototype.clearCtaText = function() {
|
|
3494
3650
|
* @return {boolean}
|
3495
3651
|
*/
|
3496
3652
|
proto.cms.BannerItem.prototype.hasCtaText = function() {
|
3497
|
-
return jspb.Message.getField(this,
|
3653
|
+
return jspb.Message.getField(this, 6) != null;
|
3498
3654
|
};
|
3499
3655
|
|
3500
3656
|
|
3501
3657
|
/**
|
3502
|
-
* optional int32 is_active =
|
3658
|
+
* optional int32 is_active = 7;
|
3503
3659
|
* @return {number}
|
3504
3660
|
*/
|
3505
3661
|
proto.cms.BannerItem.prototype.getIsActive = function() {
|
3506
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
3662
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
3507
3663
|
};
|
3508
3664
|
|
3509
3665
|
|
@@ -3512,7 +3668,7 @@ proto.cms.BannerItem.prototype.getIsActive = function() {
|
|
3512
3668
|
* @return {!proto.cms.BannerItem} returns this
|
3513
3669
|
*/
|
3514
3670
|
proto.cms.BannerItem.prototype.setIsActive = function(value) {
|
3515
|
-
return jspb.Message.setField(this,
|
3671
|
+
return jspb.Message.setField(this, 7, value);
|
3516
3672
|
};
|
3517
3673
|
|
3518
3674
|
|
@@ -3521,7 +3677,7 @@ proto.cms.BannerItem.prototype.setIsActive = function(value) {
|
|
3521
3677
|
* @return {!proto.cms.BannerItem} returns this
|
3522
3678
|
*/
|
3523
3679
|
proto.cms.BannerItem.prototype.clearIsActive = function() {
|
3524
|
-
return jspb.Message.setField(this,
|
3680
|
+
return jspb.Message.setField(this, 7, undefined);
|
3525
3681
|
};
|
3526
3682
|
|
3527
3683
|
|
@@ -3530,16 +3686,16 @@ proto.cms.BannerItem.prototype.clearIsActive = function() {
|
|
3530
3686
|
* @return {boolean}
|
3531
3687
|
*/
|
3532
3688
|
proto.cms.BannerItem.prototype.hasIsActive = function() {
|
3533
|
-
return jspb.Message.getField(this,
|
3689
|
+
return jspb.Message.getField(this, 7) != null;
|
3534
3690
|
};
|
3535
3691
|
|
3536
3692
|
|
3537
3693
|
/**
|
3538
|
-
* optional string image_big =
|
3694
|
+
* optional string image_big = 8;
|
3539
3695
|
* @return {string}
|
3540
3696
|
*/
|
3541
3697
|
proto.cms.BannerItem.prototype.getImageBig = function() {
|
3542
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3698
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
3543
3699
|
};
|
3544
3700
|
|
3545
3701
|
|
@@ -3548,7 +3704,7 @@ proto.cms.BannerItem.prototype.getImageBig = function() {
|
|
3548
3704
|
* @return {!proto.cms.BannerItem} returns this
|
3549
3705
|
*/
|
3550
3706
|
proto.cms.BannerItem.prototype.setImageBig = function(value) {
|
3551
|
-
return jspb.Message.setField(this,
|
3707
|
+
return jspb.Message.setField(this, 8, value);
|
3552
3708
|
};
|
3553
3709
|
|
3554
3710
|
|
@@ -3557,7 +3713,7 @@ proto.cms.BannerItem.prototype.setImageBig = function(value) {
|
|
3557
3713
|
* @return {!proto.cms.BannerItem} returns this
|
3558
3714
|
*/
|
3559
3715
|
proto.cms.BannerItem.prototype.clearImageBig = function() {
|
3560
|
-
return jspb.Message.setField(this,
|
3716
|
+
return jspb.Message.setField(this, 8, undefined);
|
3561
3717
|
};
|
3562
3718
|
|
3563
3719
|
|
@@ -3566,16 +3722,16 @@ proto.cms.BannerItem.prototype.clearImageBig = function() {
|
|
3566
3722
|
* @return {boolean}
|
3567
3723
|
*/
|
3568
3724
|
proto.cms.BannerItem.prototype.hasImageBig = function() {
|
3569
|
-
return jspb.Message.getField(this,
|
3725
|
+
return jspb.Message.getField(this, 8) != null;
|
3570
3726
|
};
|
3571
3727
|
|
3572
3728
|
|
3573
3729
|
/**
|
3574
|
-
* optional string image_small =
|
3730
|
+
* optional string image_small = 9;
|
3575
3731
|
* @return {string}
|
3576
3732
|
*/
|
3577
3733
|
proto.cms.BannerItem.prototype.getImageSmall = function() {
|
3578
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
3734
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
3579
3735
|
};
|
3580
3736
|
|
3581
3737
|
|
@@ -3584,7 +3740,7 @@ proto.cms.BannerItem.prototype.getImageSmall = function() {
|
|
3584
3740
|
* @return {!proto.cms.BannerItem} returns this
|
3585
3741
|
*/
|
3586
3742
|
proto.cms.BannerItem.prototype.setImageSmall = function(value) {
|
3587
|
-
return jspb.Message.setField(this,
|
3743
|
+
return jspb.Message.setField(this, 9, value);
|
3588
3744
|
};
|
3589
3745
|
|
3590
3746
|
|
@@ -3593,7 +3749,7 @@ proto.cms.BannerItem.prototype.setImageSmall = function(value) {
|
|
3593
3749
|
* @return {!proto.cms.BannerItem} returns this
|
3594
3750
|
*/
|
3595
3751
|
proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
3596
|
-
return jspb.Message.setField(this,
|
3752
|
+
return jspb.Message.setField(this, 9, undefined);
|
3597
3753
|
};
|
3598
3754
|
|
3599
3755
|
|
@@ -3602,7 +3758,43 @@ proto.cms.BannerItem.prototype.clearImageSmall = function() {
|
|
3602
3758
|
* @return {boolean}
|
3603
3759
|
*/
|
3604
3760
|
proto.cms.BannerItem.prototype.hasImageSmall = function() {
|
3605
|
-
return jspb.Message.getField(this,
|
3761
|
+
return jspb.Message.getField(this, 9) != null;
|
3762
|
+
};
|
3763
|
+
|
3764
|
+
|
3765
|
+
/**
|
3766
|
+
* optional string anchor = 10;
|
3767
|
+
* @return {string}
|
3768
|
+
*/
|
3769
|
+
proto.cms.BannerItem.prototype.getAnchor = function() {
|
3770
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
3771
|
+
};
|
3772
|
+
|
3773
|
+
|
3774
|
+
/**
|
3775
|
+
* @param {string} value
|
3776
|
+
* @return {!proto.cms.BannerItem} returns this
|
3777
|
+
*/
|
3778
|
+
proto.cms.BannerItem.prototype.setAnchor = function(value) {
|
3779
|
+
return jspb.Message.setField(this, 10, value);
|
3780
|
+
};
|
3781
|
+
|
3782
|
+
|
3783
|
+
/**
|
3784
|
+
* Clears the field making it undefined.
|
3785
|
+
* @return {!proto.cms.BannerItem} returns this
|
3786
|
+
*/
|
3787
|
+
proto.cms.BannerItem.prototype.clearAnchor = function() {
|
3788
|
+
return jspb.Message.setField(this, 10, undefined);
|
3789
|
+
};
|
3790
|
+
|
3791
|
+
|
3792
|
+
/**
|
3793
|
+
* Returns whether this field is set.
|
3794
|
+
* @return {boolean}
|
3795
|
+
*/
|
3796
|
+
proto.cms.BannerItem.prototype.hasAnchor = function() {
|
3797
|
+
return jspb.Message.getField(this, 10) != null;
|
3606
3798
|
};
|
3607
3799
|
|
3608
3800
|
|
@@ -3789,7 +3981,8 @@ proto.cms.GetBannerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3789
3981
|
*/
|
3790
3982
|
proto.cms.GetBannerRequest.toObject = function(includeInstance, msg) {
|
3791
3983
|
var f, obj = {
|
3792
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
3984
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3985
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
3793
3986
|
};
|
3794
3987
|
|
3795
3988
|
if (includeInstance) {
|
@@ -3830,6 +4023,10 @@ proto.cms.GetBannerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3830
4023
|
var value = /** @type {number} */ (reader.readInt32());
|
3831
4024
|
msg.setId(value);
|
3832
4025
|
break;
|
4026
|
+
case 4:
|
4027
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
4028
|
+
msg.setAdminSide(value);
|
4029
|
+
break;
|
3833
4030
|
default:
|
3834
4031
|
reader.skipField();
|
3835
4032
|
break;
|
@@ -3866,6 +4063,13 @@ proto.cms.GetBannerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3866
4063
|
f
|
3867
4064
|
);
|
3868
4065
|
}
|
4066
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
4067
|
+
if (f != null) {
|
4068
|
+
writer.writeBool(
|
4069
|
+
4,
|
4070
|
+
f
|
4071
|
+
);
|
4072
|
+
}
|
3869
4073
|
};
|
3870
4074
|
|
3871
4075
|
|
@@ -3887,6 +4091,42 @@ proto.cms.GetBannerRequest.prototype.setId = function(value) {
|
|
3887
4091
|
};
|
3888
4092
|
|
3889
4093
|
|
4094
|
+
/**
|
4095
|
+
* optional bool admin_side = 4;
|
4096
|
+
* @return {boolean}
|
4097
|
+
*/
|
4098
|
+
proto.cms.GetBannerRequest.prototype.getAdminSide = function() {
|
4099
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
4100
|
+
};
|
4101
|
+
|
4102
|
+
|
4103
|
+
/**
|
4104
|
+
* @param {boolean} value
|
4105
|
+
* @return {!proto.cms.GetBannerRequest} returns this
|
4106
|
+
*/
|
4107
|
+
proto.cms.GetBannerRequest.prototype.setAdminSide = function(value) {
|
4108
|
+
return jspb.Message.setField(this, 4, value);
|
4109
|
+
};
|
4110
|
+
|
4111
|
+
|
4112
|
+
/**
|
4113
|
+
* Clears the field making it undefined.
|
4114
|
+
* @return {!proto.cms.GetBannerRequest} returns this
|
4115
|
+
*/
|
4116
|
+
proto.cms.GetBannerRequest.prototype.clearAdminSide = function() {
|
4117
|
+
return jspb.Message.setField(this, 4, undefined);
|
4118
|
+
};
|
4119
|
+
|
4120
|
+
|
4121
|
+
/**
|
4122
|
+
* Returns whether this field is set.
|
4123
|
+
* @return {boolean}
|
4124
|
+
*/
|
4125
|
+
proto.cms.GetBannerRequest.prototype.hasAdminSide = function() {
|
4126
|
+
return jspb.Message.getField(this, 4) != null;
|
4127
|
+
};
|
4128
|
+
|
4129
|
+
|
3890
4130
|
|
3891
4131
|
|
3892
4132
|
|