protobuf-platform 1.2.278 → 1.2.279
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_grpc_pb.js +44 -0
- package/cms/cms_pb.js +400 -0
- 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);
|
|
@@ -167,6 +169,14 @@ message SignUpFormWidgetItem {
|
|
|
167
169
|
string geo = 1;
|
|
168
170
|
string content = 2;
|
|
169
171
|
}
|
|
172
|
+
message GetPreDepositFormWidgetRequest {
|
|
173
|
+
optional string geo = 1;
|
|
174
|
+
optional bool admin_side = 2;
|
|
175
|
+
}
|
|
176
|
+
message PreDepositFormWidgetItem {
|
|
177
|
+
string geo = 1;
|
|
178
|
+
string content = 2;
|
|
179
|
+
}
|
|
170
180
|
message GetHeaderWidgetRequest {
|
|
171
181
|
optional string geo = 1;
|
|
172
182
|
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
|
|
@@ -5815,6 +5859,362 @@ proto.cms.SignUpFormWidgetItem.prototype.setContent = function(value) {
|
|
|
5815
5859
|
|
|
5816
5860
|
|
|
5817
5861
|
|
|
5862
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5863
|
+
/**
|
|
5864
|
+
* Creates an object representation of this proto.
|
|
5865
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5866
|
+
* Optional fields that are not set will be set to undefined.
|
|
5867
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5868
|
+
* For the list of reserved names please see:
|
|
5869
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5870
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5871
|
+
* JSPB instance for transitional soy proto support:
|
|
5872
|
+
* http://goto/soy-param-migration
|
|
5873
|
+
* @return {!Object}
|
|
5874
|
+
*/
|
|
5875
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5876
|
+
return proto.cms.GetPreDepositFormWidgetRequest.toObject(opt_includeInstance, this);
|
|
5877
|
+
};
|
|
5878
|
+
|
|
5879
|
+
|
|
5880
|
+
/**
|
|
5881
|
+
* Static version of the {@see toObject} method.
|
|
5882
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5883
|
+
* the JSPB instance for transitional soy proto support:
|
|
5884
|
+
* http://goto/soy-param-migration
|
|
5885
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} msg The msg instance to transform.
|
|
5886
|
+
* @return {!Object}
|
|
5887
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5888
|
+
*/
|
|
5889
|
+
proto.cms.GetPreDepositFormWidgetRequest.toObject = function(includeInstance, msg) {
|
|
5890
|
+
var f, obj = {
|
|
5891
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5892
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5893
|
+
};
|
|
5894
|
+
|
|
5895
|
+
if (includeInstance) {
|
|
5896
|
+
obj.$jspbMessageInstance = msg;
|
|
5897
|
+
}
|
|
5898
|
+
return obj;
|
|
5899
|
+
};
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
|
|
5903
|
+
/**
|
|
5904
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5905
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5906
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest}
|
|
5907
|
+
*/
|
|
5908
|
+
proto.cms.GetPreDepositFormWidgetRequest.deserializeBinary = function(bytes) {
|
|
5909
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5910
|
+
var msg = new proto.cms.GetPreDepositFormWidgetRequest;
|
|
5911
|
+
return proto.cms.GetPreDepositFormWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
5912
|
+
};
|
|
5913
|
+
|
|
5914
|
+
|
|
5915
|
+
/**
|
|
5916
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5917
|
+
* given reader into the given message object.
|
|
5918
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} msg The message object to deserialize into.
|
|
5919
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5920
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest}
|
|
5921
|
+
*/
|
|
5922
|
+
proto.cms.GetPreDepositFormWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5923
|
+
while (reader.nextField()) {
|
|
5924
|
+
if (reader.isEndGroup()) {
|
|
5925
|
+
break;
|
|
5926
|
+
}
|
|
5927
|
+
var field = reader.getFieldNumber();
|
|
5928
|
+
switch (field) {
|
|
5929
|
+
case 1:
|
|
5930
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5931
|
+
msg.setGeo(value);
|
|
5932
|
+
break;
|
|
5933
|
+
case 2:
|
|
5934
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5935
|
+
msg.setAdminSide(value);
|
|
5936
|
+
break;
|
|
5937
|
+
default:
|
|
5938
|
+
reader.skipField();
|
|
5939
|
+
break;
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5942
|
+
return msg;
|
|
5943
|
+
};
|
|
5944
|
+
|
|
5945
|
+
|
|
5946
|
+
/**
|
|
5947
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5948
|
+
* @return {!Uint8Array}
|
|
5949
|
+
*/
|
|
5950
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.serializeBinary = function() {
|
|
5951
|
+
var writer = new jspb.BinaryWriter();
|
|
5952
|
+
proto.cms.GetPreDepositFormWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
5953
|
+
return writer.getResultBuffer();
|
|
5954
|
+
};
|
|
5955
|
+
|
|
5956
|
+
|
|
5957
|
+
/**
|
|
5958
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5959
|
+
* format), writing to the given BinaryWriter.
|
|
5960
|
+
* @param {!proto.cms.GetPreDepositFormWidgetRequest} message
|
|
5961
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5962
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5963
|
+
*/
|
|
5964
|
+
proto.cms.GetPreDepositFormWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5965
|
+
var f = undefined;
|
|
5966
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
5967
|
+
if (f != null) {
|
|
5968
|
+
writer.writeString(
|
|
5969
|
+
1,
|
|
5970
|
+
f
|
|
5971
|
+
);
|
|
5972
|
+
}
|
|
5973
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
|
5974
|
+
if (f != null) {
|
|
5975
|
+
writer.writeBool(
|
|
5976
|
+
2,
|
|
5977
|
+
f
|
|
5978
|
+
);
|
|
5979
|
+
}
|
|
5980
|
+
};
|
|
5981
|
+
|
|
5982
|
+
|
|
5983
|
+
/**
|
|
5984
|
+
* optional string geo = 1;
|
|
5985
|
+
* @return {string}
|
|
5986
|
+
*/
|
|
5987
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.getGeo = function() {
|
|
5988
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5989
|
+
};
|
|
5990
|
+
|
|
5991
|
+
|
|
5992
|
+
/**
|
|
5993
|
+
* @param {string} value
|
|
5994
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
5995
|
+
*/
|
|
5996
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.setGeo = function(value) {
|
|
5997
|
+
return jspb.Message.setField(this, 1, value);
|
|
5998
|
+
};
|
|
5999
|
+
|
|
6000
|
+
|
|
6001
|
+
/**
|
|
6002
|
+
* Clears the field making it undefined.
|
|
6003
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6004
|
+
*/
|
|
6005
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.clearGeo = function() {
|
|
6006
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
6007
|
+
};
|
|
6008
|
+
|
|
6009
|
+
|
|
6010
|
+
/**
|
|
6011
|
+
* Returns whether this field is set.
|
|
6012
|
+
* @return {boolean}
|
|
6013
|
+
*/
|
|
6014
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.hasGeo = function() {
|
|
6015
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6016
|
+
};
|
|
6017
|
+
|
|
6018
|
+
|
|
6019
|
+
/**
|
|
6020
|
+
* optional bool admin_side = 2;
|
|
6021
|
+
* @return {boolean}
|
|
6022
|
+
*/
|
|
6023
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.getAdminSide = function() {
|
|
6024
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
6025
|
+
};
|
|
6026
|
+
|
|
6027
|
+
|
|
6028
|
+
/**
|
|
6029
|
+
* @param {boolean} value
|
|
6030
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6031
|
+
*/
|
|
6032
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.setAdminSide = function(value) {
|
|
6033
|
+
return jspb.Message.setField(this, 2, value);
|
|
6034
|
+
};
|
|
6035
|
+
|
|
6036
|
+
|
|
6037
|
+
/**
|
|
6038
|
+
* Clears the field making it undefined.
|
|
6039
|
+
* @return {!proto.cms.GetPreDepositFormWidgetRequest} returns this
|
|
6040
|
+
*/
|
|
6041
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.clearAdminSide = function() {
|
|
6042
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6043
|
+
};
|
|
6044
|
+
|
|
6045
|
+
|
|
6046
|
+
/**
|
|
6047
|
+
* Returns whether this field is set.
|
|
6048
|
+
* @return {boolean}
|
|
6049
|
+
*/
|
|
6050
|
+
proto.cms.GetPreDepositFormWidgetRequest.prototype.hasAdminSide = function() {
|
|
6051
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6052
|
+
};
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
|
|
6056
|
+
|
|
6057
|
+
|
|
6058
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6059
|
+
/**
|
|
6060
|
+
* Creates an object representation of this proto.
|
|
6061
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6062
|
+
* Optional fields that are not set will be set to undefined.
|
|
6063
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6064
|
+
* For the list of reserved names please see:
|
|
6065
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6066
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6067
|
+
* JSPB instance for transitional soy proto support:
|
|
6068
|
+
* http://goto/soy-param-migration
|
|
6069
|
+
* @return {!Object}
|
|
6070
|
+
*/
|
|
6071
|
+
proto.cms.PreDepositFormWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
6072
|
+
return proto.cms.PreDepositFormWidgetItem.toObject(opt_includeInstance, this);
|
|
6073
|
+
};
|
|
6074
|
+
|
|
6075
|
+
|
|
6076
|
+
/**
|
|
6077
|
+
* Static version of the {@see toObject} method.
|
|
6078
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6079
|
+
* the JSPB instance for transitional soy proto support:
|
|
6080
|
+
* http://goto/soy-param-migration
|
|
6081
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} msg The msg instance to transform.
|
|
6082
|
+
* @return {!Object}
|
|
6083
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6084
|
+
*/
|
|
6085
|
+
proto.cms.PreDepositFormWidgetItem.toObject = function(includeInstance, msg) {
|
|
6086
|
+
var f, obj = {
|
|
6087
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6088
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
6089
|
+
};
|
|
6090
|
+
|
|
6091
|
+
if (includeInstance) {
|
|
6092
|
+
obj.$jspbMessageInstance = msg;
|
|
6093
|
+
}
|
|
6094
|
+
return obj;
|
|
6095
|
+
};
|
|
6096
|
+
}
|
|
6097
|
+
|
|
6098
|
+
|
|
6099
|
+
/**
|
|
6100
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6101
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6102
|
+
* @return {!proto.cms.PreDepositFormWidgetItem}
|
|
6103
|
+
*/
|
|
6104
|
+
proto.cms.PreDepositFormWidgetItem.deserializeBinary = function(bytes) {
|
|
6105
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6106
|
+
var msg = new proto.cms.PreDepositFormWidgetItem;
|
|
6107
|
+
return proto.cms.PreDepositFormWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
6108
|
+
};
|
|
6109
|
+
|
|
6110
|
+
|
|
6111
|
+
/**
|
|
6112
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6113
|
+
* given reader into the given message object.
|
|
6114
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} msg The message object to deserialize into.
|
|
6115
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6116
|
+
* @return {!proto.cms.PreDepositFormWidgetItem}
|
|
6117
|
+
*/
|
|
6118
|
+
proto.cms.PreDepositFormWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
6119
|
+
while (reader.nextField()) {
|
|
6120
|
+
if (reader.isEndGroup()) {
|
|
6121
|
+
break;
|
|
6122
|
+
}
|
|
6123
|
+
var field = reader.getFieldNumber();
|
|
6124
|
+
switch (field) {
|
|
6125
|
+
case 1:
|
|
6126
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6127
|
+
msg.setGeo(value);
|
|
6128
|
+
break;
|
|
6129
|
+
case 2:
|
|
6130
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6131
|
+
msg.setContent(value);
|
|
6132
|
+
break;
|
|
6133
|
+
default:
|
|
6134
|
+
reader.skipField();
|
|
6135
|
+
break;
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
6138
|
+
return msg;
|
|
6139
|
+
};
|
|
6140
|
+
|
|
6141
|
+
|
|
6142
|
+
/**
|
|
6143
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6144
|
+
* @return {!Uint8Array}
|
|
6145
|
+
*/
|
|
6146
|
+
proto.cms.PreDepositFormWidgetItem.prototype.serializeBinary = function() {
|
|
6147
|
+
var writer = new jspb.BinaryWriter();
|
|
6148
|
+
proto.cms.PreDepositFormWidgetItem.serializeBinaryToWriter(this, writer);
|
|
6149
|
+
return writer.getResultBuffer();
|
|
6150
|
+
};
|
|
6151
|
+
|
|
6152
|
+
|
|
6153
|
+
/**
|
|
6154
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6155
|
+
* format), writing to the given BinaryWriter.
|
|
6156
|
+
* @param {!proto.cms.PreDepositFormWidgetItem} message
|
|
6157
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6158
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6159
|
+
*/
|
|
6160
|
+
proto.cms.PreDepositFormWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
6161
|
+
var f = undefined;
|
|
6162
|
+
f = message.getGeo();
|
|
6163
|
+
if (f.length > 0) {
|
|
6164
|
+
writer.writeString(
|
|
6165
|
+
1,
|
|
6166
|
+
f
|
|
6167
|
+
);
|
|
6168
|
+
}
|
|
6169
|
+
f = message.getContent();
|
|
6170
|
+
if (f.length > 0) {
|
|
6171
|
+
writer.writeString(
|
|
6172
|
+
2,
|
|
6173
|
+
f
|
|
6174
|
+
);
|
|
6175
|
+
}
|
|
6176
|
+
};
|
|
6177
|
+
|
|
6178
|
+
|
|
6179
|
+
/**
|
|
6180
|
+
* optional string geo = 1;
|
|
6181
|
+
* @return {string}
|
|
6182
|
+
*/
|
|
6183
|
+
proto.cms.PreDepositFormWidgetItem.prototype.getGeo = function() {
|
|
6184
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6185
|
+
};
|
|
6186
|
+
|
|
6187
|
+
|
|
6188
|
+
/**
|
|
6189
|
+
* @param {string} value
|
|
6190
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6191
|
+
*/
|
|
6192
|
+
proto.cms.PreDepositFormWidgetItem.prototype.setGeo = function(value) {
|
|
6193
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6194
|
+
};
|
|
6195
|
+
|
|
6196
|
+
|
|
6197
|
+
/**
|
|
6198
|
+
* optional string content = 2;
|
|
6199
|
+
* @return {string}
|
|
6200
|
+
*/
|
|
6201
|
+
proto.cms.PreDepositFormWidgetItem.prototype.getContent = function() {
|
|
6202
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6203
|
+
};
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
/**
|
|
6207
|
+
* @param {string} value
|
|
6208
|
+
* @return {!proto.cms.PreDepositFormWidgetItem} returns this
|
|
6209
|
+
*/
|
|
6210
|
+
proto.cms.PreDepositFormWidgetItem.prototype.setContent = function(value) {
|
|
6211
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6212
|
+
};
|
|
6213
|
+
|
|
6214
|
+
|
|
6215
|
+
|
|
6216
|
+
|
|
6217
|
+
|
|
5818
6218
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5819
6219
|
/**
|
|
5820
6220
|
* Creates an object representation of this proto.
|