@aldiokta/protocgen 1.0.55 → 1.0.56

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 (131) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.pb.go +893 -0
  3. package/prisca/v1/account_assignment/account_assignment_grpc.pb.go +274 -0
  4. package/prisca/v1/account_group/account_group.pb.go +955 -0
  5. package/prisca/v1/account_group/account_group_grpc.pb.go +273 -0
  6. package/prisca/v1/chart_of_account/chart_of_account.pb.go +882 -0
  7. package/prisca/v1/chart_of_account/chart_of_account_grpc.pb.go +273 -0
  8. package/prisca/v1/core/auth/auth.proto +129 -0
  9. package/prisca/v1/core/company/company.proto +86 -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 +120 -0
  13. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  14. package/prisca/v1/core/job_position/job_position.proto +113 -0
  15. package/prisca/v1/core/job_title/job_title.proto +89 -0
  16. package/prisca/v1/core/line_of_approval/line_of_approval.proto +79 -0
  17. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  18. package/prisca/v1/core/location/location.proto +289 -0
  19. package/prisca/v1/core/material/material.proto +129 -0
  20. package/prisca/v1/core/material_group/material_group.proto +79 -0
  21. package/prisca/v1/core/material_type/material_type.proto +77 -0
  22. package/prisca/v1/core/messaging/email_template.proto +75 -0
  23. package/prisca/v1/core/messaging/messaging.proto +28 -0
  24. package/prisca/v1/core/number_range/number_range.proto +83 -0
  25. package/prisca/v1/core/organization/organization.proto +94 -0
  26. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  27. package/prisca/v1/core/procurement/procurement.proto +54 -0
  28. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +131 -0
  29. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  30. package/prisca/v1/core/tax_code/tax_code.proto +79 -0
  31. package/prisca/v1/core/transaction_builder/transaction_builder.proto +262 -0
  32. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  33. package/prisca/v1/core/users/users.proto +22 -0
  34. package/prisca/v1/core/users_role/users_role.proto +72 -0
  35. package/prisca/v1/core/work_location/work_location.proto +122 -0
  36. package/prisca/v1/core/workflow/workflow.proto +197 -0
  37. package/prisca/v1/document_type/document_type.pb.go +952 -0
  38. package/prisca/v1/document_type/document_type_grpc.pb.go +273 -0
  39. package/prisca/v1/general_ledger_account/general_ledger_account.pb.go +1146 -0
  40. package/prisca/v1/general_ledger_account/general_ledger_account_grpc.pb.go +274 -0
  41. package/prisca/v1/global/meta/meta.proto +57 -0
  42. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.pb.go +2674 -0
  43. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
  44. package/prisca/v1/purchasing_group/purchasing_group.pb.go +1004 -0
  45. package/prisca/v1/purchasing_group/purchasing_group_grpc.pb.go +274 -0
  46. package/prisca/v1/purchasing_organization/purchasing_organization.pb.go +775 -0
  47. package/prisca/v1/purchasing_organization/purchasing_organization_grpc.pb.go +236 -0
  48. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.pb.go +805 -0
  49. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc.pb.go +236 -0
  50. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.pb.go +906 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc.pb.go +236 -0
  52. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -177
  53. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2522
  54. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -178
  55. package/prisca/v1/account_group/account_group_pb.js +0 -2755
  56. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -177
  57. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2522
  58. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -345
  59. package/prisca/v1/core/auth/auth_pb.js +0 -3593
  60. package/prisca/v1/core/company/company_grpc_pb.js +0 -177
  61. package/prisca/v1/core/company/company_pb.js +0 -2875
  62. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  63. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  64. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  65. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  66. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -184
  67. package/prisca/v1/core/employee/employee_pb.js +0 -3877
  68. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  69. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  70. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  71. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  72. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  73. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  74. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -177
  75. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -2612
  76. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  77. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  78. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  79. package/prisca/v1/core/location/location_pb.js +0 -10879
  80. package/prisca/v1/core/material/material_grpc_pb.js +0 -181
  81. package/prisca/v1/core/material/material_pb.js +0 -4106
  82. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -177
  83. package/prisca/v1/core/material_group/material_group_pb.js +0 -2582
  84. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -148
  85. package/prisca/v1/core/material_type/material_type_pb.js +0 -2392
  86. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  87. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  88. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -45
  89. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  90. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -177
  91. package/prisca/v1/core/number_range/number_range_pb.js +0 -2732
  92. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  93. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  94. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  95. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  96. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  97. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  98. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  99. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  100. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  101. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  102. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  103. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  104. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -421
  105. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -8965
  106. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  107. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  108. package/prisca/v1/core/users/users_grpc_pb.js +0 -1
  109. package/prisca/v1/core/users/users_pb.js +0 -626
  110. package/prisca/v1/core/users_role/users_role_grpc_pb.js +0 -177
  111. package/prisca/v1/core/users_role/users_role_pb.js +0 -2372
  112. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  113. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  114. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -180
  115. package/prisca/v1/core/workflow/workflow_pb.js +0 -6589
  116. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  117. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  118. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  119. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  120. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  121. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  122. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -267
  123. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -7825
  124. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  125. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  126. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  127. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  128. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  129. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  130. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -146
  131. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2536
@@ -1,2183 +0,0 @@
1
- // source: prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
27
- goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
28
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_company_company_pb);
30
- goog.exportSymbol('proto.AssignPOrganization', null, global);
31
- goog.exportSymbol('proto.AssignPOrganizationGetByIdRequest', null, global);
32
- goog.exportSymbol('proto.AssignPOrganizationGetByIdResponse', null, global);
33
- goog.exportSymbol('proto.BaseAssignPOrganization', null, global);
34
- goog.exportSymbol('proto.CreateAssignPOrganizationRequest', null, global);
35
- goog.exportSymbol('proto.CreateAssignPOrganizationResponse', null, global);
36
- goog.exportSymbol('proto.GetListAssignPOrganizationRequest', null, global);
37
- goog.exportSymbol('proto.GetListAssignPOrganizationResponse', null, global);
38
- goog.exportSymbol('proto.UpdateAssignPOrganizationRequest', null, global);
39
- goog.exportSymbol('proto.UpdateAssignPOrganizationResponse', null, global);
40
- /**
41
- * Generated by JsPbCodeGenerator.
42
- * @param {Array=} opt_data Optional initial data array, typically from a
43
- * server response, or constructed directly in Javascript. The array is used
44
- * in place and becomes part of the constructed object. It is not cloned.
45
- * If no data is provided, the constructed object will be empty, but still
46
- * valid.
47
- * @extends {jspb.Message}
48
- * @constructor
49
- */
50
- proto.AssignPOrganization = function(opt_data) {
51
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
- };
53
- goog.inherits(proto.AssignPOrganization, jspb.Message);
54
- if (goog.DEBUG && !COMPILED) {
55
- /**
56
- * @public
57
- * @override
58
- */
59
- proto.AssignPOrganization.displayName = 'proto.AssignPOrganization';
60
- }
61
- /**
62
- * Generated by JsPbCodeGenerator.
63
- * @param {Array=} opt_data Optional initial data array, typically from a
64
- * server response, or constructed directly in Javascript. The array is used
65
- * in place and becomes part of the constructed object. It is not cloned.
66
- * If no data is provided, the constructed object will be empty, but still
67
- * valid.
68
- * @extends {jspb.Message}
69
- * @constructor
70
- */
71
- proto.BaseAssignPOrganization = function(opt_data) {
72
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
- };
74
- goog.inherits(proto.BaseAssignPOrganization, jspb.Message);
75
- if (goog.DEBUG && !COMPILED) {
76
- /**
77
- * @public
78
- * @override
79
- */
80
- proto.BaseAssignPOrganization.displayName = 'proto.BaseAssignPOrganization';
81
- }
82
- /**
83
- * Generated by JsPbCodeGenerator.
84
- * @param {Array=} opt_data Optional initial data array, typically from a
85
- * server response, or constructed directly in Javascript. The array is used
86
- * in place and becomes part of the constructed object. It is not cloned.
87
- * If no data is provided, the constructed object will be empty, but still
88
- * valid.
89
- * @extends {jspb.Message}
90
- * @constructor
91
- */
92
- proto.CreateAssignPOrganizationRequest = function(opt_data) {
93
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
- };
95
- goog.inherits(proto.CreateAssignPOrganizationRequest, jspb.Message);
96
- if (goog.DEBUG && !COMPILED) {
97
- /**
98
- * @public
99
- * @override
100
- */
101
- proto.CreateAssignPOrganizationRequest.displayName = 'proto.CreateAssignPOrganizationRequest';
102
- }
103
- /**
104
- * Generated by JsPbCodeGenerator.
105
- * @param {Array=} opt_data Optional initial data array, typically from a
106
- * server response, or constructed directly in Javascript. The array is used
107
- * in place and becomes part of the constructed object. It is not cloned.
108
- * If no data is provided, the constructed object will be empty, but still
109
- * valid.
110
- * @extends {jspb.Message}
111
- * @constructor
112
- */
113
- proto.UpdateAssignPOrganizationRequest = function(opt_data) {
114
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
- };
116
- goog.inherits(proto.UpdateAssignPOrganizationRequest, jspb.Message);
117
- if (goog.DEBUG && !COMPILED) {
118
- /**
119
- * @public
120
- * @override
121
- */
122
- proto.UpdateAssignPOrganizationRequest.displayName = 'proto.UpdateAssignPOrganizationRequest';
123
- }
124
- /**
125
- * Generated by JsPbCodeGenerator.
126
- * @param {Array=} opt_data Optional initial data array, typically from a
127
- * server response, or constructed directly in Javascript. The array is used
128
- * in place and becomes part of the constructed object. It is not cloned.
129
- * If no data is provided, the constructed object will be empty, but still
130
- * valid.
131
- * @extends {jspb.Message}
132
- * @constructor
133
- */
134
- proto.GetListAssignPOrganizationRequest = function(opt_data) {
135
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
- };
137
- goog.inherits(proto.GetListAssignPOrganizationRequest, jspb.Message);
138
- if (goog.DEBUG && !COMPILED) {
139
- /**
140
- * @public
141
- * @override
142
- */
143
- proto.GetListAssignPOrganizationRequest.displayName = 'proto.GetListAssignPOrganizationRequest';
144
- }
145
- /**
146
- * Generated by JsPbCodeGenerator.
147
- * @param {Array=} opt_data Optional initial data array, typically from a
148
- * server response, or constructed directly in Javascript. The array is used
149
- * in place and becomes part of the constructed object. It is not cloned.
150
- * If no data is provided, the constructed object will be empty, but still
151
- * valid.
152
- * @extends {jspb.Message}
153
- * @constructor
154
- */
155
- proto.AssignPOrganizationGetByIdRequest = function(opt_data) {
156
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
- };
158
- goog.inherits(proto.AssignPOrganizationGetByIdRequest, jspb.Message);
159
- if (goog.DEBUG && !COMPILED) {
160
- /**
161
- * @public
162
- * @override
163
- */
164
- proto.AssignPOrganizationGetByIdRequest.displayName = 'proto.AssignPOrganizationGetByIdRequest';
165
- }
166
- /**
167
- * Generated by JsPbCodeGenerator.
168
- * @param {Array=} opt_data Optional initial data array, typically from a
169
- * server response, or constructed directly in Javascript. The array is used
170
- * in place and becomes part of the constructed object. It is not cloned.
171
- * If no data is provided, the constructed object will be empty, but still
172
- * valid.
173
- * @extends {jspb.Message}
174
- * @constructor
175
- */
176
- proto.CreateAssignPOrganizationResponse = function(opt_data) {
177
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
- };
179
- goog.inherits(proto.CreateAssignPOrganizationResponse, jspb.Message);
180
- if (goog.DEBUG && !COMPILED) {
181
- /**
182
- * @public
183
- * @override
184
- */
185
- proto.CreateAssignPOrganizationResponse.displayName = 'proto.CreateAssignPOrganizationResponse';
186
- }
187
- /**
188
- * Generated by JsPbCodeGenerator.
189
- * @param {Array=} opt_data Optional initial data array, typically from a
190
- * server response, or constructed directly in Javascript. The array is used
191
- * in place and becomes part of the constructed object. It is not cloned.
192
- * If no data is provided, the constructed object will be empty, but still
193
- * valid.
194
- * @extends {jspb.Message}
195
- * @constructor
196
- */
197
- proto.GetListAssignPOrganizationResponse = function(opt_data) {
198
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListAssignPOrganizationResponse.repeatedFields_, null);
199
- };
200
- goog.inherits(proto.GetListAssignPOrganizationResponse, jspb.Message);
201
- if (goog.DEBUG && !COMPILED) {
202
- /**
203
- * @public
204
- * @override
205
- */
206
- proto.GetListAssignPOrganizationResponse.displayName = 'proto.GetListAssignPOrganizationResponse';
207
- }
208
- /**
209
- * Generated by JsPbCodeGenerator.
210
- * @param {Array=} opt_data Optional initial data array, typically from a
211
- * server response, or constructed directly in Javascript. The array is used
212
- * in place and becomes part of the constructed object. It is not cloned.
213
- * If no data is provided, the constructed object will be empty, but still
214
- * valid.
215
- * @extends {jspb.Message}
216
- * @constructor
217
- */
218
- proto.UpdateAssignPOrganizationResponse = function(opt_data) {
219
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
- };
221
- goog.inherits(proto.UpdateAssignPOrganizationResponse, jspb.Message);
222
- if (goog.DEBUG && !COMPILED) {
223
- /**
224
- * @public
225
- * @override
226
- */
227
- proto.UpdateAssignPOrganizationResponse.displayName = 'proto.UpdateAssignPOrganizationResponse';
228
- }
229
- /**
230
- * Generated by JsPbCodeGenerator.
231
- * @param {Array=} opt_data Optional initial data array, typically from a
232
- * server response, or constructed directly in Javascript. The array is used
233
- * in place and becomes part of the constructed object. It is not cloned.
234
- * If no data is provided, the constructed object will be empty, but still
235
- * valid.
236
- * @extends {jspb.Message}
237
- * @constructor
238
- */
239
- proto.AssignPOrganizationGetByIdResponse = function(opt_data) {
240
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
- };
242
- goog.inherits(proto.AssignPOrganizationGetByIdResponse, jspb.Message);
243
- if (goog.DEBUG && !COMPILED) {
244
- /**
245
- * @public
246
- * @override
247
- */
248
- proto.AssignPOrganizationGetByIdResponse.displayName = 'proto.AssignPOrganizationGetByIdResponse';
249
- }
250
-
251
-
252
-
253
- if (jspb.Message.GENERATE_TO_OBJECT) {
254
- /**
255
- * Creates an object representation of this proto.
256
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
257
- * Optional fields that are not set will be set to undefined.
258
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
259
- * For the list of reserved names please see:
260
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
261
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
262
- * JSPB instance for transitional soy proto support:
263
- * http://goto/soy-param-migration
264
- * @return {!Object}
265
- */
266
- proto.AssignPOrganization.prototype.toObject = function(opt_includeInstance) {
267
- return proto.AssignPOrganization.toObject(opt_includeInstance, this);
268
- };
269
-
270
-
271
- /**
272
- * Static version of the {@see toObject} method.
273
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
274
- * the JSPB instance for transitional soy proto support:
275
- * http://goto/soy-param-migration
276
- * @param {!proto.AssignPOrganization} msg The msg instance to transform.
277
- * @return {!Object}
278
- * @suppress {unusedLocalVariables} f is only used for nested messages
279
- */
280
- proto.AssignPOrganization.toObject = function(includeInstance, msg) {
281
- var f, obj = {
282
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
283
- purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
284
- };
285
-
286
- if (includeInstance) {
287
- obj.$jspbMessageInstance = msg;
288
- }
289
- return obj;
290
- };
291
- }
292
-
293
-
294
- /**
295
- * Deserializes binary data (in protobuf wire format).
296
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
297
- * @return {!proto.AssignPOrganization}
298
- */
299
- proto.AssignPOrganization.deserializeBinary = function(bytes) {
300
- var reader = new jspb.BinaryReader(bytes);
301
- var msg = new proto.AssignPOrganization;
302
- return proto.AssignPOrganization.deserializeBinaryFromReader(msg, reader);
303
- };
304
-
305
-
306
- /**
307
- * Deserializes binary data (in protobuf wire format) from the
308
- * given reader into the given message object.
309
- * @param {!proto.AssignPOrganization} msg The message object to deserialize into.
310
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
311
- * @return {!proto.AssignPOrganization}
312
- */
313
- proto.AssignPOrganization.deserializeBinaryFromReader = function(msg, reader) {
314
- while (reader.nextField()) {
315
- if (reader.isEndGroup()) {
316
- break;
317
- }
318
- var field = reader.getFieldNumber();
319
- switch (field) {
320
- case 1:
321
- var value = /** @type {string} */ (reader.readString());
322
- msg.setCompaniesReferencesId(value);
323
- break;
324
- case 2:
325
- var value = /** @type {string} */ (reader.readString());
326
- msg.setPurchasingOrganizationReferencesId(value);
327
- break;
328
- default:
329
- reader.skipField();
330
- break;
331
- }
332
- }
333
- return msg;
334
- };
335
-
336
-
337
- /**
338
- * Serializes the message to binary data (in protobuf wire format).
339
- * @return {!Uint8Array}
340
- */
341
- proto.AssignPOrganization.prototype.serializeBinary = function() {
342
- var writer = new jspb.BinaryWriter();
343
- proto.AssignPOrganization.serializeBinaryToWriter(this, writer);
344
- return writer.getResultBuffer();
345
- };
346
-
347
-
348
- /**
349
- * Serializes the given message to binary data (in protobuf wire
350
- * format), writing to the given BinaryWriter.
351
- * @param {!proto.AssignPOrganization} message
352
- * @param {!jspb.BinaryWriter} writer
353
- * @suppress {unusedLocalVariables} f is only used for nested messages
354
- */
355
- proto.AssignPOrganization.serializeBinaryToWriter = function(message, writer) {
356
- var f = undefined;
357
- f = message.getCompaniesReferencesId();
358
- if (f.length > 0) {
359
- writer.writeString(
360
- 1,
361
- f
362
- );
363
- }
364
- f = message.getPurchasingOrganizationReferencesId();
365
- if (f.length > 0) {
366
- writer.writeString(
367
- 2,
368
- f
369
- );
370
- }
371
- };
372
-
373
-
374
- /**
375
- * optional string companies_references_id = 1;
376
- * @return {string}
377
- */
378
- proto.AssignPOrganization.prototype.getCompaniesReferencesId = function() {
379
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
380
- };
381
-
382
-
383
- /**
384
- * @param {string} value
385
- * @return {!proto.AssignPOrganization} returns this
386
- */
387
- proto.AssignPOrganization.prototype.setCompaniesReferencesId = function(value) {
388
- return jspb.Message.setProto3StringField(this, 1, value);
389
- };
390
-
391
-
392
- /**
393
- * optional string purchasing_organization_references_id = 2;
394
- * @return {string}
395
- */
396
- proto.AssignPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
397
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
398
- };
399
-
400
-
401
- /**
402
- * @param {string} value
403
- * @return {!proto.AssignPOrganization} returns this
404
- */
405
- proto.AssignPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
406
- return jspb.Message.setProto3StringField(this, 2, value);
407
- };
408
-
409
-
410
-
411
-
412
-
413
- if (jspb.Message.GENERATE_TO_OBJECT) {
414
- /**
415
- * Creates an object representation of this proto.
416
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
417
- * Optional fields that are not set will be set to undefined.
418
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
419
- * For the list of reserved names please see:
420
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
421
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
422
- * JSPB instance for transitional soy proto support:
423
- * http://goto/soy-param-migration
424
- * @return {!Object}
425
- */
426
- proto.BaseAssignPOrganization.prototype.toObject = function(opt_includeInstance) {
427
- return proto.BaseAssignPOrganization.toObject(opt_includeInstance, this);
428
- };
429
-
430
-
431
- /**
432
- * Static version of the {@see toObject} method.
433
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
434
- * the JSPB instance for transitional soy proto support:
435
- * http://goto/soy-param-migration
436
- * @param {!proto.BaseAssignPOrganization} msg The msg instance to transform.
437
- * @return {!Object}
438
- * @suppress {unusedLocalVariables} f is only used for nested messages
439
- */
440
- proto.BaseAssignPOrganization.toObject = function(includeInstance, msg) {
441
- var f, obj = {
442
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
443
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
444
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
445
- purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
446
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f)
447
- };
448
-
449
- if (includeInstance) {
450
- obj.$jspbMessageInstance = msg;
451
- }
452
- return obj;
453
- };
454
- }
455
-
456
-
457
- /**
458
- * Deserializes binary data (in protobuf wire format).
459
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
460
- * @return {!proto.BaseAssignPOrganization}
461
- */
462
- proto.BaseAssignPOrganization.deserializeBinary = function(bytes) {
463
- var reader = new jspb.BinaryReader(bytes);
464
- var msg = new proto.BaseAssignPOrganization;
465
- return proto.BaseAssignPOrganization.deserializeBinaryFromReader(msg, reader);
466
- };
467
-
468
-
469
- /**
470
- * Deserializes binary data (in protobuf wire format) from the
471
- * given reader into the given message object.
472
- * @param {!proto.BaseAssignPOrganization} msg The message object to deserialize into.
473
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
474
- * @return {!proto.BaseAssignPOrganization}
475
- */
476
- proto.BaseAssignPOrganization.deserializeBinaryFromReader = function(msg, reader) {
477
- while (reader.nextField()) {
478
- if (reader.isEndGroup()) {
479
- break;
480
- }
481
- var field = reader.getFieldNumber();
482
- switch (field) {
483
- case 1:
484
- var value = /** @type {string} */ (reader.readString());
485
- msg.setCompaniesReferencesId(value);
486
- break;
487
- case 2:
488
- var value = /** @type {string} */ (reader.readString());
489
- msg.setReferencesId(value);
490
- break;
491
- case 3:
492
- var value = new prisca_v1_core_company_company_pb.Company;
493
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
494
- msg.setCompany(value);
495
- break;
496
- case 4:
497
- var value = /** @type {string} */ (reader.readString());
498
- msg.setPurchasingOrganizationReferencesId(value);
499
- break;
500
- case 5:
501
- var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
502
- reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
503
- msg.setPurchasingOrganizations(value);
504
- break;
505
- default:
506
- reader.skipField();
507
- break;
508
- }
509
- }
510
- return msg;
511
- };
512
-
513
-
514
- /**
515
- * Serializes the message to binary data (in protobuf wire format).
516
- * @return {!Uint8Array}
517
- */
518
- proto.BaseAssignPOrganization.prototype.serializeBinary = function() {
519
- var writer = new jspb.BinaryWriter();
520
- proto.BaseAssignPOrganization.serializeBinaryToWriter(this, writer);
521
- return writer.getResultBuffer();
522
- };
523
-
524
-
525
- /**
526
- * Serializes the given message to binary data (in protobuf wire
527
- * format), writing to the given BinaryWriter.
528
- * @param {!proto.BaseAssignPOrganization} message
529
- * @param {!jspb.BinaryWriter} writer
530
- * @suppress {unusedLocalVariables} f is only used for nested messages
531
- */
532
- proto.BaseAssignPOrganization.serializeBinaryToWriter = function(message, writer) {
533
- var f = undefined;
534
- f = message.getCompaniesReferencesId();
535
- if (f.length > 0) {
536
- writer.writeString(
537
- 1,
538
- f
539
- );
540
- }
541
- f = message.getReferencesId();
542
- if (f.length > 0) {
543
- writer.writeString(
544
- 2,
545
- f
546
- );
547
- }
548
- f = message.getCompany();
549
- if (f != null) {
550
- writer.writeMessage(
551
- 3,
552
- f,
553
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
554
- );
555
- }
556
- f = message.getPurchasingOrganizationReferencesId();
557
- if (f.length > 0) {
558
- writer.writeString(
559
- 4,
560
- f
561
- );
562
- }
563
- f = message.getPurchasingOrganizations();
564
- if (f != null) {
565
- writer.writeMessage(
566
- 5,
567
- f,
568
- prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
569
- );
570
- }
571
- };
572
-
573
-
574
- /**
575
- * optional string companies_references_id = 1;
576
- * @return {string}
577
- */
578
- proto.BaseAssignPOrganization.prototype.getCompaniesReferencesId = function() {
579
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
580
- };
581
-
582
-
583
- /**
584
- * @param {string} value
585
- * @return {!proto.BaseAssignPOrganization} returns this
586
- */
587
- proto.BaseAssignPOrganization.prototype.setCompaniesReferencesId = function(value) {
588
- return jspb.Message.setProto3StringField(this, 1, value);
589
- };
590
-
591
-
592
- /**
593
- * optional string references_id = 2;
594
- * @return {string}
595
- */
596
- proto.BaseAssignPOrganization.prototype.getReferencesId = function() {
597
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
598
- };
599
-
600
-
601
- /**
602
- * @param {string} value
603
- * @return {!proto.BaseAssignPOrganization} returns this
604
- */
605
- proto.BaseAssignPOrganization.prototype.setReferencesId = function(value) {
606
- return jspb.Message.setProto3StringField(this, 2, value);
607
- };
608
-
609
-
610
- /**
611
- * optional Company company = 3;
612
- * @return {?proto.Company}
613
- */
614
- proto.BaseAssignPOrganization.prototype.getCompany = function() {
615
- return /** @type{?proto.Company} */ (
616
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 3));
617
- };
618
-
619
-
620
- /**
621
- * @param {?proto.Company|undefined} value
622
- * @return {!proto.BaseAssignPOrganization} returns this
623
- */
624
- proto.BaseAssignPOrganization.prototype.setCompany = function(value) {
625
- return jspb.Message.setWrapperField(this, 3, value);
626
- };
627
-
628
-
629
- /**
630
- * Clears the message field making it undefined.
631
- * @return {!proto.BaseAssignPOrganization} returns this
632
- */
633
- proto.BaseAssignPOrganization.prototype.clearCompany = function() {
634
- return this.setCompany(undefined);
635
- };
636
-
637
-
638
- /**
639
- * Returns whether this field is set.
640
- * @return {boolean}
641
- */
642
- proto.BaseAssignPOrganization.prototype.hasCompany = function() {
643
- return jspb.Message.getField(this, 3) != null;
644
- };
645
-
646
-
647
- /**
648
- * optional string purchasing_organization_references_id = 4;
649
- * @return {string}
650
- */
651
- proto.BaseAssignPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
652
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
653
- };
654
-
655
-
656
- /**
657
- * @param {string} value
658
- * @return {!proto.BaseAssignPOrganization} returns this
659
- */
660
- proto.BaseAssignPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
661
- return jspb.Message.setProto3StringField(this, 4, value);
662
- };
663
-
664
-
665
- /**
666
- * optional PurchasingOrganization purchasing_organizations = 5;
667
- * @return {?proto.PurchasingOrganization}
668
- */
669
- proto.BaseAssignPOrganization.prototype.getPurchasingOrganizations = function() {
670
- return /** @type{?proto.PurchasingOrganization} */ (
671
- jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 5));
672
- };
673
-
674
-
675
- /**
676
- * @param {?proto.PurchasingOrganization|undefined} value
677
- * @return {!proto.BaseAssignPOrganization} returns this
678
- */
679
- proto.BaseAssignPOrganization.prototype.setPurchasingOrganizations = function(value) {
680
- return jspb.Message.setWrapperField(this, 5, value);
681
- };
682
-
683
-
684
- /**
685
- * Clears the message field making it undefined.
686
- * @return {!proto.BaseAssignPOrganization} returns this
687
- */
688
- proto.BaseAssignPOrganization.prototype.clearPurchasingOrganizations = function() {
689
- return this.setPurchasingOrganizations(undefined);
690
- };
691
-
692
-
693
- /**
694
- * Returns whether this field is set.
695
- * @return {boolean}
696
- */
697
- proto.BaseAssignPOrganization.prototype.hasPurchasingOrganizations = function() {
698
- return jspb.Message.getField(this, 5) != null;
699
- };
700
-
701
-
702
-
703
-
704
-
705
- if (jspb.Message.GENERATE_TO_OBJECT) {
706
- /**
707
- * Creates an object representation of this proto.
708
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
709
- * Optional fields that are not set will be set to undefined.
710
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
711
- * For the list of reserved names please see:
712
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
713
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
714
- * JSPB instance for transitional soy proto support:
715
- * http://goto/soy-param-migration
716
- * @return {!Object}
717
- */
718
- proto.CreateAssignPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
719
- return proto.CreateAssignPOrganizationRequest.toObject(opt_includeInstance, this);
720
- };
721
-
722
-
723
- /**
724
- * Static version of the {@see toObject} method.
725
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
726
- * the JSPB instance for transitional soy proto support:
727
- * http://goto/soy-param-migration
728
- * @param {!proto.CreateAssignPOrganizationRequest} msg The msg instance to transform.
729
- * @return {!Object}
730
- * @suppress {unusedLocalVariables} f is only used for nested messages
731
- */
732
- proto.CreateAssignPOrganizationRequest.toObject = function(includeInstance, msg) {
733
- var f, obj = {
734
- assignPurchasingOrganization: (f = msg.getAssignPurchasingOrganization()) && proto.AssignPOrganization.toObject(includeInstance, f)
735
- };
736
-
737
- if (includeInstance) {
738
- obj.$jspbMessageInstance = msg;
739
- }
740
- return obj;
741
- };
742
- }
743
-
744
-
745
- /**
746
- * Deserializes binary data (in protobuf wire format).
747
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
748
- * @return {!proto.CreateAssignPOrganizationRequest}
749
- */
750
- proto.CreateAssignPOrganizationRequest.deserializeBinary = function(bytes) {
751
- var reader = new jspb.BinaryReader(bytes);
752
- var msg = new proto.CreateAssignPOrganizationRequest;
753
- return proto.CreateAssignPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
754
- };
755
-
756
-
757
- /**
758
- * Deserializes binary data (in protobuf wire format) from the
759
- * given reader into the given message object.
760
- * @param {!proto.CreateAssignPOrganizationRequest} msg The message object to deserialize into.
761
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
762
- * @return {!proto.CreateAssignPOrganizationRequest}
763
- */
764
- proto.CreateAssignPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
765
- while (reader.nextField()) {
766
- if (reader.isEndGroup()) {
767
- break;
768
- }
769
- var field = reader.getFieldNumber();
770
- switch (field) {
771
- case 1:
772
- var value = new proto.AssignPOrganization;
773
- reader.readMessage(value,proto.AssignPOrganization.deserializeBinaryFromReader);
774
- msg.setAssignPurchasingOrganization(value);
775
- break;
776
- default:
777
- reader.skipField();
778
- break;
779
- }
780
- }
781
- return msg;
782
- };
783
-
784
-
785
- /**
786
- * Serializes the message to binary data (in protobuf wire format).
787
- * @return {!Uint8Array}
788
- */
789
- proto.CreateAssignPOrganizationRequest.prototype.serializeBinary = function() {
790
- var writer = new jspb.BinaryWriter();
791
- proto.CreateAssignPOrganizationRequest.serializeBinaryToWriter(this, writer);
792
- return writer.getResultBuffer();
793
- };
794
-
795
-
796
- /**
797
- * Serializes the given message to binary data (in protobuf wire
798
- * format), writing to the given BinaryWriter.
799
- * @param {!proto.CreateAssignPOrganizationRequest} message
800
- * @param {!jspb.BinaryWriter} writer
801
- * @suppress {unusedLocalVariables} f is only used for nested messages
802
- */
803
- proto.CreateAssignPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
804
- var f = undefined;
805
- f = message.getAssignPurchasingOrganization();
806
- if (f != null) {
807
- writer.writeMessage(
808
- 1,
809
- f,
810
- proto.AssignPOrganization.serializeBinaryToWriter
811
- );
812
- }
813
- };
814
-
815
-
816
- /**
817
- * optional AssignPOrganization assign_purchasing_organization = 1;
818
- * @return {?proto.AssignPOrganization}
819
- */
820
- proto.CreateAssignPOrganizationRequest.prototype.getAssignPurchasingOrganization = function() {
821
- return /** @type{?proto.AssignPOrganization} */ (
822
- jspb.Message.getWrapperField(this, proto.AssignPOrganization, 1));
823
- };
824
-
825
-
826
- /**
827
- * @param {?proto.AssignPOrganization|undefined} value
828
- * @return {!proto.CreateAssignPOrganizationRequest} returns this
829
- */
830
- proto.CreateAssignPOrganizationRequest.prototype.setAssignPurchasingOrganization = function(value) {
831
- return jspb.Message.setWrapperField(this, 1, value);
832
- };
833
-
834
-
835
- /**
836
- * Clears the message field making it undefined.
837
- * @return {!proto.CreateAssignPOrganizationRequest} returns this
838
- */
839
- proto.CreateAssignPOrganizationRequest.prototype.clearAssignPurchasingOrganization = function() {
840
- return this.setAssignPurchasingOrganization(undefined);
841
- };
842
-
843
-
844
- /**
845
- * Returns whether this field is set.
846
- * @return {boolean}
847
- */
848
- proto.CreateAssignPOrganizationRequest.prototype.hasAssignPurchasingOrganization = function() {
849
- return jspb.Message.getField(this, 1) != null;
850
- };
851
-
852
-
853
-
854
-
855
-
856
- if (jspb.Message.GENERATE_TO_OBJECT) {
857
- /**
858
- * Creates an object representation of this proto.
859
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
860
- * Optional fields that are not set will be set to undefined.
861
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
862
- * For the list of reserved names please see:
863
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
864
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
865
- * JSPB instance for transitional soy proto support:
866
- * http://goto/soy-param-migration
867
- * @return {!Object}
868
- */
869
- proto.UpdateAssignPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
870
- return proto.UpdateAssignPOrganizationRequest.toObject(opt_includeInstance, this);
871
- };
872
-
873
-
874
- /**
875
- * Static version of the {@see toObject} method.
876
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
877
- * the JSPB instance for transitional soy proto support:
878
- * http://goto/soy-param-migration
879
- * @param {!proto.UpdateAssignPOrganizationRequest} msg The msg instance to transform.
880
- * @return {!Object}
881
- * @suppress {unusedLocalVariables} f is only used for nested messages
882
- */
883
- proto.UpdateAssignPOrganizationRequest.toObject = function(includeInstance, msg) {
884
- var f, obj = {
885
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
886
- assignPurchasingOrganization: (f = msg.getAssignPurchasingOrganization()) && proto.AssignPOrganization.toObject(includeInstance, f)
887
- };
888
-
889
- if (includeInstance) {
890
- obj.$jspbMessageInstance = msg;
891
- }
892
- return obj;
893
- };
894
- }
895
-
896
-
897
- /**
898
- * Deserializes binary data (in protobuf wire format).
899
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
900
- * @return {!proto.UpdateAssignPOrganizationRequest}
901
- */
902
- proto.UpdateAssignPOrganizationRequest.deserializeBinary = function(bytes) {
903
- var reader = new jspb.BinaryReader(bytes);
904
- var msg = new proto.UpdateAssignPOrganizationRequest;
905
- return proto.UpdateAssignPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
906
- };
907
-
908
-
909
- /**
910
- * Deserializes binary data (in protobuf wire format) from the
911
- * given reader into the given message object.
912
- * @param {!proto.UpdateAssignPOrganizationRequest} msg The message object to deserialize into.
913
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
914
- * @return {!proto.UpdateAssignPOrganizationRequest}
915
- */
916
- proto.UpdateAssignPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
917
- while (reader.nextField()) {
918
- if (reader.isEndGroup()) {
919
- break;
920
- }
921
- var field = reader.getFieldNumber();
922
- switch (field) {
923
- case 1:
924
- var value = /** @type {string} */ (reader.readString());
925
- msg.setReferencesId(value);
926
- break;
927
- case 2:
928
- var value = new proto.AssignPOrganization;
929
- reader.readMessage(value,proto.AssignPOrganization.deserializeBinaryFromReader);
930
- msg.setAssignPurchasingOrganization(value);
931
- break;
932
- default:
933
- reader.skipField();
934
- break;
935
- }
936
- }
937
- return msg;
938
- };
939
-
940
-
941
- /**
942
- * Serializes the message to binary data (in protobuf wire format).
943
- * @return {!Uint8Array}
944
- */
945
- proto.UpdateAssignPOrganizationRequest.prototype.serializeBinary = function() {
946
- var writer = new jspb.BinaryWriter();
947
- proto.UpdateAssignPOrganizationRequest.serializeBinaryToWriter(this, writer);
948
- return writer.getResultBuffer();
949
- };
950
-
951
-
952
- /**
953
- * Serializes the given message to binary data (in protobuf wire
954
- * format), writing to the given BinaryWriter.
955
- * @param {!proto.UpdateAssignPOrganizationRequest} message
956
- * @param {!jspb.BinaryWriter} writer
957
- * @suppress {unusedLocalVariables} f is only used for nested messages
958
- */
959
- proto.UpdateAssignPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
960
- var f = undefined;
961
- f = message.getReferencesId();
962
- if (f.length > 0) {
963
- writer.writeString(
964
- 1,
965
- f
966
- );
967
- }
968
- f = message.getAssignPurchasingOrganization();
969
- if (f != null) {
970
- writer.writeMessage(
971
- 2,
972
- f,
973
- proto.AssignPOrganization.serializeBinaryToWriter
974
- );
975
- }
976
- };
977
-
978
-
979
- /**
980
- * optional string references_id = 1;
981
- * @return {string}
982
- */
983
- proto.UpdateAssignPOrganizationRequest.prototype.getReferencesId = function() {
984
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
985
- };
986
-
987
-
988
- /**
989
- * @param {string} value
990
- * @return {!proto.UpdateAssignPOrganizationRequest} returns this
991
- */
992
- proto.UpdateAssignPOrganizationRequest.prototype.setReferencesId = function(value) {
993
- return jspb.Message.setProto3StringField(this, 1, value);
994
- };
995
-
996
-
997
- /**
998
- * optional AssignPOrganization assign_purchasing_organization = 2;
999
- * @return {?proto.AssignPOrganization}
1000
- */
1001
- proto.UpdateAssignPOrganizationRequest.prototype.getAssignPurchasingOrganization = function() {
1002
- return /** @type{?proto.AssignPOrganization} */ (
1003
- jspb.Message.getWrapperField(this, proto.AssignPOrganization, 2));
1004
- };
1005
-
1006
-
1007
- /**
1008
- * @param {?proto.AssignPOrganization|undefined} value
1009
- * @return {!proto.UpdateAssignPOrganizationRequest} returns this
1010
- */
1011
- proto.UpdateAssignPOrganizationRequest.prototype.setAssignPurchasingOrganization = function(value) {
1012
- return jspb.Message.setWrapperField(this, 2, value);
1013
- };
1014
-
1015
-
1016
- /**
1017
- * Clears the message field making it undefined.
1018
- * @return {!proto.UpdateAssignPOrganizationRequest} returns this
1019
- */
1020
- proto.UpdateAssignPOrganizationRequest.prototype.clearAssignPurchasingOrganization = function() {
1021
- return this.setAssignPurchasingOrganization(undefined);
1022
- };
1023
-
1024
-
1025
- /**
1026
- * Returns whether this field is set.
1027
- * @return {boolean}
1028
- */
1029
- proto.UpdateAssignPOrganizationRequest.prototype.hasAssignPurchasingOrganization = function() {
1030
- return jspb.Message.getField(this, 2) != null;
1031
- };
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- if (jspb.Message.GENERATE_TO_OBJECT) {
1038
- /**
1039
- * Creates an object representation of this proto.
1040
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1041
- * Optional fields that are not set will be set to undefined.
1042
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1043
- * For the list of reserved names please see:
1044
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1045
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1046
- * JSPB instance for transitional soy proto support:
1047
- * http://goto/soy-param-migration
1048
- * @return {!Object}
1049
- */
1050
- proto.GetListAssignPOrganizationRequest.prototype.toObject = function(opt_includeInstance) {
1051
- return proto.GetListAssignPOrganizationRequest.toObject(opt_includeInstance, this);
1052
- };
1053
-
1054
-
1055
- /**
1056
- * Static version of the {@see toObject} method.
1057
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1058
- * the JSPB instance for transitional soy proto support:
1059
- * http://goto/soy-param-migration
1060
- * @param {!proto.GetListAssignPOrganizationRequest} msg The msg instance to transform.
1061
- * @return {!Object}
1062
- * @suppress {unusedLocalVariables} f is only used for nested messages
1063
- */
1064
- proto.GetListAssignPOrganizationRequest.toObject = function(includeInstance, msg) {
1065
- var f, obj = {
1066
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1067
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1068
- };
1069
-
1070
- if (includeInstance) {
1071
- obj.$jspbMessageInstance = msg;
1072
- }
1073
- return obj;
1074
- };
1075
- }
1076
-
1077
-
1078
- /**
1079
- * Deserializes binary data (in protobuf wire format).
1080
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1081
- * @return {!proto.GetListAssignPOrganizationRequest}
1082
- */
1083
- proto.GetListAssignPOrganizationRequest.deserializeBinary = function(bytes) {
1084
- var reader = new jspb.BinaryReader(bytes);
1085
- var msg = new proto.GetListAssignPOrganizationRequest;
1086
- return proto.GetListAssignPOrganizationRequest.deserializeBinaryFromReader(msg, reader);
1087
- };
1088
-
1089
-
1090
- /**
1091
- * Deserializes binary data (in protobuf wire format) from the
1092
- * given reader into the given message object.
1093
- * @param {!proto.GetListAssignPOrganizationRequest} msg The message object to deserialize into.
1094
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1095
- * @return {!proto.GetListAssignPOrganizationRequest}
1096
- */
1097
- proto.GetListAssignPOrganizationRequest.deserializeBinaryFromReader = function(msg, reader) {
1098
- while (reader.nextField()) {
1099
- if (reader.isEndGroup()) {
1100
- break;
1101
- }
1102
- var field = reader.getFieldNumber();
1103
- switch (field) {
1104
- case 1:
1105
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1106
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1107
- msg.setPagination(value);
1108
- break;
1109
- case 2:
1110
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1111
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1112
- msg.setQuery(value);
1113
- break;
1114
- default:
1115
- reader.skipField();
1116
- break;
1117
- }
1118
- }
1119
- return msg;
1120
- };
1121
-
1122
-
1123
- /**
1124
- * Serializes the message to binary data (in protobuf wire format).
1125
- * @return {!Uint8Array}
1126
- */
1127
- proto.GetListAssignPOrganizationRequest.prototype.serializeBinary = function() {
1128
- var writer = new jspb.BinaryWriter();
1129
- proto.GetListAssignPOrganizationRequest.serializeBinaryToWriter(this, writer);
1130
- return writer.getResultBuffer();
1131
- };
1132
-
1133
-
1134
- /**
1135
- * Serializes the given message to binary data (in protobuf wire
1136
- * format), writing to the given BinaryWriter.
1137
- * @param {!proto.GetListAssignPOrganizationRequest} message
1138
- * @param {!jspb.BinaryWriter} writer
1139
- * @suppress {unusedLocalVariables} f is only used for nested messages
1140
- */
1141
- proto.GetListAssignPOrganizationRequest.serializeBinaryToWriter = function(message, writer) {
1142
- var f = undefined;
1143
- f = message.getPagination();
1144
- if (f != null) {
1145
- writer.writeMessage(
1146
- 1,
1147
- f,
1148
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1149
- );
1150
- }
1151
- f = message.getQuery();
1152
- if (f != null) {
1153
- writer.writeMessage(
1154
- 2,
1155
- f,
1156
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1157
- );
1158
- }
1159
- };
1160
-
1161
-
1162
- /**
1163
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1164
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1165
- */
1166
- proto.GetListAssignPOrganizationRequest.prototype.getPagination = function() {
1167
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1168
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1169
- };
1170
-
1171
-
1172
- /**
1173
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1174
- * @return {!proto.GetListAssignPOrganizationRequest} returns this
1175
- */
1176
- proto.GetListAssignPOrganizationRequest.prototype.setPagination = function(value) {
1177
- return jspb.Message.setWrapperField(this, 1, value);
1178
- };
1179
-
1180
-
1181
- /**
1182
- * Clears the message field making it undefined.
1183
- * @return {!proto.GetListAssignPOrganizationRequest} returns this
1184
- */
1185
- proto.GetListAssignPOrganizationRequest.prototype.clearPagination = function() {
1186
- return this.setPagination(undefined);
1187
- };
1188
-
1189
-
1190
- /**
1191
- * Returns whether this field is set.
1192
- * @return {boolean}
1193
- */
1194
- proto.GetListAssignPOrganizationRequest.prototype.hasPagination = function() {
1195
- return jspb.Message.getField(this, 1) != null;
1196
- };
1197
-
1198
-
1199
- /**
1200
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1201
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1202
- */
1203
- proto.GetListAssignPOrganizationRequest.prototype.getQuery = function() {
1204
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1205
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1206
- };
1207
-
1208
-
1209
- /**
1210
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1211
- * @return {!proto.GetListAssignPOrganizationRequest} returns this
1212
- */
1213
- proto.GetListAssignPOrganizationRequest.prototype.setQuery = function(value) {
1214
- return jspb.Message.setWrapperField(this, 2, value);
1215
- };
1216
-
1217
-
1218
- /**
1219
- * Clears the message field making it undefined.
1220
- * @return {!proto.GetListAssignPOrganizationRequest} returns this
1221
- */
1222
- proto.GetListAssignPOrganizationRequest.prototype.clearQuery = function() {
1223
- return this.setQuery(undefined);
1224
- };
1225
-
1226
-
1227
- /**
1228
- * Returns whether this field is set.
1229
- * @return {boolean}
1230
- */
1231
- proto.GetListAssignPOrganizationRequest.prototype.hasQuery = function() {
1232
- return jspb.Message.getField(this, 2) != null;
1233
- };
1234
-
1235
-
1236
-
1237
-
1238
-
1239
- if (jspb.Message.GENERATE_TO_OBJECT) {
1240
- /**
1241
- * Creates an object representation of this proto.
1242
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1243
- * Optional fields that are not set will be set to undefined.
1244
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1245
- * For the list of reserved names please see:
1246
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1247
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1248
- * JSPB instance for transitional soy proto support:
1249
- * http://goto/soy-param-migration
1250
- * @return {!Object}
1251
- */
1252
- proto.AssignPOrganizationGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1253
- return proto.AssignPOrganizationGetByIdRequest.toObject(opt_includeInstance, this);
1254
- };
1255
-
1256
-
1257
- /**
1258
- * Static version of the {@see toObject} method.
1259
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1260
- * the JSPB instance for transitional soy proto support:
1261
- * http://goto/soy-param-migration
1262
- * @param {!proto.AssignPOrganizationGetByIdRequest} msg The msg instance to transform.
1263
- * @return {!Object}
1264
- * @suppress {unusedLocalVariables} f is only used for nested messages
1265
- */
1266
- proto.AssignPOrganizationGetByIdRequest.toObject = function(includeInstance, msg) {
1267
- var f, obj = {
1268
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1269
- };
1270
-
1271
- if (includeInstance) {
1272
- obj.$jspbMessageInstance = msg;
1273
- }
1274
- return obj;
1275
- };
1276
- }
1277
-
1278
-
1279
- /**
1280
- * Deserializes binary data (in protobuf wire format).
1281
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1282
- * @return {!proto.AssignPOrganizationGetByIdRequest}
1283
- */
1284
- proto.AssignPOrganizationGetByIdRequest.deserializeBinary = function(bytes) {
1285
- var reader = new jspb.BinaryReader(bytes);
1286
- var msg = new proto.AssignPOrganizationGetByIdRequest;
1287
- return proto.AssignPOrganizationGetByIdRequest.deserializeBinaryFromReader(msg, reader);
1288
- };
1289
-
1290
-
1291
- /**
1292
- * Deserializes binary data (in protobuf wire format) from the
1293
- * given reader into the given message object.
1294
- * @param {!proto.AssignPOrganizationGetByIdRequest} msg The message object to deserialize into.
1295
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1296
- * @return {!proto.AssignPOrganizationGetByIdRequest}
1297
- */
1298
- proto.AssignPOrganizationGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1299
- while (reader.nextField()) {
1300
- if (reader.isEndGroup()) {
1301
- break;
1302
- }
1303
- var field = reader.getFieldNumber();
1304
- switch (field) {
1305
- case 1:
1306
- var value = /** @type {string} */ (reader.readString());
1307
- msg.setReferencesId(value);
1308
- break;
1309
- default:
1310
- reader.skipField();
1311
- break;
1312
- }
1313
- }
1314
- return msg;
1315
- };
1316
-
1317
-
1318
- /**
1319
- * Serializes the message to binary data (in protobuf wire format).
1320
- * @return {!Uint8Array}
1321
- */
1322
- proto.AssignPOrganizationGetByIdRequest.prototype.serializeBinary = function() {
1323
- var writer = new jspb.BinaryWriter();
1324
- proto.AssignPOrganizationGetByIdRequest.serializeBinaryToWriter(this, writer);
1325
- return writer.getResultBuffer();
1326
- };
1327
-
1328
-
1329
- /**
1330
- * Serializes the given message to binary data (in protobuf wire
1331
- * format), writing to the given BinaryWriter.
1332
- * @param {!proto.AssignPOrganizationGetByIdRequest} message
1333
- * @param {!jspb.BinaryWriter} writer
1334
- * @suppress {unusedLocalVariables} f is only used for nested messages
1335
- */
1336
- proto.AssignPOrganizationGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
1337
- var f = undefined;
1338
- f = message.getReferencesId();
1339
- if (f.length > 0) {
1340
- writer.writeString(
1341
- 1,
1342
- f
1343
- );
1344
- }
1345
- };
1346
-
1347
-
1348
- /**
1349
- * optional string references_id = 1;
1350
- * @return {string}
1351
- */
1352
- proto.AssignPOrganizationGetByIdRequest.prototype.getReferencesId = function() {
1353
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1354
- };
1355
-
1356
-
1357
- /**
1358
- * @param {string} value
1359
- * @return {!proto.AssignPOrganizationGetByIdRequest} returns this
1360
- */
1361
- proto.AssignPOrganizationGetByIdRequest.prototype.setReferencesId = function(value) {
1362
- return jspb.Message.setProto3StringField(this, 1, value);
1363
- };
1364
-
1365
-
1366
-
1367
-
1368
-
1369
- if (jspb.Message.GENERATE_TO_OBJECT) {
1370
- /**
1371
- * Creates an object representation of this proto.
1372
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1373
- * Optional fields that are not set will be set to undefined.
1374
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1375
- * For the list of reserved names please see:
1376
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1377
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1378
- * JSPB instance for transitional soy proto support:
1379
- * http://goto/soy-param-migration
1380
- * @return {!Object}
1381
- */
1382
- proto.CreateAssignPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1383
- return proto.CreateAssignPOrganizationResponse.toObject(opt_includeInstance, this);
1384
- };
1385
-
1386
-
1387
- /**
1388
- * Static version of the {@see toObject} method.
1389
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1390
- * the JSPB instance for transitional soy proto support:
1391
- * http://goto/soy-param-migration
1392
- * @param {!proto.CreateAssignPOrganizationResponse} msg The msg instance to transform.
1393
- * @return {!Object}
1394
- * @suppress {unusedLocalVariables} f is only used for nested messages
1395
- */
1396
- proto.CreateAssignPOrganizationResponse.toObject = function(includeInstance, msg) {
1397
- var f, obj = {
1398
- assignPurchasingOrganization: (f = msg.getAssignPurchasingOrganization()) && proto.AssignPOrganization.toObject(includeInstance, f),
1399
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1400
- };
1401
-
1402
- if (includeInstance) {
1403
- obj.$jspbMessageInstance = msg;
1404
- }
1405
- return obj;
1406
- };
1407
- }
1408
-
1409
-
1410
- /**
1411
- * Deserializes binary data (in protobuf wire format).
1412
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1413
- * @return {!proto.CreateAssignPOrganizationResponse}
1414
- */
1415
- proto.CreateAssignPOrganizationResponse.deserializeBinary = function(bytes) {
1416
- var reader = new jspb.BinaryReader(bytes);
1417
- var msg = new proto.CreateAssignPOrganizationResponse;
1418
- return proto.CreateAssignPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1419
- };
1420
-
1421
-
1422
- /**
1423
- * Deserializes binary data (in protobuf wire format) from the
1424
- * given reader into the given message object.
1425
- * @param {!proto.CreateAssignPOrganizationResponse} msg The message object to deserialize into.
1426
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1427
- * @return {!proto.CreateAssignPOrganizationResponse}
1428
- */
1429
- proto.CreateAssignPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
1430
- while (reader.nextField()) {
1431
- if (reader.isEndGroup()) {
1432
- break;
1433
- }
1434
- var field = reader.getFieldNumber();
1435
- switch (field) {
1436
- case 1:
1437
- var value = new proto.AssignPOrganization;
1438
- reader.readMessage(value,proto.AssignPOrganization.deserializeBinaryFromReader);
1439
- msg.setAssignPurchasingOrganization(value);
1440
- break;
1441
- case 2:
1442
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1443
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1444
- msg.setMeta(value);
1445
- break;
1446
- default:
1447
- reader.skipField();
1448
- break;
1449
- }
1450
- }
1451
- return msg;
1452
- };
1453
-
1454
-
1455
- /**
1456
- * Serializes the message to binary data (in protobuf wire format).
1457
- * @return {!Uint8Array}
1458
- */
1459
- proto.CreateAssignPOrganizationResponse.prototype.serializeBinary = function() {
1460
- var writer = new jspb.BinaryWriter();
1461
- proto.CreateAssignPOrganizationResponse.serializeBinaryToWriter(this, writer);
1462
- return writer.getResultBuffer();
1463
- };
1464
-
1465
-
1466
- /**
1467
- * Serializes the given message to binary data (in protobuf wire
1468
- * format), writing to the given BinaryWriter.
1469
- * @param {!proto.CreateAssignPOrganizationResponse} message
1470
- * @param {!jspb.BinaryWriter} writer
1471
- * @suppress {unusedLocalVariables} f is only used for nested messages
1472
- */
1473
- proto.CreateAssignPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
1474
- var f = undefined;
1475
- f = message.getAssignPurchasingOrganization();
1476
- if (f != null) {
1477
- writer.writeMessage(
1478
- 1,
1479
- f,
1480
- proto.AssignPOrganization.serializeBinaryToWriter
1481
- );
1482
- }
1483
- f = message.getMeta();
1484
- if (f != null) {
1485
- writer.writeMessage(
1486
- 2,
1487
- f,
1488
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1489
- );
1490
- }
1491
- };
1492
-
1493
-
1494
- /**
1495
- * optional AssignPOrganization assign_purchasing_organization = 1;
1496
- * @return {?proto.AssignPOrganization}
1497
- */
1498
- proto.CreateAssignPOrganizationResponse.prototype.getAssignPurchasingOrganization = function() {
1499
- return /** @type{?proto.AssignPOrganization} */ (
1500
- jspb.Message.getWrapperField(this, proto.AssignPOrganization, 1));
1501
- };
1502
-
1503
-
1504
- /**
1505
- * @param {?proto.AssignPOrganization|undefined} value
1506
- * @return {!proto.CreateAssignPOrganizationResponse} returns this
1507
- */
1508
- proto.CreateAssignPOrganizationResponse.prototype.setAssignPurchasingOrganization = function(value) {
1509
- return jspb.Message.setWrapperField(this, 1, value);
1510
- };
1511
-
1512
-
1513
- /**
1514
- * Clears the message field making it undefined.
1515
- * @return {!proto.CreateAssignPOrganizationResponse} returns this
1516
- */
1517
- proto.CreateAssignPOrganizationResponse.prototype.clearAssignPurchasingOrganization = function() {
1518
- return this.setAssignPurchasingOrganization(undefined);
1519
- };
1520
-
1521
-
1522
- /**
1523
- * Returns whether this field is set.
1524
- * @return {boolean}
1525
- */
1526
- proto.CreateAssignPOrganizationResponse.prototype.hasAssignPurchasingOrganization = function() {
1527
- return jspb.Message.getField(this, 1) != null;
1528
- };
1529
-
1530
-
1531
- /**
1532
- * optional prisca.v1.global.meta.Meta meta = 2;
1533
- * @return {?proto.prisca.v1.global.meta.Meta}
1534
- */
1535
- proto.CreateAssignPOrganizationResponse.prototype.getMeta = function() {
1536
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1537
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1538
- };
1539
-
1540
-
1541
- /**
1542
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1543
- * @return {!proto.CreateAssignPOrganizationResponse} returns this
1544
- */
1545
- proto.CreateAssignPOrganizationResponse.prototype.setMeta = function(value) {
1546
- return jspb.Message.setWrapperField(this, 2, value);
1547
- };
1548
-
1549
-
1550
- /**
1551
- * Clears the message field making it undefined.
1552
- * @return {!proto.CreateAssignPOrganizationResponse} returns this
1553
- */
1554
- proto.CreateAssignPOrganizationResponse.prototype.clearMeta = function() {
1555
- return this.setMeta(undefined);
1556
- };
1557
-
1558
-
1559
- /**
1560
- * Returns whether this field is set.
1561
- * @return {boolean}
1562
- */
1563
- proto.CreateAssignPOrganizationResponse.prototype.hasMeta = function() {
1564
- return jspb.Message.getField(this, 2) != null;
1565
- };
1566
-
1567
-
1568
-
1569
- /**
1570
- * List of repeated fields within this message type.
1571
- * @private {!Array<number>}
1572
- * @const
1573
- */
1574
- proto.GetListAssignPOrganizationResponse.repeatedFields_ = [1];
1575
-
1576
-
1577
-
1578
- if (jspb.Message.GENERATE_TO_OBJECT) {
1579
- /**
1580
- * Creates an object representation of this proto.
1581
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1582
- * Optional fields that are not set will be set to undefined.
1583
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1584
- * For the list of reserved names please see:
1585
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1586
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1587
- * JSPB instance for transitional soy proto support:
1588
- * http://goto/soy-param-migration
1589
- * @return {!Object}
1590
- */
1591
- proto.GetListAssignPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1592
- return proto.GetListAssignPOrganizationResponse.toObject(opt_includeInstance, this);
1593
- };
1594
-
1595
-
1596
- /**
1597
- * Static version of the {@see toObject} method.
1598
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1599
- * the JSPB instance for transitional soy proto support:
1600
- * http://goto/soy-param-migration
1601
- * @param {!proto.GetListAssignPOrganizationResponse} msg The msg instance to transform.
1602
- * @return {!Object}
1603
- * @suppress {unusedLocalVariables} f is only used for nested messages
1604
- */
1605
- proto.GetListAssignPOrganizationResponse.toObject = function(includeInstance, msg) {
1606
- var f, obj = {
1607
- assignPurchasingOrganizationList: jspb.Message.toObjectList(msg.getAssignPurchasingOrganizationList(),
1608
- proto.BaseAssignPOrganization.toObject, includeInstance),
1609
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1610
- };
1611
-
1612
- if (includeInstance) {
1613
- obj.$jspbMessageInstance = msg;
1614
- }
1615
- return obj;
1616
- };
1617
- }
1618
-
1619
-
1620
- /**
1621
- * Deserializes binary data (in protobuf wire format).
1622
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1623
- * @return {!proto.GetListAssignPOrganizationResponse}
1624
- */
1625
- proto.GetListAssignPOrganizationResponse.deserializeBinary = function(bytes) {
1626
- var reader = new jspb.BinaryReader(bytes);
1627
- var msg = new proto.GetListAssignPOrganizationResponse;
1628
- return proto.GetListAssignPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1629
- };
1630
-
1631
-
1632
- /**
1633
- * Deserializes binary data (in protobuf wire format) from the
1634
- * given reader into the given message object.
1635
- * @param {!proto.GetListAssignPOrganizationResponse} msg The message object to deserialize into.
1636
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1637
- * @return {!proto.GetListAssignPOrganizationResponse}
1638
- */
1639
- proto.GetListAssignPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
1640
- while (reader.nextField()) {
1641
- if (reader.isEndGroup()) {
1642
- break;
1643
- }
1644
- var field = reader.getFieldNumber();
1645
- switch (field) {
1646
- case 1:
1647
- var value = new proto.BaseAssignPOrganization;
1648
- reader.readMessage(value,proto.BaseAssignPOrganization.deserializeBinaryFromReader);
1649
- msg.addAssignPurchasingOrganization(value);
1650
- break;
1651
- case 2:
1652
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1653
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1654
- msg.setMeta(value);
1655
- break;
1656
- default:
1657
- reader.skipField();
1658
- break;
1659
- }
1660
- }
1661
- return msg;
1662
- };
1663
-
1664
-
1665
- /**
1666
- * Serializes the message to binary data (in protobuf wire format).
1667
- * @return {!Uint8Array}
1668
- */
1669
- proto.GetListAssignPOrganizationResponse.prototype.serializeBinary = function() {
1670
- var writer = new jspb.BinaryWriter();
1671
- proto.GetListAssignPOrganizationResponse.serializeBinaryToWriter(this, writer);
1672
- return writer.getResultBuffer();
1673
- };
1674
-
1675
-
1676
- /**
1677
- * Serializes the given message to binary data (in protobuf wire
1678
- * format), writing to the given BinaryWriter.
1679
- * @param {!proto.GetListAssignPOrganizationResponse} message
1680
- * @param {!jspb.BinaryWriter} writer
1681
- * @suppress {unusedLocalVariables} f is only used for nested messages
1682
- */
1683
- proto.GetListAssignPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
1684
- var f = undefined;
1685
- f = message.getAssignPurchasingOrganizationList();
1686
- if (f.length > 0) {
1687
- writer.writeRepeatedMessage(
1688
- 1,
1689
- f,
1690
- proto.BaseAssignPOrganization.serializeBinaryToWriter
1691
- );
1692
- }
1693
- f = message.getMeta();
1694
- if (f != null) {
1695
- writer.writeMessage(
1696
- 2,
1697
- f,
1698
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1699
- );
1700
- }
1701
- };
1702
-
1703
-
1704
- /**
1705
- * repeated BaseAssignPOrganization assign_purchasing_organization = 1;
1706
- * @return {!Array<!proto.BaseAssignPOrganization>}
1707
- */
1708
- proto.GetListAssignPOrganizationResponse.prototype.getAssignPurchasingOrganizationList = function() {
1709
- return /** @type{!Array<!proto.BaseAssignPOrganization>} */ (
1710
- jspb.Message.getRepeatedWrapperField(this, proto.BaseAssignPOrganization, 1));
1711
- };
1712
-
1713
-
1714
- /**
1715
- * @param {!Array<!proto.BaseAssignPOrganization>} value
1716
- * @return {!proto.GetListAssignPOrganizationResponse} returns this
1717
- */
1718
- proto.GetListAssignPOrganizationResponse.prototype.setAssignPurchasingOrganizationList = function(value) {
1719
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1720
- };
1721
-
1722
-
1723
- /**
1724
- * @param {!proto.BaseAssignPOrganization=} opt_value
1725
- * @param {number=} opt_index
1726
- * @return {!proto.BaseAssignPOrganization}
1727
- */
1728
- proto.GetListAssignPOrganizationResponse.prototype.addAssignPurchasingOrganization = function(opt_value, opt_index) {
1729
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseAssignPOrganization, opt_index);
1730
- };
1731
-
1732
-
1733
- /**
1734
- * Clears the list making it empty but non-null.
1735
- * @return {!proto.GetListAssignPOrganizationResponse} returns this
1736
- */
1737
- proto.GetListAssignPOrganizationResponse.prototype.clearAssignPurchasingOrganizationList = function() {
1738
- return this.setAssignPurchasingOrganizationList([]);
1739
- };
1740
-
1741
-
1742
- /**
1743
- * optional prisca.v1.global.meta.Meta meta = 2;
1744
- * @return {?proto.prisca.v1.global.meta.Meta}
1745
- */
1746
- proto.GetListAssignPOrganizationResponse.prototype.getMeta = function() {
1747
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1748
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1749
- };
1750
-
1751
-
1752
- /**
1753
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1754
- * @return {!proto.GetListAssignPOrganizationResponse} returns this
1755
- */
1756
- proto.GetListAssignPOrganizationResponse.prototype.setMeta = function(value) {
1757
- return jspb.Message.setWrapperField(this, 2, value);
1758
- };
1759
-
1760
-
1761
- /**
1762
- * Clears the message field making it undefined.
1763
- * @return {!proto.GetListAssignPOrganizationResponse} returns this
1764
- */
1765
- proto.GetListAssignPOrganizationResponse.prototype.clearMeta = function() {
1766
- return this.setMeta(undefined);
1767
- };
1768
-
1769
-
1770
- /**
1771
- * Returns whether this field is set.
1772
- * @return {boolean}
1773
- */
1774
- proto.GetListAssignPOrganizationResponse.prototype.hasMeta = function() {
1775
- return jspb.Message.getField(this, 2) != null;
1776
- };
1777
-
1778
-
1779
-
1780
-
1781
-
1782
- if (jspb.Message.GENERATE_TO_OBJECT) {
1783
- /**
1784
- * Creates an object representation of this proto.
1785
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1786
- * Optional fields that are not set will be set to undefined.
1787
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1788
- * For the list of reserved names please see:
1789
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1790
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1791
- * JSPB instance for transitional soy proto support:
1792
- * http://goto/soy-param-migration
1793
- * @return {!Object}
1794
- */
1795
- proto.UpdateAssignPOrganizationResponse.prototype.toObject = function(opt_includeInstance) {
1796
- return proto.UpdateAssignPOrganizationResponse.toObject(opt_includeInstance, this);
1797
- };
1798
-
1799
-
1800
- /**
1801
- * Static version of the {@see toObject} method.
1802
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1803
- * the JSPB instance for transitional soy proto support:
1804
- * http://goto/soy-param-migration
1805
- * @param {!proto.UpdateAssignPOrganizationResponse} msg The msg instance to transform.
1806
- * @return {!Object}
1807
- * @suppress {unusedLocalVariables} f is only used for nested messages
1808
- */
1809
- proto.UpdateAssignPOrganizationResponse.toObject = function(includeInstance, msg) {
1810
- var f, obj = {
1811
- assignPurchasingOrganization: (f = msg.getAssignPurchasingOrganization()) && proto.AssignPOrganization.toObject(includeInstance, f),
1812
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1813
- };
1814
-
1815
- if (includeInstance) {
1816
- obj.$jspbMessageInstance = msg;
1817
- }
1818
- return obj;
1819
- };
1820
- }
1821
-
1822
-
1823
- /**
1824
- * Deserializes binary data (in protobuf wire format).
1825
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1826
- * @return {!proto.UpdateAssignPOrganizationResponse}
1827
- */
1828
- proto.UpdateAssignPOrganizationResponse.deserializeBinary = function(bytes) {
1829
- var reader = new jspb.BinaryReader(bytes);
1830
- var msg = new proto.UpdateAssignPOrganizationResponse;
1831
- return proto.UpdateAssignPOrganizationResponse.deserializeBinaryFromReader(msg, reader);
1832
- };
1833
-
1834
-
1835
- /**
1836
- * Deserializes binary data (in protobuf wire format) from the
1837
- * given reader into the given message object.
1838
- * @param {!proto.UpdateAssignPOrganizationResponse} msg The message object to deserialize into.
1839
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1840
- * @return {!proto.UpdateAssignPOrganizationResponse}
1841
- */
1842
- proto.UpdateAssignPOrganizationResponse.deserializeBinaryFromReader = function(msg, reader) {
1843
- while (reader.nextField()) {
1844
- if (reader.isEndGroup()) {
1845
- break;
1846
- }
1847
- var field = reader.getFieldNumber();
1848
- switch (field) {
1849
- case 1:
1850
- var value = new proto.AssignPOrganization;
1851
- reader.readMessage(value,proto.AssignPOrganization.deserializeBinaryFromReader);
1852
- msg.setAssignPurchasingOrganization(value);
1853
- break;
1854
- case 2:
1855
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1856
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1857
- msg.setMeta(value);
1858
- break;
1859
- default:
1860
- reader.skipField();
1861
- break;
1862
- }
1863
- }
1864
- return msg;
1865
- };
1866
-
1867
-
1868
- /**
1869
- * Serializes the message to binary data (in protobuf wire format).
1870
- * @return {!Uint8Array}
1871
- */
1872
- proto.UpdateAssignPOrganizationResponse.prototype.serializeBinary = function() {
1873
- var writer = new jspb.BinaryWriter();
1874
- proto.UpdateAssignPOrganizationResponse.serializeBinaryToWriter(this, writer);
1875
- return writer.getResultBuffer();
1876
- };
1877
-
1878
-
1879
- /**
1880
- * Serializes the given message to binary data (in protobuf wire
1881
- * format), writing to the given BinaryWriter.
1882
- * @param {!proto.UpdateAssignPOrganizationResponse} message
1883
- * @param {!jspb.BinaryWriter} writer
1884
- * @suppress {unusedLocalVariables} f is only used for nested messages
1885
- */
1886
- proto.UpdateAssignPOrganizationResponse.serializeBinaryToWriter = function(message, writer) {
1887
- var f = undefined;
1888
- f = message.getAssignPurchasingOrganization();
1889
- if (f != null) {
1890
- writer.writeMessage(
1891
- 1,
1892
- f,
1893
- proto.AssignPOrganization.serializeBinaryToWriter
1894
- );
1895
- }
1896
- f = message.getMeta();
1897
- if (f != null) {
1898
- writer.writeMessage(
1899
- 2,
1900
- f,
1901
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1902
- );
1903
- }
1904
- };
1905
-
1906
-
1907
- /**
1908
- * optional AssignPOrganization assign_purchasing_organization = 1;
1909
- * @return {?proto.AssignPOrganization}
1910
- */
1911
- proto.UpdateAssignPOrganizationResponse.prototype.getAssignPurchasingOrganization = function() {
1912
- return /** @type{?proto.AssignPOrganization} */ (
1913
- jspb.Message.getWrapperField(this, proto.AssignPOrganization, 1));
1914
- };
1915
-
1916
-
1917
- /**
1918
- * @param {?proto.AssignPOrganization|undefined} value
1919
- * @return {!proto.UpdateAssignPOrganizationResponse} returns this
1920
- */
1921
- proto.UpdateAssignPOrganizationResponse.prototype.setAssignPurchasingOrganization = function(value) {
1922
- return jspb.Message.setWrapperField(this, 1, value);
1923
- };
1924
-
1925
-
1926
- /**
1927
- * Clears the message field making it undefined.
1928
- * @return {!proto.UpdateAssignPOrganizationResponse} returns this
1929
- */
1930
- proto.UpdateAssignPOrganizationResponse.prototype.clearAssignPurchasingOrganization = function() {
1931
- return this.setAssignPurchasingOrganization(undefined);
1932
- };
1933
-
1934
-
1935
- /**
1936
- * Returns whether this field is set.
1937
- * @return {boolean}
1938
- */
1939
- proto.UpdateAssignPOrganizationResponse.prototype.hasAssignPurchasingOrganization = function() {
1940
- return jspb.Message.getField(this, 1) != null;
1941
- };
1942
-
1943
-
1944
- /**
1945
- * optional prisca.v1.global.meta.Meta meta = 2;
1946
- * @return {?proto.prisca.v1.global.meta.Meta}
1947
- */
1948
- proto.UpdateAssignPOrganizationResponse.prototype.getMeta = function() {
1949
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1950
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1951
- };
1952
-
1953
-
1954
- /**
1955
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1956
- * @return {!proto.UpdateAssignPOrganizationResponse} returns this
1957
- */
1958
- proto.UpdateAssignPOrganizationResponse.prototype.setMeta = function(value) {
1959
- return jspb.Message.setWrapperField(this, 2, value);
1960
- };
1961
-
1962
-
1963
- /**
1964
- * Clears the message field making it undefined.
1965
- * @return {!proto.UpdateAssignPOrganizationResponse} returns this
1966
- */
1967
- proto.UpdateAssignPOrganizationResponse.prototype.clearMeta = function() {
1968
- return this.setMeta(undefined);
1969
- };
1970
-
1971
-
1972
- /**
1973
- * Returns whether this field is set.
1974
- * @return {boolean}
1975
- */
1976
- proto.UpdateAssignPOrganizationResponse.prototype.hasMeta = function() {
1977
- return jspb.Message.getField(this, 2) != null;
1978
- };
1979
-
1980
-
1981
-
1982
-
1983
-
1984
- if (jspb.Message.GENERATE_TO_OBJECT) {
1985
- /**
1986
- * Creates an object representation of this proto.
1987
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1988
- * Optional fields that are not set will be set to undefined.
1989
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1990
- * For the list of reserved names please see:
1991
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1992
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1993
- * JSPB instance for transitional soy proto support:
1994
- * http://goto/soy-param-migration
1995
- * @return {!Object}
1996
- */
1997
- proto.AssignPOrganizationGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
1998
- return proto.AssignPOrganizationGetByIdResponse.toObject(opt_includeInstance, this);
1999
- };
2000
-
2001
-
2002
- /**
2003
- * Static version of the {@see toObject} method.
2004
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2005
- * the JSPB instance for transitional soy proto support:
2006
- * http://goto/soy-param-migration
2007
- * @param {!proto.AssignPOrganizationGetByIdResponse} msg The msg instance to transform.
2008
- * @return {!Object}
2009
- * @suppress {unusedLocalVariables} f is only used for nested messages
2010
- */
2011
- proto.AssignPOrganizationGetByIdResponse.toObject = function(includeInstance, msg) {
2012
- var f, obj = {
2013
- assignPurchasingOrganization: (f = msg.getAssignPurchasingOrganization()) && proto.BaseAssignPOrganization.toObject(includeInstance, f),
2014
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2015
- };
2016
-
2017
- if (includeInstance) {
2018
- obj.$jspbMessageInstance = msg;
2019
- }
2020
- return obj;
2021
- };
2022
- }
2023
-
2024
-
2025
- /**
2026
- * Deserializes binary data (in protobuf wire format).
2027
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2028
- * @return {!proto.AssignPOrganizationGetByIdResponse}
2029
- */
2030
- proto.AssignPOrganizationGetByIdResponse.deserializeBinary = function(bytes) {
2031
- var reader = new jspb.BinaryReader(bytes);
2032
- var msg = new proto.AssignPOrganizationGetByIdResponse;
2033
- return proto.AssignPOrganizationGetByIdResponse.deserializeBinaryFromReader(msg, reader);
2034
- };
2035
-
2036
-
2037
- /**
2038
- * Deserializes binary data (in protobuf wire format) from the
2039
- * given reader into the given message object.
2040
- * @param {!proto.AssignPOrganizationGetByIdResponse} msg The message object to deserialize into.
2041
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2042
- * @return {!proto.AssignPOrganizationGetByIdResponse}
2043
- */
2044
- proto.AssignPOrganizationGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2045
- while (reader.nextField()) {
2046
- if (reader.isEndGroup()) {
2047
- break;
2048
- }
2049
- var field = reader.getFieldNumber();
2050
- switch (field) {
2051
- case 1:
2052
- var value = new proto.BaseAssignPOrganization;
2053
- reader.readMessage(value,proto.BaseAssignPOrganization.deserializeBinaryFromReader);
2054
- msg.setAssignPurchasingOrganization(value);
2055
- break;
2056
- case 2:
2057
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2058
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2059
- msg.setMeta(value);
2060
- break;
2061
- default:
2062
- reader.skipField();
2063
- break;
2064
- }
2065
- }
2066
- return msg;
2067
- };
2068
-
2069
-
2070
- /**
2071
- * Serializes the message to binary data (in protobuf wire format).
2072
- * @return {!Uint8Array}
2073
- */
2074
- proto.AssignPOrganizationGetByIdResponse.prototype.serializeBinary = function() {
2075
- var writer = new jspb.BinaryWriter();
2076
- proto.AssignPOrganizationGetByIdResponse.serializeBinaryToWriter(this, writer);
2077
- return writer.getResultBuffer();
2078
- };
2079
-
2080
-
2081
- /**
2082
- * Serializes the given message to binary data (in protobuf wire
2083
- * format), writing to the given BinaryWriter.
2084
- * @param {!proto.AssignPOrganizationGetByIdResponse} message
2085
- * @param {!jspb.BinaryWriter} writer
2086
- * @suppress {unusedLocalVariables} f is only used for nested messages
2087
- */
2088
- proto.AssignPOrganizationGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
2089
- var f = undefined;
2090
- f = message.getAssignPurchasingOrganization();
2091
- if (f != null) {
2092
- writer.writeMessage(
2093
- 1,
2094
- f,
2095
- proto.BaseAssignPOrganization.serializeBinaryToWriter
2096
- );
2097
- }
2098
- f = message.getMeta();
2099
- if (f != null) {
2100
- writer.writeMessage(
2101
- 2,
2102
- f,
2103
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2104
- );
2105
- }
2106
- };
2107
-
2108
-
2109
- /**
2110
- * optional BaseAssignPOrganization assign_purchasing_organization = 1;
2111
- * @return {?proto.BaseAssignPOrganization}
2112
- */
2113
- proto.AssignPOrganizationGetByIdResponse.prototype.getAssignPurchasingOrganization = function() {
2114
- return /** @type{?proto.BaseAssignPOrganization} */ (
2115
- jspb.Message.getWrapperField(this, proto.BaseAssignPOrganization, 1));
2116
- };
2117
-
2118
-
2119
- /**
2120
- * @param {?proto.BaseAssignPOrganization|undefined} value
2121
- * @return {!proto.AssignPOrganizationGetByIdResponse} returns this
2122
- */
2123
- proto.AssignPOrganizationGetByIdResponse.prototype.setAssignPurchasingOrganization = function(value) {
2124
- return jspb.Message.setWrapperField(this, 1, value);
2125
- };
2126
-
2127
-
2128
- /**
2129
- * Clears the message field making it undefined.
2130
- * @return {!proto.AssignPOrganizationGetByIdResponse} returns this
2131
- */
2132
- proto.AssignPOrganizationGetByIdResponse.prototype.clearAssignPurchasingOrganization = function() {
2133
- return this.setAssignPurchasingOrganization(undefined);
2134
- };
2135
-
2136
-
2137
- /**
2138
- * Returns whether this field is set.
2139
- * @return {boolean}
2140
- */
2141
- proto.AssignPOrganizationGetByIdResponse.prototype.hasAssignPurchasingOrganization = function() {
2142
- return jspb.Message.getField(this, 1) != null;
2143
- };
2144
-
2145
-
2146
- /**
2147
- * optional prisca.v1.global.meta.Meta meta = 2;
2148
- * @return {?proto.prisca.v1.global.meta.Meta}
2149
- */
2150
- proto.AssignPOrganizationGetByIdResponse.prototype.getMeta = function() {
2151
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2152
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2153
- };
2154
-
2155
-
2156
- /**
2157
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2158
- * @return {!proto.AssignPOrganizationGetByIdResponse} returns this
2159
- */
2160
- proto.AssignPOrganizationGetByIdResponse.prototype.setMeta = function(value) {
2161
- return jspb.Message.setWrapperField(this, 2, value);
2162
- };
2163
-
2164
-
2165
- /**
2166
- * Clears the message field making it undefined.
2167
- * @return {!proto.AssignPOrganizationGetByIdResponse} returns this
2168
- */
2169
- proto.AssignPOrganizationGetByIdResponse.prototype.clearMeta = function() {
2170
- return this.setMeta(undefined);
2171
- };
2172
-
2173
-
2174
- /**
2175
- * Returns whether this field is set.
2176
- * @return {boolean}
2177
- */
2178
- proto.AssignPOrganizationGetByIdResponse.prototype.hasMeta = function() {
2179
- return jspb.Message.getField(this, 2) != null;
2180
- };
2181
-
2182
-
2183
- goog.object.extend(exports, proto);