@aldiokta/protocgen 1.0.56 → 1.0.58

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