@aldiokta/protocgen 1.1.9 → 1.1.19

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 (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -174
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3793
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  118. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  119. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  120. package/prisca/v1/core/report/report_pb.js +0 -2822
  121. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  122. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  123. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  124. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  125. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  126. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  127. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  128. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  129. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  130. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  131. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  132. package/prisca/v1/core/users/users_pb.js +0 -1246
  133. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  134. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  135. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  136. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  137. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  138. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  139. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  140. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  141. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  142. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  143. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  144. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4989
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3971
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  159. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  160. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,3032 +0,0 @@
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, null, 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, null, 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
-
1705
- if (jspb.Message.GENERATE_TO_OBJECT) {
1706
- /**
1707
- * Creates an object representation of this proto.
1708
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1709
- * Optional fields that are not set will be set to undefined.
1710
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1711
- * For the list of reserved names please see:
1712
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1713
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1714
- * JSPB instance for transitional soy proto support:
1715
- * http://goto/soy-param-migration
1716
- * @return {!Object}
1717
- */
1718
- proto.DeleteOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
1719
- return proto.DeleteOrganizationRequest.toObject(opt_includeInstance, this);
1720
- };
1721
-
1722
-
1723
- /**
1724
- * Static version of the {@see toObject} method.
1725
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1726
- * the JSPB instance for transitional soy proto support:
1727
- * http://goto/soy-param-migration
1728
- * @param {!proto.DeleteOrganizationRequest} msg The msg instance to transform.
1729
- * @return {!Object}
1730
- * @suppress {unusedLocalVariables} f is only used for nested messages
1731
- */
1732
- proto.DeleteOrganizationRequest.toObject = function(includeInstance, msg) {
1733
- var f, obj = {
1734
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1735
- };
1736
-
1737
- if (includeInstance) {
1738
- obj.$jspbMessageInstance = msg;
1739
- }
1740
- return obj;
1741
- };
1742
- }
1743
-
1744
-
1745
- /**
1746
- * Deserializes binary data (in protobuf wire format).
1747
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1748
- * @return {!proto.DeleteOrganizationRequest}
1749
- */
1750
- proto.DeleteOrganizationRequest.deserializeBinary = function(bytes) {
1751
- var reader = new jspb.BinaryReader(bytes);
1752
- var msg = new proto.DeleteOrganizationRequest;
1753
- return proto.DeleteOrganizationRequest.deserializeBinaryFromReader(msg, reader);
1754
- };
1755
-
1756
-
1757
- /**
1758
- * Deserializes binary data (in protobuf wire format) from the
1759
- * given reader into the given message object.
1760
- * @param {!proto.DeleteOrganizationRequest} msg The message object to deserialize into.
1761
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1762
- * @return {!proto.DeleteOrganizationRequest}
1763
- */
1764
- proto.DeleteOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
1765
- while (reader.nextField()) {
1766
- if (reader.isEndGroup()) {
1767
- break;
1768
- }
1769
- var field = reader.getFieldNumber();
1770
- switch (field) {
1771
- case 1:
1772
- var value = /** @type {number} */ (reader.readInt64());
1773
- msg.setId(value);
1774
- break;
1775
- default:
1776
- reader.skipField();
1777
- break;
1778
- }
1779
- }
1780
- return msg;
1781
- };
1782
-
1783
-
1784
- /**
1785
- * Serializes the message to binary data (in protobuf wire format).
1786
- * @return {!Uint8Array}
1787
- */
1788
- proto.DeleteOrganizationRequest.prototype.serializeBinary = function() {
1789
- var writer = new jspb.BinaryWriter();
1790
- proto.DeleteOrganizationRequest.serializeBinaryToWriter(this, writer);
1791
- return writer.getResultBuffer();
1792
- };
1793
-
1794
-
1795
- /**
1796
- * Serializes the given message to binary data (in protobuf wire
1797
- * format), writing to the given BinaryWriter.
1798
- * @param {!proto.DeleteOrganizationRequest} message
1799
- * @param {!jspb.BinaryWriter} writer
1800
- * @suppress {unusedLocalVariables} f is only used for nested messages
1801
- */
1802
- proto.DeleteOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
1803
- var f = undefined;
1804
- f = message.getId();
1805
- if (f !== 0) {
1806
- writer.writeInt64(
1807
- 1,
1808
- f
1809
- );
1810
- }
1811
- };
1812
-
1813
-
1814
- /**
1815
- * optional int64 id = 1;
1816
- * @return {number}
1817
- */
1818
- proto.DeleteOrganizationRequest.prototype.getId = function() {
1819
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1820
- };
1821
-
1822
-
1823
- /**
1824
- * @param {number} value
1825
- * @return {!proto.DeleteOrganizationRequest} returns this
1826
- */
1827
- proto.DeleteOrganizationRequest.prototype.setId = function(value) {
1828
- return jspb.Message.setProto3IntField(this, 1, value);
1829
- };
1830
-
1831
-
1832
-
1833
-
1834
-
1835
- if (jspb.Message.GENERATE_TO_OBJECT) {
1836
- /**
1837
- * Creates an object representation of this proto.
1838
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1839
- * Optional fields that are not set will be set to undefined.
1840
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1841
- * For the list of reserved names please see:
1842
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1843
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1844
- * JSPB instance for transitional soy proto support:
1845
- * http://goto/soy-param-migration
1846
- * @return {!Object}
1847
- */
1848
- proto.DeleteOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1849
- return proto.DeleteOrganizationResponse.toObject(opt_includeInstance, this);
1850
- };
1851
-
1852
-
1853
- /**
1854
- * Static version of the {@see toObject} method.
1855
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1856
- * the JSPB instance for transitional soy proto support:
1857
- * http://goto/soy-param-migration
1858
- * @param {!proto.DeleteOrganizationResponse} msg The msg instance to transform.
1859
- * @return {!Object}
1860
- * @suppress {unusedLocalVariables} f is only used for nested messages
1861
- */
1862
- proto.DeleteOrganizationResponse.toObject = function(includeInstance, msg) {
1863
- var f, obj = {
1864
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1865
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1866
- };
1867
-
1868
- if (includeInstance) {
1869
- obj.$jspbMessageInstance = msg;
1870
- }
1871
- return obj;
1872
- };
1873
- }
1874
-
1875
-
1876
- /**
1877
- * Deserializes binary data (in protobuf wire format).
1878
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1879
- * @return {!proto.DeleteOrganizationResponse}
1880
- */
1881
- proto.DeleteOrganizationResponse.deserializeBinary = function(bytes) {
1882
- var reader = new jspb.BinaryReader(bytes);
1883
- var msg = new proto.DeleteOrganizationResponse;
1884
- return proto.DeleteOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1885
- };
1886
-
1887
-
1888
- /**
1889
- * Deserializes binary data (in protobuf wire format) from the
1890
- * given reader into the given message object.
1891
- * @param {!proto.DeleteOrganizationResponse} msg The message object to deserialize into.
1892
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1893
- * @return {!proto.DeleteOrganizationResponse}
1894
- */
1895
- proto.DeleteOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
1896
- while (reader.nextField()) {
1897
- if (reader.isEndGroup()) {
1898
- break;
1899
- }
1900
- var field = reader.getFieldNumber();
1901
- switch (field) {
1902
- case 1:
1903
- var value = /** @type {number} */ (reader.readInt64());
1904
- msg.setId(value);
1905
- break;
1906
- case 2:
1907
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1908
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1909
- msg.setMeta(value);
1910
- break;
1911
- default:
1912
- reader.skipField();
1913
- break;
1914
- }
1915
- }
1916
- return msg;
1917
- };
1918
-
1919
-
1920
- /**
1921
- * Serializes the message to binary data (in protobuf wire format).
1922
- * @return {!Uint8Array}
1923
- */
1924
- proto.DeleteOrganizationResponse.prototype.serializeBinary = function() {
1925
- var writer = new jspb.BinaryWriter();
1926
- proto.DeleteOrganizationResponse.serializeBinaryToWriter(this, writer);
1927
- return writer.getResultBuffer();
1928
- };
1929
-
1930
-
1931
- /**
1932
- * Serializes the given message to binary data (in protobuf wire
1933
- * format), writing to the given BinaryWriter.
1934
- * @param {!proto.DeleteOrganizationResponse} message
1935
- * @param {!jspb.BinaryWriter} writer
1936
- * @suppress {unusedLocalVariables} f is only used for nested messages
1937
- */
1938
- proto.DeleteOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
1939
- var f = undefined;
1940
- f = message.getId();
1941
- if (f !== 0) {
1942
- writer.writeInt64(
1943
- 1,
1944
- f
1945
- );
1946
- }
1947
- f = message.getMeta();
1948
- if (f != null) {
1949
- writer.writeMessage(
1950
- 2,
1951
- f,
1952
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1953
- );
1954
- }
1955
- };
1956
-
1957
-
1958
- /**
1959
- * optional int64 id = 1;
1960
- * @return {number}
1961
- */
1962
- proto.DeleteOrganizationResponse.prototype.getId = function() {
1963
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1964
- };
1965
-
1966
-
1967
- /**
1968
- * @param {number} value
1969
- * @return {!proto.DeleteOrganizationResponse} returns this
1970
- */
1971
- proto.DeleteOrganizationResponse.prototype.setId = function(value) {
1972
- return jspb.Message.setProto3IntField(this, 1, value);
1973
- };
1974
-
1975
-
1976
- /**
1977
- * optional prisca.v1.global.meta.Meta meta = 2;
1978
- * @return {?proto.prisca.v1.global.meta.Meta}
1979
- */
1980
- proto.DeleteOrganizationResponse.prototype.getMeta = function() {
1981
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1982
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1983
- };
1984
-
1985
-
1986
- /**
1987
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1988
- * @return {!proto.DeleteOrganizationResponse} returns this
1989
- */
1990
- proto.DeleteOrganizationResponse.prototype.setMeta = function(value) {
1991
- return jspb.Message.setWrapperField(this, 2, value);
1992
- };
1993
-
1994
-
1995
- /**
1996
- * Clears the message field making it undefined.
1997
- * @return {!proto.DeleteOrganizationResponse} returns this
1998
- */
1999
- proto.DeleteOrganizationResponse.prototype.clearMeta = function() {
2000
- return this.setMeta(undefined);
2001
- };
2002
-
2003
-
2004
- /**
2005
- * Returns whether this field is set.
2006
- * @return {boolean}
2007
- */
2008
- proto.DeleteOrganizationResponse.prototype.hasMeta = function() {
2009
- return jspb.Message.getField(this, 2) != null;
2010
- };
2011
-
2012
-
2013
-
2014
-
2015
-
2016
- if (jspb.Message.GENERATE_TO_OBJECT) {
2017
- /**
2018
- * Creates an object representation of this proto.
2019
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2020
- * Optional fields that are not set will be set to undefined.
2021
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2022
- * For the list of reserved names please see:
2023
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2024
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2025
- * JSPB instance for transitional soy proto support:
2026
- * http://goto/soy-param-migration
2027
- * @return {!Object}
2028
- */
2029
- proto.GetListOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
2030
- return proto.GetListOrganizationRequest.toObject(opt_includeInstance, this);
2031
- };
2032
-
2033
-
2034
- /**
2035
- * Static version of the {@see toObject} method.
2036
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2037
- * the JSPB instance for transitional soy proto support:
2038
- * http://goto/soy-param-migration
2039
- * @param {!proto.GetListOrganizationRequest} msg The msg instance to transform.
2040
- * @return {!Object}
2041
- * @suppress {unusedLocalVariables} f is only used for nested messages
2042
- */
2043
- proto.GetListOrganizationRequest.toObject = function(includeInstance, msg) {
2044
- var f, obj = {
2045
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2046
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2047
- };
2048
-
2049
- if (includeInstance) {
2050
- obj.$jspbMessageInstance = msg;
2051
- }
2052
- return obj;
2053
- };
2054
- }
2055
-
2056
-
2057
- /**
2058
- * Deserializes binary data (in protobuf wire format).
2059
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2060
- * @return {!proto.GetListOrganizationRequest}
2061
- */
2062
- proto.GetListOrganizationRequest.deserializeBinary = function(bytes) {
2063
- var reader = new jspb.BinaryReader(bytes);
2064
- var msg = new proto.GetListOrganizationRequest;
2065
- return proto.GetListOrganizationRequest.deserializeBinaryFromReader(msg, reader);
2066
- };
2067
-
2068
-
2069
- /**
2070
- * Deserializes binary data (in protobuf wire format) from the
2071
- * given reader into the given message object.
2072
- * @param {!proto.GetListOrganizationRequest} msg The message object to deserialize into.
2073
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2074
- * @return {!proto.GetListOrganizationRequest}
2075
- */
2076
- proto.GetListOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
2077
- while (reader.nextField()) {
2078
- if (reader.isEndGroup()) {
2079
- break;
2080
- }
2081
- var field = reader.getFieldNumber();
2082
- switch (field) {
2083
- case 1:
2084
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2085
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2086
- msg.setPagination(value);
2087
- break;
2088
- case 2:
2089
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2090
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2091
- msg.setQuery(value);
2092
- break;
2093
- default:
2094
- reader.skipField();
2095
- break;
2096
- }
2097
- }
2098
- return msg;
2099
- };
2100
-
2101
-
2102
- /**
2103
- * Serializes the message to binary data (in protobuf wire format).
2104
- * @return {!Uint8Array}
2105
- */
2106
- proto.GetListOrganizationRequest.prototype.serializeBinary = function() {
2107
- var writer = new jspb.BinaryWriter();
2108
- proto.GetListOrganizationRequest.serializeBinaryToWriter(this, writer);
2109
- return writer.getResultBuffer();
2110
- };
2111
-
2112
-
2113
- /**
2114
- * Serializes the given message to binary data (in protobuf wire
2115
- * format), writing to the given BinaryWriter.
2116
- * @param {!proto.GetListOrganizationRequest} message
2117
- * @param {!jspb.BinaryWriter} writer
2118
- * @suppress {unusedLocalVariables} f is only used for nested messages
2119
- */
2120
- proto.GetListOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
2121
- var f = undefined;
2122
- f = message.getPagination();
2123
- if (f != null) {
2124
- writer.writeMessage(
2125
- 1,
2126
- f,
2127
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2128
- );
2129
- }
2130
- f = message.getQuery();
2131
- if (f != null) {
2132
- writer.writeMessage(
2133
- 2,
2134
- f,
2135
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2136
- );
2137
- }
2138
- };
2139
-
2140
-
2141
- /**
2142
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2143
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2144
- */
2145
- proto.GetListOrganizationRequest.prototype.getPagination = function() {
2146
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2147
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2148
- };
2149
-
2150
-
2151
- /**
2152
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2153
- * @return {!proto.GetListOrganizationRequest} returns this
2154
- */
2155
- proto.GetListOrganizationRequest.prototype.setPagination = function(value) {
2156
- return jspb.Message.setWrapperField(this, 1, value);
2157
- };
2158
-
2159
-
2160
- /**
2161
- * Clears the message field making it undefined.
2162
- * @return {!proto.GetListOrganizationRequest} returns this
2163
- */
2164
- proto.GetListOrganizationRequest.prototype.clearPagination = function() {
2165
- return this.setPagination(undefined);
2166
- };
2167
-
2168
-
2169
- /**
2170
- * Returns whether this field is set.
2171
- * @return {boolean}
2172
- */
2173
- proto.GetListOrganizationRequest.prototype.hasPagination = function() {
2174
- return jspb.Message.getField(this, 1) != null;
2175
- };
2176
-
2177
-
2178
- /**
2179
- * optional prisca.v1.global.meta.FilterRequest query = 2;
2180
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
2181
- */
2182
- proto.GetListOrganizationRequest.prototype.getQuery = function() {
2183
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2184
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2185
- };
2186
-
2187
-
2188
- /**
2189
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2190
- * @return {!proto.GetListOrganizationRequest} returns this
2191
- */
2192
- proto.GetListOrganizationRequest.prototype.setQuery = function(value) {
2193
- return jspb.Message.setWrapperField(this, 2, value);
2194
- };
2195
-
2196
-
2197
- /**
2198
- * Clears the message field making it undefined.
2199
- * @return {!proto.GetListOrganizationRequest} returns this
2200
- */
2201
- proto.GetListOrganizationRequest.prototype.clearQuery = function() {
2202
- return this.setQuery(undefined);
2203
- };
2204
-
2205
-
2206
- /**
2207
- * Returns whether this field is set.
2208
- * @return {boolean}
2209
- */
2210
- proto.GetListOrganizationRequest.prototype.hasQuery = function() {
2211
- return jspb.Message.getField(this, 2) != null;
2212
- };
2213
-
2214
-
2215
-
2216
-
2217
-
2218
- if (jspb.Message.GENERATE_TO_OBJECT) {
2219
- /**
2220
- * Creates an object representation of this proto.
2221
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2222
- * Optional fields that are not set will be set to undefined.
2223
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2224
- * For the list of reserved names please see:
2225
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2226
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2227
- * JSPB instance for transitional soy proto support:
2228
- * http://goto/soy-param-migration
2229
- * @return {!Object}
2230
- */
2231
- proto.CreateOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
2232
- return proto.CreateOrganizationResponse.toObject(opt_includeInstance, this);
2233
- };
2234
-
2235
-
2236
- /**
2237
- * Static version of the {@see toObject} method.
2238
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2239
- * the JSPB instance for transitional soy proto support:
2240
- * http://goto/soy-param-migration
2241
- * @param {!proto.CreateOrganizationResponse} msg The msg instance to transform.
2242
- * @return {!Object}
2243
- * @suppress {unusedLocalVariables} f is only used for nested messages
2244
- */
2245
- proto.CreateOrganizationResponse.toObject = function(includeInstance, msg) {
2246
- var f, obj = {
2247
- organization: (f = msg.getOrganization()) && proto.Organization.toObject(includeInstance, f),
2248
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2249
- };
2250
-
2251
- if (includeInstance) {
2252
- obj.$jspbMessageInstance = msg;
2253
- }
2254
- return obj;
2255
- };
2256
- }
2257
-
2258
-
2259
- /**
2260
- * Deserializes binary data (in protobuf wire format).
2261
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2262
- * @return {!proto.CreateOrganizationResponse}
2263
- */
2264
- proto.CreateOrganizationResponse.deserializeBinary = function(bytes) {
2265
- var reader = new jspb.BinaryReader(bytes);
2266
- var msg = new proto.CreateOrganizationResponse;
2267
- return proto.CreateOrganizationResponse.deserializeBinaryFromReader(msg, reader);
2268
- };
2269
-
2270
-
2271
- /**
2272
- * Deserializes binary data (in protobuf wire format) from the
2273
- * given reader into the given message object.
2274
- * @param {!proto.CreateOrganizationResponse} msg The message object to deserialize into.
2275
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2276
- * @return {!proto.CreateOrganizationResponse}
2277
- */
2278
- proto.CreateOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
2279
- while (reader.nextField()) {
2280
- if (reader.isEndGroup()) {
2281
- break;
2282
- }
2283
- var field = reader.getFieldNumber();
2284
- switch (field) {
2285
- case 1:
2286
- var value = new proto.Organization;
2287
- reader.readMessage(value,proto.Organization.deserializeBinaryFromReader);
2288
- msg.setOrganization(value);
2289
- break;
2290
- case 2:
2291
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2292
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2293
- msg.setMeta(value);
2294
- break;
2295
- default:
2296
- reader.skipField();
2297
- break;
2298
- }
2299
- }
2300
- return msg;
2301
- };
2302
-
2303
-
2304
- /**
2305
- * Serializes the message to binary data (in protobuf wire format).
2306
- * @return {!Uint8Array}
2307
- */
2308
- proto.CreateOrganizationResponse.prototype.serializeBinary = function() {
2309
- var writer = new jspb.BinaryWriter();
2310
- proto.CreateOrganizationResponse.serializeBinaryToWriter(this, writer);
2311
- return writer.getResultBuffer();
2312
- };
2313
-
2314
-
2315
- /**
2316
- * Serializes the given message to binary data (in protobuf wire
2317
- * format), writing to the given BinaryWriter.
2318
- * @param {!proto.CreateOrganizationResponse} message
2319
- * @param {!jspb.BinaryWriter} writer
2320
- * @suppress {unusedLocalVariables} f is only used for nested messages
2321
- */
2322
- proto.CreateOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
2323
- var f = undefined;
2324
- f = message.getOrganization();
2325
- if (f != null) {
2326
- writer.writeMessage(
2327
- 1,
2328
- f,
2329
- proto.Organization.serializeBinaryToWriter
2330
- );
2331
- }
2332
- f = message.getMeta();
2333
- if (f != null) {
2334
- writer.writeMessage(
2335
- 2,
2336
- f,
2337
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2338
- );
2339
- }
2340
- };
2341
-
2342
-
2343
- /**
2344
- * optional Organization organization = 1;
2345
- * @return {?proto.Organization}
2346
- */
2347
- proto.CreateOrganizationResponse.prototype.getOrganization = function() {
2348
- return /** @type{?proto.Organization} */ (
2349
- jspb.Message.getWrapperField(this, proto.Organization, 1));
2350
- };
2351
-
2352
-
2353
- /**
2354
- * @param {?proto.Organization|undefined} value
2355
- * @return {!proto.CreateOrganizationResponse} returns this
2356
- */
2357
- proto.CreateOrganizationResponse.prototype.setOrganization = function(value) {
2358
- return jspb.Message.setWrapperField(this, 1, value);
2359
- };
2360
-
2361
-
2362
- /**
2363
- * Clears the message field making it undefined.
2364
- * @return {!proto.CreateOrganizationResponse} returns this
2365
- */
2366
- proto.CreateOrganizationResponse.prototype.clearOrganization = function() {
2367
- return this.setOrganization(undefined);
2368
- };
2369
-
2370
-
2371
- /**
2372
- * Returns whether this field is set.
2373
- * @return {boolean}
2374
- */
2375
- proto.CreateOrganizationResponse.prototype.hasOrganization = function() {
2376
- return jspb.Message.getField(this, 1) != null;
2377
- };
2378
-
2379
-
2380
- /**
2381
- * optional prisca.v1.global.meta.Meta meta = 2;
2382
- * @return {?proto.prisca.v1.global.meta.Meta}
2383
- */
2384
- proto.CreateOrganizationResponse.prototype.getMeta = function() {
2385
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2386
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2387
- };
2388
-
2389
-
2390
- /**
2391
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2392
- * @return {!proto.CreateOrganizationResponse} returns this
2393
- */
2394
- proto.CreateOrganizationResponse.prototype.setMeta = function(value) {
2395
- return jspb.Message.setWrapperField(this, 2, value);
2396
- };
2397
-
2398
-
2399
- /**
2400
- * Clears the message field making it undefined.
2401
- * @return {!proto.CreateOrganizationResponse} returns this
2402
- */
2403
- proto.CreateOrganizationResponse.prototype.clearMeta = function() {
2404
- return this.setMeta(undefined);
2405
- };
2406
-
2407
-
2408
- /**
2409
- * Returns whether this field is set.
2410
- * @return {boolean}
2411
- */
2412
- proto.CreateOrganizationResponse.prototype.hasMeta = function() {
2413
- return jspb.Message.getField(this, 2) != null;
2414
- };
2415
-
2416
-
2417
-
2418
- /**
2419
- * List of repeated fields within this message type.
2420
- * @private {!Array<number>}
2421
- * @const
2422
- */
2423
- proto.GetListOrganizationResponse.repeatedFields_ = [1];
2424
-
2425
-
2426
-
2427
- if (jspb.Message.GENERATE_TO_OBJECT) {
2428
- /**
2429
- * Creates an object representation of this proto.
2430
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2431
- * Optional fields that are not set will be set to undefined.
2432
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2433
- * For the list of reserved names please see:
2434
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2435
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2436
- * JSPB instance for transitional soy proto support:
2437
- * http://goto/soy-param-migration
2438
- * @return {!Object}
2439
- */
2440
- proto.GetListOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
2441
- return proto.GetListOrganizationResponse.toObject(opt_includeInstance, this);
2442
- };
2443
-
2444
-
2445
- /**
2446
- * Static version of the {@see toObject} method.
2447
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2448
- * the JSPB instance for transitional soy proto support:
2449
- * http://goto/soy-param-migration
2450
- * @param {!proto.GetListOrganizationResponse} msg The msg instance to transform.
2451
- * @return {!Object}
2452
- * @suppress {unusedLocalVariables} f is only used for nested messages
2453
- */
2454
- proto.GetListOrganizationResponse.toObject = function(includeInstance, msg) {
2455
- var f, obj = {
2456
- organizationList: jspb.Message.toObjectList(msg.getOrganizationList(),
2457
- proto.Organization.toObject, includeInstance),
2458
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2459
- };
2460
-
2461
- if (includeInstance) {
2462
- obj.$jspbMessageInstance = msg;
2463
- }
2464
- return obj;
2465
- };
2466
- }
2467
-
2468
-
2469
- /**
2470
- * Deserializes binary data (in protobuf wire format).
2471
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2472
- * @return {!proto.GetListOrganizationResponse}
2473
- */
2474
- proto.GetListOrganizationResponse.deserializeBinary = function(bytes) {
2475
- var reader = new jspb.BinaryReader(bytes);
2476
- var msg = new proto.GetListOrganizationResponse;
2477
- return proto.GetListOrganizationResponse.deserializeBinaryFromReader(msg, reader);
2478
- };
2479
-
2480
-
2481
- /**
2482
- * Deserializes binary data (in protobuf wire format) from the
2483
- * given reader into the given message object.
2484
- * @param {!proto.GetListOrganizationResponse} msg The message object to deserialize into.
2485
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2486
- * @return {!proto.GetListOrganizationResponse}
2487
- */
2488
- proto.GetListOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
2489
- while (reader.nextField()) {
2490
- if (reader.isEndGroup()) {
2491
- break;
2492
- }
2493
- var field = reader.getFieldNumber();
2494
- switch (field) {
2495
- case 1:
2496
- var value = new proto.Organization;
2497
- reader.readMessage(value,proto.Organization.deserializeBinaryFromReader);
2498
- msg.addOrganization(value);
2499
- break;
2500
- case 2:
2501
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2502
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2503
- msg.setMeta(value);
2504
- break;
2505
- default:
2506
- reader.skipField();
2507
- break;
2508
- }
2509
- }
2510
- return msg;
2511
- };
2512
-
2513
-
2514
- /**
2515
- * Serializes the message to binary data (in protobuf wire format).
2516
- * @return {!Uint8Array}
2517
- */
2518
- proto.GetListOrganizationResponse.prototype.serializeBinary = function() {
2519
- var writer = new jspb.BinaryWriter();
2520
- proto.GetListOrganizationResponse.serializeBinaryToWriter(this, writer);
2521
- return writer.getResultBuffer();
2522
- };
2523
-
2524
-
2525
- /**
2526
- * Serializes the given message to binary data (in protobuf wire
2527
- * format), writing to the given BinaryWriter.
2528
- * @param {!proto.GetListOrganizationResponse} message
2529
- * @param {!jspb.BinaryWriter} writer
2530
- * @suppress {unusedLocalVariables} f is only used for nested messages
2531
- */
2532
- proto.GetListOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
2533
- var f = undefined;
2534
- f = message.getOrganizationList();
2535
- if (f.length > 0) {
2536
- writer.writeRepeatedMessage(
2537
- 1,
2538
- f,
2539
- proto.Organization.serializeBinaryToWriter
2540
- );
2541
- }
2542
- f = message.getMeta();
2543
- if (f != null) {
2544
- writer.writeMessage(
2545
- 2,
2546
- f,
2547
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2548
- );
2549
- }
2550
- };
2551
-
2552
-
2553
- /**
2554
- * repeated Organization organization = 1;
2555
- * @return {!Array<!proto.Organization>}
2556
- */
2557
- proto.GetListOrganizationResponse.prototype.getOrganizationList = function() {
2558
- return /** @type{!Array<!proto.Organization>} */ (
2559
- jspb.Message.getRepeatedWrapperField(this, proto.Organization, 1));
2560
- };
2561
-
2562
-
2563
- /**
2564
- * @param {!Array<!proto.Organization>} value
2565
- * @return {!proto.GetListOrganizationResponse} returns this
2566
- */
2567
- proto.GetListOrganizationResponse.prototype.setOrganizationList = function(value) {
2568
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2569
- };
2570
-
2571
-
2572
- /**
2573
- * @param {!proto.Organization=} opt_value
2574
- * @param {number=} opt_index
2575
- * @return {!proto.Organization}
2576
- */
2577
- proto.GetListOrganizationResponse.prototype.addOrganization = function(opt_value, opt_index) {
2578
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Organization, opt_index);
2579
- };
2580
-
2581
-
2582
- /**
2583
- * Clears the list making it empty but non-null.
2584
- * @return {!proto.GetListOrganizationResponse} returns this
2585
- */
2586
- proto.GetListOrganizationResponse.prototype.clearOrganizationList = function() {
2587
- return this.setOrganizationList([]);
2588
- };
2589
-
2590
-
2591
- /**
2592
- * optional prisca.v1.global.meta.Meta meta = 2;
2593
- * @return {?proto.prisca.v1.global.meta.Meta}
2594
- */
2595
- proto.GetListOrganizationResponse.prototype.getMeta = function() {
2596
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2597
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2598
- };
2599
-
2600
-
2601
- /**
2602
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2603
- * @return {!proto.GetListOrganizationResponse} returns this
2604
- */
2605
- proto.GetListOrganizationResponse.prototype.setMeta = function(value) {
2606
- return jspb.Message.setWrapperField(this, 2, value);
2607
- };
2608
-
2609
-
2610
- /**
2611
- * Clears the message field making it undefined.
2612
- * @return {!proto.GetListOrganizationResponse} returns this
2613
- */
2614
- proto.GetListOrganizationResponse.prototype.clearMeta = function() {
2615
- return this.setMeta(undefined);
2616
- };
2617
-
2618
-
2619
- /**
2620
- * Returns whether this field is set.
2621
- * @return {boolean}
2622
- */
2623
- proto.GetListOrganizationResponse.prototype.hasMeta = function() {
2624
- return jspb.Message.getField(this, 2) != null;
2625
- };
2626
-
2627
-
2628
-
2629
-
2630
-
2631
- if (jspb.Message.GENERATE_TO_OBJECT) {
2632
- /**
2633
- * Creates an object representation of this proto.
2634
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2635
- * Optional fields that are not set will be set to undefined.
2636
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2637
- * For the list of reserved names please see:
2638
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2639
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2640
- * JSPB instance for transitional soy proto support:
2641
- * http://goto/soy-param-migration
2642
- * @return {!Object}
2643
- */
2644
- proto.UpdateOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
2645
- return proto.UpdateOrganizationResponse.toObject(opt_includeInstance, this);
2646
- };
2647
-
2648
-
2649
- /**
2650
- * Static version of the {@see toObject} method.
2651
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2652
- * the JSPB instance for transitional soy proto support:
2653
- * http://goto/soy-param-migration
2654
- * @param {!proto.UpdateOrganizationResponse} msg The msg instance to transform.
2655
- * @return {!Object}
2656
- * @suppress {unusedLocalVariables} f is only used for nested messages
2657
- */
2658
- proto.UpdateOrganizationResponse.toObject = function(includeInstance, msg) {
2659
- var f, obj = {
2660
- organization: (f = msg.getOrganization()) && proto.Organization.toObject(includeInstance, f),
2661
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2662
- };
2663
-
2664
- if (includeInstance) {
2665
- obj.$jspbMessageInstance = msg;
2666
- }
2667
- return obj;
2668
- };
2669
- }
2670
-
2671
-
2672
- /**
2673
- * Deserializes binary data (in protobuf wire format).
2674
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2675
- * @return {!proto.UpdateOrganizationResponse}
2676
- */
2677
- proto.UpdateOrganizationResponse.deserializeBinary = function(bytes) {
2678
- var reader = new jspb.BinaryReader(bytes);
2679
- var msg = new proto.UpdateOrganizationResponse;
2680
- return proto.UpdateOrganizationResponse.deserializeBinaryFromReader(msg, reader);
2681
- };
2682
-
2683
-
2684
- /**
2685
- * Deserializes binary data (in protobuf wire format) from the
2686
- * given reader into the given message object.
2687
- * @param {!proto.UpdateOrganizationResponse} msg The message object to deserialize into.
2688
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2689
- * @return {!proto.UpdateOrganizationResponse}
2690
- */
2691
- proto.UpdateOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
2692
- while (reader.nextField()) {
2693
- if (reader.isEndGroup()) {
2694
- break;
2695
- }
2696
- var field = reader.getFieldNumber();
2697
- switch (field) {
2698
- case 1:
2699
- var value = new proto.Organization;
2700
- reader.readMessage(value,proto.Organization.deserializeBinaryFromReader);
2701
- msg.setOrganization(value);
2702
- break;
2703
- case 2:
2704
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2705
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2706
- msg.setMeta(value);
2707
- break;
2708
- default:
2709
- reader.skipField();
2710
- break;
2711
- }
2712
- }
2713
- return msg;
2714
- };
2715
-
2716
-
2717
- /**
2718
- * Serializes the message to binary data (in protobuf wire format).
2719
- * @return {!Uint8Array}
2720
- */
2721
- proto.UpdateOrganizationResponse.prototype.serializeBinary = function() {
2722
- var writer = new jspb.BinaryWriter();
2723
- proto.UpdateOrganizationResponse.serializeBinaryToWriter(this, writer);
2724
- return writer.getResultBuffer();
2725
- };
2726
-
2727
-
2728
- /**
2729
- * Serializes the given message to binary data (in protobuf wire
2730
- * format), writing to the given BinaryWriter.
2731
- * @param {!proto.UpdateOrganizationResponse} message
2732
- * @param {!jspb.BinaryWriter} writer
2733
- * @suppress {unusedLocalVariables} f is only used for nested messages
2734
- */
2735
- proto.UpdateOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
2736
- var f = undefined;
2737
- f = message.getOrganization();
2738
- if (f != null) {
2739
- writer.writeMessage(
2740
- 1,
2741
- f,
2742
- proto.Organization.serializeBinaryToWriter
2743
- );
2744
- }
2745
- f = message.getMeta();
2746
- if (f != null) {
2747
- writer.writeMessage(
2748
- 2,
2749
- f,
2750
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2751
- );
2752
- }
2753
- };
2754
-
2755
-
2756
- /**
2757
- * optional Organization organization = 1;
2758
- * @return {?proto.Organization}
2759
- */
2760
- proto.UpdateOrganizationResponse.prototype.getOrganization = function() {
2761
- return /** @type{?proto.Organization} */ (
2762
- jspb.Message.getWrapperField(this, proto.Organization, 1));
2763
- };
2764
-
2765
-
2766
- /**
2767
- * @param {?proto.Organization|undefined} value
2768
- * @return {!proto.UpdateOrganizationResponse} returns this
2769
- */
2770
- proto.UpdateOrganizationResponse.prototype.setOrganization = function(value) {
2771
- return jspb.Message.setWrapperField(this, 1, value);
2772
- };
2773
-
2774
-
2775
- /**
2776
- * Clears the message field making it undefined.
2777
- * @return {!proto.UpdateOrganizationResponse} returns this
2778
- */
2779
- proto.UpdateOrganizationResponse.prototype.clearOrganization = function() {
2780
- return this.setOrganization(undefined);
2781
- };
2782
-
2783
-
2784
- /**
2785
- * Returns whether this field is set.
2786
- * @return {boolean}
2787
- */
2788
- proto.UpdateOrganizationResponse.prototype.hasOrganization = function() {
2789
- return jspb.Message.getField(this, 1) != null;
2790
- };
2791
-
2792
-
2793
- /**
2794
- * optional prisca.v1.global.meta.Meta meta = 2;
2795
- * @return {?proto.prisca.v1.global.meta.Meta}
2796
- */
2797
- proto.UpdateOrganizationResponse.prototype.getMeta = function() {
2798
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2799
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2800
- };
2801
-
2802
-
2803
- /**
2804
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2805
- * @return {!proto.UpdateOrganizationResponse} returns this
2806
- */
2807
- proto.UpdateOrganizationResponse.prototype.setMeta = function(value) {
2808
- return jspb.Message.setWrapperField(this, 2, value);
2809
- };
2810
-
2811
-
2812
- /**
2813
- * Clears the message field making it undefined.
2814
- * @return {!proto.UpdateOrganizationResponse} returns this
2815
- */
2816
- proto.UpdateOrganizationResponse.prototype.clearMeta = function() {
2817
- return this.setMeta(undefined);
2818
- };
2819
-
2820
-
2821
- /**
2822
- * Returns whether this field is set.
2823
- * @return {boolean}
2824
- */
2825
- proto.UpdateOrganizationResponse.prototype.hasMeta = function() {
2826
- return jspb.Message.getField(this, 2) != null;
2827
- };
2828
-
2829
-
2830
-
2831
-
2832
-
2833
- if (jspb.Message.GENERATE_TO_OBJECT) {
2834
- /**
2835
- * Creates an object representation of this proto.
2836
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2837
- * Optional fields that are not set will be set to undefined.
2838
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2839
- * For the list of reserved names please see:
2840
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2841
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2842
- * JSPB instance for transitional soy proto support:
2843
- * http://goto/soy-param-migration
2844
- * @return {!Object}
2845
- */
2846
- proto.OrganizationGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
2847
- return proto.OrganizationGetByIdResponse.toObject(opt_includeInstance, this);
2848
- };
2849
-
2850
-
2851
- /**
2852
- * Static version of the {@see toObject} method.
2853
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2854
- * the JSPB instance for transitional soy proto support:
2855
- * http://goto/soy-param-migration
2856
- * @param {!proto.OrganizationGetByIdResponse} msg The msg instance to transform.
2857
- * @return {!Object}
2858
- * @suppress {unusedLocalVariables} f is only used for nested messages
2859
- */
2860
- proto.OrganizationGetByIdResponse.toObject = function(includeInstance, msg) {
2861
- var f, obj = {
2862
- organization: (f = msg.getOrganization()) && proto.Organization.toObject(includeInstance, f),
2863
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2864
- };
2865
-
2866
- if (includeInstance) {
2867
- obj.$jspbMessageInstance = msg;
2868
- }
2869
- return obj;
2870
- };
2871
- }
2872
-
2873
-
2874
- /**
2875
- * Deserializes binary data (in protobuf wire format).
2876
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2877
- * @return {!proto.OrganizationGetByIdResponse}
2878
- */
2879
- proto.OrganizationGetByIdResponse.deserializeBinary = function(bytes) {
2880
- var reader = new jspb.BinaryReader(bytes);
2881
- var msg = new proto.OrganizationGetByIdResponse;
2882
- return proto.OrganizationGetByIdResponse.deserializeBinaryFromReader(msg, reader);
2883
- };
2884
-
2885
-
2886
- /**
2887
- * Deserializes binary data (in protobuf wire format) from the
2888
- * given reader into the given message object.
2889
- * @param {!proto.OrganizationGetByIdResponse} msg The message object to deserialize into.
2890
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2891
- * @return {!proto.OrganizationGetByIdResponse}
2892
- */
2893
- proto.OrganizationGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2894
- while (reader.nextField()) {
2895
- if (reader.isEndGroup()) {
2896
- break;
2897
- }
2898
- var field = reader.getFieldNumber();
2899
- switch (field) {
2900
- case 1:
2901
- var value = new proto.Organization;
2902
- reader.readMessage(value,proto.Organization.deserializeBinaryFromReader);
2903
- msg.setOrganization(value);
2904
- break;
2905
- case 2:
2906
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2907
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2908
- msg.setMeta(value);
2909
- break;
2910
- default:
2911
- reader.skipField();
2912
- break;
2913
- }
2914
- }
2915
- return msg;
2916
- };
2917
-
2918
-
2919
- /**
2920
- * Serializes the message to binary data (in protobuf wire format).
2921
- * @return {!Uint8Array}
2922
- */
2923
- proto.OrganizationGetByIdResponse.prototype.serializeBinary = function() {
2924
- var writer = new jspb.BinaryWriter();
2925
- proto.OrganizationGetByIdResponse.serializeBinaryToWriter(this, writer);
2926
- return writer.getResultBuffer();
2927
- };
2928
-
2929
-
2930
- /**
2931
- * Serializes the given message to binary data (in protobuf wire
2932
- * format), writing to the given BinaryWriter.
2933
- * @param {!proto.OrganizationGetByIdResponse} message
2934
- * @param {!jspb.BinaryWriter} writer
2935
- * @suppress {unusedLocalVariables} f is only used for nested messages
2936
- */
2937
- proto.OrganizationGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
2938
- var f = undefined;
2939
- f = message.getOrganization();
2940
- if (f != null) {
2941
- writer.writeMessage(
2942
- 1,
2943
- f,
2944
- proto.Organization.serializeBinaryToWriter
2945
- );
2946
- }
2947
- f = message.getMeta();
2948
- if (f != null) {
2949
- writer.writeMessage(
2950
- 2,
2951
- f,
2952
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2953
- );
2954
- }
2955
- };
2956
-
2957
-
2958
- /**
2959
- * optional Organization organization = 1;
2960
- * @return {?proto.Organization}
2961
- */
2962
- proto.OrganizationGetByIdResponse.prototype.getOrganization = function() {
2963
- return /** @type{?proto.Organization} */ (
2964
- jspb.Message.getWrapperField(this, proto.Organization, 1));
2965
- };
2966
-
2967
-
2968
- /**
2969
- * @param {?proto.Organization|undefined} value
2970
- * @return {!proto.OrganizationGetByIdResponse} returns this
2971
- */
2972
- proto.OrganizationGetByIdResponse.prototype.setOrganization = function(value) {
2973
- return jspb.Message.setWrapperField(this, 1, value);
2974
- };
2975
-
2976
-
2977
- /**
2978
- * Clears the message field making it undefined.
2979
- * @return {!proto.OrganizationGetByIdResponse} returns this
2980
- */
2981
- proto.OrganizationGetByIdResponse.prototype.clearOrganization = function() {
2982
- return this.setOrganization(undefined);
2983
- };
2984
-
2985
-
2986
- /**
2987
- * Returns whether this field is set.
2988
- * @return {boolean}
2989
- */
2990
- proto.OrganizationGetByIdResponse.prototype.hasOrganization = function() {
2991
- return jspb.Message.getField(this, 1) != null;
2992
- };
2993
-
2994
-
2995
- /**
2996
- * optional prisca.v1.global.meta.Meta meta = 2;
2997
- * @return {?proto.prisca.v1.global.meta.Meta}
2998
- */
2999
- proto.OrganizationGetByIdResponse.prototype.getMeta = function() {
3000
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3001
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3002
- };
3003
-
3004
-
3005
- /**
3006
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3007
- * @return {!proto.OrganizationGetByIdResponse} returns this
3008
- */
3009
- proto.OrganizationGetByIdResponse.prototype.setMeta = function(value) {
3010
- return jspb.Message.setWrapperField(this, 2, value);
3011
- };
3012
-
3013
-
3014
- /**
3015
- * Clears the message field making it undefined.
3016
- * @return {!proto.OrganizationGetByIdResponse} returns this
3017
- */
3018
- proto.OrganizationGetByIdResponse.prototype.clearMeta = function() {
3019
- return this.setMeta(undefined);
3020
- };
3021
-
3022
-
3023
- /**
3024
- * Returns whether this field is set.
3025
- * @return {boolean}
3026
- */
3027
- proto.OrganizationGetByIdResponse.prototype.hasMeta = function() {
3028
- return jspb.Message.getField(this, 2) != null;
3029
- };
3030
-
3031
-
3032
- goog.object.extend(exports, proto);