@aldiokta/protocgen 1.0.32 → 1.0.34

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