@sniipwebmaster/config-service-client-grpcweb-ts 26.2.2153 → 26.2.2173
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/dependancies/ServiceServiceClientPb.ts +43 -0
- package/dependancies/service_pb.d.ts +52 -12
- package/dependancies/service_pb.js +496 -147
- package/package.json +1 -1
|
@@ -1115,5 +1115,48 @@ export class SniipAppAppConfigAPIServiceClient {
|
|
|
1115
1115
|
this.methodDescriptorListOffersAdmin);
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
|
+
methodDescriptorUploadOfferImage = new grpcWeb.MethodDescriptor(
|
|
1119
|
+
'/sniipappappconfigapi.SniipAppAppConfigAPIService/UploadOfferImage',
|
|
1120
|
+
grpcWeb.MethodType.UNARY,
|
|
1121
|
+
service_pb.UploadOfferImageRequest,
|
|
1122
|
+
service_pb.UploadOfferImageResponse,
|
|
1123
|
+
(request: service_pb.UploadOfferImageRequest) => {
|
|
1124
|
+
return request.serializeBinary();
|
|
1125
|
+
},
|
|
1126
|
+
service_pb.UploadOfferImageResponse.deserializeBinary
|
|
1127
|
+
);
|
|
1128
|
+
|
|
1129
|
+
uploadOfferImage(
|
|
1130
|
+
request: service_pb.UploadOfferImageRequest,
|
|
1131
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.UploadOfferImageResponse>;
|
|
1132
|
+
|
|
1133
|
+
uploadOfferImage(
|
|
1134
|
+
request: service_pb.UploadOfferImageRequest,
|
|
1135
|
+
metadata: grpcWeb.Metadata | null,
|
|
1136
|
+
callback: (err: grpcWeb.RpcError,
|
|
1137
|
+
response: service_pb.UploadOfferImageResponse) => void): grpcWeb.ClientReadableStream<service_pb.UploadOfferImageResponse>;
|
|
1138
|
+
|
|
1139
|
+
uploadOfferImage(
|
|
1140
|
+
request: service_pb.UploadOfferImageRequest,
|
|
1141
|
+
metadata?: grpcWeb.Metadata | null,
|
|
1142
|
+
callback?: (err: grpcWeb.RpcError,
|
|
1143
|
+
response: service_pb.UploadOfferImageResponse) => void) {
|
|
1144
|
+
if (callback !== undefined) {
|
|
1145
|
+
return this.client_.rpcCall(
|
|
1146
|
+
this.hostname_ +
|
|
1147
|
+
'/sniipappappconfigapi.SniipAppAppConfigAPIService/UploadOfferImage',
|
|
1148
|
+
request,
|
|
1149
|
+
metadata || {},
|
|
1150
|
+
this.methodDescriptorUploadOfferImage,
|
|
1151
|
+
callback);
|
|
1152
|
+
}
|
|
1153
|
+
return this.client_.unaryCall(
|
|
1154
|
+
this.hostname_ +
|
|
1155
|
+
'/sniipappappconfigapi.SniipAppAppConfigAPIService/UploadOfferImage',
|
|
1156
|
+
request,
|
|
1157
|
+
metadata || {},
|
|
1158
|
+
this.methodDescriptorUploadOfferImage);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1118
1161
|
}
|
|
1119
1162
|
|
|
@@ -873,9 +873,6 @@ export class Offer extends jspb.Message {
|
|
|
873
873
|
getOfferwidgetheadingtext(): string;
|
|
874
874
|
setOfferwidgetheadingtext(value: string): Offer;
|
|
875
875
|
|
|
876
|
-
getOfferscontent(): number;
|
|
877
|
-
setOfferscontent(value: number): Offer;
|
|
878
|
-
|
|
879
876
|
getOrderby(): number;
|
|
880
877
|
setOrderby(value: number): Offer;
|
|
881
878
|
|
|
@@ -916,7 +913,6 @@ export namespace Offer {
|
|
|
916
913
|
offerslistheading: string,
|
|
917
914
|
isenabled: boolean,
|
|
918
915
|
offerwidgetheadingtext: string,
|
|
919
|
-
offerscontent: number,
|
|
920
916
|
orderby: number,
|
|
921
917
|
createdtimestamp: string,
|
|
922
918
|
modifiedtimestamp: string,
|
|
@@ -960,9 +956,6 @@ export class OfferCreateRequest extends jspb.Message {
|
|
|
960
956
|
getOfferwidgetheadingtext(): string;
|
|
961
957
|
setOfferwidgetheadingtext(value: string): OfferCreateRequest;
|
|
962
958
|
|
|
963
|
-
getOfferscontent(): number;
|
|
964
|
-
setOfferscontent(value: number): OfferCreateRequest;
|
|
965
|
-
|
|
966
959
|
getOrderby(): number;
|
|
967
960
|
setOrderby(value: number): OfferCreateRequest;
|
|
968
961
|
|
|
@@ -990,7 +983,6 @@ export namespace OfferCreateRequest {
|
|
|
990
983
|
offerslistheading: string,
|
|
991
984
|
isenabled: boolean,
|
|
992
985
|
offerwidgetheadingtext: string,
|
|
993
|
-
offerscontent: number,
|
|
994
986
|
orderby: number,
|
|
995
987
|
offerrulesetid: number,
|
|
996
988
|
}
|
|
@@ -1053,9 +1045,6 @@ export class OfferUpdateRequest extends jspb.Message {
|
|
|
1053
1045
|
getOfferwidgetheadingtext(): string;
|
|
1054
1046
|
setOfferwidgetheadingtext(value: string): OfferUpdateRequest;
|
|
1055
1047
|
|
|
1056
|
-
getOfferscontent(): number;
|
|
1057
|
-
setOfferscontent(value: number): OfferUpdateRequest;
|
|
1058
|
-
|
|
1059
1048
|
getOrderby(): number;
|
|
1060
1049
|
setOrderby(value: number): OfferUpdateRequest;
|
|
1061
1050
|
|
|
@@ -1084,7 +1073,6 @@ export namespace OfferUpdateRequest {
|
|
|
1084
1073
|
offerslistheading: string,
|
|
1085
1074
|
isenabled: boolean,
|
|
1086
1075
|
offerwidgetheadingtext: string,
|
|
1087
|
-
offerscontent: number,
|
|
1088
1076
|
orderby: number,
|
|
1089
1077
|
offerrulesetid: number,
|
|
1090
1078
|
}
|
|
@@ -1540,6 +1528,58 @@ export namespace ListOfferRulesetsResponse {
|
|
|
1540
1528
|
}
|
|
1541
1529
|
}
|
|
1542
1530
|
|
|
1531
|
+
export class UploadOfferImageRequest extends jspb.Message {
|
|
1532
|
+
getFilename(): string;
|
|
1533
|
+
setFilename(value: string): UploadOfferImageRequest;
|
|
1534
|
+
|
|
1535
|
+
getContenttype(): string;
|
|
1536
|
+
setContenttype(value: string): UploadOfferImageRequest;
|
|
1537
|
+
|
|
1538
|
+
getFiledata(): Uint8Array | string;
|
|
1539
|
+
getFiledata_asU8(): Uint8Array;
|
|
1540
|
+
getFiledata_asB64(): string;
|
|
1541
|
+
setFiledata(value: Uint8Array | string): UploadOfferImageRequest;
|
|
1542
|
+
|
|
1543
|
+
serializeBinary(): Uint8Array;
|
|
1544
|
+
toObject(includeInstance?: boolean): UploadOfferImageRequest.AsObject;
|
|
1545
|
+
static toObject(includeInstance: boolean, msg: UploadOfferImageRequest): UploadOfferImageRequest.AsObject;
|
|
1546
|
+
static serializeBinaryToWriter(message: UploadOfferImageRequest, writer: jspb.BinaryWriter): void;
|
|
1547
|
+
static deserializeBinary(bytes: Uint8Array): UploadOfferImageRequest;
|
|
1548
|
+
static deserializeBinaryFromReader(message: UploadOfferImageRequest, reader: jspb.BinaryReader): UploadOfferImageRequest;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
export namespace UploadOfferImageRequest {
|
|
1552
|
+
export type AsObject = {
|
|
1553
|
+
filename: string,
|
|
1554
|
+
contenttype: string,
|
|
1555
|
+
filedata: Uint8Array | string,
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
export class UploadOfferImageResponse extends jspb.Message {
|
|
1560
|
+
getResponsecode(): ResponseCode | undefined;
|
|
1561
|
+
setResponsecode(value?: ResponseCode): UploadOfferImageResponse;
|
|
1562
|
+
hasResponsecode(): boolean;
|
|
1563
|
+
clearResponsecode(): UploadOfferImageResponse;
|
|
1564
|
+
|
|
1565
|
+
getUrl(): string;
|
|
1566
|
+
setUrl(value: string): UploadOfferImageResponse;
|
|
1567
|
+
|
|
1568
|
+
serializeBinary(): Uint8Array;
|
|
1569
|
+
toObject(includeInstance?: boolean): UploadOfferImageResponse.AsObject;
|
|
1570
|
+
static toObject(includeInstance: boolean, msg: UploadOfferImageResponse): UploadOfferImageResponse.AsObject;
|
|
1571
|
+
static serializeBinaryToWriter(message: UploadOfferImageResponse, writer: jspb.BinaryWriter): void;
|
|
1572
|
+
static deserializeBinary(bytes: Uint8Array): UploadOfferImageResponse;
|
|
1573
|
+
static deserializeBinaryFromReader(message: UploadOfferImageResponse, reader: jspb.BinaryReader): UploadOfferImageResponse;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export namespace UploadOfferImageResponse {
|
|
1577
|
+
export type AsObject = {
|
|
1578
|
+
responsecode?: ResponseCode.AsObject,
|
|
1579
|
+
url: string,
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1543
1583
|
export enum DashboardItem {
|
|
1544
1584
|
GET_STARTED = 0,
|
|
1545
1585
|
BILLS_SUMMARY = 1,
|
|
@@ -66,6 +66,8 @@ goog.exportSymbol('proto.sniipappappconfigapi.UpdateMbillingFlagRequest', null,
|
|
|
66
66
|
goog.exportSymbol('proto.sniipappappconfigapi.UpdateOfferRequest', null, global);
|
|
67
67
|
goog.exportSymbol('proto.sniipappappconfigapi.UpdateOfferRulesetRequest', null, global);
|
|
68
68
|
goog.exportSymbol('proto.sniipappappconfigapi.UpdateUserHasMbillingSubscriptionsRequest', null, global);
|
|
69
|
+
goog.exportSymbol('proto.sniipappappconfigapi.UploadOfferImageRequest', null, global);
|
|
70
|
+
goog.exportSymbol('proto.sniipappappconfigapi.UploadOfferImageResponse', null, global);
|
|
69
71
|
goog.exportSymbol('proto.sniipappappconfigapi.UserConfigResponse', null, global);
|
|
70
72
|
/**
|
|
71
73
|
* Generated by JsPbCodeGenerator.
|
|
@@ -991,6 +993,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
991
993
|
*/
|
|
992
994
|
proto.sniipappappconfigapi.ListOfferRulesetsResponse.displayName = 'proto.sniipappappconfigapi.ListOfferRulesetsResponse';
|
|
993
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* Generated by JsPbCodeGenerator.
|
|
998
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
999
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1000
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1001
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1002
|
+
* valid.
|
|
1003
|
+
* @extends {jspb.Message}
|
|
1004
|
+
* @constructor
|
|
1005
|
+
*/
|
|
1006
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest = function(opt_data) {
|
|
1007
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1008
|
+
};
|
|
1009
|
+
goog.inherits(proto.sniipappappconfigapi.UploadOfferImageRequest, jspb.Message);
|
|
1010
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1011
|
+
/**
|
|
1012
|
+
* @public
|
|
1013
|
+
* @override
|
|
1014
|
+
*/
|
|
1015
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.displayName = 'proto.sniipappappconfigapi.UploadOfferImageRequest';
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Generated by JsPbCodeGenerator.
|
|
1019
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1020
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1021
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1022
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1023
|
+
* valid.
|
|
1024
|
+
* @extends {jspb.Message}
|
|
1025
|
+
* @constructor
|
|
1026
|
+
*/
|
|
1027
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse = function(opt_data) {
|
|
1028
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1029
|
+
};
|
|
1030
|
+
goog.inherits(proto.sniipappappconfigapi.UploadOfferImageResponse, jspb.Message);
|
|
1031
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1032
|
+
/**
|
|
1033
|
+
* @public
|
|
1034
|
+
* @override
|
|
1035
|
+
*/
|
|
1036
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.displayName = 'proto.sniipappappconfigapi.UploadOfferImageResponse';
|
|
1037
|
+
}
|
|
994
1038
|
|
|
995
1039
|
|
|
996
1040
|
|
|
@@ -7361,13 +7405,12 @@ proto.sniipappappconfigapi.Offer.toObject = function(includeInstance, msg) {
|
|
|
7361
7405
|
offerslistheading: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
7362
7406
|
isenabled: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
7363
7407
|
offerwidgetheadingtext: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
offerrulesetname: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
7408
|
+
orderby: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
7409
|
+
createdtimestamp: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
7410
|
+
modifiedtimestamp: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
7411
|
+
deletedtimestamp: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
7412
|
+
offerrulesetid: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
7413
|
+
offerrulesetname: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
7371
7414
|
};
|
|
7372
7415
|
|
|
7373
7416
|
if (includeInstance) {
|
|
@@ -7453,30 +7496,26 @@ proto.sniipappappconfigapi.Offer.deserializeBinaryFromReader = function(msg, rea
|
|
|
7453
7496
|
msg.setOfferwidgetheadingtext(value);
|
|
7454
7497
|
break;
|
|
7455
7498
|
case 13:
|
|
7456
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
7457
|
-
msg.setOfferscontent(value);
|
|
7458
|
-
break;
|
|
7459
|
-
case 14:
|
|
7460
7499
|
var value = /** @type {number} */ (reader.readInt32());
|
|
7461
7500
|
msg.setOrderby(value);
|
|
7462
7501
|
break;
|
|
7463
|
-
case
|
|
7502
|
+
case 14:
|
|
7464
7503
|
var value = /** @type {string} */ (reader.readString());
|
|
7465
7504
|
msg.setCreatedtimestamp(value);
|
|
7466
7505
|
break;
|
|
7467
|
-
case
|
|
7506
|
+
case 15:
|
|
7468
7507
|
var value = /** @type {string} */ (reader.readString());
|
|
7469
7508
|
msg.setModifiedtimestamp(value);
|
|
7470
7509
|
break;
|
|
7471
|
-
case
|
|
7510
|
+
case 16:
|
|
7472
7511
|
var value = /** @type {string} */ (reader.readString());
|
|
7473
7512
|
msg.setDeletedtimestamp(value);
|
|
7474
7513
|
break;
|
|
7475
|
-
case
|
|
7514
|
+
case 17:
|
|
7476
7515
|
var value = /** @type {number} */ (reader.readInt64());
|
|
7477
7516
|
msg.setOfferrulesetid(value);
|
|
7478
7517
|
break;
|
|
7479
|
-
case
|
|
7518
|
+
case 18:
|
|
7480
7519
|
var value = /** @type {string} */ (reader.readString());
|
|
7481
7520
|
msg.setOfferrulesetname(value);
|
|
7482
7521
|
break;
|
|
@@ -7593,52 +7632,45 @@ proto.sniipappappconfigapi.Offer.serializeBinaryToWriter = function(message, wri
|
|
|
7593
7632
|
f
|
|
7594
7633
|
);
|
|
7595
7634
|
}
|
|
7596
|
-
f = message.getOfferscontent();
|
|
7597
|
-
if (f !== 0) {
|
|
7598
|
-
writer.writeInt32(
|
|
7599
|
-
13,
|
|
7600
|
-
f
|
|
7601
|
-
);
|
|
7602
|
-
}
|
|
7603
7635
|
f = message.getOrderby();
|
|
7604
7636
|
if (f !== 0) {
|
|
7605
7637
|
writer.writeInt32(
|
|
7606
|
-
|
|
7638
|
+
13,
|
|
7607
7639
|
f
|
|
7608
7640
|
);
|
|
7609
7641
|
}
|
|
7610
7642
|
f = message.getCreatedtimestamp();
|
|
7611
7643
|
if (f.length > 0) {
|
|
7612
7644
|
writer.writeString(
|
|
7613
|
-
|
|
7645
|
+
14,
|
|
7614
7646
|
f
|
|
7615
7647
|
);
|
|
7616
7648
|
}
|
|
7617
7649
|
f = message.getModifiedtimestamp();
|
|
7618
7650
|
if (f.length > 0) {
|
|
7619
7651
|
writer.writeString(
|
|
7620
|
-
|
|
7652
|
+
15,
|
|
7621
7653
|
f
|
|
7622
7654
|
);
|
|
7623
7655
|
}
|
|
7624
7656
|
f = message.getDeletedtimestamp();
|
|
7625
7657
|
if (f.length > 0) {
|
|
7626
7658
|
writer.writeString(
|
|
7627
|
-
|
|
7659
|
+
16,
|
|
7628
7660
|
f
|
|
7629
7661
|
);
|
|
7630
7662
|
}
|
|
7631
7663
|
f = message.getOfferrulesetid();
|
|
7632
7664
|
if (f !== 0) {
|
|
7633
7665
|
writer.writeInt64(
|
|
7634
|
-
|
|
7666
|
+
17,
|
|
7635
7667
|
f
|
|
7636
7668
|
);
|
|
7637
7669
|
}
|
|
7638
7670
|
f = message.getOfferrulesetname();
|
|
7639
7671
|
if (f.length > 0) {
|
|
7640
7672
|
writer.writeString(
|
|
7641
|
-
|
|
7673
|
+
18,
|
|
7642
7674
|
f
|
|
7643
7675
|
);
|
|
7644
7676
|
}
|
|
@@ -7862,29 +7894,11 @@ proto.sniipappappconfigapi.Offer.prototype.setOfferwidgetheadingtext = function(
|
|
|
7862
7894
|
|
|
7863
7895
|
|
|
7864
7896
|
/**
|
|
7865
|
-
* optional int32
|
|
7866
|
-
* @return {number}
|
|
7867
|
-
*/
|
|
7868
|
-
proto.sniipappappconfigapi.Offer.prototype.getOfferscontent = function() {
|
|
7869
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
7870
|
-
};
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
/**
|
|
7874
|
-
* @param {number} value
|
|
7875
|
-
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7876
|
-
*/
|
|
7877
|
-
proto.sniipappappconfigapi.Offer.prototype.setOfferscontent = function(value) {
|
|
7878
|
-
return jspb.Message.setProto3IntField(this, 13, value);
|
|
7879
|
-
};
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
/**
|
|
7883
|
-
* optional int32 orderBy = 14;
|
|
7897
|
+
* optional int32 orderBy = 13;
|
|
7884
7898
|
* @return {number}
|
|
7885
7899
|
*/
|
|
7886
7900
|
proto.sniipappappconfigapi.Offer.prototype.getOrderby = function() {
|
|
7887
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
7901
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
7888
7902
|
};
|
|
7889
7903
|
|
|
7890
7904
|
|
|
@@ -7893,16 +7907,16 @@ proto.sniipappappconfigapi.Offer.prototype.getOrderby = function() {
|
|
|
7893
7907
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7894
7908
|
*/
|
|
7895
7909
|
proto.sniipappappconfigapi.Offer.prototype.setOrderby = function(value) {
|
|
7896
|
-
return jspb.Message.setProto3IntField(this,
|
|
7910
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
7897
7911
|
};
|
|
7898
7912
|
|
|
7899
7913
|
|
|
7900
7914
|
/**
|
|
7901
|
-
* optional string createdTimestamp =
|
|
7915
|
+
* optional string createdTimestamp = 14;
|
|
7902
7916
|
* @return {string}
|
|
7903
7917
|
*/
|
|
7904
7918
|
proto.sniipappappconfigapi.Offer.prototype.getCreatedtimestamp = function() {
|
|
7905
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7919
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
7906
7920
|
};
|
|
7907
7921
|
|
|
7908
7922
|
|
|
@@ -7911,16 +7925,16 @@ proto.sniipappappconfigapi.Offer.prototype.getCreatedtimestamp = function() {
|
|
|
7911
7925
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7912
7926
|
*/
|
|
7913
7927
|
proto.sniipappappconfigapi.Offer.prototype.setCreatedtimestamp = function(value) {
|
|
7914
|
-
return jspb.Message.setProto3StringField(this,
|
|
7928
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
7915
7929
|
};
|
|
7916
7930
|
|
|
7917
7931
|
|
|
7918
7932
|
/**
|
|
7919
|
-
* optional string modifiedTimestamp =
|
|
7933
|
+
* optional string modifiedTimestamp = 15;
|
|
7920
7934
|
* @return {string}
|
|
7921
7935
|
*/
|
|
7922
7936
|
proto.sniipappappconfigapi.Offer.prototype.getModifiedtimestamp = function() {
|
|
7923
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7937
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
7924
7938
|
};
|
|
7925
7939
|
|
|
7926
7940
|
|
|
@@ -7929,16 +7943,16 @@ proto.sniipappappconfigapi.Offer.prototype.getModifiedtimestamp = function() {
|
|
|
7929
7943
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7930
7944
|
*/
|
|
7931
7945
|
proto.sniipappappconfigapi.Offer.prototype.setModifiedtimestamp = function(value) {
|
|
7932
|
-
return jspb.Message.setProto3StringField(this,
|
|
7946
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
7933
7947
|
};
|
|
7934
7948
|
|
|
7935
7949
|
|
|
7936
7950
|
/**
|
|
7937
|
-
* optional string deletedTimestamp =
|
|
7951
|
+
* optional string deletedTimestamp = 16;
|
|
7938
7952
|
* @return {string}
|
|
7939
7953
|
*/
|
|
7940
7954
|
proto.sniipappappconfigapi.Offer.prototype.getDeletedtimestamp = function() {
|
|
7941
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7955
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
7942
7956
|
};
|
|
7943
7957
|
|
|
7944
7958
|
|
|
@@ -7947,16 +7961,16 @@ proto.sniipappappconfigapi.Offer.prototype.getDeletedtimestamp = function() {
|
|
|
7947
7961
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7948
7962
|
*/
|
|
7949
7963
|
proto.sniipappappconfigapi.Offer.prototype.setDeletedtimestamp = function(value) {
|
|
7950
|
-
return jspb.Message.setProto3StringField(this,
|
|
7964
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
7951
7965
|
};
|
|
7952
7966
|
|
|
7953
7967
|
|
|
7954
7968
|
/**
|
|
7955
|
-
* optional int64 offerRulesetId =
|
|
7969
|
+
* optional int64 offerRulesetId = 17;
|
|
7956
7970
|
* @return {number}
|
|
7957
7971
|
*/
|
|
7958
7972
|
proto.sniipappappconfigapi.Offer.prototype.getOfferrulesetid = function() {
|
|
7959
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
7973
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
7960
7974
|
};
|
|
7961
7975
|
|
|
7962
7976
|
|
|
@@ -7965,16 +7979,16 @@ proto.sniipappappconfigapi.Offer.prototype.getOfferrulesetid = function() {
|
|
|
7965
7979
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7966
7980
|
*/
|
|
7967
7981
|
proto.sniipappappconfigapi.Offer.prototype.setOfferrulesetid = function(value) {
|
|
7968
|
-
return jspb.Message.setProto3IntField(this,
|
|
7982
|
+
return jspb.Message.setProto3IntField(this, 17, value);
|
|
7969
7983
|
};
|
|
7970
7984
|
|
|
7971
7985
|
|
|
7972
7986
|
/**
|
|
7973
|
-
* optional string offerRulesetName =
|
|
7987
|
+
* optional string offerRulesetName = 18;
|
|
7974
7988
|
* @return {string}
|
|
7975
7989
|
*/
|
|
7976
7990
|
proto.sniipappappconfigapi.Offer.prototype.getOfferrulesetname = function() {
|
|
7977
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
7991
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
7978
7992
|
};
|
|
7979
7993
|
|
|
7980
7994
|
|
|
@@ -7983,7 +7997,7 @@ proto.sniipappappconfigapi.Offer.prototype.getOfferrulesetname = function() {
|
|
|
7983
7997
|
* @return {!proto.sniipappappconfigapi.Offer} returns this
|
|
7984
7998
|
*/
|
|
7985
7999
|
proto.sniipappappconfigapi.Offer.prototype.setOfferrulesetname = function(value) {
|
|
7986
|
-
return jspb.Message.setProto3StringField(this,
|
|
8000
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
7987
8001
|
};
|
|
7988
8002
|
|
|
7989
8003
|
|
|
@@ -8030,9 +8044,8 @@ proto.sniipappappconfigapi.OfferCreateRequest.toObject = function(includeInstanc
|
|
|
8030
8044
|
offerslistheading: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
8031
8045
|
isenabled: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
8032
8046
|
offerwidgetheadingtext: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
offerrulesetid: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
8047
|
+
orderby: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
8048
|
+
offerrulesetid: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
8036
8049
|
};
|
|
8037
8050
|
|
|
8038
8051
|
if (includeInstance) {
|
|
@@ -8114,14 +8127,10 @@ proto.sniipappappconfigapi.OfferCreateRequest.deserializeBinaryFromReader = func
|
|
|
8114
8127
|
msg.setOfferwidgetheadingtext(value);
|
|
8115
8128
|
break;
|
|
8116
8129
|
case 12:
|
|
8117
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
8118
|
-
msg.setOfferscontent(value);
|
|
8119
|
-
break;
|
|
8120
|
-
case 13:
|
|
8121
8130
|
var value = /** @type {number} */ (reader.readInt32());
|
|
8122
8131
|
msg.setOrderby(value);
|
|
8123
8132
|
break;
|
|
8124
|
-
case
|
|
8133
|
+
case 13:
|
|
8125
8134
|
var value = /** @type {number} */ (reader.readInt64());
|
|
8126
8135
|
msg.setOfferrulesetid(value);
|
|
8127
8136
|
break;
|
|
@@ -8231,24 +8240,17 @@ proto.sniipappappconfigapi.OfferCreateRequest.serializeBinaryToWriter = function
|
|
|
8231
8240
|
f
|
|
8232
8241
|
);
|
|
8233
8242
|
}
|
|
8234
|
-
f = message.getOfferscontent();
|
|
8235
|
-
if (f !== 0) {
|
|
8236
|
-
writer.writeInt32(
|
|
8237
|
-
12,
|
|
8238
|
-
f
|
|
8239
|
-
);
|
|
8240
|
-
}
|
|
8241
8243
|
f = message.getOrderby();
|
|
8242
8244
|
if (f !== 0) {
|
|
8243
8245
|
writer.writeInt32(
|
|
8244
|
-
|
|
8246
|
+
12,
|
|
8245
8247
|
f
|
|
8246
8248
|
);
|
|
8247
8249
|
}
|
|
8248
8250
|
f = message.getOfferrulesetid();
|
|
8249
8251
|
if (f !== 0) {
|
|
8250
8252
|
writer.writeInt64(
|
|
8251
|
-
|
|
8253
|
+
13,
|
|
8252
8254
|
f
|
|
8253
8255
|
);
|
|
8254
8256
|
}
|
|
@@ -8454,29 +8456,11 @@ proto.sniipappappconfigapi.OfferCreateRequest.prototype.setOfferwidgetheadingtex
|
|
|
8454
8456
|
|
|
8455
8457
|
|
|
8456
8458
|
/**
|
|
8457
|
-
* optional int32
|
|
8458
|
-
* @return {number}
|
|
8459
|
-
*/
|
|
8460
|
-
proto.sniipappappconfigapi.OfferCreateRequest.prototype.getOfferscontent = function() {
|
|
8461
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
8462
|
-
};
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
/**
|
|
8466
|
-
* @param {number} value
|
|
8467
|
-
* @return {!proto.sniipappappconfigapi.OfferCreateRequest} returns this
|
|
8468
|
-
*/
|
|
8469
|
-
proto.sniipappappconfigapi.OfferCreateRequest.prototype.setOfferscontent = function(value) {
|
|
8470
|
-
return jspb.Message.setProto3IntField(this, 12, value);
|
|
8471
|
-
};
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
/**
|
|
8475
|
-
* optional int32 orderBy = 13;
|
|
8459
|
+
* optional int32 orderBy = 12;
|
|
8476
8460
|
* @return {number}
|
|
8477
8461
|
*/
|
|
8478
8462
|
proto.sniipappappconfigapi.OfferCreateRequest.prototype.getOrderby = function() {
|
|
8479
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
8463
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
8480
8464
|
};
|
|
8481
8465
|
|
|
8482
8466
|
|
|
@@ -8485,16 +8469,16 @@ proto.sniipappappconfigapi.OfferCreateRequest.prototype.getOrderby = function()
|
|
|
8485
8469
|
* @return {!proto.sniipappappconfigapi.OfferCreateRequest} returns this
|
|
8486
8470
|
*/
|
|
8487
8471
|
proto.sniipappappconfigapi.OfferCreateRequest.prototype.setOrderby = function(value) {
|
|
8488
|
-
return jspb.Message.setProto3IntField(this,
|
|
8472
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
8489
8473
|
};
|
|
8490
8474
|
|
|
8491
8475
|
|
|
8492
8476
|
/**
|
|
8493
|
-
* optional int64 offerRulesetId =
|
|
8477
|
+
* optional int64 offerRulesetId = 13;
|
|
8494
8478
|
* @return {number}
|
|
8495
8479
|
*/
|
|
8496
8480
|
proto.sniipappappconfigapi.OfferCreateRequest.prototype.getOfferrulesetid = function() {
|
|
8497
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
8481
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
8498
8482
|
};
|
|
8499
8483
|
|
|
8500
8484
|
|
|
@@ -8503,7 +8487,7 @@ proto.sniipappappconfigapi.OfferCreateRequest.prototype.getOfferrulesetid = func
|
|
|
8503
8487
|
* @return {!proto.sniipappappconfigapi.OfferCreateRequest} returns this
|
|
8504
8488
|
*/
|
|
8505
8489
|
proto.sniipappappconfigapi.OfferCreateRequest.prototype.setOfferrulesetid = function(value) {
|
|
8506
|
-
return jspb.Message.setProto3IntField(this,
|
|
8490
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
8507
8491
|
};
|
|
8508
8492
|
|
|
8509
8493
|
|
|
@@ -8702,9 +8686,8 @@ proto.sniipappappconfigapi.OfferUpdateRequest.toObject = function(includeInstanc
|
|
|
8702
8686
|
offerslistheading: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
8703
8687
|
isenabled: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
8704
8688
|
offerwidgetheadingtext: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
offerrulesetid: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
8689
|
+
orderby: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
8690
|
+
offerrulesetid: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
8708
8691
|
};
|
|
8709
8692
|
|
|
8710
8693
|
if (includeInstance) {
|
|
@@ -8790,14 +8773,10 @@ proto.sniipappappconfigapi.OfferUpdateRequest.deserializeBinaryFromReader = func
|
|
|
8790
8773
|
msg.setOfferwidgetheadingtext(value);
|
|
8791
8774
|
break;
|
|
8792
8775
|
case 13:
|
|
8793
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
8794
|
-
msg.setOfferscontent(value);
|
|
8795
|
-
break;
|
|
8796
|
-
case 14:
|
|
8797
8776
|
var value = /** @type {number} */ (reader.readInt32());
|
|
8798
8777
|
msg.setOrderby(value);
|
|
8799
8778
|
break;
|
|
8800
|
-
case
|
|
8779
|
+
case 14:
|
|
8801
8780
|
var value = /** @type {number} */ (reader.readInt64());
|
|
8802
8781
|
msg.setOfferrulesetid(value);
|
|
8803
8782
|
break;
|
|
@@ -8914,24 +8893,17 @@ proto.sniipappappconfigapi.OfferUpdateRequest.serializeBinaryToWriter = function
|
|
|
8914
8893
|
f
|
|
8915
8894
|
);
|
|
8916
8895
|
}
|
|
8917
|
-
f = message.getOfferscontent();
|
|
8918
|
-
if (f !== 0) {
|
|
8919
|
-
writer.writeInt32(
|
|
8920
|
-
13,
|
|
8921
|
-
f
|
|
8922
|
-
);
|
|
8923
|
-
}
|
|
8924
8896
|
f = message.getOrderby();
|
|
8925
8897
|
if (f !== 0) {
|
|
8926
8898
|
writer.writeInt32(
|
|
8927
|
-
|
|
8899
|
+
13,
|
|
8928
8900
|
f
|
|
8929
8901
|
);
|
|
8930
8902
|
}
|
|
8931
8903
|
f = message.getOfferrulesetid();
|
|
8932
8904
|
if (f !== 0) {
|
|
8933
8905
|
writer.writeInt64(
|
|
8934
|
-
|
|
8906
|
+
14,
|
|
8935
8907
|
f
|
|
8936
8908
|
);
|
|
8937
8909
|
}
|
|
@@ -9155,29 +9127,11 @@ proto.sniipappappconfigapi.OfferUpdateRequest.prototype.setOfferwidgetheadingtex
|
|
|
9155
9127
|
|
|
9156
9128
|
|
|
9157
9129
|
/**
|
|
9158
|
-
* optional int32
|
|
9159
|
-
* @return {number}
|
|
9160
|
-
*/
|
|
9161
|
-
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.getOfferscontent = function() {
|
|
9162
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
9163
|
-
};
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
/**
|
|
9167
|
-
* @param {number} value
|
|
9168
|
-
* @return {!proto.sniipappappconfigapi.OfferUpdateRequest} returns this
|
|
9169
|
-
*/
|
|
9170
|
-
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.setOfferscontent = function(value) {
|
|
9171
|
-
return jspb.Message.setProto3IntField(this, 13, value);
|
|
9172
|
-
};
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
/**
|
|
9176
|
-
* optional int32 orderBy = 14;
|
|
9130
|
+
* optional int32 orderBy = 13;
|
|
9177
9131
|
* @return {number}
|
|
9178
9132
|
*/
|
|
9179
9133
|
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.getOrderby = function() {
|
|
9180
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
9134
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
9181
9135
|
};
|
|
9182
9136
|
|
|
9183
9137
|
|
|
@@ -9186,16 +9140,16 @@ proto.sniipappappconfigapi.OfferUpdateRequest.prototype.getOrderby = function()
|
|
|
9186
9140
|
* @return {!proto.sniipappappconfigapi.OfferUpdateRequest} returns this
|
|
9187
9141
|
*/
|
|
9188
9142
|
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.setOrderby = function(value) {
|
|
9189
|
-
return jspb.Message.setProto3IntField(this,
|
|
9143
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
9190
9144
|
};
|
|
9191
9145
|
|
|
9192
9146
|
|
|
9193
9147
|
/**
|
|
9194
|
-
* optional int64 offerRulesetId =
|
|
9148
|
+
* optional int64 offerRulesetId = 14;
|
|
9195
9149
|
* @return {number}
|
|
9196
9150
|
*/
|
|
9197
9151
|
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.getOfferrulesetid = function() {
|
|
9198
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
9152
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
9199
9153
|
};
|
|
9200
9154
|
|
|
9201
9155
|
|
|
@@ -9204,7 +9158,7 @@ proto.sniipappappconfigapi.OfferUpdateRequest.prototype.getOfferrulesetid = func
|
|
|
9204
9158
|
* @return {!proto.sniipappappconfigapi.OfferUpdateRequest} returns this
|
|
9205
9159
|
*/
|
|
9206
9160
|
proto.sniipappappconfigapi.OfferUpdateRequest.prototype.setOfferrulesetid = function(value) {
|
|
9207
|
-
return jspb.Message.setProto3IntField(this,
|
|
9161
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
9208
9162
|
};
|
|
9209
9163
|
|
|
9210
9164
|
|
|
@@ -12611,6 +12565,401 @@ proto.sniipappappconfigapi.ListOfferRulesetsResponse.prototype.setTotalsize = fu
|
|
|
12611
12565
|
};
|
|
12612
12566
|
|
|
12613
12567
|
|
|
12568
|
+
|
|
12569
|
+
|
|
12570
|
+
|
|
12571
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12572
|
+
/**
|
|
12573
|
+
* Creates an object representation of this proto.
|
|
12574
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12575
|
+
* Optional fields that are not set will be set to undefined.
|
|
12576
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12577
|
+
* For the list of reserved names please see:
|
|
12578
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12579
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12580
|
+
* JSPB instance for transitional soy proto support:
|
|
12581
|
+
* http://goto/soy-param-migration
|
|
12582
|
+
* @return {!Object}
|
|
12583
|
+
*/
|
|
12584
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.toObject = function(opt_includeInstance) {
|
|
12585
|
+
return proto.sniipappappconfigapi.UploadOfferImageRequest.toObject(opt_includeInstance, this);
|
|
12586
|
+
};
|
|
12587
|
+
|
|
12588
|
+
|
|
12589
|
+
/**
|
|
12590
|
+
* Static version of the {@see toObject} method.
|
|
12591
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12592
|
+
* the JSPB instance for transitional soy proto support:
|
|
12593
|
+
* http://goto/soy-param-migration
|
|
12594
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageRequest} msg The msg instance to transform.
|
|
12595
|
+
* @return {!Object}
|
|
12596
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12597
|
+
*/
|
|
12598
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.toObject = function(includeInstance, msg) {
|
|
12599
|
+
var f, obj = {
|
|
12600
|
+
filename: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
12601
|
+
contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12602
|
+
filedata: msg.getFiledata_asB64()
|
|
12603
|
+
};
|
|
12604
|
+
|
|
12605
|
+
if (includeInstance) {
|
|
12606
|
+
obj.$jspbMessageInstance = msg;
|
|
12607
|
+
}
|
|
12608
|
+
return obj;
|
|
12609
|
+
};
|
|
12610
|
+
}
|
|
12611
|
+
|
|
12612
|
+
|
|
12613
|
+
/**
|
|
12614
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12615
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12616
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageRequest}
|
|
12617
|
+
*/
|
|
12618
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.deserializeBinary = function(bytes) {
|
|
12619
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12620
|
+
var msg = new proto.sniipappappconfigapi.UploadOfferImageRequest;
|
|
12621
|
+
return proto.sniipappappconfigapi.UploadOfferImageRequest.deserializeBinaryFromReader(msg, reader);
|
|
12622
|
+
};
|
|
12623
|
+
|
|
12624
|
+
|
|
12625
|
+
/**
|
|
12626
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12627
|
+
* given reader into the given message object.
|
|
12628
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageRequest} msg The message object to deserialize into.
|
|
12629
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12630
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageRequest}
|
|
12631
|
+
*/
|
|
12632
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12633
|
+
while (reader.nextField()) {
|
|
12634
|
+
if (reader.isEndGroup()) {
|
|
12635
|
+
break;
|
|
12636
|
+
}
|
|
12637
|
+
var field = reader.getFieldNumber();
|
|
12638
|
+
switch (field) {
|
|
12639
|
+
case 1:
|
|
12640
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12641
|
+
msg.setFilename(value);
|
|
12642
|
+
break;
|
|
12643
|
+
case 2:
|
|
12644
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12645
|
+
msg.setContenttype(value);
|
|
12646
|
+
break;
|
|
12647
|
+
case 3:
|
|
12648
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
12649
|
+
msg.setFiledata(value);
|
|
12650
|
+
break;
|
|
12651
|
+
default:
|
|
12652
|
+
reader.skipField();
|
|
12653
|
+
break;
|
|
12654
|
+
}
|
|
12655
|
+
}
|
|
12656
|
+
return msg;
|
|
12657
|
+
};
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
/**
|
|
12661
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12662
|
+
* @return {!Uint8Array}
|
|
12663
|
+
*/
|
|
12664
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.serializeBinary = function() {
|
|
12665
|
+
var writer = new jspb.BinaryWriter();
|
|
12666
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.serializeBinaryToWriter(this, writer);
|
|
12667
|
+
return writer.getResultBuffer();
|
|
12668
|
+
};
|
|
12669
|
+
|
|
12670
|
+
|
|
12671
|
+
/**
|
|
12672
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12673
|
+
* format), writing to the given BinaryWriter.
|
|
12674
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageRequest} message
|
|
12675
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12676
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12677
|
+
*/
|
|
12678
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12679
|
+
var f = undefined;
|
|
12680
|
+
f = message.getFilename();
|
|
12681
|
+
if (f.length > 0) {
|
|
12682
|
+
writer.writeString(
|
|
12683
|
+
1,
|
|
12684
|
+
f
|
|
12685
|
+
);
|
|
12686
|
+
}
|
|
12687
|
+
f = message.getContenttype();
|
|
12688
|
+
if (f.length > 0) {
|
|
12689
|
+
writer.writeString(
|
|
12690
|
+
2,
|
|
12691
|
+
f
|
|
12692
|
+
);
|
|
12693
|
+
}
|
|
12694
|
+
f = message.getFiledata_asU8();
|
|
12695
|
+
if (f.length > 0) {
|
|
12696
|
+
writer.writeBytes(
|
|
12697
|
+
3,
|
|
12698
|
+
f
|
|
12699
|
+
);
|
|
12700
|
+
}
|
|
12701
|
+
};
|
|
12702
|
+
|
|
12703
|
+
|
|
12704
|
+
/**
|
|
12705
|
+
* optional string fileName = 1;
|
|
12706
|
+
* @return {string}
|
|
12707
|
+
*/
|
|
12708
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.getFilename = function() {
|
|
12709
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
12710
|
+
};
|
|
12711
|
+
|
|
12712
|
+
|
|
12713
|
+
/**
|
|
12714
|
+
* @param {string} value
|
|
12715
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageRequest} returns this
|
|
12716
|
+
*/
|
|
12717
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.setFilename = function(value) {
|
|
12718
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
12719
|
+
};
|
|
12720
|
+
|
|
12721
|
+
|
|
12722
|
+
/**
|
|
12723
|
+
* optional string contentType = 2;
|
|
12724
|
+
* @return {string}
|
|
12725
|
+
*/
|
|
12726
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.getContenttype = function() {
|
|
12727
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12728
|
+
};
|
|
12729
|
+
|
|
12730
|
+
|
|
12731
|
+
/**
|
|
12732
|
+
* @param {string} value
|
|
12733
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageRequest} returns this
|
|
12734
|
+
*/
|
|
12735
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.setContenttype = function(value) {
|
|
12736
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12737
|
+
};
|
|
12738
|
+
|
|
12739
|
+
|
|
12740
|
+
/**
|
|
12741
|
+
* optional bytes fileData = 3;
|
|
12742
|
+
* @return {!(string|Uint8Array)}
|
|
12743
|
+
*/
|
|
12744
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.getFiledata = function() {
|
|
12745
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12746
|
+
};
|
|
12747
|
+
|
|
12748
|
+
|
|
12749
|
+
/**
|
|
12750
|
+
* optional bytes fileData = 3;
|
|
12751
|
+
* This is a type-conversion wrapper around `getFiledata()`
|
|
12752
|
+
* @return {string}
|
|
12753
|
+
*/
|
|
12754
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.getFiledata_asB64 = function() {
|
|
12755
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
12756
|
+
this.getFiledata()));
|
|
12757
|
+
};
|
|
12758
|
+
|
|
12759
|
+
|
|
12760
|
+
/**
|
|
12761
|
+
* optional bytes fileData = 3;
|
|
12762
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
12763
|
+
* @see http://caniuse.com/Uint8Array
|
|
12764
|
+
* This is a type-conversion wrapper around `getFiledata()`
|
|
12765
|
+
* @return {!Uint8Array}
|
|
12766
|
+
*/
|
|
12767
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.getFiledata_asU8 = function() {
|
|
12768
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
12769
|
+
this.getFiledata()));
|
|
12770
|
+
};
|
|
12771
|
+
|
|
12772
|
+
|
|
12773
|
+
/**
|
|
12774
|
+
* @param {!(string|Uint8Array)} value
|
|
12775
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageRequest} returns this
|
|
12776
|
+
*/
|
|
12777
|
+
proto.sniipappappconfigapi.UploadOfferImageRequest.prototype.setFiledata = function(value) {
|
|
12778
|
+
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
12779
|
+
};
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
|
|
12783
|
+
|
|
12784
|
+
|
|
12785
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12786
|
+
/**
|
|
12787
|
+
* Creates an object representation of this proto.
|
|
12788
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12789
|
+
* Optional fields that are not set will be set to undefined.
|
|
12790
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12791
|
+
* For the list of reserved names please see:
|
|
12792
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12793
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12794
|
+
* JSPB instance for transitional soy proto support:
|
|
12795
|
+
* http://goto/soy-param-migration
|
|
12796
|
+
* @return {!Object}
|
|
12797
|
+
*/
|
|
12798
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.toObject = function(opt_includeInstance) {
|
|
12799
|
+
return proto.sniipappappconfigapi.UploadOfferImageResponse.toObject(opt_includeInstance, this);
|
|
12800
|
+
};
|
|
12801
|
+
|
|
12802
|
+
|
|
12803
|
+
/**
|
|
12804
|
+
* Static version of the {@see toObject} method.
|
|
12805
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12806
|
+
* the JSPB instance for transitional soy proto support:
|
|
12807
|
+
* http://goto/soy-param-migration
|
|
12808
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageResponse} msg The msg instance to transform.
|
|
12809
|
+
* @return {!Object}
|
|
12810
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12811
|
+
*/
|
|
12812
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.toObject = function(includeInstance, msg) {
|
|
12813
|
+
var f, obj = {
|
|
12814
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipappappconfigapi.ResponseCode.toObject(includeInstance, f),
|
|
12815
|
+
url: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
12816
|
+
};
|
|
12817
|
+
|
|
12818
|
+
if (includeInstance) {
|
|
12819
|
+
obj.$jspbMessageInstance = msg;
|
|
12820
|
+
}
|
|
12821
|
+
return obj;
|
|
12822
|
+
};
|
|
12823
|
+
}
|
|
12824
|
+
|
|
12825
|
+
|
|
12826
|
+
/**
|
|
12827
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12828
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12829
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageResponse}
|
|
12830
|
+
*/
|
|
12831
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.deserializeBinary = function(bytes) {
|
|
12832
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12833
|
+
var msg = new proto.sniipappappconfigapi.UploadOfferImageResponse;
|
|
12834
|
+
return proto.sniipappappconfigapi.UploadOfferImageResponse.deserializeBinaryFromReader(msg, reader);
|
|
12835
|
+
};
|
|
12836
|
+
|
|
12837
|
+
|
|
12838
|
+
/**
|
|
12839
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12840
|
+
* given reader into the given message object.
|
|
12841
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageResponse} msg The message object to deserialize into.
|
|
12842
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12843
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageResponse}
|
|
12844
|
+
*/
|
|
12845
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
12846
|
+
while (reader.nextField()) {
|
|
12847
|
+
if (reader.isEndGroup()) {
|
|
12848
|
+
break;
|
|
12849
|
+
}
|
|
12850
|
+
var field = reader.getFieldNumber();
|
|
12851
|
+
switch (field) {
|
|
12852
|
+
case 1:
|
|
12853
|
+
var value = new proto.sniipappappconfigapi.ResponseCode;
|
|
12854
|
+
reader.readMessage(value,proto.sniipappappconfigapi.ResponseCode.deserializeBinaryFromReader);
|
|
12855
|
+
msg.setResponsecode(value);
|
|
12856
|
+
break;
|
|
12857
|
+
case 2:
|
|
12858
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12859
|
+
msg.setUrl(value);
|
|
12860
|
+
break;
|
|
12861
|
+
default:
|
|
12862
|
+
reader.skipField();
|
|
12863
|
+
break;
|
|
12864
|
+
}
|
|
12865
|
+
}
|
|
12866
|
+
return msg;
|
|
12867
|
+
};
|
|
12868
|
+
|
|
12869
|
+
|
|
12870
|
+
/**
|
|
12871
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12872
|
+
* @return {!Uint8Array}
|
|
12873
|
+
*/
|
|
12874
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.serializeBinary = function() {
|
|
12875
|
+
var writer = new jspb.BinaryWriter();
|
|
12876
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.serializeBinaryToWriter(this, writer);
|
|
12877
|
+
return writer.getResultBuffer();
|
|
12878
|
+
};
|
|
12879
|
+
|
|
12880
|
+
|
|
12881
|
+
/**
|
|
12882
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12883
|
+
* format), writing to the given BinaryWriter.
|
|
12884
|
+
* @param {!proto.sniipappappconfigapi.UploadOfferImageResponse} message
|
|
12885
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12886
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12887
|
+
*/
|
|
12888
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.serializeBinaryToWriter = function(message, writer) {
|
|
12889
|
+
var f = undefined;
|
|
12890
|
+
f = message.getResponsecode();
|
|
12891
|
+
if (f != null) {
|
|
12892
|
+
writer.writeMessage(
|
|
12893
|
+
1,
|
|
12894
|
+
f,
|
|
12895
|
+
proto.sniipappappconfigapi.ResponseCode.serializeBinaryToWriter
|
|
12896
|
+
);
|
|
12897
|
+
}
|
|
12898
|
+
f = message.getUrl();
|
|
12899
|
+
if (f.length > 0) {
|
|
12900
|
+
writer.writeString(
|
|
12901
|
+
2,
|
|
12902
|
+
f
|
|
12903
|
+
);
|
|
12904
|
+
}
|
|
12905
|
+
};
|
|
12906
|
+
|
|
12907
|
+
|
|
12908
|
+
/**
|
|
12909
|
+
* optional ResponseCode responseCode = 1;
|
|
12910
|
+
* @return {?proto.sniipappappconfigapi.ResponseCode}
|
|
12911
|
+
*/
|
|
12912
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.getResponsecode = function() {
|
|
12913
|
+
return /** @type{?proto.sniipappappconfigapi.ResponseCode} */ (
|
|
12914
|
+
jspb.Message.getWrapperField(this, proto.sniipappappconfigapi.ResponseCode, 1));
|
|
12915
|
+
};
|
|
12916
|
+
|
|
12917
|
+
|
|
12918
|
+
/**
|
|
12919
|
+
* @param {?proto.sniipappappconfigapi.ResponseCode|undefined} value
|
|
12920
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageResponse} returns this
|
|
12921
|
+
*/
|
|
12922
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.setResponsecode = function(value) {
|
|
12923
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12924
|
+
};
|
|
12925
|
+
|
|
12926
|
+
|
|
12927
|
+
/**
|
|
12928
|
+
* Clears the message field making it undefined.
|
|
12929
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageResponse} returns this
|
|
12930
|
+
*/
|
|
12931
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.clearResponsecode = function() {
|
|
12932
|
+
return this.setResponsecode(undefined);
|
|
12933
|
+
};
|
|
12934
|
+
|
|
12935
|
+
|
|
12936
|
+
/**
|
|
12937
|
+
* Returns whether this field is set.
|
|
12938
|
+
* @return {boolean}
|
|
12939
|
+
*/
|
|
12940
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.hasResponsecode = function() {
|
|
12941
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12942
|
+
};
|
|
12943
|
+
|
|
12944
|
+
|
|
12945
|
+
/**
|
|
12946
|
+
* optional string url = 2;
|
|
12947
|
+
* @return {string}
|
|
12948
|
+
*/
|
|
12949
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.getUrl = function() {
|
|
12950
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12951
|
+
};
|
|
12952
|
+
|
|
12953
|
+
|
|
12954
|
+
/**
|
|
12955
|
+
* @param {string} value
|
|
12956
|
+
* @return {!proto.sniipappappconfigapi.UploadOfferImageResponse} returns this
|
|
12957
|
+
*/
|
|
12958
|
+
proto.sniipappappconfigapi.UploadOfferImageResponse.prototype.setUrl = function(value) {
|
|
12959
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12960
|
+
};
|
|
12961
|
+
|
|
12962
|
+
|
|
12614
12963
|
/**
|
|
12615
12964
|
* @enum {number}
|
|
12616
12965
|
*/
|