@aldiokta/protocgen 1.1.45 → 1.1.47

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