@aldiokta/protocgen 1.1.43 → 1.1.45

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