protobuf-platform 1.2.161 → 1.2.164
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 +11 -0
- package/cms/cms_grpc_pb.js +44 -0
- package/cms/cms_pb.js +400 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -20,6 +20,8 @@ service CMS {
|
|
|
20
20
|
rpc getFooterBlocks(GetFooterWidgetRequest) returns (FooterBlocks);
|
|
21
21
|
rpc setGameBarWidget(CommonWidgetRequest) returns (GameBarWidgetItem);
|
|
22
22
|
rpc getGameBarWidget(GetGameBarWidgetRequest) returns (GameBarWidgetItem);
|
|
23
|
+
rpc setProfileMenuWidget(CommonWidgetRequest) returns (ProfileMenuWidgetItem);
|
|
24
|
+
rpc getProfileMenuWidget(GetProfileMenuWidgetRequest) returns (ProfileMenuWidgetItem);
|
|
23
25
|
//Banners
|
|
24
26
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
25
27
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -190,6 +192,15 @@ message GameBarWidgetItem {
|
|
|
190
192
|
string geo = 1;
|
|
191
193
|
string content = 2;
|
|
192
194
|
}
|
|
195
|
+
message GetProfileMenuWidgetRequest {
|
|
196
|
+
optional string geo = 1;
|
|
197
|
+
optional bool admin_side = 2;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message ProfileMenuWidgetItem {
|
|
201
|
+
string geo = 1;
|
|
202
|
+
string content = 2;
|
|
203
|
+
}
|
|
193
204
|
//Banners CRUD
|
|
194
205
|
message BannerRequest {
|
|
195
206
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -631,6 +631,17 @@ function deserialize_cms_GetPageTranslationRequest(buffer_arg) {
|
|
|
631
631
|
return cms_pb.GetPageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
+
function serialize_cms_GetProfileMenuWidgetRequest(arg) {
|
|
635
|
+
if (!(arg instanceof cms_pb.GetProfileMenuWidgetRequest)) {
|
|
636
|
+
throw new Error('Expected argument of type cms.GetProfileMenuWidgetRequest');
|
|
637
|
+
}
|
|
638
|
+
return Buffer.from(arg.serializeBinary());
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
function deserialize_cms_GetProfileMenuWidgetRequest(buffer_arg) {
|
|
642
|
+
return cms_pb.GetProfileMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
643
|
+
}
|
|
644
|
+
|
|
634
645
|
function serialize_cms_GetPromoRequest(arg) {
|
|
635
646
|
if (!(arg instanceof cms_pb.GetPromoRequest)) {
|
|
636
647
|
throw new Error('Expected argument of type cms.GetPromoRequest');
|
|
@@ -807,6 +818,17 @@ function deserialize_cms_PongResponse(buffer_arg) {
|
|
|
807
818
|
return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
819
|
}
|
|
809
820
|
|
|
821
|
+
function serialize_cms_ProfileMenuWidgetItem(arg) {
|
|
822
|
+
if (!(arg instanceof cms_pb.ProfileMenuWidgetItem)) {
|
|
823
|
+
throw new Error('Expected argument of type cms.ProfileMenuWidgetItem');
|
|
824
|
+
}
|
|
825
|
+
return Buffer.from(arg.serializeBinary());
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
function deserialize_cms_ProfileMenuWidgetItem(buffer_arg) {
|
|
829
|
+
return cms_pb.ProfileMenuWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
830
|
+
}
|
|
831
|
+
|
|
810
832
|
function serialize_cms_PromoRequest(arg) {
|
|
811
833
|
if (!(arg instanceof cms_pb.PromoRequest)) {
|
|
812
834
|
throw new Error('Expected argument of type cms.PromoRequest');
|
|
@@ -1074,6 +1096,28 @@ setMainPageWidget: {
|
|
|
1074
1096
|
responseSerialize: serialize_cms_GameBarWidgetItem,
|
|
1075
1097
|
responseDeserialize: deserialize_cms_GameBarWidgetItem,
|
|
1076
1098
|
},
|
|
1099
|
+
setProfileMenuWidget: {
|
|
1100
|
+
path: '/cms.CMS/setProfileMenuWidget',
|
|
1101
|
+
requestStream: false,
|
|
1102
|
+
responseStream: false,
|
|
1103
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
1104
|
+
responseType: cms_pb.ProfileMenuWidgetItem,
|
|
1105
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
1106
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
1107
|
+
responseSerialize: serialize_cms_ProfileMenuWidgetItem,
|
|
1108
|
+
responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
|
|
1109
|
+
},
|
|
1110
|
+
getProfileMenuWidget: {
|
|
1111
|
+
path: '/cms.CMS/getProfileMenuWidget',
|
|
1112
|
+
requestStream: false,
|
|
1113
|
+
responseStream: false,
|
|
1114
|
+
requestType: cms_pb.GetProfileMenuWidgetRequest,
|
|
1115
|
+
responseType: cms_pb.ProfileMenuWidgetItem,
|
|
1116
|
+
requestSerialize: serialize_cms_GetProfileMenuWidgetRequest,
|
|
1117
|
+
requestDeserialize: deserialize_cms_GetProfileMenuWidgetRequest,
|
|
1118
|
+
responseSerialize: serialize_cms_ProfileMenuWidgetItem,
|
|
1119
|
+
responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
|
|
1120
|
+
},
|
|
1077
1121
|
// Banners
|
|
1078
1122
|
createSingleBanner: {
|
|
1079
1123
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -107,6 +107,7 @@ goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
|
|
|
107
107
|
goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
|
|
108
108
|
goog.exportSymbol('proto.cms.GetPageRequest', null, global);
|
|
109
109
|
goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
|
|
110
|
+
goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
|
|
110
111
|
goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
|
|
111
112
|
goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
|
|
112
113
|
goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
|
|
@@ -125,6 +126,7 @@ goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
|
|
|
125
126
|
goog.exportSymbol('proto.cms.PaginationRequest', null, global);
|
|
126
127
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
|
127
128
|
goog.exportSymbol('proto.cms.PongResponse', null, global);
|
|
129
|
+
goog.exportSymbol('proto.cms.ProfileMenuWidgetItem', null, global);
|
|
128
130
|
goog.exportSymbol('proto.cms.PromoItem', null, global);
|
|
129
131
|
goog.exportSymbol('proto.cms.PromoItemRequest', null, global);
|
|
130
132
|
goog.exportSymbol('proto.cms.PromoRequest', null, global);
|
|
@@ -600,6 +602,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
600
602
|
*/
|
|
601
603
|
proto.cms.GameBarWidgetItem.displayName = 'proto.cms.GameBarWidgetItem';
|
|
602
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Generated by JsPbCodeGenerator.
|
|
607
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
608
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
609
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
610
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
611
|
+
* valid.
|
|
612
|
+
* @extends {jspb.Message}
|
|
613
|
+
* @constructor
|
|
614
|
+
*/
|
|
615
|
+
proto.cms.GetProfileMenuWidgetRequest = function(opt_data) {
|
|
616
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
617
|
+
};
|
|
618
|
+
goog.inherits(proto.cms.GetProfileMenuWidgetRequest, jspb.Message);
|
|
619
|
+
if (goog.DEBUG && !COMPILED) {
|
|
620
|
+
/**
|
|
621
|
+
* @public
|
|
622
|
+
* @override
|
|
623
|
+
*/
|
|
624
|
+
proto.cms.GetProfileMenuWidgetRequest.displayName = 'proto.cms.GetProfileMenuWidgetRequest';
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Generated by JsPbCodeGenerator.
|
|
628
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
629
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
630
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
631
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
632
|
+
* valid.
|
|
633
|
+
* @extends {jspb.Message}
|
|
634
|
+
* @constructor
|
|
635
|
+
*/
|
|
636
|
+
proto.cms.ProfileMenuWidgetItem = function(opt_data) {
|
|
637
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
638
|
+
};
|
|
639
|
+
goog.inherits(proto.cms.ProfileMenuWidgetItem, jspb.Message);
|
|
640
|
+
if (goog.DEBUG && !COMPILED) {
|
|
641
|
+
/**
|
|
642
|
+
* @public
|
|
643
|
+
* @override
|
|
644
|
+
*/
|
|
645
|
+
proto.cms.ProfileMenuWidgetItem.displayName = 'proto.cms.ProfileMenuWidgetItem';
|
|
646
|
+
}
|
|
603
647
|
/**
|
|
604
648
|
* Generated by JsPbCodeGenerator.
|
|
605
649
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6974,6 +7018,362 @@ proto.cms.GameBarWidgetItem.prototype.setContent = function(value) {
|
|
|
6974
7018
|
|
|
6975
7019
|
|
|
6976
7020
|
|
|
7021
|
+
|
|
7022
|
+
|
|
7023
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7024
|
+
/**
|
|
7025
|
+
* Creates an object representation of this proto.
|
|
7026
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7027
|
+
* Optional fields that are not set will be set to undefined.
|
|
7028
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7029
|
+
* For the list of reserved names please see:
|
|
7030
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7031
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7032
|
+
* JSPB instance for transitional soy proto support:
|
|
7033
|
+
* http://goto/soy-param-migration
|
|
7034
|
+
* @return {!Object}
|
|
7035
|
+
*/
|
|
7036
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7037
|
+
return proto.cms.GetProfileMenuWidgetRequest.toObject(opt_includeInstance, this);
|
|
7038
|
+
};
|
|
7039
|
+
|
|
7040
|
+
|
|
7041
|
+
/**
|
|
7042
|
+
* Static version of the {@see toObject} method.
|
|
7043
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7044
|
+
* the JSPB instance for transitional soy proto support:
|
|
7045
|
+
* http://goto/soy-param-migration
|
|
7046
|
+
* @param {!proto.cms.GetProfileMenuWidgetRequest} msg The msg instance to transform.
|
|
7047
|
+
* @return {!Object}
|
|
7048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7049
|
+
*/
|
|
7050
|
+
proto.cms.GetProfileMenuWidgetRequest.toObject = function(includeInstance, msg) {
|
|
7051
|
+
var f, obj = {
|
|
7052
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7053
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
7054
|
+
};
|
|
7055
|
+
|
|
7056
|
+
if (includeInstance) {
|
|
7057
|
+
obj.$jspbMessageInstance = msg;
|
|
7058
|
+
}
|
|
7059
|
+
return obj;
|
|
7060
|
+
};
|
|
7061
|
+
}
|
|
7062
|
+
|
|
7063
|
+
|
|
7064
|
+
/**
|
|
7065
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7066
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7067
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest}
|
|
7068
|
+
*/
|
|
7069
|
+
proto.cms.GetProfileMenuWidgetRequest.deserializeBinary = function(bytes) {
|
|
7070
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7071
|
+
var msg = new proto.cms.GetProfileMenuWidgetRequest;
|
|
7072
|
+
return proto.cms.GetProfileMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
7073
|
+
};
|
|
7074
|
+
|
|
7075
|
+
|
|
7076
|
+
/**
|
|
7077
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7078
|
+
* given reader into the given message object.
|
|
7079
|
+
* @param {!proto.cms.GetProfileMenuWidgetRequest} msg The message object to deserialize into.
|
|
7080
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7081
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest}
|
|
7082
|
+
*/
|
|
7083
|
+
proto.cms.GetProfileMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7084
|
+
while (reader.nextField()) {
|
|
7085
|
+
if (reader.isEndGroup()) {
|
|
7086
|
+
break;
|
|
7087
|
+
}
|
|
7088
|
+
var field = reader.getFieldNumber();
|
|
7089
|
+
switch (field) {
|
|
7090
|
+
case 1:
|
|
7091
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7092
|
+
msg.setGeo(value);
|
|
7093
|
+
break;
|
|
7094
|
+
case 2:
|
|
7095
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7096
|
+
msg.setAdminSide(value);
|
|
7097
|
+
break;
|
|
7098
|
+
default:
|
|
7099
|
+
reader.skipField();
|
|
7100
|
+
break;
|
|
7101
|
+
}
|
|
7102
|
+
}
|
|
7103
|
+
return msg;
|
|
7104
|
+
};
|
|
7105
|
+
|
|
7106
|
+
|
|
7107
|
+
/**
|
|
7108
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7109
|
+
* @return {!Uint8Array}
|
|
7110
|
+
*/
|
|
7111
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.serializeBinary = function() {
|
|
7112
|
+
var writer = new jspb.BinaryWriter();
|
|
7113
|
+
proto.cms.GetProfileMenuWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
7114
|
+
return writer.getResultBuffer();
|
|
7115
|
+
};
|
|
7116
|
+
|
|
7117
|
+
|
|
7118
|
+
/**
|
|
7119
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7120
|
+
* format), writing to the given BinaryWriter.
|
|
7121
|
+
* @param {!proto.cms.GetProfileMenuWidgetRequest} message
|
|
7122
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7123
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7124
|
+
*/
|
|
7125
|
+
proto.cms.GetProfileMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7126
|
+
var f = undefined;
|
|
7127
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7128
|
+
if (f != null) {
|
|
7129
|
+
writer.writeString(
|
|
7130
|
+
1,
|
|
7131
|
+
f
|
|
7132
|
+
);
|
|
7133
|
+
}
|
|
7134
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
7135
|
+
if (f != null) {
|
|
7136
|
+
writer.writeBool(
|
|
7137
|
+
2,
|
|
7138
|
+
f
|
|
7139
|
+
);
|
|
7140
|
+
}
|
|
7141
|
+
};
|
|
7142
|
+
|
|
7143
|
+
|
|
7144
|
+
/**
|
|
7145
|
+
* optional string geo = 1;
|
|
7146
|
+
* @return {string}
|
|
7147
|
+
*/
|
|
7148
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.getGeo = function() {
|
|
7149
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7150
|
+
};
|
|
7151
|
+
|
|
7152
|
+
|
|
7153
|
+
/**
|
|
7154
|
+
* @param {string} value
|
|
7155
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
|
|
7156
|
+
*/
|
|
7157
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.setGeo = function(value) {
|
|
7158
|
+
return jspb.Message.setField(this, 1, value);
|
|
7159
|
+
};
|
|
7160
|
+
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* Clears the field making it undefined.
|
|
7164
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
|
|
7165
|
+
*/
|
|
7166
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.clearGeo = function() {
|
|
7167
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* Returns whether this field is set.
|
|
7173
|
+
* @return {boolean}
|
|
7174
|
+
*/
|
|
7175
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.hasGeo = function() {
|
|
7176
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7177
|
+
};
|
|
7178
|
+
|
|
7179
|
+
|
|
7180
|
+
/**
|
|
7181
|
+
* optional bool admin_side = 2;
|
|
7182
|
+
* @return {boolean}
|
|
7183
|
+
*/
|
|
7184
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.getAdminSide = function() {
|
|
7185
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
7186
|
+
};
|
|
7187
|
+
|
|
7188
|
+
|
|
7189
|
+
/**
|
|
7190
|
+
* @param {boolean} value
|
|
7191
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
|
|
7192
|
+
*/
|
|
7193
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.setAdminSide = function(value) {
|
|
7194
|
+
return jspb.Message.setField(this, 2, value);
|
|
7195
|
+
};
|
|
7196
|
+
|
|
7197
|
+
|
|
7198
|
+
/**
|
|
7199
|
+
* Clears the field making it undefined.
|
|
7200
|
+
* @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
|
|
7201
|
+
*/
|
|
7202
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.clearAdminSide = function() {
|
|
7203
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7204
|
+
};
|
|
7205
|
+
|
|
7206
|
+
|
|
7207
|
+
/**
|
|
7208
|
+
* Returns whether this field is set.
|
|
7209
|
+
* @return {boolean}
|
|
7210
|
+
*/
|
|
7211
|
+
proto.cms.GetProfileMenuWidgetRequest.prototype.hasAdminSide = function() {
|
|
7212
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7213
|
+
};
|
|
7214
|
+
|
|
7215
|
+
|
|
7216
|
+
|
|
7217
|
+
|
|
7218
|
+
|
|
7219
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7220
|
+
/**
|
|
7221
|
+
* Creates an object representation of this proto.
|
|
7222
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7223
|
+
* Optional fields that are not set will be set to undefined.
|
|
7224
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7225
|
+
* For the list of reserved names please see:
|
|
7226
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7227
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7228
|
+
* JSPB instance for transitional soy proto support:
|
|
7229
|
+
* http://goto/soy-param-migration
|
|
7230
|
+
* @return {!Object}
|
|
7231
|
+
*/
|
|
7232
|
+
proto.cms.ProfileMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
7233
|
+
return proto.cms.ProfileMenuWidgetItem.toObject(opt_includeInstance, this);
|
|
7234
|
+
};
|
|
7235
|
+
|
|
7236
|
+
|
|
7237
|
+
/**
|
|
7238
|
+
* Static version of the {@see toObject} method.
|
|
7239
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7240
|
+
* the JSPB instance for transitional soy proto support:
|
|
7241
|
+
* http://goto/soy-param-migration
|
|
7242
|
+
* @param {!proto.cms.ProfileMenuWidgetItem} msg The msg instance to transform.
|
|
7243
|
+
* @return {!Object}
|
|
7244
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7245
|
+
*/
|
|
7246
|
+
proto.cms.ProfileMenuWidgetItem.toObject = function(includeInstance, msg) {
|
|
7247
|
+
var f, obj = {
|
|
7248
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7249
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7250
|
+
};
|
|
7251
|
+
|
|
7252
|
+
if (includeInstance) {
|
|
7253
|
+
obj.$jspbMessageInstance = msg;
|
|
7254
|
+
}
|
|
7255
|
+
return obj;
|
|
7256
|
+
};
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
|
|
7260
|
+
/**
|
|
7261
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7262
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7263
|
+
* @return {!proto.cms.ProfileMenuWidgetItem}
|
|
7264
|
+
*/
|
|
7265
|
+
proto.cms.ProfileMenuWidgetItem.deserializeBinary = function(bytes) {
|
|
7266
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7267
|
+
var msg = new proto.cms.ProfileMenuWidgetItem;
|
|
7268
|
+
return proto.cms.ProfileMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
7269
|
+
};
|
|
7270
|
+
|
|
7271
|
+
|
|
7272
|
+
/**
|
|
7273
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7274
|
+
* given reader into the given message object.
|
|
7275
|
+
* @param {!proto.cms.ProfileMenuWidgetItem} msg The message object to deserialize into.
|
|
7276
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7277
|
+
* @return {!proto.cms.ProfileMenuWidgetItem}
|
|
7278
|
+
*/
|
|
7279
|
+
proto.cms.ProfileMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
7280
|
+
while (reader.nextField()) {
|
|
7281
|
+
if (reader.isEndGroup()) {
|
|
7282
|
+
break;
|
|
7283
|
+
}
|
|
7284
|
+
var field = reader.getFieldNumber();
|
|
7285
|
+
switch (field) {
|
|
7286
|
+
case 1:
|
|
7287
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7288
|
+
msg.setGeo(value);
|
|
7289
|
+
break;
|
|
7290
|
+
case 2:
|
|
7291
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7292
|
+
msg.setContent(value);
|
|
7293
|
+
break;
|
|
7294
|
+
default:
|
|
7295
|
+
reader.skipField();
|
|
7296
|
+
break;
|
|
7297
|
+
}
|
|
7298
|
+
}
|
|
7299
|
+
return msg;
|
|
7300
|
+
};
|
|
7301
|
+
|
|
7302
|
+
|
|
7303
|
+
/**
|
|
7304
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7305
|
+
* @return {!Uint8Array}
|
|
7306
|
+
*/
|
|
7307
|
+
proto.cms.ProfileMenuWidgetItem.prototype.serializeBinary = function() {
|
|
7308
|
+
var writer = new jspb.BinaryWriter();
|
|
7309
|
+
proto.cms.ProfileMenuWidgetItem.serializeBinaryToWriter(this, writer);
|
|
7310
|
+
return writer.getResultBuffer();
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7316
|
+
* format), writing to the given BinaryWriter.
|
|
7317
|
+
* @param {!proto.cms.ProfileMenuWidgetItem} message
|
|
7318
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7319
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7320
|
+
*/
|
|
7321
|
+
proto.cms.ProfileMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
7322
|
+
var f = undefined;
|
|
7323
|
+
f = message.getGeo();
|
|
7324
|
+
if (f.length > 0) {
|
|
7325
|
+
writer.writeString(
|
|
7326
|
+
1,
|
|
7327
|
+
f
|
|
7328
|
+
);
|
|
7329
|
+
}
|
|
7330
|
+
f = message.getContent();
|
|
7331
|
+
if (f.length > 0) {
|
|
7332
|
+
writer.writeString(
|
|
7333
|
+
2,
|
|
7334
|
+
f
|
|
7335
|
+
);
|
|
7336
|
+
}
|
|
7337
|
+
};
|
|
7338
|
+
|
|
7339
|
+
|
|
7340
|
+
/**
|
|
7341
|
+
* optional string geo = 1;
|
|
7342
|
+
* @return {string}
|
|
7343
|
+
*/
|
|
7344
|
+
proto.cms.ProfileMenuWidgetItem.prototype.getGeo = function() {
|
|
7345
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7346
|
+
};
|
|
7347
|
+
|
|
7348
|
+
|
|
7349
|
+
/**
|
|
7350
|
+
* @param {string} value
|
|
7351
|
+
* @return {!proto.cms.ProfileMenuWidgetItem} returns this
|
|
7352
|
+
*/
|
|
7353
|
+
proto.cms.ProfileMenuWidgetItem.prototype.setGeo = function(value) {
|
|
7354
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7355
|
+
};
|
|
7356
|
+
|
|
7357
|
+
|
|
7358
|
+
/**
|
|
7359
|
+
* optional string content = 2;
|
|
7360
|
+
* @return {string}
|
|
7361
|
+
*/
|
|
7362
|
+
proto.cms.ProfileMenuWidgetItem.prototype.getContent = function() {
|
|
7363
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7364
|
+
};
|
|
7365
|
+
|
|
7366
|
+
|
|
7367
|
+
/**
|
|
7368
|
+
* @param {string} value
|
|
7369
|
+
* @return {!proto.cms.ProfileMenuWidgetItem} returns this
|
|
7370
|
+
*/
|
|
7371
|
+
proto.cms.ProfileMenuWidgetItem.prototype.setContent = function(value) {
|
|
7372
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7373
|
+
};
|
|
7374
|
+
|
|
7375
|
+
|
|
7376
|
+
|
|
6977
7377
|
/**
|
|
6978
7378
|
* Oneof group definitions for this message. Each group defines the field
|
|
6979
7379
|
* numbers belonging to that group. When of these fields' value is set, all
|