@aldiokta/protocgen 1.1.67 → 1.1.68

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 (74) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/audit_trail/audit_trail_grpc_pb.js +92 -0
  3. package/prisca/v1/audit_trail/audit_trail_pb.js +2107 -0
  4. package/prisca/v1/bidding/bidding_pb.js +61 -1
  5. package/prisca/v1/business_partner/business_partner_grpc_pb.js +334 -0
  6. package/prisca/v1/business_partner/business_partner_pb.js +5244 -0
  7. package/prisca/v1/core/bp_config/bp_config_grpc_pb.js +697 -0
  8. package/prisca/v1/core/bp_config/bp_config_pb.js +10812 -0
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +340 -10
  10. package/prisca/v1/core/job_title/job_title_pb.js +31 -1
  11. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +73 -0
  12. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2027 -0
  13. package/prisca/v1/core/material_sales/material_account_assignment_group_grpc_pb.js +183 -0
  14. package/prisca/v1/core/material_sales/material_account_assignment_group_pb.js +2658 -0
  15. package/prisca/v1/core/material_sales/material_division_grpc_pb.js +199 -0
  16. package/prisca/v1/core/material_sales/material_division_pb.js +2706 -0
  17. package/prisca/v1/core/material_sales/material_item_category_group_grpc_pb.js +183 -0
  18. package/prisca/v1/core/material_sales/material_item_category_group_pb.js +2658 -0
  19. package/prisca/v1/core/material_sales/material_plant_grpc_pb.js +193 -0
  20. package/prisca/v1/core/material_sales/material_plant_pb.js +2757 -0
  21. package/prisca/v1/core/material_sales/material_sales_eligibility_grpc_pb.js +62 -0
  22. package/prisca/v1/core/material_sales/material_sales_eligibility_pb.js +475 -0
  23. package/prisca/v1/core/material_sales/material_sales_org_grpc_pb.js +191 -0
  24. package/prisca/v1/core/material_sales/material_sales_org_pb.js +2937 -0
  25. package/prisca/v1/core/material_sales/material_tax_classification_grpc_pb.js +193 -0
  26. package/prisca/v1/core/material_sales/material_tax_classification_pb.js +2817 -0
  27. package/prisca/v1/core/material_sales/material_tax_classification_value_grpc_pb.js +194 -0
  28. package/prisca/v1/core/material_sales/material_tax_classification_value_pb.js +2868 -0
  29. package/prisca/v1/core/material_sales/material_withholding_tax_group_grpc_pb.js +188 -0
  30. package/prisca/v1/core/material_sales/material_withholding_tax_group_pb.js +2658 -0
  31. package/prisca/v1/core/sales_org/distribution_channel_grpc_pb.js +180 -0
  32. package/prisca/v1/core/sales_org/distribution_channel_pb.js +2658 -0
  33. package/prisca/v1/core/sales_org/sales_address_grpc_pb.js +1 -0
  34. package/prisca/v1/core/sales_org/sales_address_pb.js +380 -0
  35. package/prisca/v1/core/sales_org/sales_area_grpc_pb.js +157 -0
  36. package/prisca/v1/core/sales_org/sales_area_pb.js +2381 -0
  37. package/prisca/v1/core/sales_org/sales_division_grpc_pb.js +180 -0
  38. package/prisca/v1/core/sales_org/sales_division_pb.js +2658 -0
  39. package/prisca/v1/core/sales_org/sales_group_assignment_grpc_pb.js +151 -0
  40. package/prisca/v1/core/sales_org/sales_group_assignment_pb.js +2231 -0
  41. package/prisca/v1/core/sales_org/sales_group_grpc_pb.js +180 -0
  42. package/prisca/v1/core/sales_org/sales_group_pb.js +2658 -0
  43. package/prisca/v1/core/sales_org/sales_office_assignment_grpc_pb.js +151 -0
  44. package/prisca/v1/core/sales_org/sales_office_assignment_pb.js +2231 -0
  45. package/prisca/v1/core/sales_org/sales_office_grpc_pb.js +181 -0
  46. package/prisca/v1/core/sales_org/sales_office_pb.js +2762 -0
  47. package/prisca/v1/core/sales_org/sales_org_distribution_channel_grpc_pb.js +151 -0
  48. package/prisca/v1/core/sales_org/sales_org_distribution_channel_pb.js +2231 -0
  49. package/prisca/v1/core/sales_org/sales_org_division_grpc_pb.js +151 -0
  50. package/prisca/v1/core/sales_org/sales_org_division_pb.js +2231 -0
  51. package/prisca/v1/core/sales_org/sales_org_plant_grpc_pb.js +152 -0
  52. package/prisca/v1/core/sales_org/sales_org_plant_pb.js +2291 -0
  53. package/prisca/v1/core/sales_org/sales_organization_grpc_pb.js +181 -0
  54. package/prisca/v1/core/sales_org/sales_organization_pb.js +2822 -0
  55. package/prisca/v1/core/sales_org/shipping_point_grpc_pb.js +181 -0
  56. package/prisca/v1/core/sales_org/shipping_point_pb.js +2762 -0
  57. package/prisca/v1/core/sales_org/shipping_point_plant_grpc_pb.js +152 -0
  58. package/prisca/v1/core/sales_org/shipping_point_plant_pb.js +2231 -0
  59. package/prisca/v1/core/transaction_type/transaction_type_grpc_pb.js +147 -0
  60. package/prisca/v1/core/transaction_type/transaction_type_pb.js +2587 -0
  61. package/prisca/v1/customer/customer_grpc_pb.js +184 -0
  62. package/prisca/v1/customer/customer_pb.js +3498 -0
  63. package/prisca/v1/customer/customer_registration_grpc_pb.js +93 -0
  64. package/prisca/v1/customer/customer_registration_pb.js +1300 -0
  65. package/prisca/v1/customer/customer_sales_area_grpc_pb.js +256 -0
  66. package/prisca/v1/customer/customer_sales_area_pb.js +4681 -0
  67. package/prisca/v1/delivery_order/delivery_order_pb.js +61 -1
  68. package/prisca/v1/good_receipt/good_receipt_pb.js +31 -1
  69. package/prisca/v1/invoice/invoice_pb.js +62 -2
  70. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +87 -0
  71. package/prisca/v1/purchase_order/purchase_order_pb.js +1015 -5
  72. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
  73. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +152 -2
  74. package/prisca/v1/vendor_domain/vendor_domain_pb.js +94 -15
@@ -0,0 +1,2587 @@
1
+ // source: prisca/v1/core/transaction_type/transaction_type.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ goog.exportSymbol('proto.BaseTransactionTypeRequest', null, global);
21
+ goog.exportSymbol('proto.CreateTransactionTypeRequest', null, global);
22
+ goog.exportSymbol('proto.CreateTransactionTypeResponse', null, global);
23
+ goog.exportSymbol('proto.GetListTransactionTypeRequest', null, global);
24
+ goog.exportSymbol('proto.GetListTransactionTypeResponse', null, global);
25
+ goog.exportSymbol('proto.GetTransactionTypeByIdRequest', null, global);
26
+ goog.exportSymbol('proto.GetTransactionTypeByIdResponse', null, global);
27
+ goog.exportSymbol('proto.TransactionType', null, global);
28
+ goog.exportSymbol('proto.UpdateTransactionTypeRequest', null, global);
29
+ goog.exportSymbol('proto.UpdateTransactionTypeResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.TransactionType = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.TransactionType, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.TransactionType.displayName = 'proto.TransactionType';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.BaseTransactionTypeRequest = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.BaseTransactionTypeRequest, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.BaseTransactionTypeRequest.displayName = 'proto.BaseTransactionTypeRequest';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.GetTransactionTypeByIdRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.GetTransactionTypeByIdRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.GetTransactionTypeByIdRequest.displayName = 'proto.GetTransactionTypeByIdRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.GetListTransactionTypeRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.GetListTransactionTypeRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.GetListTransactionTypeRequest.displayName = 'proto.GetListTransactionTypeRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.CreateTransactionTypeRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.CreateTransactionTypeRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.CreateTransactionTypeRequest.displayName = 'proto.CreateTransactionTypeRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.UpdateTransactionTypeRequest = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(proto.UpdateTransactionTypeRequest, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.UpdateTransactionTypeRequest.displayName = 'proto.UpdateTransactionTypeRequest';
155
+ }
156
+ /**
157
+ * Generated by JsPbCodeGenerator.
158
+ * @param {Array=} opt_data Optional initial data array, typically from a
159
+ * server response, or constructed directly in Javascript. The array is used
160
+ * in place and becomes part of the constructed object. It is not cloned.
161
+ * If no data is provided, the constructed object will be empty, but still
162
+ * valid.
163
+ * @extends {jspb.Message}
164
+ * @constructor
165
+ */
166
+ proto.CreateTransactionTypeResponse = function(opt_data) {
167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
168
+ };
169
+ goog.inherits(proto.CreateTransactionTypeResponse, jspb.Message);
170
+ if (goog.DEBUG && !COMPILED) {
171
+ /**
172
+ * @public
173
+ * @override
174
+ */
175
+ proto.CreateTransactionTypeResponse.displayName = 'proto.CreateTransactionTypeResponse';
176
+ }
177
+ /**
178
+ * Generated by JsPbCodeGenerator.
179
+ * @param {Array=} opt_data Optional initial data array, typically from a
180
+ * server response, or constructed directly in Javascript. The array is used
181
+ * in place and becomes part of the constructed object. It is not cloned.
182
+ * If no data is provided, the constructed object will be empty, but still
183
+ * valid.
184
+ * @extends {jspb.Message}
185
+ * @constructor
186
+ */
187
+ proto.UpdateTransactionTypeResponse = function(opt_data) {
188
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
189
+ };
190
+ goog.inherits(proto.UpdateTransactionTypeResponse, jspb.Message);
191
+ if (goog.DEBUG && !COMPILED) {
192
+ /**
193
+ * @public
194
+ * @override
195
+ */
196
+ proto.UpdateTransactionTypeResponse.displayName = 'proto.UpdateTransactionTypeResponse';
197
+ }
198
+ /**
199
+ * Generated by JsPbCodeGenerator.
200
+ * @param {Array=} opt_data Optional initial data array, typically from a
201
+ * server response, or constructed directly in Javascript. The array is used
202
+ * in place and becomes part of the constructed object. It is not cloned.
203
+ * If no data is provided, the constructed object will be empty, but still
204
+ * valid.
205
+ * @extends {jspb.Message}
206
+ * @constructor
207
+ */
208
+ proto.GetTransactionTypeByIdResponse = function(opt_data) {
209
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
210
+ };
211
+ goog.inherits(proto.GetTransactionTypeByIdResponse, jspb.Message);
212
+ if (goog.DEBUG && !COMPILED) {
213
+ /**
214
+ * @public
215
+ * @override
216
+ */
217
+ proto.GetTransactionTypeByIdResponse.displayName = 'proto.GetTransactionTypeByIdResponse';
218
+ }
219
+ /**
220
+ * Generated by JsPbCodeGenerator.
221
+ * @param {Array=} opt_data Optional initial data array, typically from a
222
+ * server response, or constructed directly in Javascript. The array is used
223
+ * in place and becomes part of the constructed object. It is not cloned.
224
+ * If no data is provided, the constructed object will be empty, but still
225
+ * valid.
226
+ * @extends {jspb.Message}
227
+ * @constructor
228
+ */
229
+ proto.GetListTransactionTypeResponse = function(opt_data) {
230
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListTransactionTypeResponse.repeatedFields_, null);
231
+ };
232
+ goog.inherits(proto.GetListTransactionTypeResponse, jspb.Message);
233
+ if (goog.DEBUG && !COMPILED) {
234
+ /**
235
+ * @public
236
+ * @override
237
+ */
238
+ proto.GetListTransactionTypeResponse.displayName = 'proto.GetListTransactionTypeResponse';
239
+ }
240
+
241
+
242
+
243
+ if (jspb.Message.GENERATE_TO_OBJECT) {
244
+ /**
245
+ * Creates an object representation of this proto.
246
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
247
+ * Optional fields that are not set will be set to undefined.
248
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
249
+ * For the list of reserved names please see:
250
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
251
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
252
+ * JSPB instance for transitional soy proto support:
253
+ * http://goto/soy-param-migration
254
+ * @return {!Object}
255
+ */
256
+ proto.TransactionType.prototype.toObject = function(opt_includeInstance) {
257
+ return proto.TransactionType.toObject(opt_includeInstance, this);
258
+ };
259
+
260
+
261
+ /**
262
+ * Static version of the {@see toObject} method.
263
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
264
+ * the JSPB instance for transitional soy proto support:
265
+ * http://goto/soy-param-migration
266
+ * @param {!proto.TransactionType} msg The msg instance to transform.
267
+ * @return {!Object}
268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
269
+ */
270
+ proto.TransactionType.toObject = function(includeInstance, msg) {
271
+ var f, obj = {
272
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
273
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
274
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
275
+ label: jspb.Message.getFieldWithDefault(msg, 4, ""),
276
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
277
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
278
+ envelope: jspb.Message.getFieldWithDefault(msg, 7, ""),
279
+ defaultDocumentTypeRef: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
280
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
281
+ createdAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
282
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
283
+ createdBy: jspb.Message.getFieldWithDefault(msg, 12, ""),
284
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 13, ""),
285
+ fieldCount: jspb.Message.getFieldWithDefault(msg, 14, 0),
286
+ workflowCount: jspb.Message.getFieldWithDefault(msg, 15, 0)
287
+ };
288
+
289
+ if (includeInstance) {
290
+ obj.$jspbMessageInstance = msg;
291
+ }
292
+ return obj;
293
+ };
294
+ }
295
+
296
+
297
+ /**
298
+ * Deserializes binary data (in protobuf wire format).
299
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
300
+ * @return {!proto.TransactionType}
301
+ */
302
+ proto.TransactionType.deserializeBinary = function(bytes) {
303
+ var reader = new jspb.BinaryReader(bytes);
304
+ var msg = new proto.TransactionType;
305
+ return proto.TransactionType.deserializeBinaryFromReader(msg, reader);
306
+ };
307
+
308
+
309
+ /**
310
+ * Deserializes binary data (in protobuf wire format) from the
311
+ * given reader into the given message object.
312
+ * @param {!proto.TransactionType} msg The message object to deserialize into.
313
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
314
+ * @return {!proto.TransactionType}
315
+ */
316
+ proto.TransactionType.deserializeBinaryFromReader = function(msg, reader) {
317
+ while (reader.nextField()) {
318
+ if (reader.isEndGroup()) {
319
+ break;
320
+ }
321
+ var field = reader.getFieldNumber();
322
+ switch (field) {
323
+ case 1:
324
+ var value = /** @type {number} */ (reader.readInt64());
325
+ msg.setId(value);
326
+ break;
327
+ case 2:
328
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
329
+ msg.setReferencesId(value);
330
+ break;
331
+ case 3:
332
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
333
+ msg.setSlug(value);
334
+ break;
335
+ case 4:
336
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
337
+ msg.setLabel(value);
338
+ break;
339
+ case 5:
340
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
341
+ msg.setDescription(value);
342
+ break;
343
+ case 6:
344
+ var value = /** @type {boolean} */ (reader.readBool());
345
+ msg.setIsActive(value);
346
+ break;
347
+ case 7:
348
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
349
+ msg.setEnvelope(value);
350
+ break;
351
+ case 8:
352
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
353
+ msg.setDefaultDocumentTypeRef(value);
354
+ break;
355
+ case 9:
356
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
357
+ msg.setCompaniesReferencesId(value);
358
+ break;
359
+ case 10:
360
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
361
+ msg.setCreatedAt(value);
362
+ break;
363
+ case 11:
364
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
365
+ msg.setUpdatedAt(value);
366
+ break;
367
+ case 12:
368
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
369
+ msg.setCreatedBy(value);
370
+ break;
371
+ case 13:
372
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
373
+ msg.setUpdatedBy(value);
374
+ break;
375
+ case 14:
376
+ var value = /** @type {number} */ (reader.readInt64());
377
+ msg.setFieldCount(value);
378
+ break;
379
+ case 15:
380
+ var value = /** @type {number} */ (reader.readInt64());
381
+ msg.setWorkflowCount(value);
382
+ break;
383
+ default:
384
+ reader.skipField();
385
+ break;
386
+ }
387
+ }
388
+ return msg;
389
+ };
390
+
391
+
392
+ /**
393
+ * Serializes the message to binary data (in protobuf wire format).
394
+ * @return {!Uint8Array}
395
+ */
396
+ proto.TransactionType.prototype.serializeBinary = function() {
397
+ var writer = new jspb.BinaryWriter();
398
+ proto.TransactionType.serializeBinaryToWriter(this, writer);
399
+ return writer.getResultBuffer();
400
+ };
401
+
402
+
403
+ /**
404
+ * Serializes the given message to binary data (in protobuf wire
405
+ * format), writing to the given BinaryWriter.
406
+ * @param {!proto.TransactionType} message
407
+ * @param {!jspb.BinaryWriter} writer
408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
409
+ */
410
+ proto.TransactionType.serializeBinaryToWriter = function(message, writer) {
411
+ var f = undefined;
412
+ f = message.getId();
413
+ if (f !== 0) {
414
+ writer.writeInt64(
415
+ 1,
416
+ f
417
+ );
418
+ }
419
+ f = message.getReferencesId();
420
+ if (f.length > 0) {
421
+ writer.writeString(
422
+ 2,
423
+ f
424
+ );
425
+ }
426
+ f = message.getSlug();
427
+ if (f.length > 0) {
428
+ writer.writeString(
429
+ 3,
430
+ f
431
+ );
432
+ }
433
+ f = message.getLabel();
434
+ if (f.length > 0) {
435
+ writer.writeString(
436
+ 4,
437
+ f
438
+ );
439
+ }
440
+ f = message.getDescription();
441
+ if (f.length > 0) {
442
+ writer.writeString(
443
+ 5,
444
+ f
445
+ );
446
+ }
447
+ f = message.getIsActive();
448
+ if (f) {
449
+ writer.writeBool(
450
+ 6,
451
+ f
452
+ );
453
+ }
454
+ f = message.getEnvelope();
455
+ if (f.length > 0) {
456
+ writer.writeString(
457
+ 7,
458
+ f
459
+ );
460
+ }
461
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
462
+ if (f != null) {
463
+ writer.writeString(
464
+ 8,
465
+ f
466
+ );
467
+ }
468
+ f = message.getCompaniesReferencesId();
469
+ if (f.length > 0) {
470
+ writer.writeString(
471
+ 9,
472
+ f
473
+ );
474
+ }
475
+ f = message.getCreatedAt();
476
+ if (f.length > 0) {
477
+ writer.writeString(
478
+ 10,
479
+ f
480
+ );
481
+ }
482
+ f = message.getUpdatedAt();
483
+ if (f.length > 0) {
484
+ writer.writeString(
485
+ 11,
486
+ f
487
+ );
488
+ }
489
+ f = message.getCreatedBy();
490
+ if (f.length > 0) {
491
+ writer.writeString(
492
+ 12,
493
+ f
494
+ );
495
+ }
496
+ f = message.getUpdatedBy();
497
+ if (f.length > 0) {
498
+ writer.writeString(
499
+ 13,
500
+ f
501
+ );
502
+ }
503
+ f = message.getFieldCount();
504
+ if (f !== 0) {
505
+ writer.writeInt64(
506
+ 14,
507
+ f
508
+ );
509
+ }
510
+ f = message.getWorkflowCount();
511
+ if (f !== 0) {
512
+ writer.writeInt64(
513
+ 15,
514
+ f
515
+ );
516
+ }
517
+ };
518
+
519
+
520
+ /**
521
+ * optional int64 id = 1;
522
+ * @return {number}
523
+ */
524
+ proto.TransactionType.prototype.getId = function() {
525
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
526
+ };
527
+
528
+
529
+ /**
530
+ * @param {number} value
531
+ * @return {!proto.TransactionType} returns this
532
+ */
533
+ proto.TransactionType.prototype.setId = function(value) {
534
+ return jspb.Message.setProto3IntField(this, 1, value);
535
+ };
536
+
537
+
538
+ /**
539
+ * optional string references_id = 2;
540
+ * @return {string}
541
+ */
542
+ proto.TransactionType.prototype.getReferencesId = function() {
543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {string} value
549
+ * @return {!proto.TransactionType} returns this
550
+ */
551
+ proto.TransactionType.prototype.setReferencesId = function(value) {
552
+ return jspb.Message.setProto3StringField(this, 2, value);
553
+ };
554
+
555
+
556
+ /**
557
+ * optional string slug = 3;
558
+ * @return {string}
559
+ */
560
+ proto.TransactionType.prototype.getSlug = function() {
561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
562
+ };
563
+
564
+
565
+ /**
566
+ * @param {string} value
567
+ * @return {!proto.TransactionType} returns this
568
+ */
569
+ proto.TransactionType.prototype.setSlug = function(value) {
570
+ return jspb.Message.setProto3StringField(this, 3, value);
571
+ };
572
+
573
+
574
+ /**
575
+ * optional string label = 4;
576
+ * @return {string}
577
+ */
578
+ proto.TransactionType.prototype.getLabel = function() {
579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
580
+ };
581
+
582
+
583
+ /**
584
+ * @param {string} value
585
+ * @return {!proto.TransactionType} returns this
586
+ */
587
+ proto.TransactionType.prototype.setLabel = function(value) {
588
+ return jspb.Message.setProto3StringField(this, 4, value);
589
+ };
590
+
591
+
592
+ /**
593
+ * optional string description = 5;
594
+ * @return {string}
595
+ */
596
+ proto.TransactionType.prototype.getDescription = function() {
597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
598
+ };
599
+
600
+
601
+ /**
602
+ * @param {string} value
603
+ * @return {!proto.TransactionType} returns this
604
+ */
605
+ proto.TransactionType.prototype.setDescription = function(value) {
606
+ return jspb.Message.setProto3StringField(this, 5, value);
607
+ };
608
+
609
+
610
+ /**
611
+ * optional bool is_active = 6;
612
+ * @return {boolean}
613
+ */
614
+ proto.TransactionType.prototype.getIsActive = function() {
615
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
616
+ };
617
+
618
+
619
+ /**
620
+ * @param {boolean} value
621
+ * @return {!proto.TransactionType} returns this
622
+ */
623
+ proto.TransactionType.prototype.setIsActive = function(value) {
624
+ return jspb.Message.setProto3BooleanField(this, 6, value);
625
+ };
626
+
627
+
628
+ /**
629
+ * optional string envelope = 7;
630
+ * @return {string}
631
+ */
632
+ proto.TransactionType.prototype.getEnvelope = function() {
633
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
634
+ };
635
+
636
+
637
+ /**
638
+ * @param {string} value
639
+ * @return {!proto.TransactionType} returns this
640
+ */
641
+ proto.TransactionType.prototype.setEnvelope = function(value) {
642
+ return jspb.Message.setProto3StringField(this, 7, value);
643
+ };
644
+
645
+
646
+ /**
647
+ * optional string default_document_type_ref = 8;
648
+ * @return {string}
649
+ */
650
+ proto.TransactionType.prototype.getDefaultDocumentTypeRef = function() {
651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
652
+ };
653
+
654
+
655
+ /**
656
+ * @param {string} value
657
+ * @return {!proto.TransactionType} returns this
658
+ */
659
+ proto.TransactionType.prototype.setDefaultDocumentTypeRef = function(value) {
660
+ return jspb.Message.setField(this, 8, value);
661
+ };
662
+
663
+
664
+ /**
665
+ * Clears the field making it undefined.
666
+ * @return {!proto.TransactionType} returns this
667
+ */
668
+ proto.TransactionType.prototype.clearDefaultDocumentTypeRef = function() {
669
+ return jspb.Message.setField(this, 8, undefined);
670
+ };
671
+
672
+
673
+ /**
674
+ * Returns whether this field is set.
675
+ * @return {boolean}
676
+ */
677
+ proto.TransactionType.prototype.hasDefaultDocumentTypeRef = function() {
678
+ return jspb.Message.getField(this, 8) != null;
679
+ };
680
+
681
+
682
+ /**
683
+ * optional string companies_references_id = 9;
684
+ * @return {string}
685
+ */
686
+ proto.TransactionType.prototype.getCompaniesReferencesId = function() {
687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
688
+ };
689
+
690
+
691
+ /**
692
+ * @param {string} value
693
+ * @return {!proto.TransactionType} returns this
694
+ */
695
+ proto.TransactionType.prototype.setCompaniesReferencesId = function(value) {
696
+ return jspb.Message.setProto3StringField(this, 9, value);
697
+ };
698
+
699
+
700
+ /**
701
+ * optional string created_at = 10;
702
+ * @return {string}
703
+ */
704
+ proto.TransactionType.prototype.getCreatedAt = function() {
705
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
706
+ };
707
+
708
+
709
+ /**
710
+ * @param {string} value
711
+ * @return {!proto.TransactionType} returns this
712
+ */
713
+ proto.TransactionType.prototype.setCreatedAt = function(value) {
714
+ return jspb.Message.setProto3StringField(this, 10, value);
715
+ };
716
+
717
+
718
+ /**
719
+ * optional string updated_at = 11;
720
+ * @return {string}
721
+ */
722
+ proto.TransactionType.prototype.getUpdatedAt = function() {
723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
724
+ };
725
+
726
+
727
+ /**
728
+ * @param {string} value
729
+ * @return {!proto.TransactionType} returns this
730
+ */
731
+ proto.TransactionType.prototype.setUpdatedAt = function(value) {
732
+ return jspb.Message.setProto3StringField(this, 11, value);
733
+ };
734
+
735
+
736
+ /**
737
+ * optional string created_by = 12;
738
+ * @return {string}
739
+ */
740
+ proto.TransactionType.prototype.getCreatedBy = function() {
741
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
742
+ };
743
+
744
+
745
+ /**
746
+ * @param {string} value
747
+ * @return {!proto.TransactionType} returns this
748
+ */
749
+ proto.TransactionType.prototype.setCreatedBy = function(value) {
750
+ return jspb.Message.setProto3StringField(this, 12, value);
751
+ };
752
+
753
+
754
+ /**
755
+ * optional string updated_by = 13;
756
+ * @return {string}
757
+ */
758
+ proto.TransactionType.prototype.getUpdatedBy = function() {
759
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
760
+ };
761
+
762
+
763
+ /**
764
+ * @param {string} value
765
+ * @return {!proto.TransactionType} returns this
766
+ */
767
+ proto.TransactionType.prototype.setUpdatedBy = function(value) {
768
+ return jspb.Message.setProto3StringField(this, 13, value);
769
+ };
770
+
771
+
772
+ /**
773
+ * optional int64 field_count = 14;
774
+ * @return {number}
775
+ */
776
+ proto.TransactionType.prototype.getFieldCount = function() {
777
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
778
+ };
779
+
780
+
781
+ /**
782
+ * @param {number} value
783
+ * @return {!proto.TransactionType} returns this
784
+ */
785
+ proto.TransactionType.prototype.setFieldCount = function(value) {
786
+ return jspb.Message.setProto3IntField(this, 14, value);
787
+ };
788
+
789
+
790
+ /**
791
+ * optional int64 workflow_count = 15;
792
+ * @return {number}
793
+ */
794
+ proto.TransactionType.prototype.getWorkflowCount = function() {
795
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
796
+ };
797
+
798
+
799
+ /**
800
+ * @param {number} value
801
+ * @return {!proto.TransactionType} returns this
802
+ */
803
+ proto.TransactionType.prototype.setWorkflowCount = function(value) {
804
+ return jspb.Message.setProto3IntField(this, 15, value);
805
+ };
806
+
807
+
808
+
809
+
810
+
811
+ if (jspb.Message.GENERATE_TO_OBJECT) {
812
+ /**
813
+ * Creates an object representation of this proto.
814
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
815
+ * Optional fields that are not set will be set to undefined.
816
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
817
+ * For the list of reserved names please see:
818
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
819
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
820
+ * JSPB instance for transitional soy proto support:
821
+ * http://goto/soy-param-migration
822
+ * @return {!Object}
823
+ */
824
+ proto.BaseTransactionTypeRequest.prototype.toObject = function(opt_includeInstance) {
825
+ return proto.BaseTransactionTypeRequest.toObject(opt_includeInstance, this);
826
+ };
827
+
828
+
829
+ /**
830
+ * Static version of the {@see toObject} method.
831
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
832
+ * the JSPB instance for transitional soy proto support:
833
+ * http://goto/soy-param-migration
834
+ * @param {!proto.BaseTransactionTypeRequest} msg The msg instance to transform.
835
+ * @return {!Object}
836
+ * @suppress {unusedLocalVariables} f is only used for nested messages
837
+ */
838
+ proto.BaseTransactionTypeRequest.toObject = function(includeInstance, msg) {
839
+ var f, obj = {
840
+ label: jspb.Message.getFieldWithDefault(msg, 1, ""),
841
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
842
+ envelope: jspb.Message.getFieldWithDefault(msg, 3, ""),
843
+ defaultDocumentTypeRef: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
844
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
845
+ };
846
+
847
+ if (includeInstance) {
848
+ obj.$jspbMessageInstance = msg;
849
+ }
850
+ return obj;
851
+ };
852
+ }
853
+
854
+
855
+ /**
856
+ * Deserializes binary data (in protobuf wire format).
857
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
858
+ * @return {!proto.BaseTransactionTypeRequest}
859
+ */
860
+ proto.BaseTransactionTypeRequest.deserializeBinary = function(bytes) {
861
+ var reader = new jspb.BinaryReader(bytes);
862
+ var msg = new proto.BaseTransactionTypeRequest;
863
+ return proto.BaseTransactionTypeRequest.deserializeBinaryFromReader(msg, reader);
864
+ };
865
+
866
+
867
+ /**
868
+ * Deserializes binary data (in protobuf wire format) from the
869
+ * given reader into the given message object.
870
+ * @param {!proto.BaseTransactionTypeRequest} msg The message object to deserialize into.
871
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
872
+ * @return {!proto.BaseTransactionTypeRequest}
873
+ */
874
+ proto.BaseTransactionTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
875
+ while (reader.nextField()) {
876
+ if (reader.isEndGroup()) {
877
+ break;
878
+ }
879
+ var field = reader.getFieldNumber();
880
+ switch (field) {
881
+ case 1:
882
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
883
+ msg.setLabel(value);
884
+ break;
885
+ case 2:
886
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
887
+ msg.setDescription(value);
888
+ break;
889
+ case 3:
890
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
891
+ msg.setEnvelope(value);
892
+ break;
893
+ case 4:
894
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
895
+ msg.setDefaultDocumentTypeRef(value);
896
+ break;
897
+ case 5:
898
+ var value = /** @type {boolean} */ (reader.readBool());
899
+ msg.setIsActive(value);
900
+ break;
901
+ default:
902
+ reader.skipField();
903
+ break;
904
+ }
905
+ }
906
+ return msg;
907
+ };
908
+
909
+
910
+ /**
911
+ * Serializes the message to binary data (in protobuf wire format).
912
+ * @return {!Uint8Array}
913
+ */
914
+ proto.BaseTransactionTypeRequest.prototype.serializeBinary = function() {
915
+ var writer = new jspb.BinaryWriter();
916
+ proto.BaseTransactionTypeRequest.serializeBinaryToWriter(this, writer);
917
+ return writer.getResultBuffer();
918
+ };
919
+
920
+
921
+ /**
922
+ * Serializes the given message to binary data (in protobuf wire
923
+ * format), writing to the given BinaryWriter.
924
+ * @param {!proto.BaseTransactionTypeRequest} message
925
+ * @param {!jspb.BinaryWriter} writer
926
+ * @suppress {unusedLocalVariables} f is only used for nested messages
927
+ */
928
+ proto.BaseTransactionTypeRequest.serializeBinaryToWriter = function(message, writer) {
929
+ var f = undefined;
930
+ f = message.getLabel();
931
+ if (f.length > 0) {
932
+ writer.writeString(
933
+ 1,
934
+ f
935
+ );
936
+ }
937
+ f = message.getDescription();
938
+ if (f.length > 0) {
939
+ writer.writeString(
940
+ 2,
941
+ f
942
+ );
943
+ }
944
+ f = message.getEnvelope();
945
+ if (f.length > 0) {
946
+ writer.writeString(
947
+ 3,
948
+ f
949
+ );
950
+ }
951
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
952
+ if (f != null) {
953
+ writer.writeString(
954
+ 4,
955
+ f
956
+ );
957
+ }
958
+ f = message.getIsActive();
959
+ if (f) {
960
+ writer.writeBool(
961
+ 5,
962
+ f
963
+ );
964
+ }
965
+ };
966
+
967
+
968
+ /**
969
+ * optional string label = 1;
970
+ * @return {string}
971
+ */
972
+ proto.BaseTransactionTypeRequest.prototype.getLabel = function() {
973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
974
+ };
975
+
976
+
977
+ /**
978
+ * @param {string} value
979
+ * @return {!proto.BaseTransactionTypeRequest} returns this
980
+ */
981
+ proto.BaseTransactionTypeRequest.prototype.setLabel = function(value) {
982
+ return jspb.Message.setProto3StringField(this, 1, value);
983
+ };
984
+
985
+
986
+ /**
987
+ * optional string description = 2;
988
+ * @return {string}
989
+ */
990
+ proto.BaseTransactionTypeRequest.prototype.getDescription = function() {
991
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
992
+ };
993
+
994
+
995
+ /**
996
+ * @param {string} value
997
+ * @return {!proto.BaseTransactionTypeRequest} returns this
998
+ */
999
+ proto.BaseTransactionTypeRequest.prototype.setDescription = function(value) {
1000
+ return jspb.Message.setProto3StringField(this, 2, value);
1001
+ };
1002
+
1003
+
1004
+ /**
1005
+ * optional string envelope = 3;
1006
+ * @return {string}
1007
+ */
1008
+ proto.BaseTransactionTypeRequest.prototype.getEnvelope = function() {
1009
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * @param {string} value
1015
+ * @return {!proto.BaseTransactionTypeRequest} returns this
1016
+ */
1017
+ proto.BaseTransactionTypeRequest.prototype.setEnvelope = function(value) {
1018
+ return jspb.Message.setProto3StringField(this, 3, value);
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * optional string default_document_type_ref = 4;
1024
+ * @return {string}
1025
+ */
1026
+ proto.BaseTransactionTypeRequest.prototype.getDefaultDocumentTypeRef = function() {
1027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * @param {string} value
1033
+ * @return {!proto.BaseTransactionTypeRequest} returns this
1034
+ */
1035
+ proto.BaseTransactionTypeRequest.prototype.setDefaultDocumentTypeRef = function(value) {
1036
+ return jspb.Message.setField(this, 4, value);
1037
+ };
1038
+
1039
+
1040
+ /**
1041
+ * Clears the field making it undefined.
1042
+ * @return {!proto.BaseTransactionTypeRequest} returns this
1043
+ */
1044
+ proto.BaseTransactionTypeRequest.prototype.clearDefaultDocumentTypeRef = function() {
1045
+ return jspb.Message.setField(this, 4, undefined);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Returns whether this field is set.
1051
+ * @return {boolean}
1052
+ */
1053
+ proto.BaseTransactionTypeRequest.prototype.hasDefaultDocumentTypeRef = function() {
1054
+ return jspb.Message.getField(this, 4) != null;
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * optional bool is_active = 5;
1060
+ * @return {boolean}
1061
+ */
1062
+ proto.BaseTransactionTypeRequest.prototype.getIsActive = function() {
1063
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * @param {boolean} value
1069
+ * @return {!proto.BaseTransactionTypeRequest} returns this
1070
+ */
1071
+ proto.BaseTransactionTypeRequest.prototype.setIsActive = function(value) {
1072
+ return jspb.Message.setProto3BooleanField(this, 5, value);
1073
+ };
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1080
+ /**
1081
+ * Creates an object representation of this proto.
1082
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1083
+ * Optional fields that are not set will be set to undefined.
1084
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1085
+ * For the list of reserved names please see:
1086
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1087
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1088
+ * JSPB instance for transitional soy proto support:
1089
+ * http://goto/soy-param-migration
1090
+ * @return {!Object}
1091
+ */
1092
+ proto.GetTransactionTypeByIdRequest.prototype.toObject = function(opt_includeInstance) {
1093
+ return proto.GetTransactionTypeByIdRequest.toObject(opt_includeInstance, this);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * Static version of the {@see toObject} method.
1099
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1100
+ * the JSPB instance for transitional soy proto support:
1101
+ * http://goto/soy-param-migration
1102
+ * @param {!proto.GetTransactionTypeByIdRequest} msg The msg instance to transform.
1103
+ * @return {!Object}
1104
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1105
+ */
1106
+ proto.GetTransactionTypeByIdRequest.toObject = function(includeInstance, msg) {
1107
+ var f, obj = {
1108
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1109
+ };
1110
+
1111
+ if (includeInstance) {
1112
+ obj.$jspbMessageInstance = msg;
1113
+ }
1114
+ return obj;
1115
+ };
1116
+ }
1117
+
1118
+
1119
+ /**
1120
+ * Deserializes binary data (in protobuf wire format).
1121
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1122
+ * @return {!proto.GetTransactionTypeByIdRequest}
1123
+ */
1124
+ proto.GetTransactionTypeByIdRequest.deserializeBinary = function(bytes) {
1125
+ var reader = new jspb.BinaryReader(bytes);
1126
+ var msg = new proto.GetTransactionTypeByIdRequest;
1127
+ return proto.GetTransactionTypeByIdRequest.deserializeBinaryFromReader(msg, reader);
1128
+ };
1129
+
1130
+
1131
+ /**
1132
+ * Deserializes binary data (in protobuf wire format) from the
1133
+ * given reader into the given message object.
1134
+ * @param {!proto.GetTransactionTypeByIdRequest} msg The message object to deserialize into.
1135
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1136
+ * @return {!proto.GetTransactionTypeByIdRequest}
1137
+ */
1138
+ proto.GetTransactionTypeByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1139
+ while (reader.nextField()) {
1140
+ if (reader.isEndGroup()) {
1141
+ break;
1142
+ }
1143
+ var field = reader.getFieldNumber();
1144
+ switch (field) {
1145
+ case 1:
1146
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1147
+ msg.setReferencesId(value);
1148
+ break;
1149
+ default:
1150
+ reader.skipField();
1151
+ break;
1152
+ }
1153
+ }
1154
+ return msg;
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Serializes the message to binary data (in protobuf wire format).
1160
+ * @return {!Uint8Array}
1161
+ */
1162
+ proto.GetTransactionTypeByIdRequest.prototype.serializeBinary = function() {
1163
+ var writer = new jspb.BinaryWriter();
1164
+ proto.GetTransactionTypeByIdRequest.serializeBinaryToWriter(this, writer);
1165
+ return writer.getResultBuffer();
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * Serializes the given message to binary data (in protobuf wire
1171
+ * format), writing to the given BinaryWriter.
1172
+ * @param {!proto.GetTransactionTypeByIdRequest} message
1173
+ * @param {!jspb.BinaryWriter} writer
1174
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1175
+ */
1176
+ proto.GetTransactionTypeByIdRequest.serializeBinaryToWriter = function(message, writer) {
1177
+ var f = undefined;
1178
+ f = message.getReferencesId();
1179
+ if (f.length > 0) {
1180
+ writer.writeString(
1181
+ 1,
1182
+ f
1183
+ );
1184
+ }
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * optional string references_id = 1;
1190
+ * @return {string}
1191
+ */
1192
+ proto.GetTransactionTypeByIdRequest.prototype.getReferencesId = function() {
1193
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * @param {string} value
1199
+ * @return {!proto.GetTransactionTypeByIdRequest} returns this
1200
+ */
1201
+ proto.GetTransactionTypeByIdRequest.prototype.setReferencesId = function(value) {
1202
+ return jspb.Message.setProto3StringField(this, 1, value);
1203
+ };
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1210
+ /**
1211
+ * Creates an object representation of this proto.
1212
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1213
+ * Optional fields that are not set will be set to undefined.
1214
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1215
+ * For the list of reserved names please see:
1216
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1217
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1218
+ * JSPB instance for transitional soy proto support:
1219
+ * http://goto/soy-param-migration
1220
+ * @return {!Object}
1221
+ */
1222
+ proto.GetListTransactionTypeRequest.prototype.toObject = function(opt_includeInstance) {
1223
+ return proto.GetListTransactionTypeRequest.toObject(opt_includeInstance, this);
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * Static version of the {@see toObject} method.
1229
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1230
+ * the JSPB instance for transitional soy proto support:
1231
+ * http://goto/soy-param-migration
1232
+ * @param {!proto.GetListTransactionTypeRequest} msg The msg instance to transform.
1233
+ * @return {!Object}
1234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1235
+ */
1236
+ proto.GetListTransactionTypeRequest.toObject = function(includeInstance, msg) {
1237
+ var f, obj = {
1238
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1239
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1240
+ };
1241
+
1242
+ if (includeInstance) {
1243
+ obj.$jspbMessageInstance = msg;
1244
+ }
1245
+ return obj;
1246
+ };
1247
+ }
1248
+
1249
+
1250
+ /**
1251
+ * Deserializes binary data (in protobuf wire format).
1252
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1253
+ * @return {!proto.GetListTransactionTypeRequest}
1254
+ */
1255
+ proto.GetListTransactionTypeRequest.deserializeBinary = function(bytes) {
1256
+ var reader = new jspb.BinaryReader(bytes);
1257
+ var msg = new proto.GetListTransactionTypeRequest;
1258
+ return proto.GetListTransactionTypeRequest.deserializeBinaryFromReader(msg, reader);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Deserializes binary data (in protobuf wire format) from the
1264
+ * given reader into the given message object.
1265
+ * @param {!proto.GetListTransactionTypeRequest} msg The message object to deserialize into.
1266
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1267
+ * @return {!proto.GetListTransactionTypeRequest}
1268
+ */
1269
+ proto.GetListTransactionTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
1270
+ while (reader.nextField()) {
1271
+ if (reader.isEndGroup()) {
1272
+ break;
1273
+ }
1274
+ var field = reader.getFieldNumber();
1275
+ switch (field) {
1276
+ case 1:
1277
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1278
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1279
+ msg.setPagination(value);
1280
+ break;
1281
+ case 2:
1282
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1283
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1284
+ msg.setQuery(value);
1285
+ break;
1286
+ default:
1287
+ reader.skipField();
1288
+ break;
1289
+ }
1290
+ }
1291
+ return msg;
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * Serializes the message to binary data (in protobuf wire format).
1297
+ * @return {!Uint8Array}
1298
+ */
1299
+ proto.GetListTransactionTypeRequest.prototype.serializeBinary = function() {
1300
+ var writer = new jspb.BinaryWriter();
1301
+ proto.GetListTransactionTypeRequest.serializeBinaryToWriter(this, writer);
1302
+ return writer.getResultBuffer();
1303
+ };
1304
+
1305
+
1306
+ /**
1307
+ * Serializes the given message to binary data (in protobuf wire
1308
+ * format), writing to the given BinaryWriter.
1309
+ * @param {!proto.GetListTransactionTypeRequest} message
1310
+ * @param {!jspb.BinaryWriter} writer
1311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1312
+ */
1313
+ proto.GetListTransactionTypeRequest.serializeBinaryToWriter = function(message, writer) {
1314
+ var f = undefined;
1315
+ f = message.getPagination();
1316
+ if (f != null) {
1317
+ writer.writeMessage(
1318
+ 1,
1319
+ f,
1320
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1321
+ );
1322
+ }
1323
+ f = message.getQuery();
1324
+ if (f != null) {
1325
+ writer.writeMessage(
1326
+ 2,
1327
+ f,
1328
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1329
+ );
1330
+ }
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1336
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1337
+ */
1338
+ proto.GetListTransactionTypeRequest.prototype.getPagination = function() {
1339
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1340
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1346
+ * @return {!proto.GetListTransactionTypeRequest} returns this
1347
+ */
1348
+ proto.GetListTransactionTypeRequest.prototype.setPagination = function(value) {
1349
+ return jspb.Message.setWrapperField(this, 1, value);
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * Clears the message field making it undefined.
1355
+ * @return {!proto.GetListTransactionTypeRequest} returns this
1356
+ */
1357
+ proto.GetListTransactionTypeRequest.prototype.clearPagination = function() {
1358
+ return this.setPagination(undefined);
1359
+ };
1360
+
1361
+
1362
+ /**
1363
+ * Returns whether this field is set.
1364
+ * @return {boolean}
1365
+ */
1366
+ proto.GetListTransactionTypeRequest.prototype.hasPagination = function() {
1367
+ return jspb.Message.getField(this, 1) != null;
1368
+ };
1369
+
1370
+
1371
+ /**
1372
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1373
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1374
+ */
1375
+ proto.GetListTransactionTypeRequest.prototype.getQuery = function() {
1376
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1377
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1378
+ };
1379
+
1380
+
1381
+ /**
1382
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1383
+ * @return {!proto.GetListTransactionTypeRequest} returns this
1384
+ */
1385
+ proto.GetListTransactionTypeRequest.prototype.setQuery = function(value) {
1386
+ return jspb.Message.setWrapperField(this, 2, value);
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Clears the message field making it undefined.
1392
+ * @return {!proto.GetListTransactionTypeRequest} returns this
1393
+ */
1394
+ proto.GetListTransactionTypeRequest.prototype.clearQuery = function() {
1395
+ return this.setQuery(undefined);
1396
+ };
1397
+
1398
+
1399
+ /**
1400
+ * Returns whether this field is set.
1401
+ * @return {boolean}
1402
+ */
1403
+ proto.GetListTransactionTypeRequest.prototype.hasQuery = function() {
1404
+ return jspb.Message.getField(this, 2) != null;
1405
+ };
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1412
+ /**
1413
+ * Creates an object representation of this proto.
1414
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1415
+ * Optional fields that are not set will be set to undefined.
1416
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1417
+ * For the list of reserved names please see:
1418
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1419
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1420
+ * JSPB instance for transitional soy proto support:
1421
+ * http://goto/soy-param-migration
1422
+ * @return {!Object}
1423
+ */
1424
+ proto.CreateTransactionTypeRequest.prototype.toObject = function(opt_includeInstance) {
1425
+ return proto.CreateTransactionTypeRequest.toObject(opt_includeInstance, this);
1426
+ };
1427
+
1428
+
1429
+ /**
1430
+ * Static version of the {@see toObject} method.
1431
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1432
+ * the JSPB instance for transitional soy proto support:
1433
+ * http://goto/soy-param-migration
1434
+ * @param {!proto.CreateTransactionTypeRequest} msg The msg instance to transform.
1435
+ * @return {!Object}
1436
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1437
+ */
1438
+ proto.CreateTransactionTypeRequest.toObject = function(includeInstance, msg) {
1439
+ var f, obj = {
1440
+ slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
1441
+ baseTransactionTypeRequest: (f = msg.getBaseTransactionTypeRequest()) && proto.BaseTransactionTypeRequest.toObject(includeInstance, f)
1442
+ };
1443
+
1444
+ if (includeInstance) {
1445
+ obj.$jspbMessageInstance = msg;
1446
+ }
1447
+ return obj;
1448
+ };
1449
+ }
1450
+
1451
+
1452
+ /**
1453
+ * Deserializes binary data (in protobuf wire format).
1454
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1455
+ * @return {!proto.CreateTransactionTypeRequest}
1456
+ */
1457
+ proto.CreateTransactionTypeRequest.deserializeBinary = function(bytes) {
1458
+ var reader = new jspb.BinaryReader(bytes);
1459
+ var msg = new proto.CreateTransactionTypeRequest;
1460
+ return proto.CreateTransactionTypeRequest.deserializeBinaryFromReader(msg, reader);
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * Deserializes binary data (in protobuf wire format) from the
1466
+ * given reader into the given message object.
1467
+ * @param {!proto.CreateTransactionTypeRequest} msg The message object to deserialize into.
1468
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1469
+ * @return {!proto.CreateTransactionTypeRequest}
1470
+ */
1471
+ proto.CreateTransactionTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
1472
+ while (reader.nextField()) {
1473
+ if (reader.isEndGroup()) {
1474
+ break;
1475
+ }
1476
+ var field = reader.getFieldNumber();
1477
+ switch (field) {
1478
+ case 1:
1479
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1480
+ msg.setSlug(value);
1481
+ break;
1482
+ case 2:
1483
+ var value = new proto.BaseTransactionTypeRequest;
1484
+ reader.readMessage(value,proto.BaseTransactionTypeRequest.deserializeBinaryFromReader);
1485
+ msg.setBaseTransactionTypeRequest(value);
1486
+ break;
1487
+ default:
1488
+ reader.skipField();
1489
+ break;
1490
+ }
1491
+ }
1492
+ return msg;
1493
+ };
1494
+
1495
+
1496
+ /**
1497
+ * Serializes the message to binary data (in protobuf wire format).
1498
+ * @return {!Uint8Array}
1499
+ */
1500
+ proto.CreateTransactionTypeRequest.prototype.serializeBinary = function() {
1501
+ var writer = new jspb.BinaryWriter();
1502
+ proto.CreateTransactionTypeRequest.serializeBinaryToWriter(this, writer);
1503
+ return writer.getResultBuffer();
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * Serializes the given message to binary data (in protobuf wire
1509
+ * format), writing to the given BinaryWriter.
1510
+ * @param {!proto.CreateTransactionTypeRequest} message
1511
+ * @param {!jspb.BinaryWriter} writer
1512
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1513
+ */
1514
+ proto.CreateTransactionTypeRequest.serializeBinaryToWriter = function(message, writer) {
1515
+ var f = undefined;
1516
+ f = message.getSlug();
1517
+ if (f.length > 0) {
1518
+ writer.writeString(
1519
+ 1,
1520
+ f
1521
+ );
1522
+ }
1523
+ f = message.getBaseTransactionTypeRequest();
1524
+ if (f != null) {
1525
+ writer.writeMessage(
1526
+ 2,
1527
+ f,
1528
+ proto.BaseTransactionTypeRequest.serializeBinaryToWriter
1529
+ );
1530
+ }
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * optional string slug = 1;
1536
+ * @return {string}
1537
+ */
1538
+ proto.CreateTransactionTypeRequest.prototype.getSlug = function() {
1539
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1540
+ };
1541
+
1542
+
1543
+ /**
1544
+ * @param {string} value
1545
+ * @return {!proto.CreateTransactionTypeRequest} returns this
1546
+ */
1547
+ proto.CreateTransactionTypeRequest.prototype.setSlug = function(value) {
1548
+ return jspb.Message.setProto3StringField(this, 1, value);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * optional BaseTransactionTypeRequest base_transaction_type_request = 2;
1554
+ * @return {?proto.BaseTransactionTypeRequest}
1555
+ */
1556
+ proto.CreateTransactionTypeRequest.prototype.getBaseTransactionTypeRequest = function() {
1557
+ return /** @type{?proto.BaseTransactionTypeRequest} */ (
1558
+ jspb.Message.getWrapperField(this, proto.BaseTransactionTypeRequest, 2));
1559
+ };
1560
+
1561
+
1562
+ /**
1563
+ * @param {?proto.BaseTransactionTypeRequest|undefined} value
1564
+ * @return {!proto.CreateTransactionTypeRequest} returns this
1565
+ */
1566
+ proto.CreateTransactionTypeRequest.prototype.setBaseTransactionTypeRequest = function(value) {
1567
+ return jspb.Message.setWrapperField(this, 2, value);
1568
+ };
1569
+
1570
+
1571
+ /**
1572
+ * Clears the message field making it undefined.
1573
+ * @return {!proto.CreateTransactionTypeRequest} returns this
1574
+ */
1575
+ proto.CreateTransactionTypeRequest.prototype.clearBaseTransactionTypeRequest = function() {
1576
+ return this.setBaseTransactionTypeRequest(undefined);
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * Returns whether this field is set.
1582
+ * @return {boolean}
1583
+ */
1584
+ proto.CreateTransactionTypeRequest.prototype.hasBaseTransactionTypeRequest = function() {
1585
+ return jspb.Message.getField(this, 2) != null;
1586
+ };
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1593
+ /**
1594
+ * Creates an object representation of this proto.
1595
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1596
+ * Optional fields that are not set will be set to undefined.
1597
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1598
+ * For the list of reserved names please see:
1599
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1600
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1601
+ * JSPB instance for transitional soy proto support:
1602
+ * http://goto/soy-param-migration
1603
+ * @return {!Object}
1604
+ */
1605
+ proto.UpdateTransactionTypeRequest.prototype.toObject = function(opt_includeInstance) {
1606
+ return proto.UpdateTransactionTypeRequest.toObject(opt_includeInstance, this);
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * Static version of the {@see toObject} method.
1612
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1613
+ * the JSPB instance for transitional soy proto support:
1614
+ * http://goto/soy-param-migration
1615
+ * @param {!proto.UpdateTransactionTypeRequest} msg The msg instance to transform.
1616
+ * @return {!Object}
1617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1618
+ */
1619
+ proto.UpdateTransactionTypeRequest.toObject = function(includeInstance, msg) {
1620
+ var f, obj = {
1621
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1622
+ baseTransactionTypeRequest: (f = msg.getBaseTransactionTypeRequest()) && proto.BaseTransactionTypeRequest.toObject(includeInstance, f)
1623
+ };
1624
+
1625
+ if (includeInstance) {
1626
+ obj.$jspbMessageInstance = msg;
1627
+ }
1628
+ return obj;
1629
+ };
1630
+ }
1631
+
1632
+
1633
+ /**
1634
+ * Deserializes binary data (in protobuf wire format).
1635
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1636
+ * @return {!proto.UpdateTransactionTypeRequest}
1637
+ */
1638
+ proto.UpdateTransactionTypeRequest.deserializeBinary = function(bytes) {
1639
+ var reader = new jspb.BinaryReader(bytes);
1640
+ var msg = new proto.UpdateTransactionTypeRequest;
1641
+ return proto.UpdateTransactionTypeRequest.deserializeBinaryFromReader(msg, reader);
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Deserializes binary data (in protobuf wire format) from the
1647
+ * given reader into the given message object.
1648
+ * @param {!proto.UpdateTransactionTypeRequest} msg The message object to deserialize into.
1649
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1650
+ * @return {!proto.UpdateTransactionTypeRequest}
1651
+ */
1652
+ proto.UpdateTransactionTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
1653
+ while (reader.nextField()) {
1654
+ if (reader.isEndGroup()) {
1655
+ break;
1656
+ }
1657
+ var field = reader.getFieldNumber();
1658
+ switch (field) {
1659
+ case 1:
1660
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1661
+ msg.setReferencesId(value);
1662
+ break;
1663
+ case 2:
1664
+ var value = new proto.BaseTransactionTypeRequest;
1665
+ reader.readMessage(value,proto.BaseTransactionTypeRequest.deserializeBinaryFromReader);
1666
+ msg.setBaseTransactionTypeRequest(value);
1667
+ break;
1668
+ default:
1669
+ reader.skipField();
1670
+ break;
1671
+ }
1672
+ }
1673
+ return msg;
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * Serializes the message to binary data (in protobuf wire format).
1679
+ * @return {!Uint8Array}
1680
+ */
1681
+ proto.UpdateTransactionTypeRequest.prototype.serializeBinary = function() {
1682
+ var writer = new jspb.BinaryWriter();
1683
+ proto.UpdateTransactionTypeRequest.serializeBinaryToWriter(this, writer);
1684
+ return writer.getResultBuffer();
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * Serializes the given message to binary data (in protobuf wire
1690
+ * format), writing to the given BinaryWriter.
1691
+ * @param {!proto.UpdateTransactionTypeRequest} message
1692
+ * @param {!jspb.BinaryWriter} writer
1693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1694
+ */
1695
+ proto.UpdateTransactionTypeRequest.serializeBinaryToWriter = function(message, writer) {
1696
+ var f = undefined;
1697
+ f = message.getReferencesId();
1698
+ if (f.length > 0) {
1699
+ writer.writeString(
1700
+ 1,
1701
+ f
1702
+ );
1703
+ }
1704
+ f = message.getBaseTransactionTypeRequest();
1705
+ if (f != null) {
1706
+ writer.writeMessage(
1707
+ 2,
1708
+ f,
1709
+ proto.BaseTransactionTypeRequest.serializeBinaryToWriter
1710
+ );
1711
+ }
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * optional string references_id = 1;
1717
+ * @return {string}
1718
+ */
1719
+ proto.UpdateTransactionTypeRequest.prototype.getReferencesId = function() {
1720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * @param {string} value
1726
+ * @return {!proto.UpdateTransactionTypeRequest} returns this
1727
+ */
1728
+ proto.UpdateTransactionTypeRequest.prototype.setReferencesId = function(value) {
1729
+ return jspb.Message.setProto3StringField(this, 1, value);
1730
+ };
1731
+
1732
+
1733
+ /**
1734
+ * optional BaseTransactionTypeRequest base_transaction_type_request = 2;
1735
+ * @return {?proto.BaseTransactionTypeRequest}
1736
+ */
1737
+ proto.UpdateTransactionTypeRequest.prototype.getBaseTransactionTypeRequest = function() {
1738
+ return /** @type{?proto.BaseTransactionTypeRequest} */ (
1739
+ jspb.Message.getWrapperField(this, proto.BaseTransactionTypeRequest, 2));
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * @param {?proto.BaseTransactionTypeRequest|undefined} value
1745
+ * @return {!proto.UpdateTransactionTypeRequest} returns this
1746
+ */
1747
+ proto.UpdateTransactionTypeRequest.prototype.setBaseTransactionTypeRequest = function(value) {
1748
+ return jspb.Message.setWrapperField(this, 2, value);
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * Clears the message field making it undefined.
1754
+ * @return {!proto.UpdateTransactionTypeRequest} returns this
1755
+ */
1756
+ proto.UpdateTransactionTypeRequest.prototype.clearBaseTransactionTypeRequest = function() {
1757
+ return this.setBaseTransactionTypeRequest(undefined);
1758
+ };
1759
+
1760
+
1761
+ /**
1762
+ * Returns whether this field is set.
1763
+ * @return {boolean}
1764
+ */
1765
+ proto.UpdateTransactionTypeRequest.prototype.hasBaseTransactionTypeRequest = function() {
1766
+ return jspb.Message.getField(this, 2) != null;
1767
+ };
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1774
+ /**
1775
+ * Creates an object representation of this proto.
1776
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1777
+ * Optional fields that are not set will be set to undefined.
1778
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1779
+ * For the list of reserved names please see:
1780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1782
+ * JSPB instance for transitional soy proto support:
1783
+ * http://goto/soy-param-migration
1784
+ * @return {!Object}
1785
+ */
1786
+ proto.CreateTransactionTypeResponse.prototype.toObject = function(opt_includeInstance) {
1787
+ return proto.CreateTransactionTypeResponse.toObject(opt_includeInstance, this);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Static version of the {@see toObject} method.
1793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1794
+ * the JSPB instance for transitional soy proto support:
1795
+ * http://goto/soy-param-migration
1796
+ * @param {!proto.CreateTransactionTypeResponse} msg The msg instance to transform.
1797
+ * @return {!Object}
1798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1799
+ */
1800
+ proto.CreateTransactionTypeResponse.toObject = function(includeInstance, msg) {
1801
+ var f, obj = {
1802
+ transactionType: (f = msg.getTransactionType()) && proto.TransactionType.toObject(includeInstance, f),
1803
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1804
+ };
1805
+
1806
+ if (includeInstance) {
1807
+ obj.$jspbMessageInstance = msg;
1808
+ }
1809
+ return obj;
1810
+ };
1811
+ }
1812
+
1813
+
1814
+ /**
1815
+ * Deserializes binary data (in protobuf wire format).
1816
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1817
+ * @return {!proto.CreateTransactionTypeResponse}
1818
+ */
1819
+ proto.CreateTransactionTypeResponse.deserializeBinary = function(bytes) {
1820
+ var reader = new jspb.BinaryReader(bytes);
1821
+ var msg = new proto.CreateTransactionTypeResponse;
1822
+ return proto.CreateTransactionTypeResponse.deserializeBinaryFromReader(msg, reader);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Deserializes binary data (in protobuf wire format) from the
1828
+ * given reader into the given message object.
1829
+ * @param {!proto.CreateTransactionTypeResponse} msg The message object to deserialize into.
1830
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1831
+ * @return {!proto.CreateTransactionTypeResponse}
1832
+ */
1833
+ proto.CreateTransactionTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
1834
+ while (reader.nextField()) {
1835
+ if (reader.isEndGroup()) {
1836
+ break;
1837
+ }
1838
+ var field = reader.getFieldNumber();
1839
+ switch (field) {
1840
+ case 1:
1841
+ var value = new proto.TransactionType;
1842
+ reader.readMessage(value,proto.TransactionType.deserializeBinaryFromReader);
1843
+ msg.setTransactionType(value);
1844
+ break;
1845
+ case 2:
1846
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1847
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1848
+ msg.setMeta(value);
1849
+ break;
1850
+ default:
1851
+ reader.skipField();
1852
+ break;
1853
+ }
1854
+ }
1855
+ return msg;
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * Serializes the message to binary data (in protobuf wire format).
1861
+ * @return {!Uint8Array}
1862
+ */
1863
+ proto.CreateTransactionTypeResponse.prototype.serializeBinary = function() {
1864
+ var writer = new jspb.BinaryWriter();
1865
+ proto.CreateTransactionTypeResponse.serializeBinaryToWriter(this, writer);
1866
+ return writer.getResultBuffer();
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Serializes the given message to binary data (in protobuf wire
1872
+ * format), writing to the given BinaryWriter.
1873
+ * @param {!proto.CreateTransactionTypeResponse} message
1874
+ * @param {!jspb.BinaryWriter} writer
1875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1876
+ */
1877
+ proto.CreateTransactionTypeResponse.serializeBinaryToWriter = function(message, writer) {
1878
+ var f = undefined;
1879
+ f = message.getTransactionType();
1880
+ if (f != null) {
1881
+ writer.writeMessage(
1882
+ 1,
1883
+ f,
1884
+ proto.TransactionType.serializeBinaryToWriter
1885
+ );
1886
+ }
1887
+ f = message.getMeta();
1888
+ if (f != null) {
1889
+ writer.writeMessage(
1890
+ 2,
1891
+ f,
1892
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1893
+ );
1894
+ }
1895
+ };
1896
+
1897
+
1898
+ /**
1899
+ * optional TransactionType transaction_type = 1;
1900
+ * @return {?proto.TransactionType}
1901
+ */
1902
+ proto.CreateTransactionTypeResponse.prototype.getTransactionType = function() {
1903
+ return /** @type{?proto.TransactionType} */ (
1904
+ jspb.Message.getWrapperField(this, proto.TransactionType, 1));
1905
+ };
1906
+
1907
+
1908
+ /**
1909
+ * @param {?proto.TransactionType|undefined} value
1910
+ * @return {!proto.CreateTransactionTypeResponse} returns this
1911
+ */
1912
+ proto.CreateTransactionTypeResponse.prototype.setTransactionType = function(value) {
1913
+ return jspb.Message.setWrapperField(this, 1, value);
1914
+ };
1915
+
1916
+
1917
+ /**
1918
+ * Clears the message field making it undefined.
1919
+ * @return {!proto.CreateTransactionTypeResponse} returns this
1920
+ */
1921
+ proto.CreateTransactionTypeResponse.prototype.clearTransactionType = function() {
1922
+ return this.setTransactionType(undefined);
1923
+ };
1924
+
1925
+
1926
+ /**
1927
+ * Returns whether this field is set.
1928
+ * @return {boolean}
1929
+ */
1930
+ proto.CreateTransactionTypeResponse.prototype.hasTransactionType = function() {
1931
+ return jspb.Message.getField(this, 1) != null;
1932
+ };
1933
+
1934
+
1935
+ /**
1936
+ * optional prisca.v1.global.meta.Meta meta = 2;
1937
+ * @return {?proto.prisca.v1.global.meta.Meta}
1938
+ */
1939
+ proto.CreateTransactionTypeResponse.prototype.getMeta = function() {
1940
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1941
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1942
+ };
1943
+
1944
+
1945
+ /**
1946
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1947
+ * @return {!proto.CreateTransactionTypeResponse} returns this
1948
+ */
1949
+ proto.CreateTransactionTypeResponse.prototype.setMeta = function(value) {
1950
+ return jspb.Message.setWrapperField(this, 2, value);
1951
+ };
1952
+
1953
+
1954
+ /**
1955
+ * Clears the message field making it undefined.
1956
+ * @return {!proto.CreateTransactionTypeResponse} returns this
1957
+ */
1958
+ proto.CreateTransactionTypeResponse.prototype.clearMeta = function() {
1959
+ return this.setMeta(undefined);
1960
+ };
1961
+
1962
+
1963
+ /**
1964
+ * Returns whether this field is set.
1965
+ * @return {boolean}
1966
+ */
1967
+ proto.CreateTransactionTypeResponse.prototype.hasMeta = function() {
1968
+ return jspb.Message.getField(this, 2) != null;
1969
+ };
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1976
+ /**
1977
+ * Creates an object representation of this proto.
1978
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1979
+ * Optional fields that are not set will be set to undefined.
1980
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1981
+ * For the list of reserved names please see:
1982
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1983
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1984
+ * JSPB instance for transitional soy proto support:
1985
+ * http://goto/soy-param-migration
1986
+ * @return {!Object}
1987
+ */
1988
+ proto.UpdateTransactionTypeResponse.prototype.toObject = function(opt_includeInstance) {
1989
+ return proto.UpdateTransactionTypeResponse.toObject(opt_includeInstance, this);
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * Static version of the {@see toObject} method.
1995
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1996
+ * the JSPB instance for transitional soy proto support:
1997
+ * http://goto/soy-param-migration
1998
+ * @param {!proto.UpdateTransactionTypeResponse} msg The msg instance to transform.
1999
+ * @return {!Object}
2000
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2001
+ */
2002
+ proto.UpdateTransactionTypeResponse.toObject = function(includeInstance, msg) {
2003
+ var f, obj = {
2004
+ transactionType: (f = msg.getTransactionType()) && proto.TransactionType.toObject(includeInstance, f),
2005
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2006
+ };
2007
+
2008
+ if (includeInstance) {
2009
+ obj.$jspbMessageInstance = msg;
2010
+ }
2011
+ return obj;
2012
+ };
2013
+ }
2014
+
2015
+
2016
+ /**
2017
+ * Deserializes binary data (in protobuf wire format).
2018
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2019
+ * @return {!proto.UpdateTransactionTypeResponse}
2020
+ */
2021
+ proto.UpdateTransactionTypeResponse.deserializeBinary = function(bytes) {
2022
+ var reader = new jspb.BinaryReader(bytes);
2023
+ var msg = new proto.UpdateTransactionTypeResponse;
2024
+ return proto.UpdateTransactionTypeResponse.deserializeBinaryFromReader(msg, reader);
2025
+ };
2026
+
2027
+
2028
+ /**
2029
+ * Deserializes binary data (in protobuf wire format) from the
2030
+ * given reader into the given message object.
2031
+ * @param {!proto.UpdateTransactionTypeResponse} msg The message object to deserialize into.
2032
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2033
+ * @return {!proto.UpdateTransactionTypeResponse}
2034
+ */
2035
+ proto.UpdateTransactionTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
2036
+ while (reader.nextField()) {
2037
+ if (reader.isEndGroup()) {
2038
+ break;
2039
+ }
2040
+ var field = reader.getFieldNumber();
2041
+ switch (field) {
2042
+ case 1:
2043
+ var value = new proto.TransactionType;
2044
+ reader.readMessage(value,proto.TransactionType.deserializeBinaryFromReader);
2045
+ msg.setTransactionType(value);
2046
+ break;
2047
+ case 2:
2048
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2049
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2050
+ msg.setMeta(value);
2051
+ break;
2052
+ default:
2053
+ reader.skipField();
2054
+ break;
2055
+ }
2056
+ }
2057
+ return msg;
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * Serializes the message to binary data (in protobuf wire format).
2063
+ * @return {!Uint8Array}
2064
+ */
2065
+ proto.UpdateTransactionTypeResponse.prototype.serializeBinary = function() {
2066
+ var writer = new jspb.BinaryWriter();
2067
+ proto.UpdateTransactionTypeResponse.serializeBinaryToWriter(this, writer);
2068
+ return writer.getResultBuffer();
2069
+ };
2070
+
2071
+
2072
+ /**
2073
+ * Serializes the given message to binary data (in protobuf wire
2074
+ * format), writing to the given BinaryWriter.
2075
+ * @param {!proto.UpdateTransactionTypeResponse} message
2076
+ * @param {!jspb.BinaryWriter} writer
2077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2078
+ */
2079
+ proto.UpdateTransactionTypeResponse.serializeBinaryToWriter = function(message, writer) {
2080
+ var f = undefined;
2081
+ f = message.getTransactionType();
2082
+ if (f != null) {
2083
+ writer.writeMessage(
2084
+ 1,
2085
+ f,
2086
+ proto.TransactionType.serializeBinaryToWriter
2087
+ );
2088
+ }
2089
+ f = message.getMeta();
2090
+ if (f != null) {
2091
+ writer.writeMessage(
2092
+ 2,
2093
+ f,
2094
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2095
+ );
2096
+ }
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * optional TransactionType transaction_type = 1;
2102
+ * @return {?proto.TransactionType}
2103
+ */
2104
+ proto.UpdateTransactionTypeResponse.prototype.getTransactionType = function() {
2105
+ return /** @type{?proto.TransactionType} */ (
2106
+ jspb.Message.getWrapperField(this, proto.TransactionType, 1));
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * @param {?proto.TransactionType|undefined} value
2112
+ * @return {!proto.UpdateTransactionTypeResponse} returns this
2113
+ */
2114
+ proto.UpdateTransactionTypeResponse.prototype.setTransactionType = function(value) {
2115
+ return jspb.Message.setWrapperField(this, 1, value);
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * Clears the message field making it undefined.
2121
+ * @return {!proto.UpdateTransactionTypeResponse} returns this
2122
+ */
2123
+ proto.UpdateTransactionTypeResponse.prototype.clearTransactionType = function() {
2124
+ return this.setTransactionType(undefined);
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * Returns whether this field is set.
2130
+ * @return {boolean}
2131
+ */
2132
+ proto.UpdateTransactionTypeResponse.prototype.hasTransactionType = function() {
2133
+ return jspb.Message.getField(this, 1) != null;
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * optional prisca.v1.global.meta.Meta meta = 2;
2139
+ * @return {?proto.prisca.v1.global.meta.Meta}
2140
+ */
2141
+ proto.UpdateTransactionTypeResponse.prototype.getMeta = function() {
2142
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2143
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2144
+ };
2145
+
2146
+
2147
+ /**
2148
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2149
+ * @return {!proto.UpdateTransactionTypeResponse} returns this
2150
+ */
2151
+ proto.UpdateTransactionTypeResponse.prototype.setMeta = function(value) {
2152
+ return jspb.Message.setWrapperField(this, 2, value);
2153
+ };
2154
+
2155
+
2156
+ /**
2157
+ * Clears the message field making it undefined.
2158
+ * @return {!proto.UpdateTransactionTypeResponse} returns this
2159
+ */
2160
+ proto.UpdateTransactionTypeResponse.prototype.clearMeta = function() {
2161
+ return this.setMeta(undefined);
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * Returns whether this field is set.
2167
+ * @return {boolean}
2168
+ */
2169
+ proto.UpdateTransactionTypeResponse.prototype.hasMeta = function() {
2170
+ return jspb.Message.getField(this, 2) != null;
2171
+ };
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2178
+ /**
2179
+ * Creates an object representation of this proto.
2180
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2181
+ * Optional fields that are not set will be set to undefined.
2182
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2183
+ * For the list of reserved names please see:
2184
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2185
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2186
+ * JSPB instance for transitional soy proto support:
2187
+ * http://goto/soy-param-migration
2188
+ * @return {!Object}
2189
+ */
2190
+ proto.GetTransactionTypeByIdResponse.prototype.toObject = function(opt_includeInstance) {
2191
+ return proto.GetTransactionTypeByIdResponse.toObject(opt_includeInstance, this);
2192
+ };
2193
+
2194
+
2195
+ /**
2196
+ * Static version of the {@see toObject} method.
2197
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2198
+ * the JSPB instance for transitional soy proto support:
2199
+ * http://goto/soy-param-migration
2200
+ * @param {!proto.GetTransactionTypeByIdResponse} msg The msg instance to transform.
2201
+ * @return {!Object}
2202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2203
+ */
2204
+ proto.GetTransactionTypeByIdResponse.toObject = function(includeInstance, msg) {
2205
+ var f, obj = {
2206
+ transactionType: (f = msg.getTransactionType()) && proto.TransactionType.toObject(includeInstance, f),
2207
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2208
+ };
2209
+
2210
+ if (includeInstance) {
2211
+ obj.$jspbMessageInstance = msg;
2212
+ }
2213
+ return obj;
2214
+ };
2215
+ }
2216
+
2217
+
2218
+ /**
2219
+ * Deserializes binary data (in protobuf wire format).
2220
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2221
+ * @return {!proto.GetTransactionTypeByIdResponse}
2222
+ */
2223
+ proto.GetTransactionTypeByIdResponse.deserializeBinary = function(bytes) {
2224
+ var reader = new jspb.BinaryReader(bytes);
2225
+ var msg = new proto.GetTransactionTypeByIdResponse;
2226
+ return proto.GetTransactionTypeByIdResponse.deserializeBinaryFromReader(msg, reader);
2227
+ };
2228
+
2229
+
2230
+ /**
2231
+ * Deserializes binary data (in protobuf wire format) from the
2232
+ * given reader into the given message object.
2233
+ * @param {!proto.GetTransactionTypeByIdResponse} msg The message object to deserialize into.
2234
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2235
+ * @return {!proto.GetTransactionTypeByIdResponse}
2236
+ */
2237
+ proto.GetTransactionTypeByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2238
+ while (reader.nextField()) {
2239
+ if (reader.isEndGroup()) {
2240
+ break;
2241
+ }
2242
+ var field = reader.getFieldNumber();
2243
+ switch (field) {
2244
+ case 1:
2245
+ var value = new proto.TransactionType;
2246
+ reader.readMessage(value,proto.TransactionType.deserializeBinaryFromReader);
2247
+ msg.setTransactionType(value);
2248
+ break;
2249
+ case 2:
2250
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2251
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2252
+ msg.setMeta(value);
2253
+ break;
2254
+ default:
2255
+ reader.skipField();
2256
+ break;
2257
+ }
2258
+ }
2259
+ return msg;
2260
+ };
2261
+
2262
+
2263
+ /**
2264
+ * Serializes the message to binary data (in protobuf wire format).
2265
+ * @return {!Uint8Array}
2266
+ */
2267
+ proto.GetTransactionTypeByIdResponse.prototype.serializeBinary = function() {
2268
+ var writer = new jspb.BinaryWriter();
2269
+ proto.GetTransactionTypeByIdResponse.serializeBinaryToWriter(this, writer);
2270
+ return writer.getResultBuffer();
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * Serializes the given message to binary data (in protobuf wire
2276
+ * format), writing to the given BinaryWriter.
2277
+ * @param {!proto.GetTransactionTypeByIdResponse} message
2278
+ * @param {!jspb.BinaryWriter} writer
2279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2280
+ */
2281
+ proto.GetTransactionTypeByIdResponse.serializeBinaryToWriter = function(message, writer) {
2282
+ var f = undefined;
2283
+ f = message.getTransactionType();
2284
+ if (f != null) {
2285
+ writer.writeMessage(
2286
+ 1,
2287
+ f,
2288
+ proto.TransactionType.serializeBinaryToWriter
2289
+ );
2290
+ }
2291
+ f = message.getMeta();
2292
+ if (f != null) {
2293
+ writer.writeMessage(
2294
+ 2,
2295
+ f,
2296
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2297
+ );
2298
+ }
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * optional TransactionType transaction_type = 1;
2304
+ * @return {?proto.TransactionType}
2305
+ */
2306
+ proto.GetTransactionTypeByIdResponse.prototype.getTransactionType = function() {
2307
+ return /** @type{?proto.TransactionType} */ (
2308
+ jspb.Message.getWrapperField(this, proto.TransactionType, 1));
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * @param {?proto.TransactionType|undefined} value
2314
+ * @return {!proto.GetTransactionTypeByIdResponse} returns this
2315
+ */
2316
+ proto.GetTransactionTypeByIdResponse.prototype.setTransactionType = function(value) {
2317
+ return jspb.Message.setWrapperField(this, 1, value);
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * Clears the message field making it undefined.
2323
+ * @return {!proto.GetTransactionTypeByIdResponse} returns this
2324
+ */
2325
+ proto.GetTransactionTypeByIdResponse.prototype.clearTransactionType = function() {
2326
+ return this.setTransactionType(undefined);
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * Returns whether this field is set.
2332
+ * @return {boolean}
2333
+ */
2334
+ proto.GetTransactionTypeByIdResponse.prototype.hasTransactionType = function() {
2335
+ return jspb.Message.getField(this, 1) != null;
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * optional prisca.v1.global.meta.Meta meta = 2;
2341
+ * @return {?proto.prisca.v1.global.meta.Meta}
2342
+ */
2343
+ proto.GetTransactionTypeByIdResponse.prototype.getMeta = function() {
2344
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2345
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2346
+ };
2347
+
2348
+
2349
+ /**
2350
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2351
+ * @return {!proto.GetTransactionTypeByIdResponse} returns this
2352
+ */
2353
+ proto.GetTransactionTypeByIdResponse.prototype.setMeta = function(value) {
2354
+ return jspb.Message.setWrapperField(this, 2, value);
2355
+ };
2356
+
2357
+
2358
+ /**
2359
+ * Clears the message field making it undefined.
2360
+ * @return {!proto.GetTransactionTypeByIdResponse} returns this
2361
+ */
2362
+ proto.GetTransactionTypeByIdResponse.prototype.clearMeta = function() {
2363
+ return this.setMeta(undefined);
2364
+ };
2365
+
2366
+
2367
+ /**
2368
+ * Returns whether this field is set.
2369
+ * @return {boolean}
2370
+ */
2371
+ proto.GetTransactionTypeByIdResponse.prototype.hasMeta = function() {
2372
+ return jspb.Message.getField(this, 2) != null;
2373
+ };
2374
+
2375
+
2376
+
2377
+ /**
2378
+ * List of repeated fields within this message type.
2379
+ * @private {!Array<number>}
2380
+ * @const
2381
+ */
2382
+ proto.GetListTransactionTypeResponse.repeatedFields_ = [1];
2383
+
2384
+
2385
+
2386
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2387
+ /**
2388
+ * Creates an object representation of this proto.
2389
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2390
+ * Optional fields that are not set will be set to undefined.
2391
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2392
+ * For the list of reserved names please see:
2393
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2394
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2395
+ * JSPB instance for transitional soy proto support:
2396
+ * http://goto/soy-param-migration
2397
+ * @return {!Object}
2398
+ */
2399
+ proto.GetListTransactionTypeResponse.prototype.toObject = function(opt_includeInstance) {
2400
+ return proto.GetListTransactionTypeResponse.toObject(opt_includeInstance, this);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Static version of the {@see toObject} method.
2406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2407
+ * the JSPB instance for transitional soy proto support:
2408
+ * http://goto/soy-param-migration
2409
+ * @param {!proto.GetListTransactionTypeResponse} msg The msg instance to transform.
2410
+ * @return {!Object}
2411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2412
+ */
2413
+ proto.GetListTransactionTypeResponse.toObject = function(includeInstance, msg) {
2414
+ var f, obj = {
2415
+ transactionTypesList: jspb.Message.toObjectList(msg.getTransactionTypesList(),
2416
+ proto.TransactionType.toObject, includeInstance),
2417
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2418
+ };
2419
+
2420
+ if (includeInstance) {
2421
+ obj.$jspbMessageInstance = msg;
2422
+ }
2423
+ return obj;
2424
+ };
2425
+ }
2426
+
2427
+
2428
+ /**
2429
+ * Deserializes binary data (in protobuf wire format).
2430
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2431
+ * @return {!proto.GetListTransactionTypeResponse}
2432
+ */
2433
+ proto.GetListTransactionTypeResponse.deserializeBinary = function(bytes) {
2434
+ var reader = new jspb.BinaryReader(bytes);
2435
+ var msg = new proto.GetListTransactionTypeResponse;
2436
+ return proto.GetListTransactionTypeResponse.deserializeBinaryFromReader(msg, reader);
2437
+ };
2438
+
2439
+
2440
+ /**
2441
+ * Deserializes binary data (in protobuf wire format) from the
2442
+ * given reader into the given message object.
2443
+ * @param {!proto.GetListTransactionTypeResponse} msg The message object to deserialize into.
2444
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2445
+ * @return {!proto.GetListTransactionTypeResponse}
2446
+ */
2447
+ proto.GetListTransactionTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
2448
+ while (reader.nextField()) {
2449
+ if (reader.isEndGroup()) {
2450
+ break;
2451
+ }
2452
+ var field = reader.getFieldNumber();
2453
+ switch (field) {
2454
+ case 1:
2455
+ var value = new proto.TransactionType;
2456
+ reader.readMessage(value,proto.TransactionType.deserializeBinaryFromReader);
2457
+ msg.addTransactionTypes(value);
2458
+ break;
2459
+ case 2:
2460
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2461
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2462
+ msg.setMeta(value);
2463
+ break;
2464
+ default:
2465
+ reader.skipField();
2466
+ break;
2467
+ }
2468
+ }
2469
+ return msg;
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Serializes the message to binary data (in protobuf wire format).
2475
+ * @return {!Uint8Array}
2476
+ */
2477
+ proto.GetListTransactionTypeResponse.prototype.serializeBinary = function() {
2478
+ var writer = new jspb.BinaryWriter();
2479
+ proto.GetListTransactionTypeResponse.serializeBinaryToWriter(this, writer);
2480
+ return writer.getResultBuffer();
2481
+ };
2482
+
2483
+
2484
+ /**
2485
+ * Serializes the given message to binary data (in protobuf wire
2486
+ * format), writing to the given BinaryWriter.
2487
+ * @param {!proto.GetListTransactionTypeResponse} message
2488
+ * @param {!jspb.BinaryWriter} writer
2489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2490
+ */
2491
+ proto.GetListTransactionTypeResponse.serializeBinaryToWriter = function(message, writer) {
2492
+ var f = undefined;
2493
+ f = message.getTransactionTypesList();
2494
+ if (f.length > 0) {
2495
+ writer.writeRepeatedMessage(
2496
+ 1,
2497
+ f,
2498
+ proto.TransactionType.serializeBinaryToWriter
2499
+ );
2500
+ }
2501
+ f = message.getMeta();
2502
+ if (f != null) {
2503
+ writer.writeMessage(
2504
+ 2,
2505
+ f,
2506
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2507
+ );
2508
+ }
2509
+ };
2510
+
2511
+
2512
+ /**
2513
+ * repeated TransactionType transaction_types = 1;
2514
+ * @return {!Array<!proto.TransactionType>}
2515
+ */
2516
+ proto.GetListTransactionTypeResponse.prototype.getTransactionTypesList = function() {
2517
+ return /** @type{!Array<!proto.TransactionType>} */ (
2518
+ jspb.Message.getRepeatedWrapperField(this, proto.TransactionType, 1));
2519
+ };
2520
+
2521
+
2522
+ /**
2523
+ * @param {!Array<!proto.TransactionType>} value
2524
+ * @return {!proto.GetListTransactionTypeResponse} returns this
2525
+ */
2526
+ proto.GetListTransactionTypeResponse.prototype.setTransactionTypesList = function(value) {
2527
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2528
+ };
2529
+
2530
+
2531
+ /**
2532
+ * @param {!proto.TransactionType=} opt_value
2533
+ * @param {number=} opt_index
2534
+ * @return {!proto.TransactionType}
2535
+ */
2536
+ proto.GetListTransactionTypeResponse.prototype.addTransactionTypes = function(opt_value, opt_index) {
2537
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionType, opt_index);
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * Clears the list making it empty but non-null.
2543
+ * @return {!proto.GetListTransactionTypeResponse} returns this
2544
+ */
2545
+ proto.GetListTransactionTypeResponse.prototype.clearTransactionTypesList = function() {
2546
+ return this.setTransactionTypesList([]);
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * optional prisca.v1.global.meta.Meta meta = 2;
2552
+ * @return {?proto.prisca.v1.global.meta.Meta}
2553
+ */
2554
+ proto.GetListTransactionTypeResponse.prototype.getMeta = function() {
2555
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2556
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2557
+ };
2558
+
2559
+
2560
+ /**
2561
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2562
+ * @return {!proto.GetListTransactionTypeResponse} returns this
2563
+ */
2564
+ proto.GetListTransactionTypeResponse.prototype.setMeta = function(value) {
2565
+ return jspb.Message.setWrapperField(this, 2, value);
2566
+ };
2567
+
2568
+
2569
+ /**
2570
+ * Clears the message field making it undefined.
2571
+ * @return {!proto.GetListTransactionTypeResponse} returns this
2572
+ */
2573
+ proto.GetListTransactionTypeResponse.prototype.clearMeta = function() {
2574
+ return this.setMeta(undefined);
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * Returns whether this field is set.
2580
+ * @return {boolean}
2581
+ */
2582
+ proto.GetListTransactionTypeResponse.prototype.hasMeta = function() {
2583
+ return jspb.Message.getField(this, 2) != null;
2584
+ };
2585
+
2586
+
2587
+ goog.object.extend(exports, proto);