@aldiokta/protocgen 1.1.23 → 1.1.25

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