@aldiokta/protocgen 1.0.101 → 1.1.0

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