@aldiokta/protocgen 1.0.56 → 1.0.57

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