@aldiokta/protocgen 1.1.44 → 1.1.45

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