@aldiokta/protocgen 1.1.66 → 1.1.68

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