@sniipwebmaster/agent-billing-client-grpcweb-ts 23.11.690 → 23.11.716

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.
@@ -42,6 +42,11 @@ goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayCountRequ
42
42
  goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayCountResponse', null, global);
43
43
  goog.exportSymbol('proto.agentbillingserviceapi.GetDeliveryBatchesToPayRequest', null, global);
44
44
  goog.exportSymbol('proto.agentbillingserviceapi.InviteAgentRequest', null, global);
45
+ goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillResult', null, global);
46
+ goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest', null, global);
47
+ goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest', null, global);
48
+ goog.exportSymbol('proto.agentbillingserviceapi.ProcessAgentBillsResponse', null, global);
49
+ goog.exportSymbol('proto.agentbillingserviceapi.RenameUploadBatchRequest', null, global);
45
50
  goog.exportSymbol('proto.agentbillingserviceapi.ResendAgentInvitationRequest', null, global);
46
51
  goog.exportSymbol('proto.agentbillingserviceapi.ResponseCode', null, global);
47
52
  /**
@@ -632,6 +637,111 @@ if (goog.DEBUG && !COMPILED) {
632
637
  */
633
638
  proto.agentbillingserviceapi.InviteAgentRequest.displayName = 'proto.agentbillingserviceapi.InviteAgentRequest';
634
639
  }
640
+ /**
641
+ * Generated by JsPbCodeGenerator.
642
+ * @param {Array=} opt_data Optional initial data array, typically from a
643
+ * server response, or constructed directly in Javascript. The array is used
644
+ * in place and becomes part of the constructed object. It is not cloned.
645
+ * If no data is provided, the constructed object will be empty, but still
646
+ * valid.
647
+ * @extends {jspb.Message}
648
+ * @constructor
649
+ */
650
+ proto.agentbillingserviceapi.ProcessAgentBillResult = function(opt_data) {
651
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
652
+ };
653
+ goog.inherits(proto.agentbillingserviceapi.ProcessAgentBillResult, jspb.Message);
654
+ if (goog.DEBUG && !COMPILED) {
655
+ /**
656
+ * @public
657
+ * @override
658
+ */
659
+ proto.agentbillingserviceapi.ProcessAgentBillResult.displayName = 'proto.agentbillingserviceapi.ProcessAgentBillResult';
660
+ }
661
+ /**
662
+ * Generated by JsPbCodeGenerator.
663
+ * @param {Array=} opt_data Optional initial data array, typically from a
664
+ * server response, or constructed directly in Javascript. The array is used
665
+ * in place and becomes part of the constructed object. It is not cloned.
666
+ * If no data is provided, the constructed object will be empty, but still
667
+ * valid.
668
+ * @extends {jspb.Message}
669
+ * @constructor
670
+ */
671
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest = function(opt_data) {
672
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.repeatedFields_, null);
673
+ };
674
+ goog.inherits(proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest, jspb.Message);
675
+ if (goog.DEBUG && !COMPILED) {
676
+ /**
677
+ * @public
678
+ * @override
679
+ */
680
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.displayName = 'proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest';
681
+ }
682
+ /**
683
+ * Generated by JsPbCodeGenerator.
684
+ * @param {Array=} opt_data Optional initial data array, typically from a
685
+ * server response, or constructed directly in Javascript. The array is used
686
+ * in place and becomes part of the constructed object. It is not cloned.
687
+ * If no data is provided, the constructed object will be empty, but still
688
+ * valid.
689
+ * @extends {jspb.Message}
690
+ * @constructor
691
+ */
692
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest = function(opt_data) {
693
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
694
+ };
695
+ goog.inherits(proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest, jspb.Message);
696
+ if (goog.DEBUG && !COMPILED) {
697
+ /**
698
+ * @public
699
+ * @override
700
+ */
701
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.displayName = 'proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest';
702
+ }
703
+ /**
704
+ * Generated by JsPbCodeGenerator.
705
+ * @param {Array=} opt_data Optional initial data array, typically from a
706
+ * server response, or constructed directly in Javascript. The array is used
707
+ * in place and becomes part of the constructed object. It is not cloned.
708
+ * If no data is provided, the constructed object will be empty, but still
709
+ * valid.
710
+ * @extends {jspb.Message}
711
+ * @constructor
712
+ */
713
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse = function(opt_data) {
714
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.agentbillingserviceapi.ProcessAgentBillsResponse.repeatedFields_, null);
715
+ };
716
+ goog.inherits(proto.agentbillingserviceapi.ProcessAgentBillsResponse, jspb.Message);
717
+ if (goog.DEBUG && !COMPILED) {
718
+ /**
719
+ * @public
720
+ * @override
721
+ */
722
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.displayName = 'proto.agentbillingserviceapi.ProcessAgentBillsResponse';
723
+ }
724
+ /**
725
+ * Generated by JsPbCodeGenerator.
726
+ * @param {Array=} opt_data Optional initial data array, typically from a
727
+ * server response, or constructed directly in Javascript. The array is used
728
+ * in place and becomes part of the constructed object. It is not cloned.
729
+ * If no data is provided, the constructed object will be empty, but still
730
+ * valid.
731
+ * @extends {jspb.Message}
732
+ * @constructor
733
+ */
734
+ proto.agentbillingserviceapi.RenameUploadBatchRequest = function(opt_data) {
735
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
736
+ };
737
+ goog.inherits(proto.agentbillingserviceapi.RenameUploadBatchRequest, jspb.Message);
738
+ if (goog.DEBUG && !COMPILED) {
739
+ /**
740
+ * @public
741
+ * @override
742
+ */
743
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.displayName = 'proto.agentbillingserviceapi.RenameUploadBatchRequest';
744
+ }
635
745
  /**
636
746
  * Generated by JsPbCodeGenerator.
637
747
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6974,6 +7084,1033 @@ proto.agentbillingserviceapi.InviteAgentRequest.prototype.setAgentemail = functi
6974
7084
 
6975
7085
 
6976
7086
 
7087
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7088
+ /**
7089
+ * Creates an object representation of this proto.
7090
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7091
+ * Optional fields that are not set will be set to undefined.
7092
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7093
+ * For the list of reserved names please see:
7094
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7095
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7096
+ * JSPB instance for transitional soy proto support:
7097
+ * http://goto/soy-param-migration
7098
+ * @return {!Object}
7099
+ */
7100
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.toObject = function(opt_includeInstance) {
7101
+ return proto.agentbillingserviceapi.ProcessAgentBillResult.toObject(opt_includeInstance, this);
7102
+ };
7103
+
7104
+
7105
+ /**
7106
+ * Static version of the {@see toObject} method.
7107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7108
+ * the JSPB instance for transitional soy proto support:
7109
+ * http://goto/soy-param-migration
7110
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillResult} msg The msg instance to transform.
7111
+ * @return {!Object}
7112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7113
+ */
7114
+ proto.agentbillingserviceapi.ProcessAgentBillResult.toObject = function(includeInstance, msg) {
7115
+ var f, obj = {
7116
+ agentbillid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7117
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
7118
+ wassuccessfullyprocessed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
7119
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
7120
+ message: jspb.Message.getFieldWithDefault(msg, 5, "")
7121
+ };
7122
+
7123
+ if (includeInstance) {
7124
+ obj.$jspbMessageInstance = msg;
7125
+ }
7126
+ return obj;
7127
+ };
7128
+ }
7129
+
7130
+
7131
+ /**
7132
+ * Deserializes binary data (in protobuf wire format).
7133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7134
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult}
7135
+ */
7136
+ proto.agentbillingserviceapi.ProcessAgentBillResult.deserializeBinary = function(bytes) {
7137
+ var reader = new jspb.BinaryReader(bytes);
7138
+ var msg = new proto.agentbillingserviceapi.ProcessAgentBillResult;
7139
+ return proto.agentbillingserviceapi.ProcessAgentBillResult.deserializeBinaryFromReader(msg, reader);
7140
+ };
7141
+
7142
+
7143
+ /**
7144
+ * Deserializes binary data (in protobuf wire format) from the
7145
+ * given reader into the given message object.
7146
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillResult} msg The message object to deserialize into.
7147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7148
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult}
7149
+ */
7150
+ proto.agentbillingserviceapi.ProcessAgentBillResult.deserializeBinaryFromReader = function(msg, reader) {
7151
+ while (reader.nextField()) {
7152
+ if (reader.isEndGroup()) {
7153
+ break;
7154
+ }
7155
+ var field = reader.getFieldNumber();
7156
+ switch (field) {
7157
+ case 1:
7158
+ var value = /** @type {number} */ (reader.readInt64());
7159
+ msg.setAgentbillid(value);
7160
+ break;
7161
+ case 2:
7162
+ var value = /** @type {number} */ (reader.readInt64());
7163
+ msg.setBillid(value);
7164
+ break;
7165
+ case 3:
7166
+ var value = /** @type {boolean} */ (reader.readBool());
7167
+ msg.setWassuccessfullyprocessed(value);
7168
+ break;
7169
+ case 4:
7170
+ var value = /** @type {string} */ (reader.readString());
7171
+ msg.setStatus(value);
7172
+ break;
7173
+ case 5:
7174
+ var value = /** @type {string} */ (reader.readString());
7175
+ msg.setMessage(value);
7176
+ break;
7177
+ default:
7178
+ reader.skipField();
7179
+ break;
7180
+ }
7181
+ }
7182
+ return msg;
7183
+ };
7184
+
7185
+
7186
+ /**
7187
+ * Serializes the message to binary data (in protobuf wire format).
7188
+ * @return {!Uint8Array}
7189
+ */
7190
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.serializeBinary = function() {
7191
+ var writer = new jspb.BinaryWriter();
7192
+ proto.agentbillingserviceapi.ProcessAgentBillResult.serializeBinaryToWriter(this, writer);
7193
+ return writer.getResultBuffer();
7194
+ };
7195
+
7196
+
7197
+ /**
7198
+ * Serializes the given message to binary data (in protobuf wire
7199
+ * format), writing to the given BinaryWriter.
7200
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillResult} message
7201
+ * @param {!jspb.BinaryWriter} writer
7202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7203
+ */
7204
+ proto.agentbillingserviceapi.ProcessAgentBillResult.serializeBinaryToWriter = function(message, writer) {
7205
+ var f = undefined;
7206
+ f = message.getAgentbillid();
7207
+ if (f !== 0) {
7208
+ writer.writeInt64(
7209
+ 1,
7210
+ f
7211
+ );
7212
+ }
7213
+ f = message.getBillid();
7214
+ if (f !== 0) {
7215
+ writer.writeInt64(
7216
+ 2,
7217
+ f
7218
+ );
7219
+ }
7220
+ f = message.getWassuccessfullyprocessed();
7221
+ if (f) {
7222
+ writer.writeBool(
7223
+ 3,
7224
+ f
7225
+ );
7226
+ }
7227
+ f = message.getStatus();
7228
+ if (f.length > 0) {
7229
+ writer.writeString(
7230
+ 4,
7231
+ f
7232
+ );
7233
+ }
7234
+ f = message.getMessage();
7235
+ if (f.length > 0) {
7236
+ writer.writeString(
7237
+ 5,
7238
+ f
7239
+ );
7240
+ }
7241
+ };
7242
+
7243
+
7244
+ /**
7245
+ * optional int64 agentBillId = 1;
7246
+ * @return {number}
7247
+ */
7248
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.getAgentbillid = function() {
7249
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7250
+ };
7251
+
7252
+
7253
+ /**
7254
+ * @param {number} value
7255
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult} returns this
7256
+ */
7257
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.setAgentbillid = function(value) {
7258
+ return jspb.Message.setProto3IntField(this, 1, value);
7259
+ };
7260
+
7261
+
7262
+ /**
7263
+ * optional int64 billId = 2;
7264
+ * @return {number}
7265
+ */
7266
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.getBillid = function() {
7267
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7268
+ };
7269
+
7270
+
7271
+ /**
7272
+ * @param {number} value
7273
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult} returns this
7274
+ */
7275
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.setBillid = function(value) {
7276
+ return jspb.Message.setProto3IntField(this, 2, value);
7277
+ };
7278
+
7279
+
7280
+ /**
7281
+ * optional bool wasSuccessfullyProcessed = 3;
7282
+ * @return {boolean}
7283
+ */
7284
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.getWassuccessfullyprocessed = function() {
7285
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
7286
+ };
7287
+
7288
+
7289
+ /**
7290
+ * @param {boolean} value
7291
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult} returns this
7292
+ */
7293
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.setWassuccessfullyprocessed = function(value) {
7294
+ return jspb.Message.setProto3BooleanField(this, 3, value);
7295
+ };
7296
+
7297
+
7298
+ /**
7299
+ * optional string status = 4;
7300
+ * @return {string}
7301
+ */
7302
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.getStatus = function() {
7303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7304
+ };
7305
+
7306
+
7307
+ /**
7308
+ * @param {string} value
7309
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult} returns this
7310
+ */
7311
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.setStatus = function(value) {
7312
+ return jspb.Message.setProto3StringField(this, 4, value);
7313
+ };
7314
+
7315
+
7316
+ /**
7317
+ * optional string message = 5;
7318
+ * @return {string}
7319
+ */
7320
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.getMessage = function() {
7321
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7322
+ };
7323
+
7324
+
7325
+ /**
7326
+ * @param {string} value
7327
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult} returns this
7328
+ */
7329
+ proto.agentbillingserviceapi.ProcessAgentBillResult.prototype.setMessage = function(value) {
7330
+ return jspb.Message.setProto3StringField(this, 5, value);
7331
+ };
7332
+
7333
+
7334
+
7335
+ /**
7336
+ * List of repeated fields within this message type.
7337
+ * @private {!Array<number>}
7338
+ * @const
7339
+ */
7340
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.repeatedFields_ = [1];
7341
+
7342
+
7343
+
7344
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7345
+ /**
7346
+ * Creates an object representation of this proto.
7347
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7348
+ * Optional fields that are not set will be set to undefined.
7349
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7350
+ * For the list of reserved names please see:
7351
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7352
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7353
+ * JSPB instance for transitional soy proto support:
7354
+ * http://goto/soy-param-migration
7355
+ * @return {!Object}
7356
+ */
7357
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.toObject = function(opt_includeInstance) {
7358
+ return proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.toObject(opt_includeInstance, this);
7359
+ };
7360
+
7361
+
7362
+ /**
7363
+ * Static version of the {@see toObject} method.
7364
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7365
+ * the JSPB instance for transitional soy proto support:
7366
+ * http://goto/soy-param-migration
7367
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} msg The msg instance to transform.
7368
+ * @return {!Object}
7369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7370
+ */
7371
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.toObject = function(includeInstance, msg) {
7372
+ var f, obj = {
7373
+ agentbillidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
7374
+ };
7375
+
7376
+ if (includeInstance) {
7377
+ obj.$jspbMessageInstance = msg;
7378
+ }
7379
+ return obj;
7380
+ };
7381
+ }
7382
+
7383
+
7384
+ /**
7385
+ * Deserializes binary data (in protobuf wire format).
7386
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7387
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest}
7388
+ */
7389
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.deserializeBinary = function(bytes) {
7390
+ var reader = new jspb.BinaryReader(bytes);
7391
+ var msg = new proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest;
7392
+ return proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.deserializeBinaryFromReader(msg, reader);
7393
+ };
7394
+
7395
+
7396
+ /**
7397
+ * Deserializes binary data (in protobuf wire format) from the
7398
+ * given reader into the given message object.
7399
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} msg The message object to deserialize into.
7400
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7401
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest}
7402
+ */
7403
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
7404
+ while (reader.nextField()) {
7405
+ if (reader.isEndGroup()) {
7406
+ break;
7407
+ }
7408
+ var field = reader.getFieldNumber();
7409
+ switch (field) {
7410
+ case 1:
7411
+ var value = /** @type {!Array<number>} */ (reader.readPackedInt64());
7412
+ msg.setAgentbillidsList(value);
7413
+ break;
7414
+ default:
7415
+ reader.skipField();
7416
+ break;
7417
+ }
7418
+ }
7419
+ return msg;
7420
+ };
7421
+
7422
+
7423
+ /**
7424
+ * Serializes the message to binary data (in protobuf wire format).
7425
+ * @return {!Uint8Array}
7426
+ */
7427
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.serializeBinary = function() {
7428
+ var writer = new jspb.BinaryWriter();
7429
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.serializeBinaryToWriter(this, writer);
7430
+ return writer.getResultBuffer();
7431
+ };
7432
+
7433
+
7434
+ /**
7435
+ * Serializes the given message to binary data (in protobuf wire
7436
+ * format), writing to the given BinaryWriter.
7437
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} message
7438
+ * @param {!jspb.BinaryWriter} writer
7439
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7440
+ */
7441
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.serializeBinaryToWriter = function(message, writer) {
7442
+ var f = undefined;
7443
+ f = message.getAgentbillidsList();
7444
+ if (f.length > 0) {
7445
+ writer.writePackedInt64(
7446
+ 1,
7447
+ f
7448
+ );
7449
+ }
7450
+ };
7451
+
7452
+
7453
+ /**
7454
+ * repeated int64 agentBillIds = 1;
7455
+ * @return {!Array<number>}
7456
+ */
7457
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.getAgentbillidsList = function() {
7458
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
7459
+ };
7460
+
7461
+
7462
+ /**
7463
+ * @param {!Array<number>} value
7464
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} returns this
7465
+ */
7466
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.setAgentbillidsList = function(value) {
7467
+ return jspb.Message.setField(this, 1, value || []);
7468
+ };
7469
+
7470
+
7471
+ /**
7472
+ * @param {number} value
7473
+ * @param {number=} opt_index
7474
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} returns this
7475
+ */
7476
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.addAgentbillids = function(value, opt_index) {
7477
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7478
+ };
7479
+
7480
+
7481
+ /**
7482
+ * Clears the list making it empty but non-null.
7483
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest} returns this
7484
+ */
7485
+ proto.agentbillingserviceapi.ProcessAgentBillsByAgentBillIdsRequest.prototype.clearAgentbillidsList = function() {
7486
+ return this.setAgentbillidsList([]);
7487
+ };
7488
+
7489
+
7490
+
7491
+
7492
+
7493
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7494
+ /**
7495
+ * Creates an object representation of this proto.
7496
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7497
+ * Optional fields that are not set will be set to undefined.
7498
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7499
+ * For the list of reserved names please see:
7500
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7501
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7502
+ * JSPB instance for transitional soy proto support:
7503
+ * http://goto/soy-param-migration
7504
+ * @return {!Object}
7505
+ */
7506
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.prototype.toObject = function(opt_includeInstance) {
7507
+ return proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.toObject(opt_includeInstance, this);
7508
+ };
7509
+
7510
+
7511
+ /**
7512
+ * Static version of the {@see toObject} method.
7513
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7514
+ * the JSPB instance for transitional soy proto support:
7515
+ * http://goto/soy-param-migration
7516
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest} msg The msg instance to transform.
7517
+ * @return {!Object}
7518
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7519
+ */
7520
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.toObject = function(includeInstance, msg) {
7521
+ var f, obj = {
7522
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 1, 0)
7523
+ };
7524
+
7525
+ if (includeInstance) {
7526
+ obj.$jspbMessageInstance = msg;
7527
+ }
7528
+ return obj;
7529
+ };
7530
+ }
7531
+
7532
+
7533
+ /**
7534
+ * Deserializes binary data (in protobuf wire format).
7535
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7536
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest}
7537
+ */
7538
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.deserializeBinary = function(bytes) {
7539
+ var reader = new jspb.BinaryReader(bytes);
7540
+ var msg = new proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest;
7541
+ return proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.deserializeBinaryFromReader(msg, reader);
7542
+ };
7543
+
7544
+
7545
+ /**
7546
+ * Deserializes binary data (in protobuf wire format) from the
7547
+ * given reader into the given message object.
7548
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest} msg The message object to deserialize into.
7549
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7550
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest}
7551
+ */
7552
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.deserializeBinaryFromReader = function(msg, reader) {
7553
+ while (reader.nextField()) {
7554
+ if (reader.isEndGroup()) {
7555
+ break;
7556
+ }
7557
+ var field = reader.getFieldNumber();
7558
+ switch (field) {
7559
+ case 1:
7560
+ var value = /** @type {number} */ (reader.readInt64());
7561
+ msg.setUploadbatchid(value);
7562
+ break;
7563
+ default:
7564
+ reader.skipField();
7565
+ break;
7566
+ }
7567
+ }
7568
+ return msg;
7569
+ };
7570
+
7571
+
7572
+ /**
7573
+ * Serializes the message to binary data (in protobuf wire format).
7574
+ * @return {!Uint8Array}
7575
+ */
7576
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.prototype.serializeBinary = function() {
7577
+ var writer = new jspb.BinaryWriter();
7578
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.serializeBinaryToWriter(this, writer);
7579
+ return writer.getResultBuffer();
7580
+ };
7581
+
7582
+
7583
+ /**
7584
+ * Serializes the given message to binary data (in protobuf wire
7585
+ * format), writing to the given BinaryWriter.
7586
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest} message
7587
+ * @param {!jspb.BinaryWriter} writer
7588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7589
+ */
7590
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.serializeBinaryToWriter = function(message, writer) {
7591
+ var f = undefined;
7592
+ f = message.getUploadbatchid();
7593
+ if (f !== 0) {
7594
+ writer.writeInt64(
7595
+ 1,
7596
+ f
7597
+ );
7598
+ }
7599
+ };
7600
+
7601
+
7602
+ /**
7603
+ * optional int64 uploadBatchId = 1;
7604
+ * @return {number}
7605
+ */
7606
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.prototype.getUploadbatchid = function() {
7607
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7608
+ };
7609
+
7610
+
7611
+ /**
7612
+ * @param {number} value
7613
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest} returns this
7614
+ */
7615
+ proto.agentbillingserviceapi.ProcessAgentBillsByUploadBatchIdRequest.prototype.setUploadbatchid = function(value) {
7616
+ return jspb.Message.setProto3IntField(this, 1, value);
7617
+ };
7618
+
7619
+
7620
+
7621
+ /**
7622
+ * List of repeated fields within this message type.
7623
+ * @private {!Array<number>}
7624
+ * @const
7625
+ */
7626
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.repeatedFields_ = [6];
7627
+
7628
+
7629
+
7630
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7631
+ /**
7632
+ * Creates an object representation of this proto.
7633
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7634
+ * Optional fields that are not set will be set to undefined.
7635
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7636
+ * For the list of reserved names please see:
7637
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7638
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7639
+ * JSPB instance for transitional soy proto support:
7640
+ * http://goto/soy-param-migration
7641
+ * @return {!Object}
7642
+ */
7643
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.toObject = function(opt_includeInstance) {
7644
+ return proto.agentbillingserviceapi.ProcessAgentBillsResponse.toObject(opt_includeInstance, this);
7645
+ };
7646
+
7647
+
7648
+ /**
7649
+ * Static version of the {@see toObject} method.
7650
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7651
+ * the JSPB instance for transitional soy proto support:
7652
+ * http://goto/soy-param-migration
7653
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} msg The msg instance to transform.
7654
+ * @return {!Object}
7655
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7656
+ */
7657
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.toObject = function(includeInstance, msg) {
7658
+ var f, obj = {
7659
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
7660
+ movedtoreadycount: jspb.Message.getFieldWithDefault(msg, 2, 0),
7661
+ movedtoblockedcount: jspb.Message.getFieldWithDefault(msg, 3, 0),
7662
+ movedtounderreviewcount: jspb.Message.getFieldWithDefault(msg, 4, 0),
7663
+ notmovedcount: jspb.Message.getFieldWithDefault(msg, 5, 0),
7664
+ processagentbillsresultsList: jspb.Message.toObjectList(msg.getProcessagentbillsresultsList(),
7665
+ proto.agentbillingserviceapi.ProcessAgentBillResult.toObject, includeInstance)
7666
+ };
7667
+
7668
+ if (includeInstance) {
7669
+ obj.$jspbMessageInstance = msg;
7670
+ }
7671
+ return obj;
7672
+ };
7673
+ }
7674
+
7675
+
7676
+ /**
7677
+ * Deserializes binary data (in protobuf wire format).
7678
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7679
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse}
7680
+ */
7681
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.deserializeBinary = function(bytes) {
7682
+ var reader = new jspb.BinaryReader(bytes);
7683
+ var msg = new proto.agentbillingserviceapi.ProcessAgentBillsResponse;
7684
+ return proto.agentbillingserviceapi.ProcessAgentBillsResponse.deserializeBinaryFromReader(msg, reader);
7685
+ };
7686
+
7687
+
7688
+ /**
7689
+ * Deserializes binary data (in protobuf wire format) from the
7690
+ * given reader into the given message object.
7691
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} msg The message object to deserialize into.
7692
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7693
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse}
7694
+ */
7695
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.deserializeBinaryFromReader = function(msg, reader) {
7696
+ while (reader.nextField()) {
7697
+ if (reader.isEndGroup()) {
7698
+ break;
7699
+ }
7700
+ var field = reader.getFieldNumber();
7701
+ switch (field) {
7702
+ case 1:
7703
+ var value = new proto.agentbillingserviceapi.ResponseCode;
7704
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
7705
+ msg.setResponsecode(value);
7706
+ break;
7707
+ case 2:
7708
+ var value = /** @type {number} */ (reader.readInt32());
7709
+ msg.setMovedtoreadycount(value);
7710
+ break;
7711
+ case 3:
7712
+ var value = /** @type {number} */ (reader.readInt32());
7713
+ msg.setMovedtoblockedcount(value);
7714
+ break;
7715
+ case 4:
7716
+ var value = /** @type {number} */ (reader.readInt32());
7717
+ msg.setMovedtounderreviewcount(value);
7718
+ break;
7719
+ case 5:
7720
+ var value = /** @type {number} */ (reader.readInt32());
7721
+ msg.setNotmovedcount(value);
7722
+ break;
7723
+ case 6:
7724
+ var value = new proto.agentbillingserviceapi.ProcessAgentBillResult;
7725
+ reader.readMessage(value,proto.agentbillingserviceapi.ProcessAgentBillResult.deserializeBinaryFromReader);
7726
+ msg.addProcessagentbillsresults(value);
7727
+ break;
7728
+ default:
7729
+ reader.skipField();
7730
+ break;
7731
+ }
7732
+ }
7733
+ return msg;
7734
+ };
7735
+
7736
+
7737
+ /**
7738
+ * Serializes the message to binary data (in protobuf wire format).
7739
+ * @return {!Uint8Array}
7740
+ */
7741
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.serializeBinary = function() {
7742
+ var writer = new jspb.BinaryWriter();
7743
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.serializeBinaryToWriter(this, writer);
7744
+ return writer.getResultBuffer();
7745
+ };
7746
+
7747
+
7748
+ /**
7749
+ * Serializes the given message to binary data (in protobuf wire
7750
+ * format), writing to the given BinaryWriter.
7751
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} message
7752
+ * @param {!jspb.BinaryWriter} writer
7753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7754
+ */
7755
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.serializeBinaryToWriter = function(message, writer) {
7756
+ var f = undefined;
7757
+ f = message.getResponsecode();
7758
+ if (f != null) {
7759
+ writer.writeMessage(
7760
+ 1,
7761
+ f,
7762
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
7763
+ );
7764
+ }
7765
+ f = message.getMovedtoreadycount();
7766
+ if (f !== 0) {
7767
+ writer.writeInt32(
7768
+ 2,
7769
+ f
7770
+ );
7771
+ }
7772
+ f = message.getMovedtoblockedcount();
7773
+ if (f !== 0) {
7774
+ writer.writeInt32(
7775
+ 3,
7776
+ f
7777
+ );
7778
+ }
7779
+ f = message.getMovedtounderreviewcount();
7780
+ if (f !== 0) {
7781
+ writer.writeInt32(
7782
+ 4,
7783
+ f
7784
+ );
7785
+ }
7786
+ f = message.getNotmovedcount();
7787
+ if (f !== 0) {
7788
+ writer.writeInt32(
7789
+ 5,
7790
+ f
7791
+ );
7792
+ }
7793
+ f = message.getProcessagentbillsresultsList();
7794
+ if (f.length > 0) {
7795
+ writer.writeRepeatedMessage(
7796
+ 6,
7797
+ f,
7798
+ proto.agentbillingserviceapi.ProcessAgentBillResult.serializeBinaryToWriter
7799
+ );
7800
+ }
7801
+ };
7802
+
7803
+
7804
+ /**
7805
+ * optional ResponseCode responseCode = 1;
7806
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
7807
+ */
7808
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getResponsecode = function() {
7809
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
7810
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
7811
+ };
7812
+
7813
+
7814
+ /**
7815
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
7816
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7817
+ */
7818
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setResponsecode = function(value) {
7819
+ return jspb.Message.setWrapperField(this, 1, value);
7820
+ };
7821
+
7822
+
7823
+ /**
7824
+ * Clears the message field making it undefined.
7825
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7826
+ */
7827
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.clearResponsecode = function() {
7828
+ return this.setResponsecode(undefined);
7829
+ };
7830
+
7831
+
7832
+ /**
7833
+ * Returns whether this field is set.
7834
+ * @return {boolean}
7835
+ */
7836
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.hasResponsecode = function() {
7837
+ return jspb.Message.getField(this, 1) != null;
7838
+ };
7839
+
7840
+
7841
+ /**
7842
+ * optional int32 movedToReadyCount = 2;
7843
+ * @return {number}
7844
+ */
7845
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getMovedtoreadycount = function() {
7846
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7847
+ };
7848
+
7849
+
7850
+ /**
7851
+ * @param {number} value
7852
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7853
+ */
7854
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setMovedtoreadycount = function(value) {
7855
+ return jspb.Message.setProto3IntField(this, 2, value);
7856
+ };
7857
+
7858
+
7859
+ /**
7860
+ * optional int32 movedToBlockedCount = 3;
7861
+ * @return {number}
7862
+ */
7863
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getMovedtoblockedcount = function() {
7864
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7865
+ };
7866
+
7867
+
7868
+ /**
7869
+ * @param {number} value
7870
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7871
+ */
7872
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setMovedtoblockedcount = function(value) {
7873
+ return jspb.Message.setProto3IntField(this, 3, value);
7874
+ };
7875
+
7876
+
7877
+ /**
7878
+ * optional int32 movedToUnderReviewCount = 4;
7879
+ * @return {number}
7880
+ */
7881
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getMovedtounderreviewcount = function() {
7882
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7883
+ };
7884
+
7885
+
7886
+ /**
7887
+ * @param {number} value
7888
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7889
+ */
7890
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setMovedtounderreviewcount = function(value) {
7891
+ return jspb.Message.setProto3IntField(this, 4, value);
7892
+ };
7893
+
7894
+
7895
+ /**
7896
+ * optional int32 notMovedCount = 5;
7897
+ * @return {number}
7898
+ */
7899
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getNotmovedcount = function() {
7900
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7901
+ };
7902
+
7903
+
7904
+ /**
7905
+ * @param {number} value
7906
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7907
+ */
7908
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setNotmovedcount = function(value) {
7909
+ return jspb.Message.setProto3IntField(this, 5, value);
7910
+ };
7911
+
7912
+
7913
+ /**
7914
+ * repeated ProcessAgentBillResult processAgentBillsResults = 6;
7915
+ * @return {!Array<!proto.agentbillingserviceapi.ProcessAgentBillResult>}
7916
+ */
7917
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.getProcessagentbillsresultsList = function() {
7918
+ return /** @type{!Array<!proto.agentbillingserviceapi.ProcessAgentBillResult>} */ (
7919
+ jspb.Message.getRepeatedWrapperField(this, proto.agentbillingserviceapi.ProcessAgentBillResult, 6));
7920
+ };
7921
+
7922
+
7923
+ /**
7924
+ * @param {!Array<!proto.agentbillingserviceapi.ProcessAgentBillResult>} value
7925
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7926
+ */
7927
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.setProcessagentbillsresultsList = function(value) {
7928
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
7929
+ };
7930
+
7931
+
7932
+ /**
7933
+ * @param {!proto.agentbillingserviceapi.ProcessAgentBillResult=} opt_value
7934
+ * @param {number=} opt_index
7935
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillResult}
7936
+ */
7937
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.addProcessagentbillsresults = function(opt_value, opt_index) {
7938
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.agentbillingserviceapi.ProcessAgentBillResult, opt_index);
7939
+ };
7940
+
7941
+
7942
+ /**
7943
+ * Clears the list making it empty but non-null.
7944
+ * @return {!proto.agentbillingserviceapi.ProcessAgentBillsResponse} returns this
7945
+ */
7946
+ proto.agentbillingserviceapi.ProcessAgentBillsResponse.prototype.clearProcessagentbillsresultsList = function() {
7947
+ return this.setProcessagentbillsresultsList([]);
7948
+ };
7949
+
7950
+
7951
+
7952
+
7953
+
7954
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7955
+ /**
7956
+ * Creates an object representation of this proto.
7957
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7958
+ * Optional fields that are not set will be set to undefined.
7959
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7960
+ * For the list of reserved names please see:
7961
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7962
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7963
+ * JSPB instance for transitional soy proto support:
7964
+ * http://goto/soy-param-migration
7965
+ * @return {!Object}
7966
+ */
7967
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.toObject = function(opt_includeInstance) {
7968
+ return proto.agentbillingserviceapi.RenameUploadBatchRequest.toObject(opt_includeInstance, this);
7969
+ };
7970
+
7971
+
7972
+ /**
7973
+ * Static version of the {@see toObject} method.
7974
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7975
+ * the JSPB instance for transitional soy proto support:
7976
+ * http://goto/soy-param-migration
7977
+ * @param {!proto.agentbillingserviceapi.RenameUploadBatchRequest} msg The msg instance to transform.
7978
+ * @return {!Object}
7979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7980
+ */
7981
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.toObject = function(includeInstance, msg) {
7982
+ var f, obj = {
7983
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
7984
+ uploadbatchid: jspb.Message.getFieldWithDefault(msg, 2, 0)
7985
+ };
7986
+
7987
+ if (includeInstance) {
7988
+ obj.$jspbMessageInstance = msg;
7989
+ }
7990
+ return obj;
7991
+ };
7992
+ }
7993
+
7994
+
7995
+ /**
7996
+ * Deserializes binary data (in protobuf wire format).
7997
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7998
+ * @return {!proto.agentbillingserviceapi.RenameUploadBatchRequest}
7999
+ */
8000
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.deserializeBinary = function(bytes) {
8001
+ var reader = new jspb.BinaryReader(bytes);
8002
+ var msg = new proto.agentbillingserviceapi.RenameUploadBatchRequest;
8003
+ return proto.agentbillingserviceapi.RenameUploadBatchRequest.deserializeBinaryFromReader(msg, reader);
8004
+ };
8005
+
8006
+
8007
+ /**
8008
+ * Deserializes binary data (in protobuf wire format) from the
8009
+ * given reader into the given message object.
8010
+ * @param {!proto.agentbillingserviceapi.RenameUploadBatchRequest} msg The message object to deserialize into.
8011
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8012
+ * @return {!proto.agentbillingserviceapi.RenameUploadBatchRequest}
8013
+ */
8014
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.deserializeBinaryFromReader = function(msg, reader) {
8015
+ while (reader.nextField()) {
8016
+ if (reader.isEndGroup()) {
8017
+ break;
8018
+ }
8019
+ var field = reader.getFieldNumber();
8020
+ switch (field) {
8021
+ case 1:
8022
+ var value = /** @type {string} */ (reader.readString());
8023
+ msg.setName(value);
8024
+ break;
8025
+ case 2:
8026
+ var value = /** @type {number} */ (reader.readInt64());
8027
+ msg.setUploadbatchid(value);
8028
+ break;
8029
+ default:
8030
+ reader.skipField();
8031
+ break;
8032
+ }
8033
+ }
8034
+ return msg;
8035
+ };
8036
+
8037
+
8038
+ /**
8039
+ * Serializes the message to binary data (in protobuf wire format).
8040
+ * @return {!Uint8Array}
8041
+ */
8042
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.serializeBinary = function() {
8043
+ var writer = new jspb.BinaryWriter();
8044
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.serializeBinaryToWriter(this, writer);
8045
+ return writer.getResultBuffer();
8046
+ };
8047
+
8048
+
8049
+ /**
8050
+ * Serializes the given message to binary data (in protobuf wire
8051
+ * format), writing to the given BinaryWriter.
8052
+ * @param {!proto.agentbillingserviceapi.RenameUploadBatchRequest} message
8053
+ * @param {!jspb.BinaryWriter} writer
8054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8055
+ */
8056
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.serializeBinaryToWriter = function(message, writer) {
8057
+ var f = undefined;
8058
+ f = message.getName();
8059
+ if (f.length > 0) {
8060
+ writer.writeString(
8061
+ 1,
8062
+ f
8063
+ );
8064
+ }
8065
+ f = message.getUploadbatchid();
8066
+ if (f !== 0) {
8067
+ writer.writeInt64(
8068
+ 2,
8069
+ f
8070
+ );
8071
+ }
8072
+ };
8073
+
8074
+
8075
+ /**
8076
+ * optional string name = 1;
8077
+ * @return {string}
8078
+ */
8079
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.getName = function() {
8080
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8081
+ };
8082
+
8083
+
8084
+ /**
8085
+ * @param {string} value
8086
+ * @return {!proto.agentbillingserviceapi.RenameUploadBatchRequest} returns this
8087
+ */
8088
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.setName = function(value) {
8089
+ return jspb.Message.setProto3StringField(this, 1, value);
8090
+ };
8091
+
8092
+
8093
+ /**
8094
+ * optional int64 uploadBatchId = 2;
8095
+ * @return {number}
8096
+ */
8097
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.getUploadbatchid = function() {
8098
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8099
+ };
8100
+
8101
+
8102
+ /**
8103
+ * @param {number} value
8104
+ * @return {!proto.agentbillingserviceapi.RenameUploadBatchRequest} returns this
8105
+ */
8106
+ proto.agentbillingserviceapi.RenameUploadBatchRequest.prototype.setUploadbatchid = function(value) {
8107
+ return jspb.Message.setProto3IntField(this, 2, value);
8108
+ };
8109
+
8110
+
8111
+
8112
+
8113
+
6977
8114
  if (jspb.Message.GENERATE_TO_OBJECT) {
6978
8115
  /**
6979
8116
  * Creates an object representation of this proto.