protobuf-platform 1.2.44 → 1.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/cms.proto +10 -0
- package/cms/cms_pb.js +486 -4
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -207,6 +207,7 @@ message PageItem {
|
|
|
207
207
|
string title = 3;
|
|
208
208
|
optional string content = 4;
|
|
209
209
|
optional int32 is_active = 5;
|
|
210
|
+
repeated TranslationItem translations = 6;
|
|
210
211
|
}
|
|
211
212
|
message PageResponse {
|
|
212
213
|
PageItem data = 1;
|
|
@@ -270,6 +271,7 @@ message PromoItem {
|
|
|
270
271
|
optional string finished_at = 8;
|
|
271
272
|
optional string image_big = 9;
|
|
272
273
|
optional string image_small = 10;
|
|
274
|
+
repeated TranslationItem translations = 11;
|
|
273
275
|
}
|
|
274
276
|
message PromoResponse {
|
|
275
277
|
PromoItem data = 1;
|
|
@@ -336,4 +338,12 @@ message GameWidgetsItemsResponse {
|
|
|
336
338
|
repeated GameWidgetItem items = 1;
|
|
337
339
|
optional int32 total_pages = 2;
|
|
338
340
|
optional int32 total_items = 3;
|
|
341
|
+
}
|
|
342
|
+
//Translations
|
|
343
|
+
message TranslationItem {
|
|
344
|
+
optional string geo = 1;
|
|
345
|
+
optional string locale = 2;
|
|
346
|
+
optional string title = 3;
|
|
347
|
+
optional string content = 4;
|
|
348
|
+
optional bool is_active = 5;
|
|
339
349
|
}
|
package/cms/cms_pb.js
CHANGED
|
@@ -76,6 +76,7 @@ goog.exportSymbol('proto.cms.PromoTranslationRequest', null, global);
|
|
|
76
76
|
goog.exportSymbol('proto.cms.PromoTranslationResponse', null, global);
|
|
77
77
|
goog.exportSymbol('proto.cms.PromosItemsResponse', null, global);
|
|
78
78
|
goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
|
|
79
|
+
goog.exportSymbol('proto.cms.TranslationItem', null, global);
|
|
79
80
|
goog.exportSymbol('proto.cms.UserBannerGroupResponse', null, global);
|
|
80
81
|
goog.exportSymbol('proto.cms.UserBannerItem', null, global);
|
|
81
82
|
/**
|
|
@@ -698,7 +699,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
698
699
|
* @constructor
|
|
699
700
|
*/
|
|
700
701
|
proto.cms.PageItem = function(opt_data) {
|
|
701
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
702
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PageItem.repeatedFields_, null);
|
|
702
703
|
};
|
|
703
704
|
goog.inherits(proto.cms.PageItem, jspb.Message);
|
|
704
705
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -908,7 +909,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
908
909
|
* @constructor
|
|
909
910
|
*/
|
|
910
911
|
proto.cms.PromoItem = function(opt_data) {
|
|
911
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
912
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PromoItem.repeatedFields_, null);
|
|
912
913
|
};
|
|
913
914
|
goog.inherits(proto.cms.PromoItem, jspb.Message);
|
|
914
915
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1212,6 +1213,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1212
1213
|
*/
|
|
1213
1214
|
proto.cms.GameWidgetsItemsResponse.displayName = 'proto.cms.GameWidgetsItemsResponse';
|
|
1214
1215
|
}
|
|
1216
|
+
/**
|
|
1217
|
+
* Generated by JsPbCodeGenerator.
|
|
1218
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1219
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1220
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1221
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1222
|
+
* valid.
|
|
1223
|
+
* @extends {jspb.Message}
|
|
1224
|
+
* @constructor
|
|
1225
|
+
*/
|
|
1226
|
+
proto.cms.TranslationItem = function(opt_data) {
|
|
1227
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1228
|
+
};
|
|
1229
|
+
goog.inherits(proto.cms.TranslationItem, jspb.Message);
|
|
1230
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1231
|
+
/**
|
|
1232
|
+
* @public
|
|
1233
|
+
* @override
|
|
1234
|
+
*/
|
|
1235
|
+
proto.cms.TranslationItem.displayName = 'proto.cms.TranslationItem';
|
|
1236
|
+
}
|
|
1215
1237
|
|
|
1216
1238
|
|
|
1217
1239
|
|
|
@@ -8576,6 +8598,13 @@ proto.cms.PageRequest.prototype.hasIsActive = function() {
|
|
|
8576
8598
|
|
|
8577
8599
|
|
|
8578
8600
|
|
|
8601
|
+
/**
|
|
8602
|
+
* List of repeated fields within this message type.
|
|
8603
|
+
* @private {!Array<number>}
|
|
8604
|
+
* @const
|
|
8605
|
+
*/
|
|
8606
|
+
proto.cms.PageItem.repeatedFields_ = [6];
|
|
8607
|
+
|
|
8579
8608
|
|
|
8580
8609
|
|
|
8581
8610
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -8611,7 +8640,9 @@ proto.cms.PageItem.toObject = function(includeInstance, msg) {
|
|
|
8611
8640
|
slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8612
8641
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8613
8642
|
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8614
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
8643
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
8644
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
8645
|
+
proto.cms.TranslationItem.toObject, includeInstance)
|
|
8615
8646
|
};
|
|
8616
8647
|
|
|
8617
8648
|
if (includeInstance) {
|
|
@@ -8668,6 +8699,11 @@ proto.cms.PageItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
8668
8699
|
var value = /** @type {number} */ (reader.readInt32());
|
|
8669
8700
|
msg.setIsActive(value);
|
|
8670
8701
|
break;
|
|
8702
|
+
case 6:
|
|
8703
|
+
var value = new proto.cms.TranslationItem;
|
|
8704
|
+
reader.readMessage(value,proto.cms.TranslationItem.deserializeBinaryFromReader);
|
|
8705
|
+
msg.addTranslations(value);
|
|
8706
|
+
break;
|
|
8671
8707
|
default:
|
|
8672
8708
|
reader.skipField();
|
|
8673
8709
|
break;
|
|
@@ -8732,6 +8768,14 @@ proto.cms.PageItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
8732
8768
|
f
|
|
8733
8769
|
);
|
|
8734
8770
|
}
|
|
8771
|
+
f = message.getTranslationsList();
|
|
8772
|
+
if (f.length > 0) {
|
|
8773
|
+
writer.writeRepeatedMessage(
|
|
8774
|
+
6,
|
|
8775
|
+
f,
|
|
8776
|
+
proto.cms.TranslationItem.serializeBinaryToWriter
|
|
8777
|
+
);
|
|
8778
|
+
}
|
|
8735
8779
|
};
|
|
8736
8780
|
|
|
8737
8781
|
|
|
@@ -8861,6 +8905,44 @@ proto.cms.PageItem.prototype.hasIsActive = function() {
|
|
|
8861
8905
|
};
|
|
8862
8906
|
|
|
8863
8907
|
|
|
8908
|
+
/**
|
|
8909
|
+
* repeated TranslationItem translations = 6;
|
|
8910
|
+
* @return {!Array<!proto.cms.TranslationItem>}
|
|
8911
|
+
*/
|
|
8912
|
+
proto.cms.PageItem.prototype.getTranslationsList = function() {
|
|
8913
|
+
return /** @type{!Array<!proto.cms.TranslationItem>} */ (
|
|
8914
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.TranslationItem, 6));
|
|
8915
|
+
};
|
|
8916
|
+
|
|
8917
|
+
|
|
8918
|
+
/**
|
|
8919
|
+
* @param {!Array<!proto.cms.TranslationItem>} value
|
|
8920
|
+
* @return {!proto.cms.PageItem} returns this
|
|
8921
|
+
*/
|
|
8922
|
+
proto.cms.PageItem.prototype.setTranslationsList = function(value) {
|
|
8923
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
8924
|
+
};
|
|
8925
|
+
|
|
8926
|
+
|
|
8927
|
+
/**
|
|
8928
|
+
* @param {!proto.cms.TranslationItem=} opt_value
|
|
8929
|
+
* @param {number=} opt_index
|
|
8930
|
+
* @return {!proto.cms.TranslationItem}
|
|
8931
|
+
*/
|
|
8932
|
+
proto.cms.PageItem.prototype.addTranslations = function(opt_value, opt_index) {
|
|
8933
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cms.TranslationItem, opt_index);
|
|
8934
|
+
};
|
|
8935
|
+
|
|
8936
|
+
|
|
8937
|
+
/**
|
|
8938
|
+
* Clears the list making it empty but non-null.
|
|
8939
|
+
* @return {!proto.cms.PageItem} returns this
|
|
8940
|
+
*/
|
|
8941
|
+
proto.cms.PageItem.prototype.clearTranslationsList = function() {
|
|
8942
|
+
return this.setTranslationsList([]);
|
|
8943
|
+
};
|
|
8944
|
+
|
|
8945
|
+
|
|
8864
8946
|
|
|
8865
8947
|
|
|
8866
8948
|
|
|
@@ -11127,6 +11209,13 @@ proto.cms.PromoItemRequest.prototype.hasFinishedAt = function() {
|
|
|
11127
11209
|
|
|
11128
11210
|
|
|
11129
11211
|
|
|
11212
|
+
/**
|
|
11213
|
+
* List of repeated fields within this message type.
|
|
11214
|
+
* @private {!Array<number>}
|
|
11215
|
+
* @const
|
|
11216
|
+
*/
|
|
11217
|
+
proto.cms.PromoItem.repeatedFields_ = [11];
|
|
11218
|
+
|
|
11130
11219
|
|
|
11131
11220
|
|
|
11132
11221
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -11167,7 +11256,9 @@ proto.cms.PromoItem.toObject = function(includeInstance, msg) {
|
|
|
11167
11256
|
startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
11168
11257
|
finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
11169
11258
|
imageBig: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
11170
|
-
imageSmall: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
11259
|
+
imageSmall: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
11260
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
11261
|
+
proto.cms.TranslationItem.toObject, includeInstance)
|
|
11171
11262
|
};
|
|
11172
11263
|
|
|
11173
11264
|
if (includeInstance) {
|
|
@@ -11244,6 +11335,11 @@ proto.cms.PromoItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
11244
11335
|
var value = /** @type {string} */ (reader.readString());
|
|
11245
11336
|
msg.setImageSmall(value);
|
|
11246
11337
|
break;
|
|
11338
|
+
case 11:
|
|
11339
|
+
var value = new proto.cms.TranslationItem;
|
|
11340
|
+
reader.readMessage(value,proto.cms.TranslationItem.deserializeBinaryFromReader);
|
|
11341
|
+
msg.addTranslations(value);
|
|
11342
|
+
break;
|
|
11247
11343
|
default:
|
|
11248
11344
|
reader.skipField();
|
|
11249
11345
|
break;
|
|
@@ -11343,6 +11439,14 @@ proto.cms.PromoItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
11343
11439
|
f
|
|
11344
11440
|
);
|
|
11345
11441
|
}
|
|
11442
|
+
f = message.getTranslationsList();
|
|
11443
|
+
if (f.length > 0) {
|
|
11444
|
+
writer.writeRepeatedMessage(
|
|
11445
|
+
11,
|
|
11446
|
+
f,
|
|
11447
|
+
proto.cms.TranslationItem.serializeBinaryToWriter
|
|
11448
|
+
);
|
|
11449
|
+
}
|
|
11346
11450
|
};
|
|
11347
11451
|
|
|
11348
11452
|
|
|
@@ -11706,6 +11810,44 @@ proto.cms.PromoItem.prototype.hasImageSmall = function() {
|
|
|
11706
11810
|
};
|
|
11707
11811
|
|
|
11708
11812
|
|
|
11813
|
+
/**
|
|
11814
|
+
* repeated TranslationItem translations = 11;
|
|
11815
|
+
* @return {!Array<!proto.cms.TranslationItem>}
|
|
11816
|
+
*/
|
|
11817
|
+
proto.cms.PromoItem.prototype.getTranslationsList = function() {
|
|
11818
|
+
return /** @type{!Array<!proto.cms.TranslationItem>} */ (
|
|
11819
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.TranslationItem, 11));
|
|
11820
|
+
};
|
|
11821
|
+
|
|
11822
|
+
|
|
11823
|
+
/**
|
|
11824
|
+
* @param {!Array<!proto.cms.TranslationItem>} value
|
|
11825
|
+
* @return {!proto.cms.PromoItem} returns this
|
|
11826
|
+
*/
|
|
11827
|
+
proto.cms.PromoItem.prototype.setTranslationsList = function(value) {
|
|
11828
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
|
11829
|
+
};
|
|
11830
|
+
|
|
11831
|
+
|
|
11832
|
+
/**
|
|
11833
|
+
* @param {!proto.cms.TranslationItem=} opt_value
|
|
11834
|
+
* @param {number=} opt_index
|
|
11835
|
+
* @return {!proto.cms.TranslationItem}
|
|
11836
|
+
*/
|
|
11837
|
+
proto.cms.PromoItem.prototype.addTranslations = function(opt_value, opt_index) {
|
|
11838
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.cms.TranslationItem, opt_index);
|
|
11839
|
+
};
|
|
11840
|
+
|
|
11841
|
+
|
|
11842
|
+
/**
|
|
11843
|
+
* Clears the list making it empty but non-null.
|
|
11844
|
+
* @return {!proto.cms.PromoItem} returns this
|
|
11845
|
+
*/
|
|
11846
|
+
proto.cms.PromoItem.prototype.clearTranslationsList = function() {
|
|
11847
|
+
return this.setTranslationsList([]);
|
|
11848
|
+
};
|
|
11849
|
+
|
|
11850
|
+
|
|
11709
11851
|
|
|
11710
11852
|
|
|
11711
11853
|
|
|
@@ -14668,4 +14810,344 @@ proto.cms.GameWidgetsItemsResponse.prototype.hasTotalItems = function() {
|
|
|
14668
14810
|
};
|
|
14669
14811
|
|
|
14670
14812
|
|
|
14813
|
+
|
|
14814
|
+
|
|
14815
|
+
|
|
14816
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14817
|
+
/**
|
|
14818
|
+
* Creates an object representation of this proto.
|
|
14819
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14820
|
+
* Optional fields that are not set will be set to undefined.
|
|
14821
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14822
|
+
* For the list of reserved names please see:
|
|
14823
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14824
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14825
|
+
* JSPB instance for transitional soy proto support:
|
|
14826
|
+
* http://goto/soy-param-migration
|
|
14827
|
+
* @return {!Object}
|
|
14828
|
+
*/
|
|
14829
|
+
proto.cms.TranslationItem.prototype.toObject = function(opt_includeInstance) {
|
|
14830
|
+
return proto.cms.TranslationItem.toObject(opt_includeInstance, this);
|
|
14831
|
+
};
|
|
14832
|
+
|
|
14833
|
+
|
|
14834
|
+
/**
|
|
14835
|
+
* Static version of the {@see toObject} method.
|
|
14836
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14837
|
+
* the JSPB instance for transitional soy proto support:
|
|
14838
|
+
* http://goto/soy-param-migration
|
|
14839
|
+
* @param {!proto.cms.TranslationItem} msg The msg instance to transform.
|
|
14840
|
+
* @return {!Object}
|
|
14841
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14842
|
+
*/
|
|
14843
|
+
proto.cms.TranslationItem.toObject = function(includeInstance, msg) {
|
|
14844
|
+
var f, obj = {
|
|
14845
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
14846
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14847
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14848
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14849
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
14850
|
+
};
|
|
14851
|
+
|
|
14852
|
+
if (includeInstance) {
|
|
14853
|
+
obj.$jspbMessageInstance = msg;
|
|
14854
|
+
}
|
|
14855
|
+
return obj;
|
|
14856
|
+
};
|
|
14857
|
+
}
|
|
14858
|
+
|
|
14859
|
+
|
|
14860
|
+
/**
|
|
14861
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14862
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14863
|
+
* @return {!proto.cms.TranslationItem}
|
|
14864
|
+
*/
|
|
14865
|
+
proto.cms.TranslationItem.deserializeBinary = function(bytes) {
|
|
14866
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14867
|
+
var msg = new proto.cms.TranslationItem;
|
|
14868
|
+
return proto.cms.TranslationItem.deserializeBinaryFromReader(msg, reader);
|
|
14869
|
+
};
|
|
14870
|
+
|
|
14871
|
+
|
|
14872
|
+
/**
|
|
14873
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14874
|
+
* given reader into the given message object.
|
|
14875
|
+
* @param {!proto.cms.TranslationItem} msg The message object to deserialize into.
|
|
14876
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14877
|
+
* @return {!proto.cms.TranslationItem}
|
|
14878
|
+
*/
|
|
14879
|
+
proto.cms.TranslationItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
14880
|
+
while (reader.nextField()) {
|
|
14881
|
+
if (reader.isEndGroup()) {
|
|
14882
|
+
break;
|
|
14883
|
+
}
|
|
14884
|
+
var field = reader.getFieldNumber();
|
|
14885
|
+
switch (field) {
|
|
14886
|
+
case 1:
|
|
14887
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14888
|
+
msg.setGeo(value);
|
|
14889
|
+
break;
|
|
14890
|
+
case 2:
|
|
14891
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14892
|
+
msg.setLocale(value);
|
|
14893
|
+
break;
|
|
14894
|
+
case 3:
|
|
14895
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14896
|
+
msg.setTitle(value);
|
|
14897
|
+
break;
|
|
14898
|
+
case 4:
|
|
14899
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14900
|
+
msg.setContent(value);
|
|
14901
|
+
break;
|
|
14902
|
+
case 5:
|
|
14903
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
14904
|
+
msg.setIsActive(value);
|
|
14905
|
+
break;
|
|
14906
|
+
default:
|
|
14907
|
+
reader.skipField();
|
|
14908
|
+
break;
|
|
14909
|
+
}
|
|
14910
|
+
}
|
|
14911
|
+
return msg;
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14914
|
+
|
|
14915
|
+
/**
|
|
14916
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14917
|
+
* @return {!Uint8Array}
|
|
14918
|
+
*/
|
|
14919
|
+
proto.cms.TranslationItem.prototype.serializeBinary = function() {
|
|
14920
|
+
var writer = new jspb.BinaryWriter();
|
|
14921
|
+
proto.cms.TranslationItem.serializeBinaryToWriter(this, writer);
|
|
14922
|
+
return writer.getResultBuffer();
|
|
14923
|
+
};
|
|
14924
|
+
|
|
14925
|
+
|
|
14926
|
+
/**
|
|
14927
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14928
|
+
* format), writing to the given BinaryWriter.
|
|
14929
|
+
* @param {!proto.cms.TranslationItem} message
|
|
14930
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14931
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14932
|
+
*/
|
|
14933
|
+
proto.cms.TranslationItem.serializeBinaryToWriter = function(message, writer) {
|
|
14934
|
+
var f = undefined;
|
|
14935
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
14936
|
+
if (f != null) {
|
|
14937
|
+
writer.writeString(
|
|
14938
|
+
1,
|
|
14939
|
+
f
|
|
14940
|
+
);
|
|
14941
|
+
}
|
|
14942
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
14943
|
+
if (f != null) {
|
|
14944
|
+
writer.writeString(
|
|
14945
|
+
2,
|
|
14946
|
+
f
|
|
14947
|
+
);
|
|
14948
|
+
}
|
|
14949
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
14950
|
+
if (f != null) {
|
|
14951
|
+
writer.writeString(
|
|
14952
|
+
3,
|
|
14953
|
+
f
|
|
14954
|
+
);
|
|
14955
|
+
}
|
|
14956
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
14957
|
+
if (f != null) {
|
|
14958
|
+
writer.writeString(
|
|
14959
|
+
4,
|
|
14960
|
+
f
|
|
14961
|
+
);
|
|
14962
|
+
}
|
|
14963
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
|
|
14964
|
+
if (f != null) {
|
|
14965
|
+
writer.writeBool(
|
|
14966
|
+
5,
|
|
14967
|
+
f
|
|
14968
|
+
);
|
|
14969
|
+
}
|
|
14970
|
+
};
|
|
14971
|
+
|
|
14972
|
+
|
|
14973
|
+
/**
|
|
14974
|
+
* optional string geo = 1;
|
|
14975
|
+
* @return {string}
|
|
14976
|
+
*/
|
|
14977
|
+
proto.cms.TranslationItem.prototype.getGeo = function() {
|
|
14978
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
14979
|
+
};
|
|
14980
|
+
|
|
14981
|
+
|
|
14982
|
+
/**
|
|
14983
|
+
* @param {string} value
|
|
14984
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
14985
|
+
*/
|
|
14986
|
+
proto.cms.TranslationItem.prototype.setGeo = function(value) {
|
|
14987
|
+
return jspb.Message.setField(this, 1, value);
|
|
14988
|
+
};
|
|
14989
|
+
|
|
14990
|
+
|
|
14991
|
+
/**
|
|
14992
|
+
* Clears the field making it undefined.
|
|
14993
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
14994
|
+
*/
|
|
14995
|
+
proto.cms.TranslationItem.prototype.clearGeo = function() {
|
|
14996
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
14997
|
+
};
|
|
14998
|
+
|
|
14999
|
+
|
|
15000
|
+
/**
|
|
15001
|
+
* Returns whether this field is set.
|
|
15002
|
+
* @return {boolean}
|
|
15003
|
+
*/
|
|
15004
|
+
proto.cms.TranslationItem.prototype.hasGeo = function() {
|
|
15005
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15006
|
+
};
|
|
15007
|
+
|
|
15008
|
+
|
|
15009
|
+
/**
|
|
15010
|
+
* optional string locale = 2;
|
|
15011
|
+
* @return {string}
|
|
15012
|
+
*/
|
|
15013
|
+
proto.cms.TranslationItem.prototype.getLocale = function() {
|
|
15014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15015
|
+
};
|
|
15016
|
+
|
|
15017
|
+
|
|
15018
|
+
/**
|
|
15019
|
+
* @param {string} value
|
|
15020
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15021
|
+
*/
|
|
15022
|
+
proto.cms.TranslationItem.prototype.setLocale = function(value) {
|
|
15023
|
+
return jspb.Message.setField(this, 2, value);
|
|
15024
|
+
};
|
|
15025
|
+
|
|
15026
|
+
|
|
15027
|
+
/**
|
|
15028
|
+
* Clears the field making it undefined.
|
|
15029
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15030
|
+
*/
|
|
15031
|
+
proto.cms.TranslationItem.prototype.clearLocale = function() {
|
|
15032
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
15033
|
+
};
|
|
15034
|
+
|
|
15035
|
+
|
|
15036
|
+
/**
|
|
15037
|
+
* Returns whether this field is set.
|
|
15038
|
+
* @return {boolean}
|
|
15039
|
+
*/
|
|
15040
|
+
proto.cms.TranslationItem.prototype.hasLocale = function() {
|
|
15041
|
+
return jspb.Message.getField(this, 2) != null;
|
|
15042
|
+
};
|
|
15043
|
+
|
|
15044
|
+
|
|
15045
|
+
/**
|
|
15046
|
+
* optional string title = 3;
|
|
15047
|
+
* @return {string}
|
|
15048
|
+
*/
|
|
15049
|
+
proto.cms.TranslationItem.prototype.getTitle = function() {
|
|
15050
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15051
|
+
};
|
|
15052
|
+
|
|
15053
|
+
|
|
15054
|
+
/**
|
|
15055
|
+
* @param {string} value
|
|
15056
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15057
|
+
*/
|
|
15058
|
+
proto.cms.TranslationItem.prototype.setTitle = function(value) {
|
|
15059
|
+
return jspb.Message.setField(this, 3, value);
|
|
15060
|
+
};
|
|
15061
|
+
|
|
15062
|
+
|
|
15063
|
+
/**
|
|
15064
|
+
* Clears the field making it undefined.
|
|
15065
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15066
|
+
*/
|
|
15067
|
+
proto.cms.TranslationItem.prototype.clearTitle = function() {
|
|
15068
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15069
|
+
};
|
|
15070
|
+
|
|
15071
|
+
|
|
15072
|
+
/**
|
|
15073
|
+
* Returns whether this field is set.
|
|
15074
|
+
* @return {boolean}
|
|
15075
|
+
*/
|
|
15076
|
+
proto.cms.TranslationItem.prototype.hasTitle = function() {
|
|
15077
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15078
|
+
};
|
|
15079
|
+
|
|
15080
|
+
|
|
15081
|
+
/**
|
|
15082
|
+
* optional string content = 4;
|
|
15083
|
+
* @return {string}
|
|
15084
|
+
*/
|
|
15085
|
+
proto.cms.TranslationItem.prototype.getContent = function() {
|
|
15086
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15087
|
+
};
|
|
15088
|
+
|
|
15089
|
+
|
|
15090
|
+
/**
|
|
15091
|
+
* @param {string} value
|
|
15092
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15093
|
+
*/
|
|
15094
|
+
proto.cms.TranslationItem.prototype.setContent = function(value) {
|
|
15095
|
+
return jspb.Message.setField(this, 4, value);
|
|
15096
|
+
};
|
|
15097
|
+
|
|
15098
|
+
|
|
15099
|
+
/**
|
|
15100
|
+
* Clears the field making it undefined.
|
|
15101
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15102
|
+
*/
|
|
15103
|
+
proto.cms.TranslationItem.prototype.clearContent = function() {
|
|
15104
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15105
|
+
};
|
|
15106
|
+
|
|
15107
|
+
|
|
15108
|
+
/**
|
|
15109
|
+
* Returns whether this field is set.
|
|
15110
|
+
* @return {boolean}
|
|
15111
|
+
*/
|
|
15112
|
+
proto.cms.TranslationItem.prototype.hasContent = function() {
|
|
15113
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15114
|
+
};
|
|
15115
|
+
|
|
15116
|
+
|
|
15117
|
+
/**
|
|
15118
|
+
* optional bool is_active = 5;
|
|
15119
|
+
* @return {boolean}
|
|
15120
|
+
*/
|
|
15121
|
+
proto.cms.TranslationItem.prototype.getIsActive = function() {
|
|
15122
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
15123
|
+
};
|
|
15124
|
+
|
|
15125
|
+
|
|
15126
|
+
/**
|
|
15127
|
+
* @param {boolean} value
|
|
15128
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15129
|
+
*/
|
|
15130
|
+
proto.cms.TranslationItem.prototype.setIsActive = function(value) {
|
|
15131
|
+
return jspb.Message.setField(this, 5, value);
|
|
15132
|
+
};
|
|
15133
|
+
|
|
15134
|
+
|
|
15135
|
+
/**
|
|
15136
|
+
* Clears the field making it undefined.
|
|
15137
|
+
* @return {!proto.cms.TranslationItem} returns this
|
|
15138
|
+
*/
|
|
15139
|
+
proto.cms.TranslationItem.prototype.clearIsActive = function() {
|
|
15140
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
15141
|
+
};
|
|
15142
|
+
|
|
15143
|
+
|
|
15144
|
+
/**
|
|
15145
|
+
* Returns whether this field is set.
|
|
15146
|
+
* @return {boolean}
|
|
15147
|
+
*/
|
|
15148
|
+
proto.cms.TranslationItem.prototype.hasIsActive = function() {
|
|
15149
|
+
return jspb.Message.getField(this, 5) != null;
|
|
15150
|
+
};
|
|
15151
|
+
|
|
15152
|
+
|
|
14671
15153
|
goog.object.extend(exports, proto.cms);
|