@aldiokta/protocgen 1.1.63 → 1.1.65

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/accurate_oauth/accurate_oauth_grpc_pb.js +210 -0
  3. package/prisca/v1/accurate_oauth/accurate_oauth_pb.js +2330 -0
  4. package/prisca/v1/bidding/bidding_pb.js +43 -13
  5. package/prisca/v1/core/auth/auth_grpc_pb.js +99 -0
  6. package/prisca/v1/core/auth/auth_pb.js +2347 -851
  7. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +33 -0
  8. package/prisca/v1/core/file_upload/file_upload_pb.js +304 -0
  9. package/prisca/v1/core/messaging/notification_event_grpc_pb.js +211 -0
  10. package/prisca/v1/core/messaging/notification_event_pb.js +3015 -0
  11. package/prisca/v1/core/user_device/user_device_grpc_pb.js +144 -0
  12. package/prisca/v1/core/user_device/user_device_pb.js +2255 -0
  13. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +41 -0
  14. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +991 -0
  15. package/prisca/v1/good_receipt/good_receipt_pb.js +61 -1
  16. package/prisca/v1/invoice/invoice_pb.js +61 -1
  17. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -1
  18. package/prisca/v1/purchase_order/purchase_order_pb.js +154 -138
  19. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -1
  20. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +18 -71
  21. package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
  22. package/prisca/v1/quotation/quotation_pb.js +1030 -131
  23. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
  24. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +603 -4
  25. package/prisca/v1/valuation/valuation_pb.js +93 -3
  26. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +66 -0
  27. package/prisca/v1/vendor_domain/vendor_domain_pb.js +940 -0
@@ -36,6 +36,10 @@ goog.exportSymbol('proto.GetGeneralLedgerAccountByIdRequest', null, global);
36
36
  goog.exportSymbol('proto.GetGeneralLedgerAccountByIdResponse', null, global);
37
37
  goog.exportSymbol('proto.GetListGeneralLedgerAccountRequest', null, global);
38
38
  goog.exportSymbol('proto.GetListGeneralLedgerAccountResponse', null, global);
39
+ goog.exportSymbol('proto.SyncGlFailedItem', null, global);
40
+ goog.exportSymbol('proto.SyncGlFromAccurateRequest', null, global);
41
+ goog.exportSymbol('proto.SyncGlFromAccurateResponse', null, global);
42
+ goog.exportSymbol('proto.SyncGlSyncedItem', null, global);
39
43
  goog.exportSymbol('proto.UpdateGeneralLedgerAccountRequest', null, global);
40
44
  goog.exportSymbol('proto.UpdateGeneralLedgerAccountResponse', null, global);
41
45
  goog.exportSymbol('proto.UpsertGlFromAccurateRequest', null, global);
@@ -355,6 +359,90 @@ if (goog.DEBUG && !COMPILED) {
355
359
  */
356
360
  proto.UpsertGlFromAccurateResponse.displayName = 'proto.UpsertGlFromAccurateResponse';
357
361
  }
362
+ /**
363
+ * Generated by JsPbCodeGenerator.
364
+ * @param {Array=} opt_data Optional initial data array, typically from a
365
+ * server response, or constructed directly in Javascript. The array is used
366
+ * in place and becomes part of the constructed object. It is not cloned.
367
+ * If no data is provided, the constructed object will be empty, but still
368
+ * valid.
369
+ * @extends {jspb.Message}
370
+ * @constructor
371
+ */
372
+ proto.SyncGlFromAccurateRequest = function(opt_data) {
373
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
374
+ };
375
+ goog.inherits(proto.SyncGlFromAccurateRequest, jspb.Message);
376
+ if (goog.DEBUG && !COMPILED) {
377
+ /**
378
+ * @public
379
+ * @override
380
+ */
381
+ proto.SyncGlFromAccurateRequest.displayName = 'proto.SyncGlFromAccurateRequest';
382
+ }
383
+ /**
384
+ * Generated by JsPbCodeGenerator.
385
+ * @param {Array=} opt_data Optional initial data array, typically from a
386
+ * server response, or constructed directly in Javascript. The array is used
387
+ * in place and becomes part of the constructed object. It is not cloned.
388
+ * If no data is provided, the constructed object will be empty, but still
389
+ * valid.
390
+ * @extends {jspb.Message}
391
+ * @constructor
392
+ */
393
+ proto.SyncGlSyncedItem = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
+ };
396
+ goog.inherits(proto.SyncGlSyncedItem, jspb.Message);
397
+ if (goog.DEBUG && !COMPILED) {
398
+ /**
399
+ * @public
400
+ * @override
401
+ */
402
+ proto.SyncGlSyncedItem.displayName = 'proto.SyncGlSyncedItem';
403
+ }
404
+ /**
405
+ * Generated by JsPbCodeGenerator.
406
+ * @param {Array=} opt_data Optional initial data array, typically from a
407
+ * server response, or constructed directly in Javascript. The array is used
408
+ * in place and becomes part of the constructed object. It is not cloned.
409
+ * If no data is provided, the constructed object will be empty, but still
410
+ * valid.
411
+ * @extends {jspb.Message}
412
+ * @constructor
413
+ */
414
+ proto.SyncGlFailedItem = function(opt_data) {
415
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
416
+ };
417
+ goog.inherits(proto.SyncGlFailedItem, jspb.Message);
418
+ if (goog.DEBUG && !COMPILED) {
419
+ /**
420
+ * @public
421
+ * @override
422
+ */
423
+ proto.SyncGlFailedItem.displayName = 'proto.SyncGlFailedItem';
424
+ }
425
+ /**
426
+ * Generated by JsPbCodeGenerator.
427
+ * @param {Array=} opt_data Optional initial data array, typically from a
428
+ * server response, or constructed directly in Javascript. The array is used
429
+ * in place and becomes part of the constructed object. It is not cloned.
430
+ * If no data is provided, the constructed object will be empty, but still
431
+ * valid.
432
+ * @extends {jspb.Message}
433
+ * @constructor
434
+ */
435
+ proto.SyncGlFromAccurateResponse = function(opt_data) {
436
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SyncGlFromAccurateResponse.repeatedFields_, null);
437
+ };
438
+ goog.inherits(proto.SyncGlFromAccurateResponse, jspb.Message);
439
+ if (goog.DEBUG && !COMPILED) {
440
+ /**
441
+ * @public
442
+ * @override
443
+ */
444
+ proto.SyncGlFromAccurateResponse.displayName = 'proto.SyncGlFromAccurateResponse';
445
+ }
358
446
 
359
447
  /**
360
448
  * List of repeated fields within this message type.
@@ -3893,4 +3981,907 @@ proto.UpsertGlFromAccurateResponse.prototype.setAction = function(value) {
3893
3981
  };
3894
3982
 
3895
3983
 
3984
+
3985
+
3986
+
3987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3988
+ /**
3989
+ * Creates an object representation of this proto.
3990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3991
+ * Optional fields that are not set will be set to undefined.
3992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3993
+ * For the list of reserved names please see:
3994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3996
+ * JSPB instance for transitional soy proto support:
3997
+ * http://goto/soy-param-migration
3998
+ * @return {!Object}
3999
+ */
4000
+ proto.SyncGlFromAccurateRequest.prototype.toObject = function(opt_includeInstance) {
4001
+ return proto.SyncGlFromAccurateRequest.toObject(opt_includeInstance, this);
4002
+ };
4003
+
4004
+
4005
+ /**
4006
+ * Static version of the {@see toObject} method.
4007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4008
+ * the JSPB instance for transitional soy proto support:
4009
+ * http://goto/soy-param-migration
4010
+ * @param {!proto.SyncGlFromAccurateRequest} msg The msg instance to transform.
4011
+ * @return {!Object}
4012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4013
+ */
4014
+ proto.SyncGlFromAccurateRequest.toObject = function(includeInstance, msg) {
4015
+ var f, obj = {
4016
+ integrationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4017
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
4018
+ };
4019
+
4020
+ if (includeInstance) {
4021
+ obj.$jspbMessageInstance = msg;
4022
+ }
4023
+ return obj;
4024
+ };
4025
+ }
4026
+
4027
+
4028
+ /**
4029
+ * Deserializes binary data (in protobuf wire format).
4030
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4031
+ * @return {!proto.SyncGlFromAccurateRequest}
4032
+ */
4033
+ proto.SyncGlFromAccurateRequest.deserializeBinary = function(bytes) {
4034
+ var reader = new jspb.BinaryReader(bytes);
4035
+ var msg = new proto.SyncGlFromAccurateRequest;
4036
+ return proto.SyncGlFromAccurateRequest.deserializeBinaryFromReader(msg, reader);
4037
+ };
4038
+
4039
+
4040
+ /**
4041
+ * Deserializes binary data (in protobuf wire format) from the
4042
+ * given reader into the given message object.
4043
+ * @param {!proto.SyncGlFromAccurateRequest} msg The message object to deserialize into.
4044
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4045
+ * @return {!proto.SyncGlFromAccurateRequest}
4046
+ */
4047
+ proto.SyncGlFromAccurateRequest.deserializeBinaryFromReader = function(msg, reader) {
4048
+ while (reader.nextField()) {
4049
+ if (reader.isEndGroup()) {
4050
+ break;
4051
+ }
4052
+ var field = reader.getFieldNumber();
4053
+ switch (field) {
4054
+ case 1:
4055
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4056
+ msg.setIntegrationReferencesId(value);
4057
+ break;
4058
+ case 2:
4059
+ var value = /** @type {number} */ (reader.readInt32());
4060
+ msg.setLimit(value);
4061
+ break;
4062
+ default:
4063
+ reader.skipField();
4064
+ break;
4065
+ }
4066
+ }
4067
+ return msg;
4068
+ };
4069
+
4070
+
4071
+ /**
4072
+ * Serializes the message to binary data (in protobuf wire format).
4073
+ * @return {!Uint8Array}
4074
+ */
4075
+ proto.SyncGlFromAccurateRequest.prototype.serializeBinary = function() {
4076
+ var writer = new jspb.BinaryWriter();
4077
+ proto.SyncGlFromAccurateRequest.serializeBinaryToWriter(this, writer);
4078
+ return writer.getResultBuffer();
4079
+ };
4080
+
4081
+
4082
+ /**
4083
+ * Serializes the given message to binary data (in protobuf wire
4084
+ * format), writing to the given BinaryWriter.
4085
+ * @param {!proto.SyncGlFromAccurateRequest} message
4086
+ * @param {!jspb.BinaryWriter} writer
4087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4088
+ */
4089
+ proto.SyncGlFromAccurateRequest.serializeBinaryToWriter = function(message, writer) {
4090
+ var f = undefined;
4091
+ f = message.getIntegrationReferencesId();
4092
+ if (f.length > 0) {
4093
+ writer.writeString(
4094
+ 1,
4095
+ f
4096
+ );
4097
+ }
4098
+ f = message.getLimit();
4099
+ if (f !== 0) {
4100
+ writer.writeInt32(
4101
+ 2,
4102
+ f
4103
+ );
4104
+ }
4105
+ };
4106
+
4107
+
4108
+ /**
4109
+ * optional string integration_references_id = 1;
4110
+ * @return {string}
4111
+ */
4112
+ proto.SyncGlFromAccurateRequest.prototype.getIntegrationReferencesId = function() {
4113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4114
+ };
4115
+
4116
+
4117
+ /**
4118
+ * @param {string} value
4119
+ * @return {!proto.SyncGlFromAccurateRequest} returns this
4120
+ */
4121
+ proto.SyncGlFromAccurateRequest.prototype.setIntegrationReferencesId = function(value) {
4122
+ return jspb.Message.setProto3StringField(this, 1, value);
4123
+ };
4124
+
4125
+
4126
+ /**
4127
+ * optional int32 limit = 2;
4128
+ * @return {number}
4129
+ */
4130
+ proto.SyncGlFromAccurateRequest.prototype.getLimit = function() {
4131
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4132
+ };
4133
+
4134
+
4135
+ /**
4136
+ * @param {number} value
4137
+ * @return {!proto.SyncGlFromAccurateRequest} returns this
4138
+ */
4139
+ proto.SyncGlFromAccurateRequest.prototype.setLimit = function(value) {
4140
+ return jspb.Message.setProto3IntField(this, 2, value);
4141
+ };
4142
+
4143
+
4144
+
4145
+
4146
+
4147
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4148
+ /**
4149
+ * Creates an object representation of this proto.
4150
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4151
+ * Optional fields that are not set will be set to undefined.
4152
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4153
+ * For the list of reserved names please see:
4154
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4155
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4156
+ * JSPB instance for transitional soy proto support:
4157
+ * http://goto/soy-param-migration
4158
+ * @return {!Object}
4159
+ */
4160
+ proto.SyncGlSyncedItem.prototype.toObject = function(opt_includeInstance) {
4161
+ return proto.SyncGlSyncedItem.toObject(opt_includeInstance, this);
4162
+ };
4163
+
4164
+
4165
+ /**
4166
+ * Static version of the {@see toObject} method.
4167
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4168
+ * the JSPB instance for transitional soy proto support:
4169
+ * http://goto/soy-param-migration
4170
+ * @param {!proto.SyncGlSyncedItem} msg The msg instance to transform.
4171
+ * @return {!Object}
4172
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4173
+ */
4174
+ proto.SyncGlSyncedItem.toObject = function(includeInstance, msg) {
4175
+ var f, obj = {
4176
+ accurateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4177
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4178
+ accountId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4179
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
4180
+ };
4181
+
4182
+ if (includeInstance) {
4183
+ obj.$jspbMessageInstance = msg;
4184
+ }
4185
+ return obj;
4186
+ };
4187
+ }
4188
+
4189
+
4190
+ /**
4191
+ * Deserializes binary data (in protobuf wire format).
4192
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4193
+ * @return {!proto.SyncGlSyncedItem}
4194
+ */
4195
+ proto.SyncGlSyncedItem.deserializeBinary = function(bytes) {
4196
+ var reader = new jspb.BinaryReader(bytes);
4197
+ var msg = new proto.SyncGlSyncedItem;
4198
+ return proto.SyncGlSyncedItem.deserializeBinaryFromReader(msg, reader);
4199
+ };
4200
+
4201
+
4202
+ /**
4203
+ * Deserializes binary data (in protobuf wire format) from the
4204
+ * given reader into the given message object.
4205
+ * @param {!proto.SyncGlSyncedItem} msg The message object to deserialize into.
4206
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4207
+ * @return {!proto.SyncGlSyncedItem}
4208
+ */
4209
+ proto.SyncGlSyncedItem.deserializeBinaryFromReader = function(msg, reader) {
4210
+ while (reader.nextField()) {
4211
+ if (reader.isEndGroup()) {
4212
+ break;
4213
+ }
4214
+ var field = reader.getFieldNumber();
4215
+ switch (field) {
4216
+ case 1:
4217
+ var value = /** @type {number} */ (reader.readInt64());
4218
+ msg.setAccurateId(value);
4219
+ break;
4220
+ case 2:
4221
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4222
+ msg.setReferencesId(value);
4223
+ break;
4224
+ case 3:
4225
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4226
+ msg.setAccountId(value);
4227
+ break;
4228
+ case 4:
4229
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4230
+ msg.setAction(value);
4231
+ break;
4232
+ default:
4233
+ reader.skipField();
4234
+ break;
4235
+ }
4236
+ }
4237
+ return msg;
4238
+ };
4239
+
4240
+
4241
+ /**
4242
+ * Serializes the message to binary data (in protobuf wire format).
4243
+ * @return {!Uint8Array}
4244
+ */
4245
+ proto.SyncGlSyncedItem.prototype.serializeBinary = function() {
4246
+ var writer = new jspb.BinaryWriter();
4247
+ proto.SyncGlSyncedItem.serializeBinaryToWriter(this, writer);
4248
+ return writer.getResultBuffer();
4249
+ };
4250
+
4251
+
4252
+ /**
4253
+ * Serializes the given message to binary data (in protobuf wire
4254
+ * format), writing to the given BinaryWriter.
4255
+ * @param {!proto.SyncGlSyncedItem} message
4256
+ * @param {!jspb.BinaryWriter} writer
4257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4258
+ */
4259
+ proto.SyncGlSyncedItem.serializeBinaryToWriter = function(message, writer) {
4260
+ var f = undefined;
4261
+ f = message.getAccurateId();
4262
+ if (f !== 0) {
4263
+ writer.writeInt64(
4264
+ 1,
4265
+ f
4266
+ );
4267
+ }
4268
+ f = message.getReferencesId();
4269
+ if (f.length > 0) {
4270
+ writer.writeString(
4271
+ 2,
4272
+ f
4273
+ );
4274
+ }
4275
+ f = message.getAccountId();
4276
+ if (f.length > 0) {
4277
+ writer.writeString(
4278
+ 3,
4279
+ f
4280
+ );
4281
+ }
4282
+ f = message.getAction();
4283
+ if (f.length > 0) {
4284
+ writer.writeString(
4285
+ 4,
4286
+ f
4287
+ );
4288
+ }
4289
+ };
4290
+
4291
+
4292
+ /**
4293
+ * optional int64 accurate_id = 1;
4294
+ * @return {number}
4295
+ */
4296
+ proto.SyncGlSyncedItem.prototype.getAccurateId = function() {
4297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4298
+ };
4299
+
4300
+
4301
+ /**
4302
+ * @param {number} value
4303
+ * @return {!proto.SyncGlSyncedItem} returns this
4304
+ */
4305
+ proto.SyncGlSyncedItem.prototype.setAccurateId = function(value) {
4306
+ return jspb.Message.setProto3IntField(this, 1, value);
4307
+ };
4308
+
4309
+
4310
+ /**
4311
+ * optional string references_id = 2;
4312
+ * @return {string}
4313
+ */
4314
+ proto.SyncGlSyncedItem.prototype.getReferencesId = function() {
4315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4316
+ };
4317
+
4318
+
4319
+ /**
4320
+ * @param {string} value
4321
+ * @return {!proto.SyncGlSyncedItem} returns this
4322
+ */
4323
+ proto.SyncGlSyncedItem.prototype.setReferencesId = function(value) {
4324
+ return jspb.Message.setProto3StringField(this, 2, value);
4325
+ };
4326
+
4327
+
4328
+ /**
4329
+ * optional string account_id = 3;
4330
+ * @return {string}
4331
+ */
4332
+ proto.SyncGlSyncedItem.prototype.getAccountId = function() {
4333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4334
+ };
4335
+
4336
+
4337
+ /**
4338
+ * @param {string} value
4339
+ * @return {!proto.SyncGlSyncedItem} returns this
4340
+ */
4341
+ proto.SyncGlSyncedItem.prototype.setAccountId = function(value) {
4342
+ return jspb.Message.setProto3StringField(this, 3, value);
4343
+ };
4344
+
4345
+
4346
+ /**
4347
+ * optional string action = 4;
4348
+ * @return {string}
4349
+ */
4350
+ proto.SyncGlSyncedItem.prototype.getAction = function() {
4351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4352
+ };
4353
+
4354
+
4355
+ /**
4356
+ * @param {string} value
4357
+ * @return {!proto.SyncGlSyncedItem} returns this
4358
+ */
4359
+ proto.SyncGlSyncedItem.prototype.setAction = function(value) {
4360
+ return jspb.Message.setProto3StringField(this, 4, value);
4361
+ };
4362
+
4363
+
4364
+
4365
+
4366
+
4367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4368
+ /**
4369
+ * Creates an object representation of this proto.
4370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4371
+ * Optional fields that are not set will be set to undefined.
4372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4373
+ * For the list of reserved names please see:
4374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4376
+ * JSPB instance for transitional soy proto support:
4377
+ * http://goto/soy-param-migration
4378
+ * @return {!Object}
4379
+ */
4380
+ proto.SyncGlFailedItem.prototype.toObject = function(opt_includeInstance) {
4381
+ return proto.SyncGlFailedItem.toObject(opt_includeInstance, this);
4382
+ };
4383
+
4384
+
4385
+ /**
4386
+ * Static version of the {@see toObject} method.
4387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4388
+ * the JSPB instance for transitional soy proto support:
4389
+ * http://goto/soy-param-migration
4390
+ * @param {!proto.SyncGlFailedItem} msg The msg instance to transform.
4391
+ * @return {!Object}
4392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4393
+ */
4394
+ proto.SyncGlFailedItem.toObject = function(includeInstance, msg) {
4395
+ var f, obj = {
4396
+ accurateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4397
+ error: jspb.Message.getFieldWithDefault(msg, 2, "")
4398
+ };
4399
+
4400
+ if (includeInstance) {
4401
+ obj.$jspbMessageInstance = msg;
4402
+ }
4403
+ return obj;
4404
+ };
4405
+ }
4406
+
4407
+
4408
+ /**
4409
+ * Deserializes binary data (in protobuf wire format).
4410
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4411
+ * @return {!proto.SyncGlFailedItem}
4412
+ */
4413
+ proto.SyncGlFailedItem.deserializeBinary = function(bytes) {
4414
+ var reader = new jspb.BinaryReader(bytes);
4415
+ var msg = new proto.SyncGlFailedItem;
4416
+ return proto.SyncGlFailedItem.deserializeBinaryFromReader(msg, reader);
4417
+ };
4418
+
4419
+
4420
+ /**
4421
+ * Deserializes binary data (in protobuf wire format) from the
4422
+ * given reader into the given message object.
4423
+ * @param {!proto.SyncGlFailedItem} msg The message object to deserialize into.
4424
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4425
+ * @return {!proto.SyncGlFailedItem}
4426
+ */
4427
+ proto.SyncGlFailedItem.deserializeBinaryFromReader = function(msg, reader) {
4428
+ while (reader.nextField()) {
4429
+ if (reader.isEndGroup()) {
4430
+ break;
4431
+ }
4432
+ var field = reader.getFieldNumber();
4433
+ switch (field) {
4434
+ case 1:
4435
+ var value = /** @type {number} */ (reader.readInt64());
4436
+ msg.setAccurateId(value);
4437
+ break;
4438
+ case 2:
4439
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4440
+ msg.setError(value);
4441
+ break;
4442
+ default:
4443
+ reader.skipField();
4444
+ break;
4445
+ }
4446
+ }
4447
+ return msg;
4448
+ };
4449
+
4450
+
4451
+ /**
4452
+ * Serializes the message to binary data (in protobuf wire format).
4453
+ * @return {!Uint8Array}
4454
+ */
4455
+ proto.SyncGlFailedItem.prototype.serializeBinary = function() {
4456
+ var writer = new jspb.BinaryWriter();
4457
+ proto.SyncGlFailedItem.serializeBinaryToWriter(this, writer);
4458
+ return writer.getResultBuffer();
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * Serializes the given message to binary data (in protobuf wire
4464
+ * format), writing to the given BinaryWriter.
4465
+ * @param {!proto.SyncGlFailedItem} message
4466
+ * @param {!jspb.BinaryWriter} writer
4467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4468
+ */
4469
+ proto.SyncGlFailedItem.serializeBinaryToWriter = function(message, writer) {
4470
+ var f = undefined;
4471
+ f = message.getAccurateId();
4472
+ if (f !== 0) {
4473
+ writer.writeInt64(
4474
+ 1,
4475
+ f
4476
+ );
4477
+ }
4478
+ f = message.getError();
4479
+ if (f.length > 0) {
4480
+ writer.writeString(
4481
+ 2,
4482
+ f
4483
+ );
4484
+ }
4485
+ };
4486
+
4487
+
4488
+ /**
4489
+ * optional int64 accurate_id = 1;
4490
+ * @return {number}
4491
+ */
4492
+ proto.SyncGlFailedItem.prototype.getAccurateId = function() {
4493
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4494
+ };
4495
+
4496
+
4497
+ /**
4498
+ * @param {number} value
4499
+ * @return {!proto.SyncGlFailedItem} returns this
4500
+ */
4501
+ proto.SyncGlFailedItem.prototype.setAccurateId = function(value) {
4502
+ return jspb.Message.setProto3IntField(this, 1, value);
4503
+ };
4504
+
4505
+
4506
+ /**
4507
+ * optional string error = 2;
4508
+ * @return {string}
4509
+ */
4510
+ proto.SyncGlFailedItem.prototype.getError = function() {
4511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4512
+ };
4513
+
4514
+
4515
+ /**
4516
+ * @param {string} value
4517
+ * @return {!proto.SyncGlFailedItem} returns this
4518
+ */
4519
+ proto.SyncGlFailedItem.prototype.setError = function(value) {
4520
+ return jspb.Message.setProto3StringField(this, 2, value);
4521
+ };
4522
+
4523
+
4524
+
4525
+ /**
4526
+ * List of repeated fields within this message type.
4527
+ * @private {!Array<number>}
4528
+ * @const
4529
+ */
4530
+ proto.SyncGlFromAccurateResponse.repeatedFields_ = [6,7];
4531
+
4532
+
4533
+
4534
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4535
+ /**
4536
+ * Creates an object representation of this proto.
4537
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4538
+ * Optional fields that are not set will be set to undefined.
4539
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4540
+ * For the list of reserved names please see:
4541
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4542
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4543
+ * JSPB instance for transitional soy proto support:
4544
+ * http://goto/soy-param-migration
4545
+ * @return {!Object}
4546
+ */
4547
+ proto.SyncGlFromAccurateResponse.prototype.toObject = function(opt_includeInstance) {
4548
+ return proto.SyncGlFromAccurateResponse.toObject(opt_includeInstance, this);
4549
+ };
4550
+
4551
+
4552
+ /**
4553
+ * Static version of the {@see toObject} method.
4554
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4555
+ * the JSPB instance for transitional soy proto support:
4556
+ * http://goto/soy-param-migration
4557
+ * @param {!proto.SyncGlFromAccurateResponse} msg The msg instance to transform.
4558
+ * @return {!Object}
4559
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4560
+ */
4561
+ proto.SyncGlFromAccurateResponse.toObject = function(includeInstance, msg) {
4562
+ var f, obj = {
4563
+ total: jspb.Message.getFieldWithDefault(msg, 1, 0),
4564
+ created: jspb.Message.getFieldWithDefault(msg, 2, 0),
4565
+ updated: jspb.Message.getFieldWithDefault(msg, 3, 0),
4566
+ unchanged: jspb.Message.getFieldWithDefault(msg, 4, 0),
4567
+ failed: jspb.Message.getFieldWithDefault(msg, 5, 0),
4568
+ syncedList: jspb.Message.toObjectList(msg.getSyncedList(),
4569
+ proto.SyncGlSyncedItem.toObject, includeInstance),
4570
+ failuresList: jspb.Message.toObjectList(msg.getFailuresList(),
4571
+ proto.SyncGlFailedItem.toObject, includeInstance)
4572
+ };
4573
+
4574
+ if (includeInstance) {
4575
+ obj.$jspbMessageInstance = msg;
4576
+ }
4577
+ return obj;
4578
+ };
4579
+ }
4580
+
4581
+
4582
+ /**
4583
+ * Deserializes binary data (in protobuf wire format).
4584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4585
+ * @return {!proto.SyncGlFromAccurateResponse}
4586
+ */
4587
+ proto.SyncGlFromAccurateResponse.deserializeBinary = function(bytes) {
4588
+ var reader = new jspb.BinaryReader(bytes);
4589
+ var msg = new proto.SyncGlFromAccurateResponse;
4590
+ return proto.SyncGlFromAccurateResponse.deserializeBinaryFromReader(msg, reader);
4591
+ };
4592
+
4593
+
4594
+ /**
4595
+ * Deserializes binary data (in protobuf wire format) from the
4596
+ * given reader into the given message object.
4597
+ * @param {!proto.SyncGlFromAccurateResponse} msg The message object to deserialize into.
4598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4599
+ * @return {!proto.SyncGlFromAccurateResponse}
4600
+ */
4601
+ proto.SyncGlFromAccurateResponse.deserializeBinaryFromReader = function(msg, reader) {
4602
+ while (reader.nextField()) {
4603
+ if (reader.isEndGroup()) {
4604
+ break;
4605
+ }
4606
+ var field = reader.getFieldNumber();
4607
+ switch (field) {
4608
+ case 1:
4609
+ var value = /** @type {number} */ (reader.readInt32());
4610
+ msg.setTotal(value);
4611
+ break;
4612
+ case 2:
4613
+ var value = /** @type {number} */ (reader.readInt32());
4614
+ msg.setCreated(value);
4615
+ break;
4616
+ case 3:
4617
+ var value = /** @type {number} */ (reader.readInt32());
4618
+ msg.setUpdated(value);
4619
+ break;
4620
+ case 4:
4621
+ var value = /** @type {number} */ (reader.readInt32());
4622
+ msg.setUnchanged(value);
4623
+ break;
4624
+ case 5:
4625
+ var value = /** @type {number} */ (reader.readInt32());
4626
+ msg.setFailed(value);
4627
+ break;
4628
+ case 6:
4629
+ var value = new proto.SyncGlSyncedItem;
4630
+ reader.readMessage(value,proto.SyncGlSyncedItem.deserializeBinaryFromReader);
4631
+ msg.addSynced(value);
4632
+ break;
4633
+ case 7:
4634
+ var value = new proto.SyncGlFailedItem;
4635
+ reader.readMessage(value,proto.SyncGlFailedItem.deserializeBinaryFromReader);
4636
+ msg.addFailures(value);
4637
+ break;
4638
+ default:
4639
+ reader.skipField();
4640
+ break;
4641
+ }
4642
+ }
4643
+ return msg;
4644
+ };
4645
+
4646
+
4647
+ /**
4648
+ * Serializes the message to binary data (in protobuf wire format).
4649
+ * @return {!Uint8Array}
4650
+ */
4651
+ proto.SyncGlFromAccurateResponse.prototype.serializeBinary = function() {
4652
+ var writer = new jspb.BinaryWriter();
4653
+ proto.SyncGlFromAccurateResponse.serializeBinaryToWriter(this, writer);
4654
+ return writer.getResultBuffer();
4655
+ };
4656
+
4657
+
4658
+ /**
4659
+ * Serializes the given message to binary data (in protobuf wire
4660
+ * format), writing to the given BinaryWriter.
4661
+ * @param {!proto.SyncGlFromAccurateResponse} message
4662
+ * @param {!jspb.BinaryWriter} writer
4663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4664
+ */
4665
+ proto.SyncGlFromAccurateResponse.serializeBinaryToWriter = function(message, writer) {
4666
+ var f = undefined;
4667
+ f = message.getTotal();
4668
+ if (f !== 0) {
4669
+ writer.writeInt32(
4670
+ 1,
4671
+ f
4672
+ );
4673
+ }
4674
+ f = message.getCreated();
4675
+ if (f !== 0) {
4676
+ writer.writeInt32(
4677
+ 2,
4678
+ f
4679
+ );
4680
+ }
4681
+ f = message.getUpdated();
4682
+ if (f !== 0) {
4683
+ writer.writeInt32(
4684
+ 3,
4685
+ f
4686
+ );
4687
+ }
4688
+ f = message.getUnchanged();
4689
+ if (f !== 0) {
4690
+ writer.writeInt32(
4691
+ 4,
4692
+ f
4693
+ );
4694
+ }
4695
+ f = message.getFailed();
4696
+ if (f !== 0) {
4697
+ writer.writeInt32(
4698
+ 5,
4699
+ f
4700
+ );
4701
+ }
4702
+ f = message.getSyncedList();
4703
+ if (f.length > 0) {
4704
+ writer.writeRepeatedMessage(
4705
+ 6,
4706
+ f,
4707
+ proto.SyncGlSyncedItem.serializeBinaryToWriter
4708
+ );
4709
+ }
4710
+ f = message.getFailuresList();
4711
+ if (f.length > 0) {
4712
+ writer.writeRepeatedMessage(
4713
+ 7,
4714
+ f,
4715
+ proto.SyncGlFailedItem.serializeBinaryToWriter
4716
+ );
4717
+ }
4718
+ };
4719
+
4720
+
4721
+ /**
4722
+ * optional int32 total = 1;
4723
+ * @return {number}
4724
+ */
4725
+ proto.SyncGlFromAccurateResponse.prototype.getTotal = function() {
4726
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4727
+ };
4728
+
4729
+
4730
+ /**
4731
+ * @param {number} value
4732
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4733
+ */
4734
+ proto.SyncGlFromAccurateResponse.prototype.setTotal = function(value) {
4735
+ return jspb.Message.setProto3IntField(this, 1, value);
4736
+ };
4737
+
4738
+
4739
+ /**
4740
+ * optional int32 created = 2;
4741
+ * @return {number}
4742
+ */
4743
+ proto.SyncGlFromAccurateResponse.prototype.getCreated = function() {
4744
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4745
+ };
4746
+
4747
+
4748
+ /**
4749
+ * @param {number} value
4750
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4751
+ */
4752
+ proto.SyncGlFromAccurateResponse.prototype.setCreated = function(value) {
4753
+ return jspb.Message.setProto3IntField(this, 2, value);
4754
+ };
4755
+
4756
+
4757
+ /**
4758
+ * optional int32 updated = 3;
4759
+ * @return {number}
4760
+ */
4761
+ proto.SyncGlFromAccurateResponse.prototype.getUpdated = function() {
4762
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4763
+ };
4764
+
4765
+
4766
+ /**
4767
+ * @param {number} value
4768
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4769
+ */
4770
+ proto.SyncGlFromAccurateResponse.prototype.setUpdated = function(value) {
4771
+ return jspb.Message.setProto3IntField(this, 3, value);
4772
+ };
4773
+
4774
+
4775
+ /**
4776
+ * optional int32 unchanged = 4;
4777
+ * @return {number}
4778
+ */
4779
+ proto.SyncGlFromAccurateResponse.prototype.getUnchanged = function() {
4780
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * @param {number} value
4786
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4787
+ */
4788
+ proto.SyncGlFromAccurateResponse.prototype.setUnchanged = function(value) {
4789
+ return jspb.Message.setProto3IntField(this, 4, value);
4790
+ };
4791
+
4792
+
4793
+ /**
4794
+ * optional int32 failed = 5;
4795
+ * @return {number}
4796
+ */
4797
+ proto.SyncGlFromAccurateResponse.prototype.getFailed = function() {
4798
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4799
+ };
4800
+
4801
+
4802
+ /**
4803
+ * @param {number} value
4804
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4805
+ */
4806
+ proto.SyncGlFromAccurateResponse.prototype.setFailed = function(value) {
4807
+ return jspb.Message.setProto3IntField(this, 5, value);
4808
+ };
4809
+
4810
+
4811
+ /**
4812
+ * repeated SyncGlSyncedItem synced = 6;
4813
+ * @return {!Array<!proto.SyncGlSyncedItem>}
4814
+ */
4815
+ proto.SyncGlFromAccurateResponse.prototype.getSyncedList = function() {
4816
+ return /** @type{!Array<!proto.SyncGlSyncedItem>} */ (
4817
+ jspb.Message.getRepeatedWrapperField(this, proto.SyncGlSyncedItem, 6));
4818
+ };
4819
+
4820
+
4821
+ /**
4822
+ * @param {!Array<!proto.SyncGlSyncedItem>} value
4823
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4824
+ */
4825
+ proto.SyncGlFromAccurateResponse.prototype.setSyncedList = function(value) {
4826
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
4827
+ };
4828
+
4829
+
4830
+ /**
4831
+ * @param {!proto.SyncGlSyncedItem=} opt_value
4832
+ * @param {number=} opt_index
4833
+ * @return {!proto.SyncGlSyncedItem}
4834
+ */
4835
+ proto.SyncGlFromAccurateResponse.prototype.addSynced = function(opt_value, opt_index) {
4836
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.SyncGlSyncedItem, opt_index);
4837
+ };
4838
+
4839
+
4840
+ /**
4841
+ * Clears the list making it empty but non-null.
4842
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4843
+ */
4844
+ proto.SyncGlFromAccurateResponse.prototype.clearSyncedList = function() {
4845
+ return this.setSyncedList([]);
4846
+ };
4847
+
4848
+
4849
+ /**
4850
+ * repeated SyncGlFailedItem failures = 7;
4851
+ * @return {!Array<!proto.SyncGlFailedItem>}
4852
+ */
4853
+ proto.SyncGlFromAccurateResponse.prototype.getFailuresList = function() {
4854
+ return /** @type{!Array<!proto.SyncGlFailedItem>} */ (
4855
+ jspb.Message.getRepeatedWrapperField(this, proto.SyncGlFailedItem, 7));
4856
+ };
4857
+
4858
+
4859
+ /**
4860
+ * @param {!Array<!proto.SyncGlFailedItem>} value
4861
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4862
+ */
4863
+ proto.SyncGlFromAccurateResponse.prototype.setFailuresList = function(value) {
4864
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
4865
+ };
4866
+
4867
+
4868
+ /**
4869
+ * @param {!proto.SyncGlFailedItem=} opt_value
4870
+ * @param {number=} opt_index
4871
+ * @return {!proto.SyncGlFailedItem}
4872
+ */
4873
+ proto.SyncGlFromAccurateResponse.prototype.addFailures = function(opt_value, opt_index) {
4874
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.SyncGlFailedItem, opt_index);
4875
+ };
4876
+
4877
+
4878
+ /**
4879
+ * Clears the list making it empty but non-null.
4880
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4881
+ */
4882
+ proto.SyncGlFromAccurateResponse.prototype.clearFailuresList = function() {
4883
+ return this.setFailuresList([]);
4884
+ };
4885
+
4886
+
3896
4887
  goog.object.extend(exports, proto);