@aldiokta/protocgen 1.1.22 → 1.1.23

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