@aldiokta/protocgen 1.1.45 → 1.1.46

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