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