@sniipwebmaster/bill-service-client-grpcweb 22.9.8650 → 22.10.8678
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.
|
@@ -2154,6 +2154,86 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getUserBillConfig
|
|
|
2154
2154
|
};
|
|
2155
2155
|
|
|
2156
2156
|
|
|
2157
|
+
/**
|
|
2158
|
+
* @const
|
|
2159
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
2160
|
+
* !proto.sniipbillapi.GetUserBillsRequest,
|
|
2161
|
+
* !proto.sniipbillapi.UserBillList>}
|
|
2162
|
+
*/
|
|
2163
|
+
const methodDescriptor_SniipBillAPIService_GetUserBills = new grpc.web.MethodDescriptor(
|
|
2164
|
+
'/sniipbillapi.SniipBillAPIService/GetUserBills',
|
|
2165
|
+
grpc.web.MethodType.UNARY,
|
|
2166
|
+
proto.sniipbillapi.GetUserBillsRequest,
|
|
2167
|
+
proto.sniipbillapi.UserBillList,
|
|
2168
|
+
/**
|
|
2169
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} request
|
|
2170
|
+
* @return {!Uint8Array}
|
|
2171
|
+
*/
|
|
2172
|
+
function(request) {
|
|
2173
|
+
return request.serializeBinary();
|
|
2174
|
+
},
|
|
2175
|
+
proto.sniipbillapi.UserBillList.deserializeBinary
|
|
2176
|
+
);
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* @const
|
|
2181
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
2182
|
+
* !proto.sniipbillapi.GetUserBillsRequest,
|
|
2183
|
+
* !proto.sniipbillapi.UserBillList>}
|
|
2184
|
+
*/
|
|
2185
|
+
const methodInfo_SniipBillAPIService_GetUserBills = new grpc.web.AbstractClientBase.MethodInfo(
|
|
2186
|
+
proto.sniipbillapi.UserBillList,
|
|
2187
|
+
/**
|
|
2188
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} request
|
|
2189
|
+
* @return {!Uint8Array}
|
|
2190
|
+
*/
|
|
2191
|
+
function(request) {
|
|
2192
|
+
return request.serializeBinary();
|
|
2193
|
+
},
|
|
2194
|
+
proto.sniipbillapi.UserBillList.deserializeBinary
|
|
2195
|
+
);
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} request The
|
|
2200
|
+
* request proto
|
|
2201
|
+
* @param {?Object<string, string>} metadata User defined
|
|
2202
|
+
* call metadata
|
|
2203
|
+
* @param {function(?grpc.web.Error, ?proto.sniipbillapi.UserBillList)}
|
|
2204
|
+
* callback The callback function(error, response)
|
|
2205
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.UserBillList>|undefined}
|
|
2206
|
+
* The XHR Node Readable Stream
|
|
2207
|
+
*/
|
|
2208
|
+
proto.sniipbillapi.SniipBillAPIServiceClient.prototype.getUserBills =
|
|
2209
|
+
function(request, metadata, callback) {
|
|
2210
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
2211
|
+
'/sniipbillapi.SniipBillAPIService/GetUserBills',
|
|
2212
|
+
request,
|
|
2213
|
+
metadata || {},
|
|
2214
|
+
methodDescriptor_SniipBillAPIService_GetUserBills,
|
|
2215
|
+
callback);
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} request The
|
|
2221
|
+
* request proto
|
|
2222
|
+
* @param {?Object<string, string>} metadata User defined
|
|
2223
|
+
* call metadata
|
|
2224
|
+
* @return {!Promise<!proto.sniipbillapi.UserBillList>}
|
|
2225
|
+
* Promise that resolves to the response
|
|
2226
|
+
*/
|
|
2227
|
+
proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getUserBills =
|
|
2228
|
+
function(request, metadata) {
|
|
2229
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
2230
|
+
'/sniipbillapi.SniipBillAPIService/GetUserBills',
|
|
2231
|
+
request,
|
|
2232
|
+
metadata || {},
|
|
2233
|
+
methodDescriptor_SniipBillAPIService_GetUserBills);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
|
|
2157
2237
|
/**
|
|
2158
2238
|
* @const
|
|
2159
2239
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -72,6 +72,7 @@ goog.exportSymbol('proto.sniipbillapi.GetToDoListRequest', null, global);
|
|
|
72
72
|
goog.exportSymbol('proto.sniipbillapi.GetTodoRequest', null, global);
|
|
73
73
|
goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsRequest', null, global);
|
|
74
74
|
goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsResponse', null, global);
|
|
75
|
+
goog.exportSymbol('proto.sniipbillapi.GetUserBillsRequest', null, global);
|
|
75
76
|
goog.exportSymbol('proto.sniipbillapi.GetUsersForBillerResponse', null, global);
|
|
76
77
|
goog.exportSymbol('proto.sniipbillapi.Invoice', null, global);
|
|
77
78
|
goog.exportSymbol('proto.sniipbillapi.InvoiceBillPair', null, global);
|
|
@@ -114,6 +115,8 @@ goog.exportSymbol('proto.sniipbillapi.UpdateDueDateRequest', null, global);
|
|
|
114
115
|
goog.exportSymbol('proto.sniipbillapi.UpdateUserBillConfigRequest', null, global);
|
|
115
116
|
goog.exportSymbol('proto.sniipbillapi.UserBillConfig', null, global);
|
|
116
117
|
goog.exportSymbol('proto.sniipbillapi.UserBillConfigResponse', null, global);
|
|
118
|
+
goog.exportSymbol('proto.sniipbillapi.UserBillList', null, global);
|
|
119
|
+
goog.exportSymbol('proto.sniipbillapi.UserBillList.DataMessage', null, global);
|
|
117
120
|
goog.exportSymbol('proto.sniipbillapi.UsersForBillerRequest', null, global);
|
|
118
121
|
goog.exportSymbol('proto.sniipbillapi.ValidateBillOwnerRequest', null, global);
|
|
119
122
|
goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceRequest', null, global);
|
|
@@ -16254,6 +16257,219 @@ proto.sniipbillapi.GetUnpaidMbillsResponse.prototype.clearUnpaidmbillsList = fun
|
|
|
16254
16257
|
|
|
16255
16258
|
|
|
16256
16259
|
|
|
16260
|
+
/**
|
|
16261
|
+
* Generated by JsPbCodeGenerator.
|
|
16262
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
16263
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
16264
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
16265
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
16266
|
+
* valid.
|
|
16267
|
+
* @extends {jspb.Message}
|
|
16268
|
+
* @constructor
|
|
16269
|
+
*/
|
|
16270
|
+
proto.sniipbillapi.GetUserBillsRequest = function(opt_data) {
|
|
16271
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
16272
|
+
};
|
|
16273
|
+
goog.inherits(proto.sniipbillapi.GetUserBillsRequest, jspb.Message);
|
|
16274
|
+
if (goog.DEBUG && !COMPILED) {
|
|
16275
|
+
proto.sniipbillapi.GetUserBillsRequest.displayName = 'proto.sniipbillapi.GetUserBillsRequest';
|
|
16276
|
+
}
|
|
16277
|
+
|
|
16278
|
+
|
|
16279
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16280
|
+
/**
|
|
16281
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
16282
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16283
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16284
|
+
* For the list of reserved names please see:
|
|
16285
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
16286
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
16287
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
16288
|
+
* @return {!Object}
|
|
16289
|
+
*/
|
|
16290
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
16291
|
+
return proto.sniipbillapi.GetUserBillsRequest.toObject(opt_includeInstance, this);
|
|
16292
|
+
};
|
|
16293
|
+
|
|
16294
|
+
|
|
16295
|
+
/**
|
|
16296
|
+
* Static version of the {@see toObject} method.
|
|
16297
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
16298
|
+
* instance for transitional soy proto support:
|
|
16299
|
+
* http://goto/soy-param-migration
|
|
16300
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} msg The msg instance to transform.
|
|
16301
|
+
* @return {!Object}
|
|
16302
|
+
*/
|
|
16303
|
+
proto.sniipbillapi.GetUserBillsRequest.toObject = function(includeInstance, msg) {
|
|
16304
|
+
var f, obj = {
|
|
16305
|
+
page: msg.getPage(),
|
|
16306
|
+
limit: msg.getLimit(),
|
|
16307
|
+
userid: msg.getUserid()
|
|
16308
|
+
};
|
|
16309
|
+
|
|
16310
|
+
if (includeInstance) {
|
|
16311
|
+
obj.$jspbMessageInstance = msg;
|
|
16312
|
+
}
|
|
16313
|
+
return obj;
|
|
16314
|
+
};
|
|
16315
|
+
}
|
|
16316
|
+
|
|
16317
|
+
|
|
16318
|
+
/**
|
|
16319
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16320
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16321
|
+
* @return {!proto.sniipbillapi.GetUserBillsRequest}
|
|
16322
|
+
*/
|
|
16323
|
+
proto.sniipbillapi.GetUserBillsRequest.deserializeBinary = function(bytes) {
|
|
16324
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16325
|
+
var msg = new proto.sniipbillapi.GetUserBillsRequest;
|
|
16326
|
+
return proto.sniipbillapi.GetUserBillsRequest.deserializeBinaryFromReader(msg, reader);
|
|
16327
|
+
};
|
|
16328
|
+
|
|
16329
|
+
|
|
16330
|
+
/**
|
|
16331
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16332
|
+
* given reader into the given message object.
|
|
16333
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} msg The message object to deserialize into.
|
|
16334
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16335
|
+
* @return {!proto.sniipbillapi.GetUserBillsRequest}
|
|
16336
|
+
*/
|
|
16337
|
+
proto.sniipbillapi.GetUserBillsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
16338
|
+
while (reader.nextField()) {
|
|
16339
|
+
if (reader.isEndGroup()) {
|
|
16340
|
+
break;
|
|
16341
|
+
}
|
|
16342
|
+
var field = reader.getFieldNumber();
|
|
16343
|
+
switch (field) {
|
|
16344
|
+
case 1:
|
|
16345
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
16346
|
+
msg.setPage(value);
|
|
16347
|
+
break;
|
|
16348
|
+
case 2:
|
|
16349
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
16350
|
+
msg.setLimit(value);
|
|
16351
|
+
break;
|
|
16352
|
+
case 3:
|
|
16353
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
16354
|
+
msg.setUserid(value);
|
|
16355
|
+
break;
|
|
16356
|
+
default:
|
|
16357
|
+
reader.skipField();
|
|
16358
|
+
break;
|
|
16359
|
+
}
|
|
16360
|
+
}
|
|
16361
|
+
return msg;
|
|
16362
|
+
};
|
|
16363
|
+
|
|
16364
|
+
|
|
16365
|
+
/**
|
|
16366
|
+
* Class method variant: serializes the given message to binary data
|
|
16367
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
16368
|
+
* @param {!proto.sniipbillapi.GetUserBillsRequest} message
|
|
16369
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16370
|
+
*/
|
|
16371
|
+
proto.sniipbillapi.GetUserBillsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
16372
|
+
message.serializeBinaryToWriter(writer);
|
|
16373
|
+
};
|
|
16374
|
+
|
|
16375
|
+
|
|
16376
|
+
/**
|
|
16377
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16378
|
+
* @return {!Uint8Array}
|
|
16379
|
+
*/
|
|
16380
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.serializeBinary = function() {
|
|
16381
|
+
var writer = new jspb.BinaryWriter();
|
|
16382
|
+
this.serializeBinaryToWriter(writer);
|
|
16383
|
+
return writer.getResultBuffer();
|
|
16384
|
+
};
|
|
16385
|
+
|
|
16386
|
+
|
|
16387
|
+
/**
|
|
16388
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
16389
|
+
* writing to the given BinaryWriter.
|
|
16390
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16391
|
+
*/
|
|
16392
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
16393
|
+
var f = undefined;
|
|
16394
|
+
f = this.getPage();
|
|
16395
|
+
if (f !== 0) {
|
|
16396
|
+
writer.writeInt32(
|
|
16397
|
+
1,
|
|
16398
|
+
f
|
|
16399
|
+
);
|
|
16400
|
+
}
|
|
16401
|
+
f = this.getLimit();
|
|
16402
|
+
if (f !== 0) {
|
|
16403
|
+
writer.writeInt32(
|
|
16404
|
+
2,
|
|
16405
|
+
f
|
|
16406
|
+
);
|
|
16407
|
+
}
|
|
16408
|
+
f = this.getUserid();
|
|
16409
|
+
if (f !== 0) {
|
|
16410
|
+
writer.writeInt64(
|
|
16411
|
+
3,
|
|
16412
|
+
f
|
|
16413
|
+
);
|
|
16414
|
+
}
|
|
16415
|
+
};
|
|
16416
|
+
|
|
16417
|
+
|
|
16418
|
+
/**
|
|
16419
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
16420
|
+
* @return {!proto.sniipbillapi.GetUserBillsRequest} The clone.
|
|
16421
|
+
*/
|
|
16422
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.cloneMessage = function() {
|
|
16423
|
+
return /** @type {!proto.sniipbillapi.GetUserBillsRequest} */ (jspb.Message.cloneMessage(this));
|
|
16424
|
+
};
|
|
16425
|
+
|
|
16426
|
+
|
|
16427
|
+
/**
|
|
16428
|
+
* optional int32 page = 1;
|
|
16429
|
+
* @return {number}
|
|
16430
|
+
*/
|
|
16431
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.getPage = function() {
|
|
16432
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
16433
|
+
};
|
|
16434
|
+
|
|
16435
|
+
|
|
16436
|
+
/** @param {number} value */
|
|
16437
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.setPage = function(value) {
|
|
16438
|
+
jspb.Message.setField(this, 1, value);
|
|
16439
|
+
};
|
|
16440
|
+
|
|
16441
|
+
|
|
16442
|
+
/**
|
|
16443
|
+
* optional int32 limit = 2;
|
|
16444
|
+
* @return {number}
|
|
16445
|
+
*/
|
|
16446
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.getLimit = function() {
|
|
16447
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
16448
|
+
};
|
|
16449
|
+
|
|
16450
|
+
|
|
16451
|
+
/** @param {number} value */
|
|
16452
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.setLimit = function(value) {
|
|
16453
|
+
jspb.Message.setField(this, 2, value);
|
|
16454
|
+
};
|
|
16455
|
+
|
|
16456
|
+
|
|
16457
|
+
/**
|
|
16458
|
+
* optional int64 userId = 3;
|
|
16459
|
+
* @return {number}
|
|
16460
|
+
*/
|
|
16461
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.getUserid = function() {
|
|
16462
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
16463
|
+
};
|
|
16464
|
+
|
|
16465
|
+
|
|
16466
|
+
/** @param {number} value */
|
|
16467
|
+
proto.sniipbillapi.GetUserBillsRequest.prototype.setUserid = function(value) {
|
|
16468
|
+
jspb.Message.setField(this, 3, value);
|
|
16469
|
+
};
|
|
16470
|
+
|
|
16471
|
+
|
|
16472
|
+
|
|
16257
16473
|
/**
|
|
16258
16474
|
* Generated by JsPbCodeGenerator.
|
|
16259
16475
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -27307,6 +27523,485 @@ proto.sniipbillapi.UserBillConfigResponse.prototype.hasUserbillconfig = function
|
|
|
27307
27523
|
|
|
27308
27524
|
|
|
27309
27525
|
|
|
27526
|
+
/**
|
|
27527
|
+
* Generated by JsPbCodeGenerator.
|
|
27528
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
27529
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
27530
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
27531
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
27532
|
+
* valid.
|
|
27533
|
+
* @extends {jspb.Message}
|
|
27534
|
+
* @constructor
|
|
27535
|
+
*/
|
|
27536
|
+
proto.sniipbillapi.UserBillList = function(opt_data) {
|
|
27537
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
27538
|
+
};
|
|
27539
|
+
goog.inherits(proto.sniipbillapi.UserBillList, jspb.Message);
|
|
27540
|
+
if (goog.DEBUG && !COMPILED) {
|
|
27541
|
+
proto.sniipbillapi.UserBillList.displayName = 'proto.sniipbillapi.UserBillList';
|
|
27542
|
+
}
|
|
27543
|
+
|
|
27544
|
+
|
|
27545
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27546
|
+
/**
|
|
27547
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
27548
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
27549
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
27550
|
+
* For the list of reserved names please see:
|
|
27551
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
27552
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
27553
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
27554
|
+
* @return {!Object}
|
|
27555
|
+
*/
|
|
27556
|
+
proto.sniipbillapi.UserBillList.prototype.toObject = function(opt_includeInstance) {
|
|
27557
|
+
return proto.sniipbillapi.UserBillList.toObject(opt_includeInstance, this);
|
|
27558
|
+
};
|
|
27559
|
+
|
|
27560
|
+
|
|
27561
|
+
/**
|
|
27562
|
+
* Static version of the {@see toObject} method.
|
|
27563
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
27564
|
+
* instance for transitional soy proto support:
|
|
27565
|
+
* http://goto/soy-param-migration
|
|
27566
|
+
* @param {!proto.sniipbillapi.UserBillList} msg The msg instance to transform.
|
|
27567
|
+
* @return {!Object}
|
|
27568
|
+
*/
|
|
27569
|
+
proto.sniipbillapi.UserBillList.toObject = function(includeInstance, msg) {
|
|
27570
|
+
var f, obj = {
|
|
27571
|
+
data: (f = msg.getData()) && proto.sniipbillapi.UserBillList.DataMessage.toObject(includeInstance, f),
|
|
27572
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f)
|
|
27573
|
+
};
|
|
27574
|
+
|
|
27575
|
+
if (includeInstance) {
|
|
27576
|
+
obj.$jspbMessageInstance = msg;
|
|
27577
|
+
}
|
|
27578
|
+
return obj;
|
|
27579
|
+
};
|
|
27580
|
+
}
|
|
27581
|
+
|
|
27582
|
+
|
|
27583
|
+
/**
|
|
27584
|
+
* Deserializes binary data (in protobuf wire format).
|
|
27585
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
27586
|
+
* @return {!proto.sniipbillapi.UserBillList}
|
|
27587
|
+
*/
|
|
27588
|
+
proto.sniipbillapi.UserBillList.deserializeBinary = function(bytes) {
|
|
27589
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27590
|
+
var msg = new proto.sniipbillapi.UserBillList;
|
|
27591
|
+
return proto.sniipbillapi.UserBillList.deserializeBinaryFromReader(msg, reader);
|
|
27592
|
+
};
|
|
27593
|
+
|
|
27594
|
+
|
|
27595
|
+
/**
|
|
27596
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
27597
|
+
* given reader into the given message object.
|
|
27598
|
+
* @param {!proto.sniipbillapi.UserBillList} msg The message object to deserialize into.
|
|
27599
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
27600
|
+
* @return {!proto.sniipbillapi.UserBillList}
|
|
27601
|
+
*/
|
|
27602
|
+
proto.sniipbillapi.UserBillList.deserializeBinaryFromReader = function(msg, reader) {
|
|
27603
|
+
while (reader.nextField()) {
|
|
27604
|
+
if (reader.isEndGroup()) {
|
|
27605
|
+
break;
|
|
27606
|
+
}
|
|
27607
|
+
var field = reader.getFieldNumber();
|
|
27608
|
+
switch (field) {
|
|
27609
|
+
case 1:
|
|
27610
|
+
var value = new proto.sniipbillapi.UserBillList.DataMessage;
|
|
27611
|
+
reader.readMessage(value,proto.sniipbillapi.UserBillList.DataMessage.deserializeBinaryFromReader);
|
|
27612
|
+
msg.setData(value);
|
|
27613
|
+
break;
|
|
27614
|
+
case 2:
|
|
27615
|
+
var value = new proto.sniipbillapi.ResponseCode;
|
|
27616
|
+
reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
|
|
27617
|
+
msg.setResponsecode(value);
|
|
27618
|
+
break;
|
|
27619
|
+
default:
|
|
27620
|
+
reader.skipField();
|
|
27621
|
+
break;
|
|
27622
|
+
}
|
|
27623
|
+
}
|
|
27624
|
+
return msg;
|
|
27625
|
+
};
|
|
27626
|
+
|
|
27627
|
+
|
|
27628
|
+
/**
|
|
27629
|
+
* Class method variant: serializes the given message to binary data
|
|
27630
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
27631
|
+
* @param {!proto.sniipbillapi.UserBillList} message
|
|
27632
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27633
|
+
*/
|
|
27634
|
+
proto.sniipbillapi.UserBillList.serializeBinaryToWriter = function(message, writer) {
|
|
27635
|
+
message.serializeBinaryToWriter(writer);
|
|
27636
|
+
};
|
|
27637
|
+
|
|
27638
|
+
|
|
27639
|
+
/**
|
|
27640
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
27641
|
+
* @return {!Uint8Array}
|
|
27642
|
+
*/
|
|
27643
|
+
proto.sniipbillapi.UserBillList.prototype.serializeBinary = function() {
|
|
27644
|
+
var writer = new jspb.BinaryWriter();
|
|
27645
|
+
this.serializeBinaryToWriter(writer);
|
|
27646
|
+
return writer.getResultBuffer();
|
|
27647
|
+
};
|
|
27648
|
+
|
|
27649
|
+
|
|
27650
|
+
/**
|
|
27651
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
27652
|
+
* writing to the given BinaryWriter.
|
|
27653
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27654
|
+
*/
|
|
27655
|
+
proto.sniipbillapi.UserBillList.prototype.serializeBinaryToWriter = function (writer) {
|
|
27656
|
+
var f = undefined;
|
|
27657
|
+
f = this.getData();
|
|
27658
|
+
if (f != null) {
|
|
27659
|
+
writer.writeMessage(
|
|
27660
|
+
1,
|
|
27661
|
+
f,
|
|
27662
|
+
proto.sniipbillapi.UserBillList.DataMessage.serializeBinaryToWriter
|
|
27663
|
+
);
|
|
27664
|
+
}
|
|
27665
|
+
f = this.getResponsecode();
|
|
27666
|
+
if (f != null) {
|
|
27667
|
+
writer.writeMessage(
|
|
27668
|
+
2,
|
|
27669
|
+
f,
|
|
27670
|
+
proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
|
|
27671
|
+
);
|
|
27672
|
+
}
|
|
27673
|
+
};
|
|
27674
|
+
|
|
27675
|
+
|
|
27676
|
+
/**
|
|
27677
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
27678
|
+
* @return {!proto.sniipbillapi.UserBillList} The clone.
|
|
27679
|
+
*/
|
|
27680
|
+
proto.sniipbillapi.UserBillList.prototype.cloneMessage = function() {
|
|
27681
|
+
return /** @type {!proto.sniipbillapi.UserBillList} */ (jspb.Message.cloneMessage(this));
|
|
27682
|
+
};
|
|
27683
|
+
|
|
27684
|
+
|
|
27685
|
+
/**
|
|
27686
|
+
* optional DataMessage data = 1;
|
|
27687
|
+
* @return {proto.sniipbillapi.UserBillList.DataMessage}
|
|
27688
|
+
*/
|
|
27689
|
+
proto.sniipbillapi.UserBillList.prototype.getData = function() {
|
|
27690
|
+
return /** @type{proto.sniipbillapi.UserBillList.DataMessage} */ (
|
|
27691
|
+
jspb.Message.getWrapperField(this, proto.sniipbillapi.UserBillList.DataMessage, 1));
|
|
27692
|
+
};
|
|
27693
|
+
|
|
27694
|
+
|
|
27695
|
+
/** @param {proto.sniipbillapi.UserBillList.DataMessage|undefined} value */
|
|
27696
|
+
proto.sniipbillapi.UserBillList.prototype.setData = function(value) {
|
|
27697
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
27698
|
+
};
|
|
27699
|
+
|
|
27700
|
+
|
|
27701
|
+
proto.sniipbillapi.UserBillList.prototype.clearData = function() {
|
|
27702
|
+
this.setData(undefined);
|
|
27703
|
+
};
|
|
27704
|
+
|
|
27705
|
+
|
|
27706
|
+
/**
|
|
27707
|
+
* Returns whether this field is set.
|
|
27708
|
+
* @return{!boolean}
|
|
27709
|
+
*/
|
|
27710
|
+
proto.sniipbillapi.UserBillList.prototype.hasData = function() {
|
|
27711
|
+
return jspb.Message.getField(this, 1) != null;
|
|
27712
|
+
};
|
|
27713
|
+
|
|
27714
|
+
|
|
27715
|
+
/**
|
|
27716
|
+
* optional ResponseCode responseCode = 2;
|
|
27717
|
+
* @return {proto.sniipbillapi.ResponseCode}
|
|
27718
|
+
*/
|
|
27719
|
+
proto.sniipbillapi.UserBillList.prototype.getResponsecode = function() {
|
|
27720
|
+
return /** @type{proto.sniipbillapi.ResponseCode} */ (
|
|
27721
|
+
jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 2));
|
|
27722
|
+
};
|
|
27723
|
+
|
|
27724
|
+
|
|
27725
|
+
/** @param {proto.sniipbillapi.ResponseCode|undefined} value */
|
|
27726
|
+
proto.sniipbillapi.UserBillList.prototype.setResponsecode = function(value) {
|
|
27727
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
27728
|
+
};
|
|
27729
|
+
|
|
27730
|
+
|
|
27731
|
+
proto.sniipbillapi.UserBillList.prototype.clearResponsecode = function() {
|
|
27732
|
+
this.setResponsecode(undefined);
|
|
27733
|
+
};
|
|
27734
|
+
|
|
27735
|
+
|
|
27736
|
+
/**
|
|
27737
|
+
* Returns whether this field is set.
|
|
27738
|
+
* @return{!boolean}
|
|
27739
|
+
*/
|
|
27740
|
+
proto.sniipbillapi.UserBillList.prototype.hasResponsecode = function() {
|
|
27741
|
+
return jspb.Message.getField(this, 2) != null;
|
|
27742
|
+
};
|
|
27743
|
+
|
|
27744
|
+
|
|
27745
|
+
|
|
27746
|
+
/**
|
|
27747
|
+
* Generated by JsPbCodeGenerator.
|
|
27748
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
27749
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
27750
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
27751
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
27752
|
+
* valid.
|
|
27753
|
+
* @extends {jspb.Message}
|
|
27754
|
+
* @constructor
|
|
27755
|
+
*/
|
|
27756
|
+
proto.sniipbillapi.UserBillList.DataMessage = function(opt_data) {
|
|
27757
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipbillapi.UserBillList.DataMessage.repeatedFields_, null);
|
|
27758
|
+
};
|
|
27759
|
+
goog.inherits(proto.sniipbillapi.UserBillList.DataMessage, jspb.Message);
|
|
27760
|
+
if (goog.DEBUG && !COMPILED) {
|
|
27761
|
+
proto.sniipbillapi.UserBillList.DataMessage.displayName = 'proto.sniipbillapi.UserBillList.DataMessage';
|
|
27762
|
+
}
|
|
27763
|
+
/**
|
|
27764
|
+
* List of repeated fields within this message type.
|
|
27765
|
+
* @private {!Array<number>}
|
|
27766
|
+
* @const
|
|
27767
|
+
*/
|
|
27768
|
+
proto.sniipbillapi.UserBillList.DataMessage.repeatedFields_ = [4];
|
|
27769
|
+
|
|
27770
|
+
|
|
27771
|
+
|
|
27772
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27773
|
+
/**
|
|
27774
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
27775
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
27776
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
27777
|
+
* For the list of reserved names please see:
|
|
27778
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
27779
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
27780
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
27781
|
+
* @return {!Object}
|
|
27782
|
+
*/
|
|
27783
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.toObject = function(opt_includeInstance) {
|
|
27784
|
+
return proto.sniipbillapi.UserBillList.DataMessage.toObject(opt_includeInstance, this);
|
|
27785
|
+
};
|
|
27786
|
+
|
|
27787
|
+
|
|
27788
|
+
/**
|
|
27789
|
+
* Static version of the {@see toObject} method.
|
|
27790
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
27791
|
+
* instance for transitional soy proto support:
|
|
27792
|
+
* http://goto/soy-param-migration
|
|
27793
|
+
* @param {!proto.sniipbillapi.UserBillList.DataMessage} msg The msg instance to transform.
|
|
27794
|
+
* @return {!Object}
|
|
27795
|
+
*/
|
|
27796
|
+
proto.sniipbillapi.UserBillList.DataMessage.toObject = function(includeInstance, msg) {
|
|
27797
|
+
var f, obj = {
|
|
27798
|
+
limit: msg.getLimit(),
|
|
27799
|
+
page: msg.getPage(),
|
|
27800
|
+
total: msg.getTotal(),
|
|
27801
|
+
billlistList: jspb.Message.toObjectList(msg.getBilllistList(),
|
|
27802
|
+
proto.sniipbillapi.BillDetail.toObject, includeInstance)
|
|
27803
|
+
};
|
|
27804
|
+
|
|
27805
|
+
if (includeInstance) {
|
|
27806
|
+
obj.$jspbMessageInstance = msg;
|
|
27807
|
+
}
|
|
27808
|
+
return obj;
|
|
27809
|
+
};
|
|
27810
|
+
}
|
|
27811
|
+
|
|
27812
|
+
|
|
27813
|
+
/**
|
|
27814
|
+
* Deserializes binary data (in protobuf wire format).
|
|
27815
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
27816
|
+
* @return {!proto.sniipbillapi.UserBillList.DataMessage}
|
|
27817
|
+
*/
|
|
27818
|
+
proto.sniipbillapi.UserBillList.DataMessage.deserializeBinary = function(bytes) {
|
|
27819
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27820
|
+
var msg = new proto.sniipbillapi.UserBillList.DataMessage;
|
|
27821
|
+
return proto.sniipbillapi.UserBillList.DataMessage.deserializeBinaryFromReader(msg, reader);
|
|
27822
|
+
};
|
|
27823
|
+
|
|
27824
|
+
|
|
27825
|
+
/**
|
|
27826
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
27827
|
+
* given reader into the given message object.
|
|
27828
|
+
* @param {!proto.sniipbillapi.UserBillList.DataMessage} msg The message object to deserialize into.
|
|
27829
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
27830
|
+
* @return {!proto.sniipbillapi.UserBillList.DataMessage}
|
|
27831
|
+
*/
|
|
27832
|
+
proto.sniipbillapi.UserBillList.DataMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
27833
|
+
while (reader.nextField()) {
|
|
27834
|
+
if (reader.isEndGroup()) {
|
|
27835
|
+
break;
|
|
27836
|
+
}
|
|
27837
|
+
var field = reader.getFieldNumber();
|
|
27838
|
+
switch (field) {
|
|
27839
|
+
case 1:
|
|
27840
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
27841
|
+
msg.setLimit(value);
|
|
27842
|
+
break;
|
|
27843
|
+
case 2:
|
|
27844
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
27845
|
+
msg.setPage(value);
|
|
27846
|
+
break;
|
|
27847
|
+
case 3:
|
|
27848
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
27849
|
+
msg.setTotal(value);
|
|
27850
|
+
break;
|
|
27851
|
+
case 4:
|
|
27852
|
+
var value = new proto.sniipbillapi.BillDetail;
|
|
27853
|
+
reader.readMessage(value,proto.sniipbillapi.BillDetail.deserializeBinaryFromReader);
|
|
27854
|
+
msg.getBilllistList().push(value);
|
|
27855
|
+
msg.setBilllistList(msg.getBilllistList());
|
|
27856
|
+
break;
|
|
27857
|
+
default:
|
|
27858
|
+
reader.skipField();
|
|
27859
|
+
break;
|
|
27860
|
+
}
|
|
27861
|
+
}
|
|
27862
|
+
return msg;
|
|
27863
|
+
};
|
|
27864
|
+
|
|
27865
|
+
|
|
27866
|
+
/**
|
|
27867
|
+
* Class method variant: serializes the given message to binary data
|
|
27868
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
27869
|
+
* @param {!proto.sniipbillapi.UserBillList.DataMessage} message
|
|
27870
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27871
|
+
*/
|
|
27872
|
+
proto.sniipbillapi.UserBillList.DataMessage.serializeBinaryToWriter = function(message, writer) {
|
|
27873
|
+
message.serializeBinaryToWriter(writer);
|
|
27874
|
+
};
|
|
27875
|
+
|
|
27876
|
+
|
|
27877
|
+
/**
|
|
27878
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
27879
|
+
* @return {!Uint8Array}
|
|
27880
|
+
*/
|
|
27881
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.serializeBinary = function() {
|
|
27882
|
+
var writer = new jspb.BinaryWriter();
|
|
27883
|
+
this.serializeBinaryToWriter(writer);
|
|
27884
|
+
return writer.getResultBuffer();
|
|
27885
|
+
};
|
|
27886
|
+
|
|
27887
|
+
|
|
27888
|
+
/**
|
|
27889
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
27890
|
+
* writing to the given BinaryWriter.
|
|
27891
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27892
|
+
*/
|
|
27893
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.serializeBinaryToWriter = function (writer) {
|
|
27894
|
+
var f = undefined;
|
|
27895
|
+
f = this.getLimit();
|
|
27896
|
+
if (f !== 0) {
|
|
27897
|
+
writer.writeInt32(
|
|
27898
|
+
1,
|
|
27899
|
+
f
|
|
27900
|
+
);
|
|
27901
|
+
}
|
|
27902
|
+
f = this.getPage();
|
|
27903
|
+
if (f !== 0) {
|
|
27904
|
+
writer.writeInt32(
|
|
27905
|
+
2,
|
|
27906
|
+
f
|
|
27907
|
+
);
|
|
27908
|
+
}
|
|
27909
|
+
f = this.getTotal();
|
|
27910
|
+
if (f !== 0) {
|
|
27911
|
+
writer.writeInt32(
|
|
27912
|
+
3,
|
|
27913
|
+
f
|
|
27914
|
+
);
|
|
27915
|
+
}
|
|
27916
|
+
f = this.getBilllistList();
|
|
27917
|
+
if (f.length > 0) {
|
|
27918
|
+
writer.writeRepeatedMessage(
|
|
27919
|
+
4,
|
|
27920
|
+
f,
|
|
27921
|
+
proto.sniipbillapi.BillDetail.serializeBinaryToWriter
|
|
27922
|
+
);
|
|
27923
|
+
}
|
|
27924
|
+
};
|
|
27925
|
+
|
|
27926
|
+
|
|
27927
|
+
/**
|
|
27928
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
27929
|
+
* @return {!proto.sniipbillapi.UserBillList.DataMessage} The clone.
|
|
27930
|
+
*/
|
|
27931
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.cloneMessage = function() {
|
|
27932
|
+
return /** @type {!proto.sniipbillapi.UserBillList.DataMessage} */ (jspb.Message.cloneMessage(this));
|
|
27933
|
+
};
|
|
27934
|
+
|
|
27935
|
+
|
|
27936
|
+
/**
|
|
27937
|
+
* optional int32 limit = 1;
|
|
27938
|
+
* @return {number}
|
|
27939
|
+
*/
|
|
27940
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.getLimit = function() {
|
|
27941
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
27942
|
+
};
|
|
27943
|
+
|
|
27944
|
+
|
|
27945
|
+
/** @param {number} value */
|
|
27946
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.setLimit = function(value) {
|
|
27947
|
+
jspb.Message.setField(this, 1, value);
|
|
27948
|
+
};
|
|
27949
|
+
|
|
27950
|
+
|
|
27951
|
+
/**
|
|
27952
|
+
* optional int32 page = 2;
|
|
27953
|
+
* @return {number}
|
|
27954
|
+
*/
|
|
27955
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.getPage = function() {
|
|
27956
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
27957
|
+
};
|
|
27958
|
+
|
|
27959
|
+
|
|
27960
|
+
/** @param {number} value */
|
|
27961
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.setPage = function(value) {
|
|
27962
|
+
jspb.Message.setField(this, 2, value);
|
|
27963
|
+
};
|
|
27964
|
+
|
|
27965
|
+
|
|
27966
|
+
/**
|
|
27967
|
+
* optional int32 total = 3;
|
|
27968
|
+
* @return {number}
|
|
27969
|
+
*/
|
|
27970
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.getTotal = function() {
|
|
27971
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
27972
|
+
};
|
|
27973
|
+
|
|
27974
|
+
|
|
27975
|
+
/** @param {number} value */
|
|
27976
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.setTotal = function(value) {
|
|
27977
|
+
jspb.Message.setField(this, 3, value);
|
|
27978
|
+
};
|
|
27979
|
+
|
|
27980
|
+
|
|
27981
|
+
/**
|
|
27982
|
+
* repeated BillDetail billList = 4;
|
|
27983
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
27984
|
+
* replace the array itself, then you must call the setter to update it.
|
|
27985
|
+
* @return {!Array.<!proto.sniipbillapi.BillDetail>}
|
|
27986
|
+
*/
|
|
27987
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.getBilllistList = function() {
|
|
27988
|
+
return /** @type{!Array.<!proto.sniipbillapi.BillDetail>} */ (
|
|
27989
|
+
jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.BillDetail, 4));
|
|
27990
|
+
};
|
|
27991
|
+
|
|
27992
|
+
|
|
27993
|
+
/** @param {Array.<!proto.sniipbillapi.BillDetail>} value */
|
|
27994
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.setBilllistList = function(value) {
|
|
27995
|
+
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
27996
|
+
};
|
|
27997
|
+
|
|
27998
|
+
|
|
27999
|
+
proto.sniipbillapi.UserBillList.DataMessage.prototype.clearBilllistList = function() {
|
|
28000
|
+
this.setBilllistList([]);
|
|
28001
|
+
};
|
|
28002
|
+
|
|
28003
|
+
|
|
28004
|
+
|
|
27310
28005
|
/**
|
|
27311
28006
|
* Generated by JsPbCodeGenerator.
|
|
27312
28007
|
* @param {Array=} opt_data Optional initial data array, typically from a
|