protobuf-platform 1.2.278 → 1.2.280
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 +12 -0
- package/cms/cms_grpc_pb.js +44 -0
- package/cms/cms_pb.js +497 -1
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -24,6 +24,8 @@ service CMS {
|
|
|
24
24
|
rpc getProfileMenuWidget(GetProfileMenuWidgetRequest) returns (ProfileMenuWidgetItem);
|
|
25
25
|
rpc setMobileMenuWidget(CommonWidgetRequest) returns (MobileMenuWidgetItem);
|
|
26
26
|
rpc getMobileMenuWidget(GetMobileMenuWidgetRequest) returns (MobileMenuWidgetItem);
|
|
27
|
+
rpc setPreDepositFormWidget(CommonWidgetRequest) returns (PreDepositFormWidgetItem);
|
|
28
|
+
rpc getPreDepositFormWidget(GetPreDepositFormWidgetRequest) returns (PreDepositFormWidgetItem);
|
|
27
29
|
//Banners
|
|
28
30
|
rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
|
|
29
31
|
rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
|
|
@@ -136,6 +138,7 @@ message CommonWidgetRequest {
|
|
|
136
138
|
string geo = 1;
|
|
137
139
|
string content = 2;
|
|
138
140
|
string type = 3;
|
|
141
|
+
optional bool is_enabled = 4;
|
|
139
142
|
}
|
|
140
143
|
message GetMainPageWidgetRequest {
|
|
141
144
|
optional string geo = 1;
|
|
@@ -167,6 +170,15 @@ message SignUpFormWidgetItem {
|
|
|
167
170
|
string geo = 1;
|
|
168
171
|
string content = 2;
|
|
169
172
|
}
|
|
173
|
+
message GetPreDepositFormWidgetRequest {
|
|
174
|
+
optional string geo = 1;
|
|
175
|
+
optional bool admin_side = 2;
|
|
176
|
+
}
|
|
177
|
+
message PreDepositFormWidgetItem {
|
|
178
|
+
string geo = 1;
|
|
179
|
+
string content = 2;
|
|
180
|
+
optional bool is_enabled = 3;
|
|
181
|
+
}
|
|
170
182
|
message GetHeaderWidgetRequest {
|
|
171
183
|
optional string geo = 1;
|
|
172
184
|
optional bool admin_side = 2;
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -664,6 +664,17 @@ function deserialize_cms_GetPageTranslationRequest(buffer_arg) {
|
|
|
664
664
|
return cms_pb.GetPageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
+
function serialize_cms_GetPreDepositFormWidgetRequest(arg) {
|
|
668
|
+
if (!(arg instanceof cms_pb.GetPreDepositFormWidgetRequest)) {
|
|
669
|
+
throw new Error('Expected argument of type cms.GetPreDepositFormWidgetRequest');
|
|
670
|
+
}
|
|
671
|
+
return Buffer.from(arg.serializeBinary());
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
function deserialize_cms_GetPreDepositFormWidgetRequest(buffer_arg) {
|
|
675
|
+
return cms_pb.GetPreDepositFormWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
676
|
+
}
|
|
677
|
+
|
|
667
678
|
function serialize_cms_GetProfileMenuWidgetRequest(arg) {
|
|
668
679
|
if (!(arg instanceof cms_pb.GetProfileMenuWidgetRequest)) {
|
|
669
680
|
throw new Error('Expected argument of type cms.GetProfileMenuWidgetRequest');
|
|
@@ -917,6 +928,17 @@ function deserialize_cms_PongResponse(buffer_arg) {
|
|
|
917
928
|
return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
918
929
|
}
|
|
919
930
|
|
|
931
|
+
function serialize_cms_PreDepositFormWidgetItem(arg) {
|
|
932
|
+
if (!(arg instanceof cms_pb.PreDepositFormWidgetItem)) {
|
|
933
|
+
throw new Error('Expected argument of type cms.PreDepositFormWidgetItem');
|
|
934
|
+
}
|
|
935
|
+
return Buffer.from(arg.serializeBinary());
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
function deserialize_cms_PreDepositFormWidgetItem(buffer_arg) {
|
|
939
|
+
return cms_pb.PreDepositFormWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
940
|
+
}
|
|
941
|
+
|
|
920
942
|
function serialize_cms_ProfileMenuWidgetItem(arg) {
|
|
921
943
|
if (!(arg instanceof cms_pb.ProfileMenuWidgetItem)) {
|
|
922
944
|
throw new Error('Expected argument of type cms.ProfileMenuWidgetItem');
|
|
@@ -1250,6 +1272,28 @@ setMainPageWidget: {
|
|
|
1250
1272
|
responseSerialize: serialize_cms_MobileMenuWidgetItem,
|
|
1251
1273
|
responseDeserialize: deserialize_cms_MobileMenuWidgetItem,
|
|
1252
1274
|
},
|
|
1275
|
+
setPreDepositFormWidget: {
|
|
1276
|
+
path: '/cms.CMS/setPreDepositFormWidget',
|
|
1277
|
+
requestStream: false,
|
|
1278
|
+
responseStream: false,
|
|
1279
|
+
requestType: cms_pb.CommonWidgetRequest,
|
|
1280
|
+
responseType: cms_pb.PreDepositFormWidgetItem,
|
|
1281
|
+
requestSerialize: serialize_cms_CommonWidgetRequest,
|
|
1282
|
+
requestDeserialize: deserialize_cms_CommonWidgetRequest,
|
|
1283
|
+
responseSerialize: serialize_cms_PreDepositFormWidgetItem,
|
|
1284
|
+
responseDeserialize: deserialize_cms_PreDepositFormWidgetItem,
|
|
1285
|
+
},
|
|
1286
|
+
getPreDepositFormWidget: {
|
|
1287
|
+
path: '/cms.CMS/getPreDepositFormWidget',
|
|
1288
|
+
requestStream: false,
|
|
1289
|
+
responseStream: false,
|
|
1290
|
+
requestType: cms_pb.GetPreDepositFormWidgetRequest,
|
|
1291
|
+
responseType: cms_pb.PreDepositFormWidgetItem,
|
|
1292
|
+
requestSerialize: serialize_cms_GetPreDepositFormWidgetRequest,
|
|
1293
|
+
requestDeserialize: deserialize_cms_GetPreDepositFormWidgetRequest,
|
|
1294
|
+
responseSerialize: serialize_cms_PreDepositFormWidgetItem,
|
|
1295
|
+
responseDeserialize: deserialize_cms_PreDepositFormWidgetItem,
|
|
1296
|
+
},
|
|
1253
1297
|
// Banners
|
|
1254
1298
|
createSingleBanner: {
|
|
1255
1299
|
path: '/cms.CMS/createSingleBanner',
|
package/cms/cms_pb.js
CHANGED
|
@@ -111,6 +111,7 @@ goog.exportSymbol('proto.cms.GetPageRequest', null, global);
|
|
|
111
111
|
goog.exportSymbol('proto.cms.GetPageSeoAttributesRequest', null, global);
|
|
112
112
|
goog.exportSymbol('proto.cms.GetPageSeoRequest', null, global);
|
|
113
113
|
goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
|
|
114
|
+
goog.exportSymbol('proto.cms.GetPreDepositFormWidgetRequest', null, global);
|
|
114
115
|
goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
|
|
115
116
|
goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
|
|
116
117
|
goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
|
|
@@ -138,6 +139,7 @@ goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
|
|
|
138
139
|
goog.exportSymbol('proto.cms.PaginationRequest', null, global);
|
|
139
140
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
|
140
141
|
goog.exportSymbol('proto.cms.PongResponse', null, global);
|
|
142
|
+
goog.exportSymbol('proto.cms.PreDepositFormWidgetItem', null, global);
|
|
141
143
|
goog.exportSymbol('proto.cms.ProfileMenuWidgetItem', null, global);
|
|
142
144
|
goog.exportSymbol('proto.cms.PromoItem', null, global);
|
|
143
145
|
goog.exportSymbol('proto.cms.PromoItemRequest', null, global);
|
|
@@ -448,6 +450,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
448
450
|
*/
|
|
449
451
|
proto.cms.SignUpFormWidgetItem.displayName = 'proto.cms.SignUpFormWidgetItem';
|
|
450
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* Generated by JsPbCodeGenerator.
|
|
455
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
456
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
457
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
458
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
459
|
+
* valid.
|
|
460
|
+
* @extends {jspb.Message}
|
|
461
|
+
* @constructor
|
|
462
|
+
*/
|
|
463
|
+
proto.cms.GetPreDepositFormWidgetRequest = function(opt_data) {
|
|
464
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
465
|
+
};
|
|
466
|
+
goog.inherits(proto.cms.GetPreDepositFormWidgetRequest, jspb.Message);
|
|
467
|
+
if (goog.DEBUG && !COMPILED) {
|
|
468
|
+
/**
|
|
469
|
+
* @public
|
|
470
|
+
* @override
|
|
471
|
+
*/
|
|
472
|
+
proto.cms.GetPreDepositFormWidgetRequest.displayName = 'proto.cms.GetPreDepositFormWidgetRequest';
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Generated by JsPbCodeGenerator.
|
|
476
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
477
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
478
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
479
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
480
|
+
* valid.
|
|
481
|
+
* @extends {jspb.Message}
|
|
482
|
+
* @constructor
|
|
483
|
+
*/
|
|
484
|
+
proto.cms.PreDepositFormWidgetItem = function(opt_data) {
|
|
485
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
486
|
+
};
|
|
487
|
+
goog.inherits(proto.cms.PreDepositFormWidgetItem, jspb.Message);
|
|
488
|
+
if (goog.DEBUG && !COMPILED) {
|
|
489
|
+
/**
|
|
490
|
+
* @public
|
|
491
|
+
* @override
|
|
492
|
+
*/
|
|
493
|
+
proto.cms.PreDepositFormWidgetItem.displayName = 'proto.cms.PreDepositFormWidgetItem';
|
|
494
|
+
}
|
|
451
495
|
/**
|
|
452
496
|
* Generated by JsPbCodeGenerator.
|
|
453
497
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4284,7 +4328,8 @@ proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
|
|
|
4284
4328
|
var f, obj = {
|
|
4285
4329
|
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4286
4330
|
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4287
|
-
type: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4331
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4332
|
+
isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
4288
4333
|
};
|
|
4289
4334
|
|
|
4290
4335
|
if (includeInstance) {
|
|
@@ -4333,6 +4378,10 @@ proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader
|
|
|
4333
4378
|
var value = /** @type {string} */ (reader.readString());
|
|
4334
4379
|
msg.setType(value);
|
|
4335
4380
|
break;
|
|
4381
|
+
case 4:
|
|
4382
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4383
|
+
msg.setIsEnabled(value);
|
|
4384
|
+
break;
|
|
4336
4385
|
default:
|
|
4337
4386
|
reader.skipField();
|
|
4338
4387
|
break;
|
|
@@ -4383,6 +4432,13 @@ proto.cms.CommonWidgetRequest.serializeBinaryToWriter = function(message, writer
|
|
|
4383
4432
|
f
|
|
4384
4433
|
);
|
|
4385
4434
|
}
|
|
4435
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
|
4436
|
+
if (f != null) {
|
|
4437
|
+
writer.writeBool(
|
|
4438
|
+
4,
|
|
4439
|
+
f
|
|
4440
|
+
);
|
|
4441
|
+
}
|
|
4386
4442
|
};
|
|
4387
4443
|
|
|
4388
4444
|
|
|
@@ -4440,6 +4496,42 @@ proto.cms.CommonWidgetRequest.prototype.setType = function(value) {
|
|
|
4440
4496
|
};
|
|
4441
4497
|
|
|
4442
4498
|
|
|
4499
|
+
/**
|
|
4500
|
+
* optional bool is_enabled = 4;
|
|
4501
|
+
* @return {boolean}
|
|
4502
|
+
*/
|
|
4503
|
+
proto.cms.CommonWidgetRequest.prototype.getIsEnabled = function() {
|
|
4504
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
/**
|
|
4509
|
+
* @param {boolean} value
|
|
4510
|
+
* @return {!proto.cms.CommonWidgetRequest} returns this
|
|
4511
|
+
*/
|
|
4512
|
+
proto.cms.CommonWidgetRequest.prototype.setIsEnabled = function(value) {
|
|
4513
|
+
return jspb.Message.setField(this, 4, value);
|
|
4514
|
+
};
|
|
4515
|
+
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* Clears the field making it undefined.
|
|
4519
|
+
* @return {!proto.cms.CommonWidgetRequest} returns this
|
|
4520
|
+
*/
|
|
4521
|
+
proto.cms.CommonWidgetRequest.prototype.clearIsEnabled = function() {
|
|
4522
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* Returns whether this field is set.
|
|
4528
|
+
* @return {boolean}
|
|
4529
|
+
*/
|
|
4530
|
+
proto.cms.CommonWidgetRequest.prototype.hasIsEnabled = function() {
|
|
4531
|
+
return jspb.Message.getField(this, 4) != null;
|
|
4532
|
+
};
|
|
4533
|
+
|
|
4534
|
+
|
|
4443
4535
|
|
|
4444
4536
|
|
|
4445
4537
|
|
|
@@ -5815,6 +5907,410 @@ proto.cms.SignUpFormWidgetItem.prototype.setContent = function(value) {
|
|
|
5815
5907
|
|
|
5816
5908
|
|
|
5817
5909
|
|
|
5910
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5911
|
+
/**
|
|
5912
|
+
* Creates an object representation of this proto.
|
|
5913
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5914
|
+
* Optional fields that are not set will be set to undefined.
|
|
5915
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5916
|
+
* For the list of reserved names please see:
|
|
5917
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5918
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5919
|
+
* JSPB instance for transitional soy proto support:
|
|
5920
|
+
* http://goto/soy-param-migration
|
|
5921
|
+
* @return {!Object}
|
|
5922
|
+
*/
|
|
5923
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5924
|
+
return proto.cms.GetPreDepositFormWidgetRequest.toObject(opt_includeInstance, this);
|
|
5925
|
+
};
|
|
5926
|
+
|
|
5927
|
+
|
|
5928
|
+
/**
|
|
5929
|
+
* Static version of the {@see toObject} method.
|
|
5930
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5931
|
+
* the JSPB instance for transitional soy proto support:
|
|
5932
|
+
* http://goto/soy-param-migration
|
|
5933
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} msg The msg instance to transform.
|
|
5934
|
+
* @return {!Object}
|
|
5935
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5936
|
+
*/
|
|
5937
|
+
proto.cms.GetPreDepositFormWidgetRequest.toObject = function(includeInstance, msg) {
|
|
5938
|
+
var f, obj = {
|
|
5939
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5940
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5941
|
+
};
|
|
5942
|
+
|
|
5943
|
+
if (includeInstance) {
|
|
5944
|
+
obj.$jspbMessageInstance = msg;
|
|
5945
|
+
}
|
|
5946
|
+
return obj;
|
|
5947
|
+
};
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5950
|
+
|
|
5951
|
+
/**
|
|
5952
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5953
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5954
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest}
|
|
5955
|
+
*/
|
|
5956
|
+
proto.cms.GetPreDepositFormWidgetRequest.deserializeBinary = function(bytes) {
|
|
5957
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5958
|
+
var msg = new proto.cms.GetPreDepositFormWidgetRequest;
|
|
5959
|
+
return proto.cms.GetPreDepositFormWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
5960
|
+
};
|
|
5961
|
+
|
|
5962
|
+
|
|
5963
|
+
/**
|
|
5964
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5965
|
+
* given reader into the given message object.
|
|
5966
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} msg The message object to deserialize into.
|
|
5967
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5968
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest}
|
|
5969
|
+
*/
|
|
5970
|
+
proto.cms.GetPreDepositFormWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5971
|
+
while (reader.nextField()) {
|
|
5972
|
+
if (reader.isEndGroup()) {
|
|
5973
|
+
break;
|
|
5974
|
+
}
|
|
5975
|
+
var field = reader.getFieldNumber();
|
|
5976
|
+
switch (field) {
|
|
5977
|
+
case 1:
|
|
5978
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5979
|
+
msg.setGeo(value);
|
|
5980
|
+
break;
|
|
5981
|
+
case 2:
|
|
5982
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5983
|
+
msg.setAdminSide(value);
|
|
5984
|
+
break;
|
|
5985
|
+
default:
|
|
5986
|
+
reader.skipField();
|
|
5987
|
+
break;
|
|
5988
|
+
}
|
|
5989
|
+
}
|
|
5990
|
+
return msg;
|
|
5991
|
+
};
|
|
5992
|
+
|
|
5993
|
+
|
|
5994
|
+
/**
|
|
5995
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5996
|
+
* @return {!Uint8Array}
|
|
5997
|
+
*/
|
|
5998
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.serializeBinary = function() {
|
|
5999
|
+
var writer = new jspb.BinaryWriter();
|
|
6000
|
+
proto.cms.GetPreDepositFormWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
6001
|
+
return writer.getResultBuffer();
|
|
6002
|
+
};
|
|
6003
|
+
|
|
6004
|
+
|
|
6005
|
+
/**
|
|
6006
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6007
|
+
* format), writing to the given BinaryWriter.
|
|
6008
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} message
|
|
6009
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6011
|
+
*/
|
|
6012
|
+
proto.cms.GetPreDepositFormWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6013
|
+
var f = undefined;
|
|
6014
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
6015
|
+
if (f != null) {
|
|
6016
|
+
writer.writeString(
|
|
6017
|
+
1,
|
|
6018
|
+
f
|
|
6019
|
+
);
|
|
6020
|
+
}
|
|
6021
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
6022
|
+
if (f != null) {
|
|
6023
|
+
writer.writeBool(
|
|
6024
|
+
2,
|
|
6025
|
+
f
|
|
6026
|
+
);
|
|
6027
|
+
}
|
|
6028
|
+
};
|
|
6029
|
+
|
|
6030
|
+
|
|
6031
|
+
/**
|
|
6032
|
+
* optional string geo = 1;
|
|
6033
|
+
* @return {string}
|
|
6034
|
+
*/
|
|
6035
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.getGeo = function() {
|
|
6036
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6037
|
+
};
|
|
6038
|
+
|
|
6039
|
+
|
|
6040
|
+
/**
|
|
6041
|
+
* @param {string} value
|
|
6042
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6043
|
+
*/
|
|
6044
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.setGeo = function(value) {
|
|
6045
|
+
return jspb.Message.setField(this, 1, value);
|
|
6046
|
+
};
|
|
6047
|
+
|
|
6048
|
+
|
|
6049
|
+
/**
|
|
6050
|
+
* Clears the field making it undefined.
|
|
6051
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6052
|
+
*/
|
|
6053
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.clearGeo = function() {
|
|
6054
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
6055
|
+
};
|
|
6056
|
+
|
|
6057
|
+
|
|
6058
|
+
/**
|
|
6059
|
+
* Returns whether this field is set.
|
|
6060
|
+
* @return {boolean}
|
|
6061
|
+
*/
|
|
6062
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.hasGeo = function() {
|
|
6063
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6064
|
+
};
|
|
6065
|
+
|
|
6066
|
+
|
|
6067
|
+
/**
|
|
6068
|
+
* optional bool admin_side = 2;
|
|
6069
|
+
* @return {boolean}
|
|
6070
|
+
*/
|
|
6071
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.getAdminSide = function() {
|
|
6072
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
6073
|
+
};
|
|
6074
|
+
|
|
6075
|
+
|
|
6076
|
+
/**
|
|
6077
|
+
* @param {boolean} value
|
|
6078
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6079
|
+
*/
|
|
6080
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.setAdminSide = function(value) {
|
|
6081
|
+
return jspb.Message.setField(this, 2, value);
|
|
6082
|
+
};
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
/**
|
|
6086
|
+
* Clears the field making it undefined.
|
|
6087
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6088
|
+
*/
|
|
6089
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.clearAdminSide = function() {
|
|
6090
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6091
|
+
};
|
|
6092
|
+
|
|
6093
|
+
|
|
6094
|
+
/**
|
|
6095
|
+
* Returns whether this field is set.
|
|
6096
|
+
* @return {boolean}
|
|
6097
|
+
*/
|
|
6098
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.hasAdminSide = function() {
|
|
6099
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6100
|
+
};
|
|
6101
|
+
|
|
6102
|
+
|
|
6103
|
+
|
|
6104
|
+
|
|
6105
|
+
|
|
6106
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6107
|
+
/**
|
|
6108
|
+
* Creates an object representation of this proto.
|
|
6109
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6110
|
+
* Optional fields that are not set will be set to undefined.
|
|
6111
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6112
|
+
* For the list of reserved names please see:
|
|
6113
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6114
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6115
|
+
* JSPB instance for transitional soy proto support:
|
|
6116
|
+
* http://goto/soy-param-migration
|
|
6117
|
+
* @return {!Object}
|
|
6118
|
+
*/
|
|
6119
|
+
proto.cms.PreDepositFormWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
6120
|
+
return proto.cms.PreDepositFormWidgetItem.toObject(opt_includeInstance, this);
|
|
6121
|
+
};
|
|
6122
|
+
|
|
6123
|
+
|
|
6124
|
+
/**
|
|
6125
|
+
* Static version of the {@see toObject} method.
|
|
6126
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6127
|
+
* the JSPB instance for transitional soy proto support:
|
|
6128
|
+
* http://goto/soy-param-migration
|
|
6129
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} msg The msg instance to transform.
|
|
6130
|
+
* @return {!Object}
|
|
6131
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6132
|
+
*/
|
|
6133
|
+
proto.cms.PreDepositFormWidgetItem.toObject = function(includeInstance, msg) {
|
|
6134
|
+
var f, obj = {
|
|
6135
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6136
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6137
|
+
isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
if (includeInstance) {
|
|
6141
|
+
obj.$jspbMessageInstance = msg;
|
|
6142
|
+
}
|
|
6143
|
+
return obj;
|
|
6144
|
+
};
|
|
6145
|
+
}
|
|
6146
|
+
|
|
6147
|
+
|
|
6148
|
+
/**
|
|
6149
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6150
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6151
|
+
* @return {!proto.cms.PreDepositFormWidgetItem}
|
|
6152
|
+
*/
|
|
6153
|
+
proto.cms.PreDepositFormWidgetItem.deserializeBinary = function(bytes) {
|
|
6154
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6155
|
+
var msg = new proto.cms.PreDepositFormWidgetItem;
|
|
6156
|
+
return proto.cms.PreDepositFormWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
6157
|
+
};
|
|
6158
|
+
|
|
6159
|
+
|
|
6160
|
+
/**
|
|
6161
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6162
|
+
* given reader into the given message object.
|
|
6163
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} msg The message object to deserialize into.
|
|
6164
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6165
|
+
* @return {!proto.cms.PreDepositFormWidgetItem}
|
|
6166
|
+
*/
|
|
6167
|
+
proto.cms.PreDepositFormWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
6168
|
+
while (reader.nextField()) {
|
|
6169
|
+
if (reader.isEndGroup()) {
|
|
6170
|
+
break;
|
|
6171
|
+
}
|
|
6172
|
+
var field = reader.getFieldNumber();
|
|
6173
|
+
switch (field) {
|
|
6174
|
+
case 1:
|
|
6175
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6176
|
+
msg.setGeo(value);
|
|
6177
|
+
break;
|
|
6178
|
+
case 2:
|
|
6179
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6180
|
+
msg.setContent(value);
|
|
6181
|
+
break;
|
|
6182
|
+
case 3:
|
|
6183
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6184
|
+
msg.setIsEnabled(value);
|
|
6185
|
+
break;
|
|
6186
|
+
default:
|
|
6187
|
+
reader.skipField();
|
|
6188
|
+
break;
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
6191
|
+
return msg;
|
|
6192
|
+
};
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
/**
|
|
6196
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6197
|
+
* @return {!Uint8Array}
|
|
6198
|
+
*/
|
|
6199
|
+
proto.cms.PreDepositFormWidgetItem.prototype.serializeBinary = function() {
|
|
6200
|
+
var writer = new jspb.BinaryWriter();
|
|
6201
|
+
proto.cms.PreDepositFormWidgetItem.serializeBinaryToWriter(this, writer);
|
|
6202
|
+
return writer.getResultBuffer();
|
|
6203
|
+
};
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
/**
|
|
6207
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6208
|
+
* format), writing to the given BinaryWriter.
|
|
6209
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} message
|
|
6210
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6212
|
+
*/
|
|
6213
|
+
proto.cms.PreDepositFormWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
6214
|
+
var f = undefined;
|
|
6215
|
+
f = message.getGeo();
|
|
6216
|
+
if (f.length > 0) {
|
|
6217
|
+
writer.writeString(
|
|
6218
|
+
1,
|
|
6219
|
+
f
|
|
6220
|
+
);
|
|
6221
|
+
}
|
|
6222
|
+
f = message.getContent();
|
|
6223
|
+
if (f.length > 0) {
|
|
6224
|
+
writer.writeString(
|
|
6225
|
+
2,
|
|
6226
|
+
f
|
|
6227
|
+
);
|
|
6228
|
+
}
|
|
6229
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
6230
|
+
if (f != null) {
|
|
6231
|
+
writer.writeBool(
|
|
6232
|
+
3,
|
|
6233
|
+
f
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
};
|
|
6237
|
+
|
|
6238
|
+
|
|
6239
|
+
/**
|
|
6240
|
+
* optional string geo = 1;
|
|
6241
|
+
* @return {string}
|
|
6242
|
+
*/
|
|
6243
|
+
proto.cms.PreDepositFormWidgetItem.prototype.getGeo = function() {
|
|
6244
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6245
|
+
};
|
|
6246
|
+
|
|
6247
|
+
|
|
6248
|
+
/**
|
|
6249
|
+
* @param {string} value
|
|
6250
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6251
|
+
*/
|
|
6252
|
+
proto.cms.PreDepositFormWidgetItem.prototype.setGeo = function(value) {
|
|
6253
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6254
|
+
};
|
|
6255
|
+
|
|
6256
|
+
|
|
6257
|
+
/**
|
|
6258
|
+
* optional string content = 2;
|
|
6259
|
+
* @return {string}
|
|
6260
|
+
*/
|
|
6261
|
+
proto.cms.PreDepositFormWidgetItem.prototype.getContent = function() {
|
|
6262
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6263
|
+
};
|
|
6264
|
+
|
|
6265
|
+
|
|
6266
|
+
/**
|
|
6267
|
+
* @param {string} value
|
|
6268
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6269
|
+
*/
|
|
6270
|
+
proto.cms.PreDepositFormWidgetItem.prototype.setContent = function(value) {
|
|
6271
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6272
|
+
};
|
|
6273
|
+
|
|
6274
|
+
|
|
6275
|
+
/**
|
|
6276
|
+
* optional bool is_enabled = 3;
|
|
6277
|
+
* @return {boolean}
|
|
6278
|
+
*/
|
|
6279
|
+
proto.cms.PreDepositFormWidgetItem.prototype.getIsEnabled = function() {
|
|
6280
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
6281
|
+
};
|
|
6282
|
+
|
|
6283
|
+
|
|
6284
|
+
/**
|
|
6285
|
+
* @param {boolean} value
|
|
6286
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6287
|
+
*/
|
|
6288
|
+
proto.cms.PreDepositFormWidgetItem.prototype.setIsEnabled = function(value) {
|
|
6289
|
+
return jspb.Message.setField(this, 3, value);
|
|
6290
|
+
};
|
|
6291
|
+
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* Clears the field making it undefined.
|
|
6295
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6296
|
+
*/
|
|
6297
|
+
proto.cms.PreDepositFormWidgetItem.prototype.clearIsEnabled = function() {
|
|
6298
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
|
|
6302
|
+
/**
|
|
6303
|
+
* Returns whether this field is set.
|
|
6304
|
+
* @return {boolean}
|
|
6305
|
+
*/
|
|
6306
|
+
proto.cms.PreDepositFormWidgetItem.prototype.hasIsEnabled = function() {
|
|
6307
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
|
|
6312
|
+
|
|
6313
|
+
|
|
5818
6314
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5819
6315
|
/**
|
|
5820
6316
|
* Creates an object representation of this proto.
|