@marleena/trb-proto 0.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.
@@ -0,0 +1,3611 @@
1
+ // source: clickhouse/clickhouse_grpc.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 google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ goog.exportSymbol('proto.clickhouse.grpc.Exception', null, global);
27
+ goog.exportSymbol('proto.clickhouse.grpc.ExternalTable', null, global);
28
+ goog.exportSymbol('proto.clickhouse.grpc.LogEntry', null, global);
29
+ goog.exportSymbol('proto.clickhouse.grpc.LogsLevel', null, global);
30
+ goog.exportSymbol('proto.clickhouse.grpc.NameAndType', null, global);
31
+ goog.exportSymbol('proto.clickhouse.grpc.ObsoleteTransportCompression', null, global);
32
+ goog.exportSymbol('proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm', null, global);
33
+ goog.exportSymbol('proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel', null, global);
34
+ goog.exportSymbol('proto.clickhouse.grpc.Progress', null, global);
35
+ goog.exportSymbol('proto.clickhouse.grpc.QueryInfo', null, global);
36
+ goog.exportSymbol('proto.clickhouse.grpc.Result', null, global);
37
+ goog.exportSymbol('proto.clickhouse.grpc.Stats', 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.clickhouse.grpc.NameAndType = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.clickhouse.grpc.NameAndType, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.clickhouse.grpc.NameAndType.displayName = 'proto.clickhouse.grpc.NameAndType';
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.clickhouse.grpc.ExternalTable = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clickhouse.grpc.ExternalTable.repeatedFields_, null);
71
+ };
72
+ goog.inherits(proto.clickhouse.grpc.ExternalTable, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.clickhouse.grpc.ExternalTable.displayName = 'proto.clickhouse.grpc.ExternalTable';
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.clickhouse.grpc.ObsoleteTransportCompression = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.clickhouse.grpc.ObsoleteTransportCompression, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.clickhouse.grpc.ObsoleteTransportCompression.displayName = 'proto.clickhouse.grpc.ObsoleteTransportCompression';
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.clickhouse.grpc.QueryInfo = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clickhouse.grpc.QueryInfo.repeatedFields_, null);
113
+ };
114
+ goog.inherits(proto.clickhouse.grpc.QueryInfo, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.clickhouse.grpc.QueryInfo.displayName = 'proto.clickhouse.grpc.QueryInfo';
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.clickhouse.grpc.LogEntry = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.clickhouse.grpc.LogEntry, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.clickhouse.grpc.LogEntry.displayName = 'proto.clickhouse.grpc.LogEntry';
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.clickhouse.grpc.Progress = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.clickhouse.grpc.Progress, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.clickhouse.grpc.Progress.displayName = 'proto.clickhouse.grpc.Progress';
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.clickhouse.grpc.Stats = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.clickhouse.grpc.Stats, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.clickhouse.grpc.Stats.displayName = 'proto.clickhouse.grpc.Stats';
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.clickhouse.grpc.Exception = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
197
+ };
198
+ goog.inherits(proto.clickhouse.grpc.Exception, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.clickhouse.grpc.Exception.displayName = 'proto.clickhouse.grpc.Exception';
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.clickhouse.grpc.Result = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clickhouse.grpc.Result.repeatedFields_, null);
218
+ };
219
+ goog.inherits(proto.clickhouse.grpc.Result, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.clickhouse.grpc.Result.displayName = 'proto.clickhouse.grpc.Result';
226
+ }
227
+
228
+
229
+
230
+ if (jspb.Message.GENERATE_TO_OBJECT) {
231
+ /**
232
+ * Creates an object representation of this proto.
233
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
234
+ * Optional fields that are not set will be set to undefined.
235
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
236
+ * For the list of reserved names please see:
237
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
238
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
239
+ * JSPB instance for transitional soy proto support:
240
+ * http://goto/soy-param-migration
241
+ * @return {!Object}
242
+ */
243
+ proto.clickhouse.grpc.NameAndType.prototype.toObject = function(opt_includeInstance) {
244
+ return proto.clickhouse.grpc.NameAndType.toObject(opt_includeInstance, this);
245
+ };
246
+
247
+
248
+ /**
249
+ * Static version of the {@see toObject} method.
250
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
251
+ * the JSPB instance for transitional soy proto support:
252
+ * http://goto/soy-param-migration
253
+ * @param {!proto.clickhouse.grpc.NameAndType} msg The msg instance to transform.
254
+ * @return {!Object}
255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
256
+ */
257
+ proto.clickhouse.grpc.NameAndType.toObject = function(includeInstance, msg) {
258
+ var f, obj = {
259
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
260
+ type: jspb.Message.getFieldWithDefault(msg, 2, "")
261
+ };
262
+
263
+ if (includeInstance) {
264
+ obj.$jspbMessageInstance = msg;
265
+ }
266
+ return obj;
267
+ };
268
+ }
269
+
270
+
271
+ /**
272
+ * Deserializes binary data (in protobuf wire format).
273
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
274
+ * @return {!proto.clickhouse.grpc.NameAndType}
275
+ */
276
+ proto.clickhouse.grpc.NameAndType.deserializeBinary = function(bytes) {
277
+ var reader = new jspb.BinaryReader(bytes);
278
+ var msg = new proto.clickhouse.grpc.NameAndType;
279
+ return proto.clickhouse.grpc.NameAndType.deserializeBinaryFromReader(msg, reader);
280
+ };
281
+
282
+
283
+ /**
284
+ * Deserializes binary data (in protobuf wire format) from the
285
+ * given reader into the given message object.
286
+ * @param {!proto.clickhouse.grpc.NameAndType} msg The message object to deserialize into.
287
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
288
+ * @return {!proto.clickhouse.grpc.NameAndType}
289
+ */
290
+ proto.clickhouse.grpc.NameAndType.deserializeBinaryFromReader = function(msg, reader) {
291
+ while (reader.nextField()) {
292
+ if (reader.isEndGroup()) {
293
+ break;
294
+ }
295
+ var field = reader.getFieldNumber();
296
+ switch (field) {
297
+ case 1:
298
+ var value = /** @type {string} */ (reader.readString());
299
+ msg.setName(value);
300
+ break;
301
+ case 2:
302
+ var value = /** @type {string} */ (reader.readString());
303
+ msg.setType(value);
304
+ break;
305
+ default:
306
+ reader.skipField();
307
+ break;
308
+ }
309
+ }
310
+ return msg;
311
+ };
312
+
313
+
314
+ /**
315
+ * Serializes the message to binary data (in protobuf wire format).
316
+ * @return {!Uint8Array}
317
+ */
318
+ proto.clickhouse.grpc.NameAndType.prototype.serializeBinary = function() {
319
+ var writer = new jspb.BinaryWriter();
320
+ proto.clickhouse.grpc.NameAndType.serializeBinaryToWriter(this, writer);
321
+ return writer.getResultBuffer();
322
+ };
323
+
324
+
325
+ /**
326
+ * Serializes the given message to binary data (in protobuf wire
327
+ * format), writing to the given BinaryWriter.
328
+ * @param {!proto.clickhouse.grpc.NameAndType} message
329
+ * @param {!jspb.BinaryWriter} writer
330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
331
+ */
332
+ proto.clickhouse.grpc.NameAndType.serializeBinaryToWriter = function(message, writer) {
333
+ var f = undefined;
334
+ f = message.getName();
335
+ if (f.length > 0) {
336
+ writer.writeString(
337
+ 1,
338
+ f
339
+ );
340
+ }
341
+ f = message.getType();
342
+ if (f.length > 0) {
343
+ writer.writeString(
344
+ 2,
345
+ f
346
+ );
347
+ }
348
+ };
349
+
350
+
351
+ /**
352
+ * optional string name = 1;
353
+ * @return {string}
354
+ */
355
+ proto.clickhouse.grpc.NameAndType.prototype.getName = function() {
356
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
357
+ };
358
+
359
+
360
+ /**
361
+ * @param {string} value
362
+ * @return {!proto.clickhouse.grpc.NameAndType} returns this
363
+ */
364
+ proto.clickhouse.grpc.NameAndType.prototype.setName = function(value) {
365
+ return jspb.Message.setProto3StringField(this, 1, value);
366
+ };
367
+
368
+
369
+ /**
370
+ * optional string type = 2;
371
+ * @return {string}
372
+ */
373
+ proto.clickhouse.grpc.NameAndType.prototype.getType = function() {
374
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
375
+ };
376
+
377
+
378
+ /**
379
+ * @param {string} value
380
+ * @return {!proto.clickhouse.grpc.NameAndType} returns this
381
+ */
382
+ proto.clickhouse.grpc.NameAndType.prototype.setType = function(value) {
383
+ return jspb.Message.setProto3StringField(this, 2, value);
384
+ };
385
+
386
+
387
+
388
+ /**
389
+ * List of repeated fields within this message type.
390
+ * @private {!Array<number>}
391
+ * @const
392
+ */
393
+ proto.clickhouse.grpc.ExternalTable.repeatedFields_ = [2];
394
+
395
+
396
+
397
+ if (jspb.Message.GENERATE_TO_OBJECT) {
398
+ /**
399
+ * Creates an object representation of this proto.
400
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
401
+ * Optional fields that are not set will be set to undefined.
402
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
403
+ * For the list of reserved names please see:
404
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
405
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
406
+ * JSPB instance for transitional soy proto support:
407
+ * http://goto/soy-param-migration
408
+ * @return {!Object}
409
+ */
410
+ proto.clickhouse.grpc.ExternalTable.prototype.toObject = function(opt_includeInstance) {
411
+ return proto.clickhouse.grpc.ExternalTable.toObject(opt_includeInstance, this);
412
+ };
413
+
414
+
415
+ /**
416
+ * Static version of the {@see toObject} method.
417
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
418
+ * the JSPB instance for transitional soy proto support:
419
+ * http://goto/soy-param-migration
420
+ * @param {!proto.clickhouse.grpc.ExternalTable} msg The msg instance to transform.
421
+ * @return {!Object}
422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
423
+ */
424
+ proto.clickhouse.grpc.ExternalTable.toObject = function(includeInstance, msg) {
425
+ var f, obj = {
426
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
427
+ columnsList: jspb.Message.toObjectList(msg.getColumnsList(),
428
+ proto.clickhouse.grpc.NameAndType.toObject, includeInstance),
429
+ data: msg.getData_asB64(),
430
+ format: jspb.Message.getFieldWithDefault(msg, 4, ""),
431
+ compressionType: jspb.Message.getFieldWithDefault(msg, 6, ""),
432
+ settingsMap: (f = msg.getSettingsMap()) ? f.toObject(includeInstance, undefined) : []
433
+ };
434
+
435
+ if (includeInstance) {
436
+ obj.$jspbMessageInstance = msg;
437
+ }
438
+ return obj;
439
+ };
440
+ }
441
+
442
+
443
+ /**
444
+ * Deserializes binary data (in protobuf wire format).
445
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
446
+ * @return {!proto.clickhouse.grpc.ExternalTable}
447
+ */
448
+ proto.clickhouse.grpc.ExternalTable.deserializeBinary = function(bytes) {
449
+ var reader = new jspb.BinaryReader(bytes);
450
+ var msg = new proto.clickhouse.grpc.ExternalTable;
451
+ return proto.clickhouse.grpc.ExternalTable.deserializeBinaryFromReader(msg, reader);
452
+ };
453
+
454
+
455
+ /**
456
+ * Deserializes binary data (in protobuf wire format) from the
457
+ * given reader into the given message object.
458
+ * @param {!proto.clickhouse.grpc.ExternalTable} msg The message object to deserialize into.
459
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
460
+ * @return {!proto.clickhouse.grpc.ExternalTable}
461
+ */
462
+ proto.clickhouse.grpc.ExternalTable.deserializeBinaryFromReader = function(msg, reader) {
463
+ while (reader.nextField()) {
464
+ if (reader.isEndGroup()) {
465
+ break;
466
+ }
467
+ var field = reader.getFieldNumber();
468
+ switch (field) {
469
+ case 1:
470
+ var value = /** @type {string} */ (reader.readString());
471
+ msg.setName(value);
472
+ break;
473
+ case 2:
474
+ var value = new proto.clickhouse.grpc.NameAndType;
475
+ reader.readMessage(value,proto.clickhouse.grpc.NameAndType.deserializeBinaryFromReader);
476
+ msg.addColumns(value);
477
+ break;
478
+ case 3:
479
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
480
+ msg.setData(value);
481
+ break;
482
+ case 4:
483
+ var value = /** @type {string} */ (reader.readString());
484
+ msg.setFormat(value);
485
+ break;
486
+ case 6:
487
+ var value = /** @type {string} */ (reader.readString());
488
+ msg.setCompressionType(value);
489
+ break;
490
+ case 5:
491
+ var value = msg.getSettingsMap();
492
+ reader.readMessage(value, function(message, reader) {
493
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
494
+ });
495
+ break;
496
+ default:
497
+ reader.skipField();
498
+ break;
499
+ }
500
+ }
501
+ return msg;
502
+ };
503
+
504
+
505
+ /**
506
+ * Serializes the message to binary data (in protobuf wire format).
507
+ * @return {!Uint8Array}
508
+ */
509
+ proto.clickhouse.grpc.ExternalTable.prototype.serializeBinary = function() {
510
+ var writer = new jspb.BinaryWriter();
511
+ proto.clickhouse.grpc.ExternalTable.serializeBinaryToWriter(this, writer);
512
+ return writer.getResultBuffer();
513
+ };
514
+
515
+
516
+ /**
517
+ * Serializes the given message to binary data (in protobuf wire
518
+ * format), writing to the given BinaryWriter.
519
+ * @param {!proto.clickhouse.grpc.ExternalTable} message
520
+ * @param {!jspb.BinaryWriter} writer
521
+ * @suppress {unusedLocalVariables} f is only used for nested messages
522
+ */
523
+ proto.clickhouse.grpc.ExternalTable.serializeBinaryToWriter = function(message, writer) {
524
+ var f = undefined;
525
+ f = message.getName();
526
+ if (f.length > 0) {
527
+ writer.writeString(
528
+ 1,
529
+ f
530
+ );
531
+ }
532
+ f = message.getColumnsList();
533
+ if (f.length > 0) {
534
+ writer.writeRepeatedMessage(
535
+ 2,
536
+ f,
537
+ proto.clickhouse.grpc.NameAndType.serializeBinaryToWriter
538
+ );
539
+ }
540
+ f = message.getData_asU8();
541
+ if (f.length > 0) {
542
+ writer.writeBytes(
543
+ 3,
544
+ f
545
+ );
546
+ }
547
+ f = message.getFormat();
548
+ if (f.length > 0) {
549
+ writer.writeString(
550
+ 4,
551
+ f
552
+ );
553
+ }
554
+ f = message.getCompressionType();
555
+ if (f.length > 0) {
556
+ writer.writeString(
557
+ 6,
558
+ f
559
+ );
560
+ }
561
+ f = message.getSettingsMap(true);
562
+ if (f && f.getLength() > 0) {
563
+ f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
564
+ }
565
+ };
566
+
567
+
568
+ /**
569
+ * optional string name = 1;
570
+ * @return {string}
571
+ */
572
+ proto.clickhouse.grpc.ExternalTable.prototype.getName = function() {
573
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
574
+ };
575
+
576
+
577
+ /**
578
+ * @param {string} value
579
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
580
+ */
581
+ proto.clickhouse.grpc.ExternalTable.prototype.setName = function(value) {
582
+ return jspb.Message.setProto3StringField(this, 1, value);
583
+ };
584
+
585
+
586
+ /**
587
+ * repeated NameAndType columns = 2;
588
+ * @return {!Array<!proto.clickhouse.grpc.NameAndType>}
589
+ */
590
+ proto.clickhouse.grpc.ExternalTable.prototype.getColumnsList = function() {
591
+ return /** @type{!Array<!proto.clickhouse.grpc.NameAndType>} */ (
592
+ jspb.Message.getRepeatedWrapperField(this, proto.clickhouse.grpc.NameAndType, 2));
593
+ };
594
+
595
+
596
+ /**
597
+ * @param {!Array<!proto.clickhouse.grpc.NameAndType>} value
598
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
599
+ */
600
+ proto.clickhouse.grpc.ExternalTable.prototype.setColumnsList = function(value) {
601
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
602
+ };
603
+
604
+
605
+ /**
606
+ * @param {!proto.clickhouse.grpc.NameAndType=} opt_value
607
+ * @param {number=} opt_index
608
+ * @return {!proto.clickhouse.grpc.NameAndType}
609
+ */
610
+ proto.clickhouse.grpc.ExternalTable.prototype.addColumns = function(opt_value, opt_index) {
611
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clickhouse.grpc.NameAndType, opt_index);
612
+ };
613
+
614
+
615
+ /**
616
+ * Clears the list making it empty but non-null.
617
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
618
+ */
619
+ proto.clickhouse.grpc.ExternalTable.prototype.clearColumnsList = function() {
620
+ return this.setColumnsList([]);
621
+ };
622
+
623
+
624
+ /**
625
+ * optional bytes data = 3;
626
+ * @return {!(string|Uint8Array)}
627
+ */
628
+ proto.clickhouse.grpc.ExternalTable.prototype.getData = function() {
629
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
630
+ };
631
+
632
+
633
+ /**
634
+ * optional bytes data = 3;
635
+ * This is a type-conversion wrapper around `getData()`
636
+ * @return {string}
637
+ */
638
+ proto.clickhouse.grpc.ExternalTable.prototype.getData_asB64 = function() {
639
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
640
+ this.getData()));
641
+ };
642
+
643
+
644
+ /**
645
+ * optional bytes data = 3;
646
+ * Note that Uint8Array is not supported on all browsers.
647
+ * @see http://caniuse.com/Uint8Array
648
+ * This is a type-conversion wrapper around `getData()`
649
+ * @return {!Uint8Array}
650
+ */
651
+ proto.clickhouse.grpc.ExternalTable.prototype.getData_asU8 = function() {
652
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
653
+ this.getData()));
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {!(string|Uint8Array)} value
659
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
660
+ */
661
+ proto.clickhouse.grpc.ExternalTable.prototype.setData = function(value) {
662
+ return jspb.Message.setProto3BytesField(this, 3, value);
663
+ };
664
+
665
+
666
+ /**
667
+ * optional string format = 4;
668
+ * @return {string}
669
+ */
670
+ proto.clickhouse.grpc.ExternalTable.prototype.getFormat = function() {
671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
672
+ };
673
+
674
+
675
+ /**
676
+ * @param {string} value
677
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
678
+ */
679
+ proto.clickhouse.grpc.ExternalTable.prototype.setFormat = function(value) {
680
+ return jspb.Message.setProto3StringField(this, 4, value);
681
+ };
682
+
683
+
684
+ /**
685
+ * optional string compression_type = 6;
686
+ * @return {string}
687
+ */
688
+ proto.clickhouse.grpc.ExternalTable.prototype.getCompressionType = function() {
689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
690
+ };
691
+
692
+
693
+ /**
694
+ * @param {string} value
695
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
696
+ */
697
+ proto.clickhouse.grpc.ExternalTable.prototype.setCompressionType = function(value) {
698
+ return jspb.Message.setProto3StringField(this, 6, value);
699
+ };
700
+
701
+
702
+ /**
703
+ * map<string, string> settings = 5;
704
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
705
+ * empty, instead returning `undefined`
706
+ * @return {!jspb.Map<string,string>}
707
+ */
708
+ proto.clickhouse.grpc.ExternalTable.prototype.getSettingsMap = function(opt_noLazyCreate) {
709
+ return /** @type {!jspb.Map<string,string>} */ (
710
+ jspb.Message.getMapField(this, 5, opt_noLazyCreate,
711
+ null));
712
+ };
713
+
714
+
715
+ /**
716
+ * Clears values from the map. The map will be non-null.
717
+ * @return {!proto.clickhouse.grpc.ExternalTable} returns this
718
+ */
719
+ proto.clickhouse.grpc.ExternalTable.prototype.clearSettingsMap = function() {
720
+ this.getSettingsMap().clear();
721
+ return this;
722
+ };
723
+
724
+
725
+
726
+
727
+
728
+ if (jspb.Message.GENERATE_TO_OBJECT) {
729
+ /**
730
+ * Creates an object representation of this proto.
731
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
732
+ * Optional fields that are not set will be set to undefined.
733
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
734
+ * For the list of reserved names please see:
735
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
736
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
737
+ * JSPB instance for transitional soy proto support:
738
+ * http://goto/soy-param-migration
739
+ * @return {!Object}
740
+ */
741
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.toObject = function(opt_includeInstance) {
742
+ return proto.clickhouse.grpc.ObsoleteTransportCompression.toObject(opt_includeInstance, this);
743
+ };
744
+
745
+
746
+ /**
747
+ * Static version of the {@see toObject} method.
748
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
749
+ * the JSPB instance for transitional soy proto support:
750
+ * http://goto/soy-param-migration
751
+ * @param {!proto.clickhouse.grpc.ObsoleteTransportCompression} msg The msg instance to transform.
752
+ * @return {!Object}
753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
754
+ */
755
+ proto.clickhouse.grpc.ObsoleteTransportCompression.toObject = function(includeInstance, msg) {
756
+ var f, obj = {
757
+ algorithm: jspb.Message.getFieldWithDefault(msg, 1, 0),
758
+ level: jspb.Message.getFieldWithDefault(msg, 2, 0)
759
+ };
760
+
761
+ if (includeInstance) {
762
+ obj.$jspbMessageInstance = msg;
763
+ }
764
+ return obj;
765
+ };
766
+ }
767
+
768
+
769
+ /**
770
+ * Deserializes binary data (in protobuf wire format).
771
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
772
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression}
773
+ */
774
+ proto.clickhouse.grpc.ObsoleteTransportCompression.deserializeBinary = function(bytes) {
775
+ var reader = new jspb.BinaryReader(bytes);
776
+ var msg = new proto.clickhouse.grpc.ObsoleteTransportCompression;
777
+ return proto.clickhouse.grpc.ObsoleteTransportCompression.deserializeBinaryFromReader(msg, reader);
778
+ };
779
+
780
+
781
+ /**
782
+ * Deserializes binary data (in protobuf wire format) from the
783
+ * given reader into the given message object.
784
+ * @param {!proto.clickhouse.grpc.ObsoleteTransportCompression} msg The message object to deserialize into.
785
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
786
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression}
787
+ */
788
+ proto.clickhouse.grpc.ObsoleteTransportCompression.deserializeBinaryFromReader = function(msg, reader) {
789
+ while (reader.nextField()) {
790
+ if (reader.isEndGroup()) {
791
+ break;
792
+ }
793
+ var field = reader.getFieldNumber();
794
+ switch (field) {
795
+ case 1:
796
+ var value = /** @type {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm} */ (reader.readEnum());
797
+ msg.setAlgorithm(value);
798
+ break;
799
+ case 2:
800
+ var value = /** @type {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel} */ (reader.readEnum());
801
+ msg.setLevel(value);
802
+ break;
803
+ default:
804
+ reader.skipField();
805
+ break;
806
+ }
807
+ }
808
+ return msg;
809
+ };
810
+
811
+
812
+ /**
813
+ * Serializes the message to binary data (in protobuf wire format).
814
+ * @return {!Uint8Array}
815
+ */
816
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.serializeBinary = function() {
817
+ var writer = new jspb.BinaryWriter();
818
+ proto.clickhouse.grpc.ObsoleteTransportCompression.serializeBinaryToWriter(this, writer);
819
+ return writer.getResultBuffer();
820
+ };
821
+
822
+
823
+ /**
824
+ * Serializes the given message to binary data (in protobuf wire
825
+ * format), writing to the given BinaryWriter.
826
+ * @param {!proto.clickhouse.grpc.ObsoleteTransportCompression} message
827
+ * @param {!jspb.BinaryWriter} writer
828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
829
+ */
830
+ proto.clickhouse.grpc.ObsoleteTransportCompression.serializeBinaryToWriter = function(message, writer) {
831
+ var f = undefined;
832
+ f = message.getAlgorithm();
833
+ if (f !== 0.0) {
834
+ writer.writeEnum(
835
+ 1,
836
+ f
837
+ );
838
+ }
839
+ f = message.getLevel();
840
+ if (f !== 0.0) {
841
+ writer.writeEnum(
842
+ 2,
843
+ f
844
+ );
845
+ }
846
+ };
847
+
848
+
849
+ /**
850
+ * @enum {number}
851
+ */
852
+ proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm = {
853
+ NO_COMPRESSION: 0,
854
+ DEFLATE: 1,
855
+ GZIP: 2,
856
+ STREAM_GZIP: 3
857
+ };
858
+
859
+ /**
860
+ * @enum {number}
861
+ */
862
+ proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel = {
863
+ COMPRESSION_NONE: 0,
864
+ COMPRESSION_LOW: 1,
865
+ COMPRESSION_MEDIUM: 2,
866
+ COMPRESSION_HIGH: 3
867
+ };
868
+
869
+ /**
870
+ * optional CompressionAlgorithm algorithm = 1;
871
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm}
872
+ */
873
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.getAlgorithm = function() {
874
+ return /** @type {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
875
+ };
876
+
877
+
878
+ /**
879
+ * @param {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm} value
880
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression} returns this
881
+ */
882
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.setAlgorithm = function(value) {
883
+ return jspb.Message.setProto3EnumField(this, 1, value);
884
+ };
885
+
886
+
887
+ /**
888
+ * optional CompressionLevel level = 2;
889
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel}
890
+ */
891
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.getLevel = function() {
892
+ return /** @type {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
893
+ };
894
+
895
+
896
+ /**
897
+ * @param {!proto.clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel} value
898
+ * @return {!proto.clickhouse.grpc.ObsoleteTransportCompression} returns this
899
+ */
900
+ proto.clickhouse.grpc.ObsoleteTransportCompression.prototype.setLevel = function(value) {
901
+ return jspb.Message.setProto3EnumField(this, 2, value);
902
+ };
903
+
904
+
905
+
906
+ /**
907
+ * List of repeated fields within this message type.
908
+ * @private {!Array<number>}
909
+ * @const
910
+ */
911
+ proto.clickhouse.grpc.QueryInfo.repeatedFields_ = [8];
912
+
913
+
914
+
915
+ if (jspb.Message.GENERATE_TO_OBJECT) {
916
+ /**
917
+ * Creates an object representation of this proto.
918
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
919
+ * Optional fields that are not set will be set to undefined.
920
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
921
+ * For the list of reserved names please see:
922
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
923
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
924
+ * JSPB instance for transitional soy proto support:
925
+ * http://goto/soy-param-migration
926
+ * @return {!Object}
927
+ */
928
+ proto.clickhouse.grpc.QueryInfo.prototype.toObject = function(opt_includeInstance) {
929
+ return proto.clickhouse.grpc.QueryInfo.toObject(opt_includeInstance, this);
930
+ };
931
+
932
+
933
+ /**
934
+ * Static version of the {@see toObject} method.
935
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
936
+ * the JSPB instance for transitional soy proto support:
937
+ * http://goto/soy-param-migration
938
+ * @param {!proto.clickhouse.grpc.QueryInfo} msg The msg instance to transform.
939
+ * @return {!Object}
940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
941
+ */
942
+ proto.clickhouse.grpc.QueryInfo.toObject = function(includeInstance, msg) {
943
+ var f, obj = {
944
+ query: jspb.Message.getFieldWithDefault(msg, 1, ""),
945
+ queryId: jspb.Message.getFieldWithDefault(msg, 2, ""),
946
+ settingsMap: (f = msg.getSettingsMap()) ? f.toObject(includeInstance, undefined) : [],
947
+ database: jspb.Message.getFieldWithDefault(msg, 4, ""),
948
+ inputData: msg.getInputData_asB64(),
949
+ inputDataDelimiter: msg.getInputDataDelimiter_asB64(),
950
+ outputFormat: jspb.Message.getFieldWithDefault(msg, 7, ""),
951
+ sendOutputColumns: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
952
+ externalTablesList: jspb.Message.toObjectList(msg.getExternalTablesList(),
953
+ proto.clickhouse.grpc.ExternalTable.toObject, includeInstance),
954
+ userName: jspb.Message.getFieldWithDefault(msg, 9, ""),
955
+ password: jspb.Message.getFieldWithDefault(msg, 10, ""),
956
+ quota: jspb.Message.getFieldWithDefault(msg, 11, ""),
957
+ jwt: jspb.Message.getFieldWithDefault(msg, 25, ""),
958
+ sessionId: jspb.Message.getFieldWithDefault(msg, 12, ""),
959
+ sessionCheck: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
960
+ sessionTimeout: jspb.Message.getFieldWithDefault(msg, 14, 0),
961
+ cancel: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
962
+ nextQueryInfo: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
963
+ inputCompressionType: jspb.Message.getFieldWithDefault(msg, 20, ""),
964
+ outputCompressionType: jspb.Message.getFieldWithDefault(msg, 21, ""),
965
+ outputCompressionLevel: jspb.Message.getFieldWithDefault(msg, 19, 0),
966
+ transportCompressionType: jspb.Message.getFieldWithDefault(msg, 22, ""),
967
+ transportCompressionLevel: jspb.Message.getFieldWithDefault(msg, 23, 0),
968
+ obsoleteResultCompression: (f = msg.getObsoleteResultCompression()) && proto.clickhouse.grpc.ObsoleteTransportCompression.toObject(includeInstance, f),
969
+ obsoleteCompressionType: jspb.Message.getFieldWithDefault(msg, 18, "")
970
+ };
971
+
972
+ if (includeInstance) {
973
+ obj.$jspbMessageInstance = msg;
974
+ }
975
+ return obj;
976
+ };
977
+ }
978
+
979
+
980
+ /**
981
+ * Deserializes binary data (in protobuf wire format).
982
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
983
+ * @return {!proto.clickhouse.grpc.QueryInfo}
984
+ */
985
+ proto.clickhouse.grpc.QueryInfo.deserializeBinary = function(bytes) {
986
+ var reader = new jspb.BinaryReader(bytes);
987
+ var msg = new proto.clickhouse.grpc.QueryInfo;
988
+ return proto.clickhouse.grpc.QueryInfo.deserializeBinaryFromReader(msg, reader);
989
+ };
990
+
991
+
992
+ /**
993
+ * Deserializes binary data (in protobuf wire format) from the
994
+ * given reader into the given message object.
995
+ * @param {!proto.clickhouse.grpc.QueryInfo} msg The message object to deserialize into.
996
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
997
+ * @return {!proto.clickhouse.grpc.QueryInfo}
998
+ */
999
+ proto.clickhouse.grpc.QueryInfo.deserializeBinaryFromReader = function(msg, reader) {
1000
+ while (reader.nextField()) {
1001
+ if (reader.isEndGroup()) {
1002
+ break;
1003
+ }
1004
+ var field = reader.getFieldNumber();
1005
+ switch (field) {
1006
+ case 1:
1007
+ var value = /** @type {string} */ (reader.readString());
1008
+ msg.setQuery(value);
1009
+ break;
1010
+ case 2:
1011
+ var value = /** @type {string} */ (reader.readString());
1012
+ msg.setQueryId(value);
1013
+ break;
1014
+ case 3:
1015
+ var value = msg.getSettingsMap();
1016
+ reader.readMessage(value, function(message, reader) {
1017
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1018
+ });
1019
+ break;
1020
+ case 4:
1021
+ var value = /** @type {string} */ (reader.readString());
1022
+ msg.setDatabase(value);
1023
+ break;
1024
+ case 5:
1025
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1026
+ msg.setInputData(value);
1027
+ break;
1028
+ case 6:
1029
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1030
+ msg.setInputDataDelimiter(value);
1031
+ break;
1032
+ case 7:
1033
+ var value = /** @type {string} */ (reader.readString());
1034
+ msg.setOutputFormat(value);
1035
+ break;
1036
+ case 24:
1037
+ var value = /** @type {boolean} */ (reader.readBool());
1038
+ msg.setSendOutputColumns(value);
1039
+ break;
1040
+ case 8:
1041
+ var value = new proto.clickhouse.grpc.ExternalTable;
1042
+ reader.readMessage(value,proto.clickhouse.grpc.ExternalTable.deserializeBinaryFromReader);
1043
+ msg.addExternalTables(value);
1044
+ break;
1045
+ case 9:
1046
+ var value = /** @type {string} */ (reader.readString());
1047
+ msg.setUserName(value);
1048
+ break;
1049
+ case 10:
1050
+ var value = /** @type {string} */ (reader.readString());
1051
+ msg.setPassword(value);
1052
+ break;
1053
+ case 11:
1054
+ var value = /** @type {string} */ (reader.readString());
1055
+ msg.setQuota(value);
1056
+ break;
1057
+ case 25:
1058
+ var value = /** @type {string} */ (reader.readString());
1059
+ msg.setJwt(value);
1060
+ break;
1061
+ case 12:
1062
+ var value = /** @type {string} */ (reader.readString());
1063
+ msg.setSessionId(value);
1064
+ break;
1065
+ case 13:
1066
+ var value = /** @type {boolean} */ (reader.readBool());
1067
+ msg.setSessionCheck(value);
1068
+ break;
1069
+ case 14:
1070
+ var value = /** @type {number} */ (reader.readUint32());
1071
+ msg.setSessionTimeout(value);
1072
+ break;
1073
+ case 15:
1074
+ var value = /** @type {boolean} */ (reader.readBool());
1075
+ msg.setCancel(value);
1076
+ break;
1077
+ case 16:
1078
+ var value = /** @type {boolean} */ (reader.readBool());
1079
+ msg.setNextQueryInfo(value);
1080
+ break;
1081
+ case 20:
1082
+ var value = /** @type {string} */ (reader.readString());
1083
+ msg.setInputCompressionType(value);
1084
+ break;
1085
+ case 21:
1086
+ var value = /** @type {string} */ (reader.readString());
1087
+ msg.setOutputCompressionType(value);
1088
+ break;
1089
+ case 19:
1090
+ var value = /** @type {number} */ (reader.readInt32());
1091
+ msg.setOutputCompressionLevel(value);
1092
+ break;
1093
+ case 22:
1094
+ var value = /** @type {string} */ (reader.readString());
1095
+ msg.setTransportCompressionType(value);
1096
+ break;
1097
+ case 23:
1098
+ var value = /** @type {number} */ (reader.readInt32());
1099
+ msg.setTransportCompressionLevel(value);
1100
+ break;
1101
+ case 17:
1102
+ var value = new proto.clickhouse.grpc.ObsoleteTransportCompression;
1103
+ reader.readMessage(value,proto.clickhouse.grpc.ObsoleteTransportCompression.deserializeBinaryFromReader);
1104
+ msg.setObsoleteResultCompression(value);
1105
+ break;
1106
+ case 18:
1107
+ var value = /** @type {string} */ (reader.readString());
1108
+ msg.setObsoleteCompressionType(value);
1109
+ break;
1110
+ default:
1111
+ reader.skipField();
1112
+ break;
1113
+ }
1114
+ }
1115
+ return msg;
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * Serializes the message to binary data (in protobuf wire format).
1121
+ * @return {!Uint8Array}
1122
+ */
1123
+ proto.clickhouse.grpc.QueryInfo.prototype.serializeBinary = function() {
1124
+ var writer = new jspb.BinaryWriter();
1125
+ proto.clickhouse.grpc.QueryInfo.serializeBinaryToWriter(this, writer);
1126
+ return writer.getResultBuffer();
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * Serializes the given message to binary data (in protobuf wire
1132
+ * format), writing to the given BinaryWriter.
1133
+ * @param {!proto.clickhouse.grpc.QueryInfo} message
1134
+ * @param {!jspb.BinaryWriter} writer
1135
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1136
+ */
1137
+ proto.clickhouse.grpc.QueryInfo.serializeBinaryToWriter = function(message, writer) {
1138
+ var f = undefined;
1139
+ f = message.getQuery();
1140
+ if (f.length > 0) {
1141
+ writer.writeString(
1142
+ 1,
1143
+ f
1144
+ );
1145
+ }
1146
+ f = message.getQueryId();
1147
+ if (f.length > 0) {
1148
+ writer.writeString(
1149
+ 2,
1150
+ f
1151
+ );
1152
+ }
1153
+ f = message.getSettingsMap(true);
1154
+ if (f && f.getLength() > 0) {
1155
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1156
+ }
1157
+ f = message.getDatabase();
1158
+ if (f.length > 0) {
1159
+ writer.writeString(
1160
+ 4,
1161
+ f
1162
+ );
1163
+ }
1164
+ f = message.getInputData_asU8();
1165
+ if (f.length > 0) {
1166
+ writer.writeBytes(
1167
+ 5,
1168
+ f
1169
+ );
1170
+ }
1171
+ f = message.getInputDataDelimiter_asU8();
1172
+ if (f.length > 0) {
1173
+ writer.writeBytes(
1174
+ 6,
1175
+ f
1176
+ );
1177
+ }
1178
+ f = message.getOutputFormat();
1179
+ if (f.length > 0) {
1180
+ writer.writeString(
1181
+ 7,
1182
+ f
1183
+ );
1184
+ }
1185
+ f = message.getSendOutputColumns();
1186
+ if (f) {
1187
+ writer.writeBool(
1188
+ 24,
1189
+ f
1190
+ );
1191
+ }
1192
+ f = message.getExternalTablesList();
1193
+ if (f.length > 0) {
1194
+ writer.writeRepeatedMessage(
1195
+ 8,
1196
+ f,
1197
+ proto.clickhouse.grpc.ExternalTable.serializeBinaryToWriter
1198
+ );
1199
+ }
1200
+ f = message.getUserName();
1201
+ if (f.length > 0) {
1202
+ writer.writeString(
1203
+ 9,
1204
+ f
1205
+ );
1206
+ }
1207
+ f = message.getPassword();
1208
+ if (f.length > 0) {
1209
+ writer.writeString(
1210
+ 10,
1211
+ f
1212
+ );
1213
+ }
1214
+ f = message.getQuota();
1215
+ if (f.length > 0) {
1216
+ writer.writeString(
1217
+ 11,
1218
+ f
1219
+ );
1220
+ }
1221
+ f = message.getJwt();
1222
+ if (f.length > 0) {
1223
+ writer.writeString(
1224
+ 25,
1225
+ f
1226
+ );
1227
+ }
1228
+ f = message.getSessionId();
1229
+ if (f.length > 0) {
1230
+ writer.writeString(
1231
+ 12,
1232
+ f
1233
+ );
1234
+ }
1235
+ f = message.getSessionCheck();
1236
+ if (f) {
1237
+ writer.writeBool(
1238
+ 13,
1239
+ f
1240
+ );
1241
+ }
1242
+ f = message.getSessionTimeout();
1243
+ if (f !== 0) {
1244
+ writer.writeUint32(
1245
+ 14,
1246
+ f
1247
+ );
1248
+ }
1249
+ f = message.getCancel();
1250
+ if (f) {
1251
+ writer.writeBool(
1252
+ 15,
1253
+ f
1254
+ );
1255
+ }
1256
+ f = message.getNextQueryInfo();
1257
+ if (f) {
1258
+ writer.writeBool(
1259
+ 16,
1260
+ f
1261
+ );
1262
+ }
1263
+ f = message.getInputCompressionType();
1264
+ if (f.length > 0) {
1265
+ writer.writeString(
1266
+ 20,
1267
+ f
1268
+ );
1269
+ }
1270
+ f = message.getOutputCompressionType();
1271
+ if (f.length > 0) {
1272
+ writer.writeString(
1273
+ 21,
1274
+ f
1275
+ );
1276
+ }
1277
+ f = message.getOutputCompressionLevel();
1278
+ if (f !== 0) {
1279
+ writer.writeInt32(
1280
+ 19,
1281
+ f
1282
+ );
1283
+ }
1284
+ f = message.getTransportCompressionType();
1285
+ if (f.length > 0) {
1286
+ writer.writeString(
1287
+ 22,
1288
+ f
1289
+ );
1290
+ }
1291
+ f = message.getTransportCompressionLevel();
1292
+ if (f !== 0) {
1293
+ writer.writeInt32(
1294
+ 23,
1295
+ f
1296
+ );
1297
+ }
1298
+ f = message.getObsoleteResultCompression();
1299
+ if (f != null) {
1300
+ writer.writeMessage(
1301
+ 17,
1302
+ f,
1303
+ proto.clickhouse.grpc.ObsoleteTransportCompression.serializeBinaryToWriter
1304
+ );
1305
+ }
1306
+ f = message.getObsoleteCompressionType();
1307
+ if (f.length > 0) {
1308
+ writer.writeString(
1309
+ 18,
1310
+ f
1311
+ );
1312
+ }
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * optional string query = 1;
1318
+ * @return {string}
1319
+ */
1320
+ proto.clickhouse.grpc.QueryInfo.prototype.getQuery = function() {
1321
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * @param {string} value
1327
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1328
+ */
1329
+ proto.clickhouse.grpc.QueryInfo.prototype.setQuery = function(value) {
1330
+ return jspb.Message.setProto3StringField(this, 1, value);
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional string query_id = 2;
1336
+ * @return {string}
1337
+ */
1338
+ proto.clickhouse.grpc.QueryInfo.prototype.getQueryId = function() {
1339
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1340
+ };
1341
+
1342
+
1343
+ /**
1344
+ * @param {string} value
1345
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1346
+ */
1347
+ proto.clickhouse.grpc.QueryInfo.prototype.setQueryId = function(value) {
1348
+ return jspb.Message.setProto3StringField(this, 2, value);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * map<string, string> settings = 3;
1354
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1355
+ * empty, instead returning `undefined`
1356
+ * @return {!jspb.Map<string,string>}
1357
+ */
1358
+ proto.clickhouse.grpc.QueryInfo.prototype.getSettingsMap = function(opt_noLazyCreate) {
1359
+ return /** @type {!jspb.Map<string,string>} */ (
1360
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
1361
+ null));
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * Clears values from the map. The map will be non-null.
1367
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1368
+ */
1369
+ proto.clickhouse.grpc.QueryInfo.prototype.clearSettingsMap = function() {
1370
+ this.getSettingsMap().clear();
1371
+ return this;
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * optional string database = 4;
1377
+ * @return {string}
1378
+ */
1379
+ proto.clickhouse.grpc.QueryInfo.prototype.getDatabase = function() {
1380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * @param {string} value
1386
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1387
+ */
1388
+ proto.clickhouse.grpc.QueryInfo.prototype.setDatabase = function(value) {
1389
+ return jspb.Message.setProto3StringField(this, 4, value);
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * optional bytes input_data = 5;
1395
+ * @return {!(string|Uint8Array)}
1396
+ */
1397
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputData = function() {
1398
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * optional bytes input_data = 5;
1404
+ * This is a type-conversion wrapper around `getInputData()`
1405
+ * @return {string}
1406
+ */
1407
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputData_asB64 = function() {
1408
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1409
+ this.getInputData()));
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * optional bytes input_data = 5;
1415
+ * Note that Uint8Array is not supported on all browsers.
1416
+ * @see http://caniuse.com/Uint8Array
1417
+ * This is a type-conversion wrapper around `getInputData()`
1418
+ * @return {!Uint8Array}
1419
+ */
1420
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputData_asU8 = function() {
1421
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1422
+ this.getInputData()));
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * @param {!(string|Uint8Array)} value
1428
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1429
+ */
1430
+ proto.clickhouse.grpc.QueryInfo.prototype.setInputData = function(value) {
1431
+ return jspb.Message.setProto3BytesField(this, 5, value);
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * optional bytes input_data_delimiter = 6;
1437
+ * @return {!(string|Uint8Array)}
1438
+ */
1439
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputDataDelimiter = function() {
1440
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * optional bytes input_data_delimiter = 6;
1446
+ * This is a type-conversion wrapper around `getInputDataDelimiter()`
1447
+ * @return {string}
1448
+ */
1449
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputDataDelimiter_asB64 = function() {
1450
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1451
+ this.getInputDataDelimiter()));
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * optional bytes input_data_delimiter = 6;
1457
+ * Note that Uint8Array is not supported on all browsers.
1458
+ * @see http://caniuse.com/Uint8Array
1459
+ * This is a type-conversion wrapper around `getInputDataDelimiter()`
1460
+ * @return {!Uint8Array}
1461
+ */
1462
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputDataDelimiter_asU8 = function() {
1463
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1464
+ this.getInputDataDelimiter()));
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * @param {!(string|Uint8Array)} value
1470
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1471
+ */
1472
+ proto.clickhouse.grpc.QueryInfo.prototype.setInputDataDelimiter = function(value) {
1473
+ return jspb.Message.setProto3BytesField(this, 6, value);
1474
+ };
1475
+
1476
+
1477
+ /**
1478
+ * optional string output_format = 7;
1479
+ * @return {string}
1480
+ */
1481
+ proto.clickhouse.grpc.QueryInfo.prototype.getOutputFormat = function() {
1482
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * @param {string} value
1488
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1489
+ */
1490
+ proto.clickhouse.grpc.QueryInfo.prototype.setOutputFormat = function(value) {
1491
+ return jspb.Message.setProto3StringField(this, 7, value);
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * optional bool send_output_columns = 24;
1497
+ * @return {boolean}
1498
+ */
1499
+ proto.clickhouse.grpc.QueryInfo.prototype.getSendOutputColumns = function() {
1500
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * @param {boolean} value
1506
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1507
+ */
1508
+ proto.clickhouse.grpc.QueryInfo.prototype.setSendOutputColumns = function(value) {
1509
+ return jspb.Message.setProto3BooleanField(this, 24, value);
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * repeated ExternalTable external_tables = 8;
1515
+ * @return {!Array<!proto.clickhouse.grpc.ExternalTable>}
1516
+ */
1517
+ proto.clickhouse.grpc.QueryInfo.prototype.getExternalTablesList = function() {
1518
+ return /** @type{!Array<!proto.clickhouse.grpc.ExternalTable>} */ (
1519
+ jspb.Message.getRepeatedWrapperField(this, proto.clickhouse.grpc.ExternalTable, 8));
1520
+ };
1521
+
1522
+
1523
+ /**
1524
+ * @param {!Array<!proto.clickhouse.grpc.ExternalTable>} value
1525
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1526
+ */
1527
+ proto.clickhouse.grpc.QueryInfo.prototype.setExternalTablesList = function(value) {
1528
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * @param {!proto.clickhouse.grpc.ExternalTable=} opt_value
1534
+ * @param {number=} opt_index
1535
+ * @return {!proto.clickhouse.grpc.ExternalTable}
1536
+ */
1537
+ proto.clickhouse.grpc.QueryInfo.prototype.addExternalTables = function(opt_value, opt_index) {
1538
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clickhouse.grpc.ExternalTable, opt_index);
1539
+ };
1540
+
1541
+
1542
+ /**
1543
+ * Clears the list making it empty but non-null.
1544
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1545
+ */
1546
+ proto.clickhouse.grpc.QueryInfo.prototype.clearExternalTablesList = function() {
1547
+ return this.setExternalTablesList([]);
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * optional string user_name = 9;
1553
+ * @return {string}
1554
+ */
1555
+ proto.clickhouse.grpc.QueryInfo.prototype.getUserName = function() {
1556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * @param {string} value
1562
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1563
+ */
1564
+ proto.clickhouse.grpc.QueryInfo.prototype.setUserName = function(value) {
1565
+ return jspb.Message.setProto3StringField(this, 9, value);
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * optional string password = 10;
1571
+ * @return {string}
1572
+ */
1573
+ proto.clickhouse.grpc.QueryInfo.prototype.getPassword = function() {
1574
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * @param {string} value
1580
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1581
+ */
1582
+ proto.clickhouse.grpc.QueryInfo.prototype.setPassword = function(value) {
1583
+ return jspb.Message.setProto3StringField(this, 10, value);
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * optional string quota = 11;
1589
+ * @return {string}
1590
+ */
1591
+ proto.clickhouse.grpc.QueryInfo.prototype.getQuota = function() {
1592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * @param {string} value
1598
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1599
+ */
1600
+ proto.clickhouse.grpc.QueryInfo.prototype.setQuota = function(value) {
1601
+ return jspb.Message.setProto3StringField(this, 11, value);
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * optional string jwt = 25;
1607
+ * @return {string}
1608
+ */
1609
+ proto.clickhouse.grpc.QueryInfo.prototype.getJwt = function() {
1610
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * @param {string} value
1616
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1617
+ */
1618
+ proto.clickhouse.grpc.QueryInfo.prototype.setJwt = function(value) {
1619
+ return jspb.Message.setProto3StringField(this, 25, value);
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * optional string session_id = 12;
1625
+ * @return {string}
1626
+ */
1627
+ proto.clickhouse.grpc.QueryInfo.prototype.getSessionId = function() {
1628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * @param {string} value
1634
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1635
+ */
1636
+ proto.clickhouse.grpc.QueryInfo.prototype.setSessionId = function(value) {
1637
+ return jspb.Message.setProto3StringField(this, 12, value);
1638
+ };
1639
+
1640
+
1641
+ /**
1642
+ * optional bool session_check = 13;
1643
+ * @return {boolean}
1644
+ */
1645
+ proto.clickhouse.grpc.QueryInfo.prototype.getSessionCheck = function() {
1646
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
1647
+ };
1648
+
1649
+
1650
+ /**
1651
+ * @param {boolean} value
1652
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1653
+ */
1654
+ proto.clickhouse.grpc.QueryInfo.prototype.setSessionCheck = function(value) {
1655
+ return jspb.Message.setProto3BooleanField(this, 13, value);
1656
+ };
1657
+
1658
+
1659
+ /**
1660
+ * optional uint32 session_timeout = 14;
1661
+ * @return {number}
1662
+ */
1663
+ proto.clickhouse.grpc.QueryInfo.prototype.getSessionTimeout = function() {
1664
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
1665
+ };
1666
+
1667
+
1668
+ /**
1669
+ * @param {number} value
1670
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1671
+ */
1672
+ proto.clickhouse.grpc.QueryInfo.prototype.setSessionTimeout = function(value) {
1673
+ return jspb.Message.setProto3IntField(this, 14, value);
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * optional bool cancel = 15;
1679
+ * @return {boolean}
1680
+ */
1681
+ proto.clickhouse.grpc.QueryInfo.prototype.getCancel = function() {
1682
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false));
1683
+ };
1684
+
1685
+
1686
+ /**
1687
+ * @param {boolean} value
1688
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1689
+ */
1690
+ proto.clickhouse.grpc.QueryInfo.prototype.setCancel = function(value) {
1691
+ return jspb.Message.setProto3BooleanField(this, 15, value);
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * optional bool next_query_info = 16;
1697
+ * @return {boolean}
1698
+ */
1699
+ proto.clickhouse.grpc.QueryInfo.prototype.getNextQueryInfo = function() {
1700
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
1701
+ };
1702
+
1703
+
1704
+ /**
1705
+ * @param {boolean} value
1706
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1707
+ */
1708
+ proto.clickhouse.grpc.QueryInfo.prototype.setNextQueryInfo = function(value) {
1709
+ return jspb.Message.setProto3BooleanField(this, 16, value);
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * optional string input_compression_type = 20;
1715
+ * @return {string}
1716
+ */
1717
+ proto.clickhouse.grpc.QueryInfo.prototype.getInputCompressionType = function() {
1718
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1719
+ };
1720
+
1721
+
1722
+ /**
1723
+ * @param {string} value
1724
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1725
+ */
1726
+ proto.clickhouse.grpc.QueryInfo.prototype.setInputCompressionType = function(value) {
1727
+ return jspb.Message.setProto3StringField(this, 20, value);
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * optional string output_compression_type = 21;
1733
+ * @return {string}
1734
+ */
1735
+ proto.clickhouse.grpc.QueryInfo.prototype.getOutputCompressionType = function() {
1736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1737
+ };
1738
+
1739
+
1740
+ /**
1741
+ * @param {string} value
1742
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1743
+ */
1744
+ proto.clickhouse.grpc.QueryInfo.prototype.setOutputCompressionType = function(value) {
1745
+ return jspb.Message.setProto3StringField(this, 21, value);
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * optional int32 output_compression_level = 19;
1751
+ * @return {number}
1752
+ */
1753
+ proto.clickhouse.grpc.QueryInfo.prototype.getOutputCompressionLevel = function() {
1754
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
1755
+ };
1756
+
1757
+
1758
+ /**
1759
+ * @param {number} value
1760
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1761
+ */
1762
+ proto.clickhouse.grpc.QueryInfo.prototype.setOutputCompressionLevel = function(value) {
1763
+ return jspb.Message.setProto3IntField(this, 19, value);
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * optional string transport_compression_type = 22;
1769
+ * @return {string}
1770
+ */
1771
+ proto.clickhouse.grpc.QueryInfo.prototype.getTransportCompressionType = function() {
1772
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1773
+ };
1774
+
1775
+
1776
+ /**
1777
+ * @param {string} value
1778
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1779
+ */
1780
+ proto.clickhouse.grpc.QueryInfo.prototype.setTransportCompressionType = function(value) {
1781
+ return jspb.Message.setProto3StringField(this, 22, value);
1782
+ };
1783
+
1784
+
1785
+ /**
1786
+ * optional int32 transport_compression_level = 23;
1787
+ * @return {number}
1788
+ */
1789
+ proto.clickhouse.grpc.QueryInfo.prototype.getTransportCompressionLevel = function() {
1790
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0));
1791
+ };
1792
+
1793
+
1794
+ /**
1795
+ * @param {number} value
1796
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1797
+ */
1798
+ proto.clickhouse.grpc.QueryInfo.prototype.setTransportCompressionLevel = function(value) {
1799
+ return jspb.Message.setProto3IntField(this, 23, value);
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * optional ObsoleteTransportCompression obsolete_result_compression = 17;
1805
+ * @return {?proto.clickhouse.grpc.ObsoleteTransportCompression}
1806
+ */
1807
+ proto.clickhouse.grpc.QueryInfo.prototype.getObsoleteResultCompression = function() {
1808
+ return /** @type{?proto.clickhouse.grpc.ObsoleteTransportCompression} */ (
1809
+ jspb.Message.getWrapperField(this, proto.clickhouse.grpc.ObsoleteTransportCompression, 17));
1810
+ };
1811
+
1812
+
1813
+ /**
1814
+ * @param {?proto.clickhouse.grpc.ObsoleteTransportCompression|undefined} value
1815
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1816
+ */
1817
+ proto.clickhouse.grpc.QueryInfo.prototype.setObsoleteResultCompression = function(value) {
1818
+ return jspb.Message.setWrapperField(this, 17, value);
1819
+ };
1820
+
1821
+
1822
+ /**
1823
+ * Clears the message field making it undefined.
1824
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1825
+ */
1826
+ proto.clickhouse.grpc.QueryInfo.prototype.clearObsoleteResultCompression = function() {
1827
+ return this.setObsoleteResultCompression(undefined);
1828
+ };
1829
+
1830
+
1831
+ /**
1832
+ * Returns whether this field is set.
1833
+ * @return {boolean}
1834
+ */
1835
+ proto.clickhouse.grpc.QueryInfo.prototype.hasObsoleteResultCompression = function() {
1836
+ return jspb.Message.getField(this, 17) != null;
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * optional string obsolete_compression_type = 18;
1842
+ * @return {string}
1843
+ */
1844
+ proto.clickhouse.grpc.QueryInfo.prototype.getObsoleteCompressionType = function() {
1845
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * @param {string} value
1851
+ * @return {!proto.clickhouse.grpc.QueryInfo} returns this
1852
+ */
1853
+ proto.clickhouse.grpc.QueryInfo.prototype.setObsoleteCompressionType = function(value) {
1854
+ return jspb.Message.setProto3StringField(this, 18, value);
1855
+ };
1856
+
1857
+
1858
+
1859
+
1860
+
1861
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1862
+ /**
1863
+ * Creates an object representation of this proto.
1864
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1865
+ * Optional fields that are not set will be set to undefined.
1866
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1867
+ * For the list of reserved names please see:
1868
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1869
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1870
+ * JSPB instance for transitional soy proto support:
1871
+ * http://goto/soy-param-migration
1872
+ * @return {!Object}
1873
+ */
1874
+ proto.clickhouse.grpc.LogEntry.prototype.toObject = function(opt_includeInstance) {
1875
+ return proto.clickhouse.grpc.LogEntry.toObject(opt_includeInstance, this);
1876
+ };
1877
+
1878
+
1879
+ /**
1880
+ * Static version of the {@see toObject} method.
1881
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1882
+ * the JSPB instance for transitional soy proto support:
1883
+ * http://goto/soy-param-migration
1884
+ * @param {!proto.clickhouse.grpc.LogEntry} msg The msg instance to transform.
1885
+ * @return {!Object}
1886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1887
+ */
1888
+ proto.clickhouse.grpc.LogEntry.toObject = function(includeInstance, msg) {
1889
+ var f, obj = {
1890
+ time: jspb.Message.getFieldWithDefault(msg, 1, 0),
1891
+ timeMicroseconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
1892
+ threadId: jspb.Message.getFieldWithDefault(msg, 3, 0),
1893
+ queryId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1894
+ level: jspb.Message.getFieldWithDefault(msg, 5, 0),
1895
+ source: jspb.Message.getFieldWithDefault(msg, 6, ""),
1896
+ text: jspb.Message.getFieldWithDefault(msg, 7, "")
1897
+ };
1898
+
1899
+ if (includeInstance) {
1900
+ obj.$jspbMessageInstance = msg;
1901
+ }
1902
+ return obj;
1903
+ };
1904
+ }
1905
+
1906
+
1907
+ /**
1908
+ * Deserializes binary data (in protobuf wire format).
1909
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1910
+ * @return {!proto.clickhouse.grpc.LogEntry}
1911
+ */
1912
+ proto.clickhouse.grpc.LogEntry.deserializeBinary = function(bytes) {
1913
+ var reader = new jspb.BinaryReader(bytes);
1914
+ var msg = new proto.clickhouse.grpc.LogEntry;
1915
+ return proto.clickhouse.grpc.LogEntry.deserializeBinaryFromReader(msg, reader);
1916
+ };
1917
+
1918
+
1919
+ /**
1920
+ * Deserializes binary data (in protobuf wire format) from the
1921
+ * given reader into the given message object.
1922
+ * @param {!proto.clickhouse.grpc.LogEntry} msg The message object to deserialize into.
1923
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1924
+ * @return {!proto.clickhouse.grpc.LogEntry}
1925
+ */
1926
+ proto.clickhouse.grpc.LogEntry.deserializeBinaryFromReader = function(msg, reader) {
1927
+ while (reader.nextField()) {
1928
+ if (reader.isEndGroup()) {
1929
+ break;
1930
+ }
1931
+ var field = reader.getFieldNumber();
1932
+ switch (field) {
1933
+ case 1:
1934
+ var value = /** @type {number} */ (reader.readUint32());
1935
+ msg.setTime(value);
1936
+ break;
1937
+ case 2:
1938
+ var value = /** @type {number} */ (reader.readUint32());
1939
+ msg.setTimeMicroseconds(value);
1940
+ break;
1941
+ case 3:
1942
+ var value = /** @type {number} */ (reader.readUint64());
1943
+ msg.setThreadId(value);
1944
+ break;
1945
+ case 4:
1946
+ var value = /** @type {string} */ (reader.readString());
1947
+ msg.setQueryId(value);
1948
+ break;
1949
+ case 5:
1950
+ var value = /** @type {!proto.clickhouse.grpc.LogsLevel} */ (reader.readEnum());
1951
+ msg.setLevel(value);
1952
+ break;
1953
+ case 6:
1954
+ var value = /** @type {string} */ (reader.readString());
1955
+ msg.setSource(value);
1956
+ break;
1957
+ case 7:
1958
+ var value = /** @type {string} */ (reader.readString());
1959
+ msg.setText(value);
1960
+ break;
1961
+ default:
1962
+ reader.skipField();
1963
+ break;
1964
+ }
1965
+ }
1966
+ return msg;
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * Serializes the message to binary data (in protobuf wire format).
1972
+ * @return {!Uint8Array}
1973
+ */
1974
+ proto.clickhouse.grpc.LogEntry.prototype.serializeBinary = function() {
1975
+ var writer = new jspb.BinaryWriter();
1976
+ proto.clickhouse.grpc.LogEntry.serializeBinaryToWriter(this, writer);
1977
+ return writer.getResultBuffer();
1978
+ };
1979
+
1980
+
1981
+ /**
1982
+ * Serializes the given message to binary data (in protobuf wire
1983
+ * format), writing to the given BinaryWriter.
1984
+ * @param {!proto.clickhouse.grpc.LogEntry} message
1985
+ * @param {!jspb.BinaryWriter} writer
1986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1987
+ */
1988
+ proto.clickhouse.grpc.LogEntry.serializeBinaryToWriter = function(message, writer) {
1989
+ var f = undefined;
1990
+ f = message.getTime();
1991
+ if (f !== 0) {
1992
+ writer.writeUint32(
1993
+ 1,
1994
+ f
1995
+ );
1996
+ }
1997
+ f = message.getTimeMicroseconds();
1998
+ if (f !== 0) {
1999
+ writer.writeUint32(
2000
+ 2,
2001
+ f
2002
+ );
2003
+ }
2004
+ f = message.getThreadId();
2005
+ if (f !== 0) {
2006
+ writer.writeUint64(
2007
+ 3,
2008
+ f
2009
+ );
2010
+ }
2011
+ f = message.getQueryId();
2012
+ if (f.length > 0) {
2013
+ writer.writeString(
2014
+ 4,
2015
+ f
2016
+ );
2017
+ }
2018
+ f = message.getLevel();
2019
+ if (f !== 0.0) {
2020
+ writer.writeEnum(
2021
+ 5,
2022
+ f
2023
+ );
2024
+ }
2025
+ f = message.getSource();
2026
+ if (f.length > 0) {
2027
+ writer.writeString(
2028
+ 6,
2029
+ f
2030
+ );
2031
+ }
2032
+ f = message.getText();
2033
+ if (f.length > 0) {
2034
+ writer.writeString(
2035
+ 7,
2036
+ f
2037
+ );
2038
+ }
2039
+ };
2040
+
2041
+
2042
+ /**
2043
+ * optional uint32 time = 1;
2044
+ * @return {number}
2045
+ */
2046
+ proto.clickhouse.grpc.LogEntry.prototype.getTime = function() {
2047
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * @param {number} value
2053
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2054
+ */
2055
+ proto.clickhouse.grpc.LogEntry.prototype.setTime = function(value) {
2056
+ return jspb.Message.setProto3IntField(this, 1, value);
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * optional uint32 time_microseconds = 2;
2062
+ * @return {number}
2063
+ */
2064
+ proto.clickhouse.grpc.LogEntry.prototype.getTimeMicroseconds = function() {
2065
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * @param {number} value
2071
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2072
+ */
2073
+ proto.clickhouse.grpc.LogEntry.prototype.setTimeMicroseconds = function(value) {
2074
+ return jspb.Message.setProto3IntField(this, 2, value);
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * optional uint64 thread_id = 3;
2080
+ * @return {number}
2081
+ */
2082
+ proto.clickhouse.grpc.LogEntry.prototype.getThreadId = function() {
2083
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * @param {number} value
2089
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2090
+ */
2091
+ proto.clickhouse.grpc.LogEntry.prototype.setThreadId = function(value) {
2092
+ return jspb.Message.setProto3IntField(this, 3, value);
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * optional string query_id = 4;
2098
+ * @return {string}
2099
+ */
2100
+ proto.clickhouse.grpc.LogEntry.prototype.getQueryId = function() {
2101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * @param {string} value
2107
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2108
+ */
2109
+ proto.clickhouse.grpc.LogEntry.prototype.setQueryId = function(value) {
2110
+ return jspb.Message.setProto3StringField(this, 4, value);
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * optional LogsLevel level = 5;
2116
+ * @return {!proto.clickhouse.grpc.LogsLevel}
2117
+ */
2118
+ proto.clickhouse.grpc.LogEntry.prototype.getLevel = function() {
2119
+ return /** @type {!proto.clickhouse.grpc.LogsLevel} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2120
+ };
2121
+
2122
+
2123
+ /**
2124
+ * @param {!proto.clickhouse.grpc.LogsLevel} value
2125
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2126
+ */
2127
+ proto.clickhouse.grpc.LogEntry.prototype.setLevel = function(value) {
2128
+ return jspb.Message.setProto3EnumField(this, 5, value);
2129
+ };
2130
+
2131
+
2132
+ /**
2133
+ * optional string source = 6;
2134
+ * @return {string}
2135
+ */
2136
+ proto.clickhouse.grpc.LogEntry.prototype.getSource = function() {
2137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2138
+ };
2139
+
2140
+
2141
+ /**
2142
+ * @param {string} value
2143
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2144
+ */
2145
+ proto.clickhouse.grpc.LogEntry.prototype.setSource = function(value) {
2146
+ return jspb.Message.setProto3StringField(this, 6, value);
2147
+ };
2148
+
2149
+
2150
+ /**
2151
+ * optional string text = 7;
2152
+ * @return {string}
2153
+ */
2154
+ proto.clickhouse.grpc.LogEntry.prototype.getText = function() {
2155
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * @param {string} value
2161
+ * @return {!proto.clickhouse.grpc.LogEntry} returns this
2162
+ */
2163
+ proto.clickhouse.grpc.LogEntry.prototype.setText = function(value) {
2164
+ return jspb.Message.setProto3StringField(this, 7, value);
2165
+ };
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2172
+ /**
2173
+ * Creates an object representation of this proto.
2174
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2175
+ * Optional fields that are not set will be set to undefined.
2176
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2177
+ * For the list of reserved names please see:
2178
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2179
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2180
+ * JSPB instance for transitional soy proto support:
2181
+ * http://goto/soy-param-migration
2182
+ * @return {!Object}
2183
+ */
2184
+ proto.clickhouse.grpc.Progress.prototype.toObject = function(opt_includeInstance) {
2185
+ return proto.clickhouse.grpc.Progress.toObject(opt_includeInstance, this);
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * Static version of the {@see toObject} method.
2191
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2192
+ * the JSPB instance for transitional soy proto support:
2193
+ * http://goto/soy-param-migration
2194
+ * @param {!proto.clickhouse.grpc.Progress} msg The msg instance to transform.
2195
+ * @return {!Object}
2196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2197
+ */
2198
+ proto.clickhouse.grpc.Progress.toObject = function(includeInstance, msg) {
2199
+ var f, obj = {
2200
+ readRows: jspb.Message.getFieldWithDefault(msg, 1, 0),
2201
+ readBytes: jspb.Message.getFieldWithDefault(msg, 2, 0),
2202
+ totalRowsToRead: jspb.Message.getFieldWithDefault(msg, 3, 0),
2203
+ writtenRows: jspb.Message.getFieldWithDefault(msg, 4, 0),
2204
+ writtenBytes: jspb.Message.getFieldWithDefault(msg, 5, 0)
2205
+ };
2206
+
2207
+ if (includeInstance) {
2208
+ obj.$jspbMessageInstance = msg;
2209
+ }
2210
+ return obj;
2211
+ };
2212
+ }
2213
+
2214
+
2215
+ /**
2216
+ * Deserializes binary data (in protobuf wire format).
2217
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2218
+ * @return {!proto.clickhouse.grpc.Progress}
2219
+ */
2220
+ proto.clickhouse.grpc.Progress.deserializeBinary = function(bytes) {
2221
+ var reader = new jspb.BinaryReader(bytes);
2222
+ var msg = new proto.clickhouse.grpc.Progress;
2223
+ return proto.clickhouse.grpc.Progress.deserializeBinaryFromReader(msg, reader);
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * Deserializes binary data (in protobuf wire format) from the
2229
+ * given reader into the given message object.
2230
+ * @param {!proto.clickhouse.grpc.Progress} msg The message object to deserialize into.
2231
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2232
+ * @return {!proto.clickhouse.grpc.Progress}
2233
+ */
2234
+ proto.clickhouse.grpc.Progress.deserializeBinaryFromReader = function(msg, reader) {
2235
+ while (reader.nextField()) {
2236
+ if (reader.isEndGroup()) {
2237
+ break;
2238
+ }
2239
+ var field = reader.getFieldNumber();
2240
+ switch (field) {
2241
+ case 1:
2242
+ var value = /** @type {number} */ (reader.readUint64());
2243
+ msg.setReadRows(value);
2244
+ break;
2245
+ case 2:
2246
+ var value = /** @type {number} */ (reader.readUint64());
2247
+ msg.setReadBytes(value);
2248
+ break;
2249
+ case 3:
2250
+ var value = /** @type {number} */ (reader.readUint64());
2251
+ msg.setTotalRowsToRead(value);
2252
+ break;
2253
+ case 4:
2254
+ var value = /** @type {number} */ (reader.readUint64());
2255
+ msg.setWrittenRows(value);
2256
+ break;
2257
+ case 5:
2258
+ var value = /** @type {number} */ (reader.readUint64());
2259
+ msg.setWrittenBytes(value);
2260
+ break;
2261
+ default:
2262
+ reader.skipField();
2263
+ break;
2264
+ }
2265
+ }
2266
+ return msg;
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Serializes the message to binary data (in protobuf wire format).
2272
+ * @return {!Uint8Array}
2273
+ */
2274
+ proto.clickhouse.grpc.Progress.prototype.serializeBinary = function() {
2275
+ var writer = new jspb.BinaryWriter();
2276
+ proto.clickhouse.grpc.Progress.serializeBinaryToWriter(this, writer);
2277
+ return writer.getResultBuffer();
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Serializes the given message to binary data (in protobuf wire
2283
+ * format), writing to the given BinaryWriter.
2284
+ * @param {!proto.clickhouse.grpc.Progress} message
2285
+ * @param {!jspb.BinaryWriter} writer
2286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2287
+ */
2288
+ proto.clickhouse.grpc.Progress.serializeBinaryToWriter = function(message, writer) {
2289
+ var f = undefined;
2290
+ f = message.getReadRows();
2291
+ if (f !== 0) {
2292
+ writer.writeUint64(
2293
+ 1,
2294
+ f
2295
+ );
2296
+ }
2297
+ f = message.getReadBytes();
2298
+ if (f !== 0) {
2299
+ writer.writeUint64(
2300
+ 2,
2301
+ f
2302
+ );
2303
+ }
2304
+ f = message.getTotalRowsToRead();
2305
+ if (f !== 0) {
2306
+ writer.writeUint64(
2307
+ 3,
2308
+ f
2309
+ );
2310
+ }
2311
+ f = message.getWrittenRows();
2312
+ if (f !== 0) {
2313
+ writer.writeUint64(
2314
+ 4,
2315
+ f
2316
+ );
2317
+ }
2318
+ f = message.getWrittenBytes();
2319
+ if (f !== 0) {
2320
+ writer.writeUint64(
2321
+ 5,
2322
+ f
2323
+ );
2324
+ }
2325
+ };
2326
+
2327
+
2328
+ /**
2329
+ * optional uint64 read_rows = 1;
2330
+ * @return {number}
2331
+ */
2332
+ proto.clickhouse.grpc.Progress.prototype.getReadRows = function() {
2333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * @param {number} value
2339
+ * @return {!proto.clickhouse.grpc.Progress} returns this
2340
+ */
2341
+ proto.clickhouse.grpc.Progress.prototype.setReadRows = function(value) {
2342
+ return jspb.Message.setProto3IntField(this, 1, value);
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * optional uint64 read_bytes = 2;
2348
+ * @return {number}
2349
+ */
2350
+ proto.clickhouse.grpc.Progress.prototype.getReadBytes = function() {
2351
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * @param {number} value
2357
+ * @return {!proto.clickhouse.grpc.Progress} returns this
2358
+ */
2359
+ proto.clickhouse.grpc.Progress.prototype.setReadBytes = function(value) {
2360
+ return jspb.Message.setProto3IntField(this, 2, value);
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * optional uint64 total_rows_to_read = 3;
2366
+ * @return {number}
2367
+ */
2368
+ proto.clickhouse.grpc.Progress.prototype.getTotalRowsToRead = function() {
2369
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * @param {number} value
2375
+ * @return {!proto.clickhouse.grpc.Progress} returns this
2376
+ */
2377
+ proto.clickhouse.grpc.Progress.prototype.setTotalRowsToRead = function(value) {
2378
+ return jspb.Message.setProto3IntField(this, 3, value);
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * optional uint64 written_rows = 4;
2384
+ * @return {number}
2385
+ */
2386
+ proto.clickhouse.grpc.Progress.prototype.getWrittenRows = function() {
2387
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2388
+ };
2389
+
2390
+
2391
+ /**
2392
+ * @param {number} value
2393
+ * @return {!proto.clickhouse.grpc.Progress} returns this
2394
+ */
2395
+ proto.clickhouse.grpc.Progress.prototype.setWrittenRows = function(value) {
2396
+ return jspb.Message.setProto3IntField(this, 4, value);
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * optional uint64 written_bytes = 5;
2402
+ * @return {number}
2403
+ */
2404
+ proto.clickhouse.grpc.Progress.prototype.getWrittenBytes = function() {
2405
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * @param {number} value
2411
+ * @return {!proto.clickhouse.grpc.Progress} returns this
2412
+ */
2413
+ proto.clickhouse.grpc.Progress.prototype.setWrittenBytes = function(value) {
2414
+ return jspb.Message.setProto3IntField(this, 5, value);
2415
+ };
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2422
+ /**
2423
+ * Creates an object representation of this proto.
2424
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2425
+ * Optional fields that are not set will be set to undefined.
2426
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2427
+ * For the list of reserved names please see:
2428
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2429
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2430
+ * JSPB instance for transitional soy proto support:
2431
+ * http://goto/soy-param-migration
2432
+ * @return {!Object}
2433
+ */
2434
+ proto.clickhouse.grpc.Stats.prototype.toObject = function(opt_includeInstance) {
2435
+ return proto.clickhouse.grpc.Stats.toObject(opt_includeInstance, this);
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * Static version of the {@see toObject} method.
2441
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2442
+ * the JSPB instance for transitional soy proto support:
2443
+ * http://goto/soy-param-migration
2444
+ * @param {!proto.clickhouse.grpc.Stats} msg The msg instance to transform.
2445
+ * @return {!Object}
2446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2447
+ */
2448
+ proto.clickhouse.grpc.Stats.toObject = function(includeInstance, msg) {
2449
+ var f, obj = {
2450
+ rows: jspb.Message.getFieldWithDefault(msg, 1, 0),
2451
+ blocks: jspb.Message.getFieldWithDefault(msg, 2, 0),
2452
+ allocatedBytes: jspb.Message.getFieldWithDefault(msg, 3, 0),
2453
+ appliedLimit: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
2454
+ rowsBeforeLimit: jspb.Message.getFieldWithDefault(msg, 5, 0),
2455
+ appliedAggregation: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
2456
+ rowsBeforeAggregation: jspb.Message.getFieldWithDefault(msg, 7, 0)
2457
+ };
2458
+
2459
+ if (includeInstance) {
2460
+ obj.$jspbMessageInstance = msg;
2461
+ }
2462
+ return obj;
2463
+ };
2464
+ }
2465
+
2466
+
2467
+ /**
2468
+ * Deserializes binary data (in protobuf wire format).
2469
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2470
+ * @return {!proto.clickhouse.grpc.Stats}
2471
+ */
2472
+ proto.clickhouse.grpc.Stats.deserializeBinary = function(bytes) {
2473
+ var reader = new jspb.BinaryReader(bytes);
2474
+ var msg = new proto.clickhouse.grpc.Stats;
2475
+ return proto.clickhouse.grpc.Stats.deserializeBinaryFromReader(msg, reader);
2476
+ };
2477
+
2478
+
2479
+ /**
2480
+ * Deserializes binary data (in protobuf wire format) from the
2481
+ * given reader into the given message object.
2482
+ * @param {!proto.clickhouse.grpc.Stats} msg The message object to deserialize into.
2483
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2484
+ * @return {!proto.clickhouse.grpc.Stats}
2485
+ */
2486
+ proto.clickhouse.grpc.Stats.deserializeBinaryFromReader = function(msg, reader) {
2487
+ while (reader.nextField()) {
2488
+ if (reader.isEndGroup()) {
2489
+ break;
2490
+ }
2491
+ var field = reader.getFieldNumber();
2492
+ switch (field) {
2493
+ case 1:
2494
+ var value = /** @type {number} */ (reader.readUint64());
2495
+ msg.setRows(value);
2496
+ break;
2497
+ case 2:
2498
+ var value = /** @type {number} */ (reader.readUint64());
2499
+ msg.setBlocks(value);
2500
+ break;
2501
+ case 3:
2502
+ var value = /** @type {number} */ (reader.readUint64());
2503
+ msg.setAllocatedBytes(value);
2504
+ break;
2505
+ case 4:
2506
+ var value = /** @type {boolean} */ (reader.readBool());
2507
+ msg.setAppliedLimit(value);
2508
+ break;
2509
+ case 5:
2510
+ var value = /** @type {number} */ (reader.readUint64());
2511
+ msg.setRowsBeforeLimit(value);
2512
+ break;
2513
+ case 6:
2514
+ var value = /** @type {boolean} */ (reader.readBool());
2515
+ msg.setAppliedAggregation(value);
2516
+ break;
2517
+ case 7:
2518
+ var value = /** @type {number} */ (reader.readUint64());
2519
+ msg.setRowsBeforeAggregation(value);
2520
+ break;
2521
+ default:
2522
+ reader.skipField();
2523
+ break;
2524
+ }
2525
+ }
2526
+ return msg;
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Serializes the message to binary data (in protobuf wire format).
2532
+ * @return {!Uint8Array}
2533
+ */
2534
+ proto.clickhouse.grpc.Stats.prototype.serializeBinary = function() {
2535
+ var writer = new jspb.BinaryWriter();
2536
+ proto.clickhouse.grpc.Stats.serializeBinaryToWriter(this, writer);
2537
+ return writer.getResultBuffer();
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * Serializes the given message to binary data (in protobuf wire
2543
+ * format), writing to the given BinaryWriter.
2544
+ * @param {!proto.clickhouse.grpc.Stats} message
2545
+ * @param {!jspb.BinaryWriter} writer
2546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2547
+ */
2548
+ proto.clickhouse.grpc.Stats.serializeBinaryToWriter = function(message, writer) {
2549
+ var f = undefined;
2550
+ f = message.getRows();
2551
+ if (f !== 0) {
2552
+ writer.writeUint64(
2553
+ 1,
2554
+ f
2555
+ );
2556
+ }
2557
+ f = message.getBlocks();
2558
+ if (f !== 0) {
2559
+ writer.writeUint64(
2560
+ 2,
2561
+ f
2562
+ );
2563
+ }
2564
+ f = message.getAllocatedBytes();
2565
+ if (f !== 0) {
2566
+ writer.writeUint64(
2567
+ 3,
2568
+ f
2569
+ );
2570
+ }
2571
+ f = message.getAppliedLimit();
2572
+ if (f) {
2573
+ writer.writeBool(
2574
+ 4,
2575
+ f
2576
+ );
2577
+ }
2578
+ f = message.getRowsBeforeLimit();
2579
+ if (f !== 0) {
2580
+ writer.writeUint64(
2581
+ 5,
2582
+ f
2583
+ );
2584
+ }
2585
+ f = message.getAppliedAggregation();
2586
+ if (f) {
2587
+ writer.writeBool(
2588
+ 6,
2589
+ f
2590
+ );
2591
+ }
2592
+ f = message.getRowsBeforeAggregation();
2593
+ if (f !== 0) {
2594
+ writer.writeUint64(
2595
+ 7,
2596
+ f
2597
+ );
2598
+ }
2599
+ };
2600
+
2601
+
2602
+ /**
2603
+ * optional uint64 rows = 1;
2604
+ * @return {number}
2605
+ */
2606
+ proto.clickhouse.grpc.Stats.prototype.getRows = function() {
2607
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2608
+ };
2609
+
2610
+
2611
+ /**
2612
+ * @param {number} value
2613
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2614
+ */
2615
+ proto.clickhouse.grpc.Stats.prototype.setRows = function(value) {
2616
+ return jspb.Message.setProto3IntField(this, 1, value);
2617
+ };
2618
+
2619
+
2620
+ /**
2621
+ * optional uint64 blocks = 2;
2622
+ * @return {number}
2623
+ */
2624
+ proto.clickhouse.grpc.Stats.prototype.getBlocks = function() {
2625
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * @param {number} value
2631
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2632
+ */
2633
+ proto.clickhouse.grpc.Stats.prototype.setBlocks = function(value) {
2634
+ return jspb.Message.setProto3IntField(this, 2, value);
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * optional uint64 allocated_bytes = 3;
2640
+ * @return {number}
2641
+ */
2642
+ proto.clickhouse.grpc.Stats.prototype.getAllocatedBytes = function() {
2643
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * @param {number} value
2649
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2650
+ */
2651
+ proto.clickhouse.grpc.Stats.prototype.setAllocatedBytes = function(value) {
2652
+ return jspb.Message.setProto3IntField(this, 3, value);
2653
+ };
2654
+
2655
+
2656
+ /**
2657
+ * optional bool applied_limit = 4;
2658
+ * @return {boolean}
2659
+ */
2660
+ proto.clickhouse.grpc.Stats.prototype.getAppliedLimit = function() {
2661
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * @param {boolean} value
2667
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2668
+ */
2669
+ proto.clickhouse.grpc.Stats.prototype.setAppliedLimit = function(value) {
2670
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * optional uint64 rows_before_limit = 5;
2676
+ * @return {number}
2677
+ */
2678
+ proto.clickhouse.grpc.Stats.prototype.getRowsBeforeLimit = function() {
2679
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2680
+ };
2681
+
2682
+
2683
+ /**
2684
+ * @param {number} value
2685
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2686
+ */
2687
+ proto.clickhouse.grpc.Stats.prototype.setRowsBeforeLimit = function(value) {
2688
+ return jspb.Message.setProto3IntField(this, 5, value);
2689
+ };
2690
+
2691
+
2692
+ /**
2693
+ * optional bool applied_aggregation = 6;
2694
+ * @return {boolean}
2695
+ */
2696
+ proto.clickhouse.grpc.Stats.prototype.getAppliedAggregation = function() {
2697
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * @param {boolean} value
2703
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2704
+ */
2705
+ proto.clickhouse.grpc.Stats.prototype.setAppliedAggregation = function(value) {
2706
+ return jspb.Message.setProto3BooleanField(this, 6, value);
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * optional uint64 rows_before_aggregation = 7;
2712
+ * @return {number}
2713
+ */
2714
+ proto.clickhouse.grpc.Stats.prototype.getRowsBeforeAggregation = function() {
2715
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * @param {number} value
2721
+ * @return {!proto.clickhouse.grpc.Stats} returns this
2722
+ */
2723
+ proto.clickhouse.grpc.Stats.prototype.setRowsBeforeAggregation = function(value) {
2724
+ return jspb.Message.setProto3IntField(this, 7, value);
2725
+ };
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2732
+ /**
2733
+ * Creates an object representation of this proto.
2734
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2735
+ * Optional fields that are not set will be set to undefined.
2736
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2737
+ * For the list of reserved names please see:
2738
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2739
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2740
+ * JSPB instance for transitional soy proto support:
2741
+ * http://goto/soy-param-migration
2742
+ * @return {!Object}
2743
+ */
2744
+ proto.clickhouse.grpc.Exception.prototype.toObject = function(opt_includeInstance) {
2745
+ return proto.clickhouse.grpc.Exception.toObject(opt_includeInstance, this);
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * Static version of the {@see toObject} method.
2751
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2752
+ * the JSPB instance for transitional soy proto support:
2753
+ * http://goto/soy-param-migration
2754
+ * @param {!proto.clickhouse.grpc.Exception} msg The msg instance to transform.
2755
+ * @return {!Object}
2756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2757
+ */
2758
+ proto.clickhouse.grpc.Exception.toObject = function(includeInstance, msg) {
2759
+ var f, obj = {
2760
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
2761
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2762
+ displayText: jspb.Message.getFieldWithDefault(msg, 3, ""),
2763
+ stackTrace: jspb.Message.getFieldWithDefault(msg, 4, "")
2764
+ };
2765
+
2766
+ if (includeInstance) {
2767
+ obj.$jspbMessageInstance = msg;
2768
+ }
2769
+ return obj;
2770
+ };
2771
+ }
2772
+
2773
+
2774
+ /**
2775
+ * Deserializes binary data (in protobuf wire format).
2776
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2777
+ * @return {!proto.clickhouse.grpc.Exception}
2778
+ */
2779
+ proto.clickhouse.grpc.Exception.deserializeBinary = function(bytes) {
2780
+ var reader = new jspb.BinaryReader(bytes);
2781
+ var msg = new proto.clickhouse.grpc.Exception;
2782
+ return proto.clickhouse.grpc.Exception.deserializeBinaryFromReader(msg, reader);
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * Deserializes binary data (in protobuf wire format) from the
2788
+ * given reader into the given message object.
2789
+ * @param {!proto.clickhouse.grpc.Exception} msg The message object to deserialize into.
2790
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2791
+ * @return {!proto.clickhouse.grpc.Exception}
2792
+ */
2793
+ proto.clickhouse.grpc.Exception.deserializeBinaryFromReader = function(msg, reader) {
2794
+ while (reader.nextField()) {
2795
+ if (reader.isEndGroup()) {
2796
+ break;
2797
+ }
2798
+ var field = reader.getFieldNumber();
2799
+ switch (field) {
2800
+ case 1:
2801
+ var value = /** @type {number} */ (reader.readInt32());
2802
+ msg.setCode(value);
2803
+ break;
2804
+ case 2:
2805
+ var value = /** @type {string} */ (reader.readString());
2806
+ msg.setName(value);
2807
+ break;
2808
+ case 3:
2809
+ var value = /** @type {string} */ (reader.readString());
2810
+ msg.setDisplayText(value);
2811
+ break;
2812
+ case 4:
2813
+ var value = /** @type {string} */ (reader.readString());
2814
+ msg.setStackTrace(value);
2815
+ break;
2816
+ default:
2817
+ reader.skipField();
2818
+ break;
2819
+ }
2820
+ }
2821
+ return msg;
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * Serializes the message to binary data (in protobuf wire format).
2827
+ * @return {!Uint8Array}
2828
+ */
2829
+ proto.clickhouse.grpc.Exception.prototype.serializeBinary = function() {
2830
+ var writer = new jspb.BinaryWriter();
2831
+ proto.clickhouse.grpc.Exception.serializeBinaryToWriter(this, writer);
2832
+ return writer.getResultBuffer();
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Serializes the given message to binary data (in protobuf wire
2838
+ * format), writing to the given BinaryWriter.
2839
+ * @param {!proto.clickhouse.grpc.Exception} message
2840
+ * @param {!jspb.BinaryWriter} writer
2841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2842
+ */
2843
+ proto.clickhouse.grpc.Exception.serializeBinaryToWriter = function(message, writer) {
2844
+ var f = undefined;
2845
+ f = message.getCode();
2846
+ if (f !== 0) {
2847
+ writer.writeInt32(
2848
+ 1,
2849
+ f
2850
+ );
2851
+ }
2852
+ f = message.getName();
2853
+ if (f.length > 0) {
2854
+ writer.writeString(
2855
+ 2,
2856
+ f
2857
+ );
2858
+ }
2859
+ f = message.getDisplayText();
2860
+ if (f.length > 0) {
2861
+ writer.writeString(
2862
+ 3,
2863
+ f
2864
+ );
2865
+ }
2866
+ f = message.getStackTrace();
2867
+ if (f.length > 0) {
2868
+ writer.writeString(
2869
+ 4,
2870
+ f
2871
+ );
2872
+ }
2873
+ };
2874
+
2875
+
2876
+ /**
2877
+ * optional int32 code = 1;
2878
+ * @return {number}
2879
+ */
2880
+ proto.clickhouse.grpc.Exception.prototype.getCode = function() {
2881
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * @param {number} value
2887
+ * @return {!proto.clickhouse.grpc.Exception} returns this
2888
+ */
2889
+ proto.clickhouse.grpc.Exception.prototype.setCode = function(value) {
2890
+ return jspb.Message.setProto3IntField(this, 1, value);
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * optional string name = 2;
2896
+ * @return {string}
2897
+ */
2898
+ proto.clickhouse.grpc.Exception.prototype.getName = function() {
2899
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * @param {string} value
2905
+ * @return {!proto.clickhouse.grpc.Exception} returns this
2906
+ */
2907
+ proto.clickhouse.grpc.Exception.prototype.setName = function(value) {
2908
+ return jspb.Message.setProto3StringField(this, 2, value);
2909
+ };
2910
+
2911
+
2912
+ /**
2913
+ * optional string display_text = 3;
2914
+ * @return {string}
2915
+ */
2916
+ proto.clickhouse.grpc.Exception.prototype.getDisplayText = function() {
2917
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * @param {string} value
2923
+ * @return {!proto.clickhouse.grpc.Exception} returns this
2924
+ */
2925
+ proto.clickhouse.grpc.Exception.prototype.setDisplayText = function(value) {
2926
+ return jspb.Message.setProto3StringField(this, 3, value);
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * optional string stack_trace = 4;
2932
+ * @return {string}
2933
+ */
2934
+ proto.clickhouse.grpc.Exception.prototype.getStackTrace = function() {
2935
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * @param {string} value
2941
+ * @return {!proto.clickhouse.grpc.Exception} returns this
2942
+ */
2943
+ proto.clickhouse.grpc.Exception.prototype.setStackTrace = function(value) {
2944
+ return jspb.Message.setProto3StringField(this, 4, value);
2945
+ };
2946
+
2947
+
2948
+
2949
+ /**
2950
+ * List of repeated fields within this message type.
2951
+ * @private {!Array<number>}
2952
+ * @const
2953
+ */
2954
+ proto.clickhouse.grpc.Result.repeatedFields_ = [12,4];
2955
+
2956
+
2957
+
2958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2959
+ /**
2960
+ * Creates an object representation of this proto.
2961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2962
+ * Optional fields that are not set will be set to undefined.
2963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2964
+ * For the list of reserved names please see:
2965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2967
+ * JSPB instance for transitional soy proto support:
2968
+ * http://goto/soy-param-migration
2969
+ * @return {!Object}
2970
+ */
2971
+ proto.clickhouse.grpc.Result.prototype.toObject = function(opt_includeInstance) {
2972
+ return proto.clickhouse.grpc.Result.toObject(opt_includeInstance, this);
2973
+ };
2974
+
2975
+
2976
+ /**
2977
+ * Static version of the {@see toObject} method.
2978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2979
+ * the JSPB instance for transitional soy proto support:
2980
+ * http://goto/soy-param-migration
2981
+ * @param {!proto.clickhouse.grpc.Result} msg The msg instance to transform.
2982
+ * @return {!Object}
2983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2984
+ */
2985
+ proto.clickhouse.grpc.Result.toObject = function(includeInstance, msg) {
2986
+ var f, obj = {
2987
+ queryId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2988
+ timeZone: jspb.Message.getFieldWithDefault(msg, 10, ""),
2989
+ outputFormat: jspb.Message.getFieldWithDefault(msg, 11, ""),
2990
+ outputColumnsList: jspb.Message.toObjectList(msg.getOutputColumnsList(),
2991
+ proto.clickhouse.grpc.NameAndType.toObject, includeInstance),
2992
+ output: msg.getOutput_asB64(),
2993
+ totals: msg.getTotals_asB64(),
2994
+ extremes: msg.getExtremes_asB64(),
2995
+ logsList: jspb.Message.toObjectList(msg.getLogsList(),
2996
+ proto.clickhouse.grpc.LogEntry.toObject, includeInstance),
2997
+ progress: (f = msg.getProgress()) && proto.clickhouse.grpc.Progress.toObject(includeInstance, f),
2998
+ stats: (f = msg.getStats()) && proto.clickhouse.grpc.Stats.toObject(includeInstance, f),
2999
+ exception: (f = msg.getException()) && proto.clickhouse.grpc.Exception.toObject(includeInstance, f),
3000
+ cancelled: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
3001
+ };
3002
+
3003
+ if (includeInstance) {
3004
+ obj.$jspbMessageInstance = msg;
3005
+ }
3006
+ return obj;
3007
+ };
3008
+ }
3009
+
3010
+
3011
+ /**
3012
+ * Deserializes binary data (in protobuf wire format).
3013
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3014
+ * @return {!proto.clickhouse.grpc.Result}
3015
+ */
3016
+ proto.clickhouse.grpc.Result.deserializeBinary = function(bytes) {
3017
+ var reader = new jspb.BinaryReader(bytes);
3018
+ var msg = new proto.clickhouse.grpc.Result;
3019
+ return proto.clickhouse.grpc.Result.deserializeBinaryFromReader(msg, reader);
3020
+ };
3021
+
3022
+
3023
+ /**
3024
+ * Deserializes binary data (in protobuf wire format) from the
3025
+ * given reader into the given message object.
3026
+ * @param {!proto.clickhouse.grpc.Result} msg The message object to deserialize into.
3027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3028
+ * @return {!proto.clickhouse.grpc.Result}
3029
+ */
3030
+ proto.clickhouse.grpc.Result.deserializeBinaryFromReader = function(msg, reader) {
3031
+ while (reader.nextField()) {
3032
+ if (reader.isEndGroup()) {
3033
+ break;
3034
+ }
3035
+ var field = reader.getFieldNumber();
3036
+ switch (field) {
3037
+ case 9:
3038
+ var value = /** @type {string} */ (reader.readString());
3039
+ msg.setQueryId(value);
3040
+ break;
3041
+ case 10:
3042
+ var value = /** @type {string} */ (reader.readString());
3043
+ msg.setTimeZone(value);
3044
+ break;
3045
+ case 11:
3046
+ var value = /** @type {string} */ (reader.readString());
3047
+ msg.setOutputFormat(value);
3048
+ break;
3049
+ case 12:
3050
+ var value = new proto.clickhouse.grpc.NameAndType;
3051
+ reader.readMessage(value,proto.clickhouse.grpc.NameAndType.deserializeBinaryFromReader);
3052
+ msg.addOutputColumns(value);
3053
+ break;
3054
+ case 1:
3055
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3056
+ msg.setOutput(value);
3057
+ break;
3058
+ case 2:
3059
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3060
+ msg.setTotals(value);
3061
+ break;
3062
+ case 3:
3063
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3064
+ msg.setExtremes(value);
3065
+ break;
3066
+ case 4:
3067
+ var value = new proto.clickhouse.grpc.LogEntry;
3068
+ reader.readMessage(value,proto.clickhouse.grpc.LogEntry.deserializeBinaryFromReader);
3069
+ msg.addLogs(value);
3070
+ break;
3071
+ case 5:
3072
+ var value = new proto.clickhouse.grpc.Progress;
3073
+ reader.readMessage(value,proto.clickhouse.grpc.Progress.deserializeBinaryFromReader);
3074
+ msg.setProgress(value);
3075
+ break;
3076
+ case 6:
3077
+ var value = new proto.clickhouse.grpc.Stats;
3078
+ reader.readMessage(value,proto.clickhouse.grpc.Stats.deserializeBinaryFromReader);
3079
+ msg.setStats(value);
3080
+ break;
3081
+ case 7:
3082
+ var value = new proto.clickhouse.grpc.Exception;
3083
+ reader.readMessage(value,proto.clickhouse.grpc.Exception.deserializeBinaryFromReader);
3084
+ msg.setException(value);
3085
+ break;
3086
+ case 8:
3087
+ var value = /** @type {boolean} */ (reader.readBool());
3088
+ msg.setCancelled(value);
3089
+ break;
3090
+ default:
3091
+ reader.skipField();
3092
+ break;
3093
+ }
3094
+ }
3095
+ return msg;
3096
+ };
3097
+
3098
+
3099
+ /**
3100
+ * Serializes the message to binary data (in protobuf wire format).
3101
+ * @return {!Uint8Array}
3102
+ */
3103
+ proto.clickhouse.grpc.Result.prototype.serializeBinary = function() {
3104
+ var writer = new jspb.BinaryWriter();
3105
+ proto.clickhouse.grpc.Result.serializeBinaryToWriter(this, writer);
3106
+ return writer.getResultBuffer();
3107
+ };
3108
+
3109
+
3110
+ /**
3111
+ * Serializes the given message to binary data (in protobuf wire
3112
+ * format), writing to the given BinaryWriter.
3113
+ * @param {!proto.clickhouse.grpc.Result} message
3114
+ * @param {!jspb.BinaryWriter} writer
3115
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3116
+ */
3117
+ proto.clickhouse.grpc.Result.serializeBinaryToWriter = function(message, writer) {
3118
+ var f = undefined;
3119
+ f = message.getQueryId();
3120
+ if (f.length > 0) {
3121
+ writer.writeString(
3122
+ 9,
3123
+ f
3124
+ );
3125
+ }
3126
+ f = message.getTimeZone();
3127
+ if (f.length > 0) {
3128
+ writer.writeString(
3129
+ 10,
3130
+ f
3131
+ );
3132
+ }
3133
+ f = message.getOutputFormat();
3134
+ if (f.length > 0) {
3135
+ writer.writeString(
3136
+ 11,
3137
+ f
3138
+ );
3139
+ }
3140
+ f = message.getOutputColumnsList();
3141
+ if (f.length > 0) {
3142
+ writer.writeRepeatedMessage(
3143
+ 12,
3144
+ f,
3145
+ proto.clickhouse.grpc.NameAndType.serializeBinaryToWriter
3146
+ );
3147
+ }
3148
+ f = message.getOutput_asU8();
3149
+ if (f.length > 0) {
3150
+ writer.writeBytes(
3151
+ 1,
3152
+ f
3153
+ );
3154
+ }
3155
+ f = message.getTotals_asU8();
3156
+ if (f.length > 0) {
3157
+ writer.writeBytes(
3158
+ 2,
3159
+ f
3160
+ );
3161
+ }
3162
+ f = message.getExtremes_asU8();
3163
+ if (f.length > 0) {
3164
+ writer.writeBytes(
3165
+ 3,
3166
+ f
3167
+ );
3168
+ }
3169
+ f = message.getLogsList();
3170
+ if (f.length > 0) {
3171
+ writer.writeRepeatedMessage(
3172
+ 4,
3173
+ f,
3174
+ proto.clickhouse.grpc.LogEntry.serializeBinaryToWriter
3175
+ );
3176
+ }
3177
+ f = message.getProgress();
3178
+ if (f != null) {
3179
+ writer.writeMessage(
3180
+ 5,
3181
+ f,
3182
+ proto.clickhouse.grpc.Progress.serializeBinaryToWriter
3183
+ );
3184
+ }
3185
+ f = message.getStats();
3186
+ if (f != null) {
3187
+ writer.writeMessage(
3188
+ 6,
3189
+ f,
3190
+ proto.clickhouse.grpc.Stats.serializeBinaryToWriter
3191
+ );
3192
+ }
3193
+ f = message.getException();
3194
+ if (f != null) {
3195
+ writer.writeMessage(
3196
+ 7,
3197
+ f,
3198
+ proto.clickhouse.grpc.Exception.serializeBinaryToWriter
3199
+ );
3200
+ }
3201
+ f = message.getCancelled();
3202
+ if (f) {
3203
+ writer.writeBool(
3204
+ 8,
3205
+ f
3206
+ );
3207
+ }
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * optional string query_id = 9;
3213
+ * @return {string}
3214
+ */
3215
+ proto.clickhouse.grpc.Result.prototype.getQueryId = function() {
3216
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3217
+ };
3218
+
3219
+
3220
+ /**
3221
+ * @param {string} value
3222
+ * @return {!proto.clickhouse.grpc.Result} returns this
3223
+ */
3224
+ proto.clickhouse.grpc.Result.prototype.setQueryId = function(value) {
3225
+ return jspb.Message.setProto3StringField(this, 9, value);
3226
+ };
3227
+
3228
+
3229
+ /**
3230
+ * optional string time_zone = 10;
3231
+ * @return {string}
3232
+ */
3233
+ proto.clickhouse.grpc.Result.prototype.getTimeZone = function() {
3234
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3235
+ };
3236
+
3237
+
3238
+ /**
3239
+ * @param {string} value
3240
+ * @return {!proto.clickhouse.grpc.Result} returns this
3241
+ */
3242
+ proto.clickhouse.grpc.Result.prototype.setTimeZone = function(value) {
3243
+ return jspb.Message.setProto3StringField(this, 10, value);
3244
+ };
3245
+
3246
+
3247
+ /**
3248
+ * optional string output_format = 11;
3249
+ * @return {string}
3250
+ */
3251
+ proto.clickhouse.grpc.Result.prototype.getOutputFormat = function() {
3252
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3253
+ };
3254
+
3255
+
3256
+ /**
3257
+ * @param {string} value
3258
+ * @return {!proto.clickhouse.grpc.Result} returns this
3259
+ */
3260
+ proto.clickhouse.grpc.Result.prototype.setOutputFormat = function(value) {
3261
+ return jspb.Message.setProto3StringField(this, 11, value);
3262
+ };
3263
+
3264
+
3265
+ /**
3266
+ * repeated NameAndType output_columns = 12;
3267
+ * @return {!Array<!proto.clickhouse.grpc.NameAndType>}
3268
+ */
3269
+ proto.clickhouse.grpc.Result.prototype.getOutputColumnsList = function() {
3270
+ return /** @type{!Array<!proto.clickhouse.grpc.NameAndType>} */ (
3271
+ jspb.Message.getRepeatedWrapperField(this, proto.clickhouse.grpc.NameAndType, 12));
3272
+ };
3273
+
3274
+
3275
+ /**
3276
+ * @param {!Array<!proto.clickhouse.grpc.NameAndType>} value
3277
+ * @return {!proto.clickhouse.grpc.Result} returns this
3278
+ */
3279
+ proto.clickhouse.grpc.Result.prototype.setOutputColumnsList = function(value) {
3280
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
3281
+ };
3282
+
3283
+
3284
+ /**
3285
+ * @param {!proto.clickhouse.grpc.NameAndType=} opt_value
3286
+ * @param {number=} opt_index
3287
+ * @return {!proto.clickhouse.grpc.NameAndType}
3288
+ */
3289
+ proto.clickhouse.grpc.Result.prototype.addOutputColumns = function(opt_value, opt_index) {
3290
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clickhouse.grpc.NameAndType, opt_index);
3291
+ };
3292
+
3293
+
3294
+ /**
3295
+ * Clears the list making it empty but non-null.
3296
+ * @return {!proto.clickhouse.grpc.Result} returns this
3297
+ */
3298
+ proto.clickhouse.grpc.Result.prototype.clearOutputColumnsList = function() {
3299
+ return this.setOutputColumnsList([]);
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * optional bytes output = 1;
3305
+ * @return {!(string|Uint8Array)}
3306
+ */
3307
+ proto.clickhouse.grpc.Result.prototype.getOutput = function() {
3308
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3309
+ };
3310
+
3311
+
3312
+ /**
3313
+ * optional bytes output = 1;
3314
+ * This is a type-conversion wrapper around `getOutput()`
3315
+ * @return {string}
3316
+ */
3317
+ proto.clickhouse.grpc.Result.prototype.getOutput_asB64 = function() {
3318
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3319
+ this.getOutput()));
3320
+ };
3321
+
3322
+
3323
+ /**
3324
+ * optional bytes output = 1;
3325
+ * Note that Uint8Array is not supported on all browsers.
3326
+ * @see http://caniuse.com/Uint8Array
3327
+ * This is a type-conversion wrapper around `getOutput()`
3328
+ * @return {!Uint8Array}
3329
+ */
3330
+ proto.clickhouse.grpc.Result.prototype.getOutput_asU8 = function() {
3331
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3332
+ this.getOutput()));
3333
+ };
3334
+
3335
+
3336
+ /**
3337
+ * @param {!(string|Uint8Array)} value
3338
+ * @return {!proto.clickhouse.grpc.Result} returns this
3339
+ */
3340
+ proto.clickhouse.grpc.Result.prototype.setOutput = function(value) {
3341
+ return jspb.Message.setProto3BytesField(this, 1, value);
3342
+ };
3343
+
3344
+
3345
+ /**
3346
+ * optional bytes totals = 2;
3347
+ * @return {!(string|Uint8Array)}
3348
+ */
3349
+ proto.clickhouse.grpc.Result.prototype.getTotals = function() {
3350
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * optional bytes totals = 2;
3356
+ * This is a type-conversion wrapper around `getTotals()`
3357
+ * @return {string}
3358
+ */
3359
+ proto.clickhouse.grpc.Result.prototype.getTotals_asB64 = function() {
3360
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3361
+ this.getTotals()));
3362
+ };
3363
+
3364
+
3365
+ /**
3366
+ * optional bytes totals = 2;
3367
+ * Note that Uint8Array is not supported on all browsers.
3368
+ * @see http://caniuse.com/Uint8Array
3369
+ * This is a type-conversion wrapper around `getTotals()`
3370
+ * @return {!Uint8Array}
3371
+ */
3372
+ proto.clickhouse.grpc.Result.prototype.getTotals_asU8 = function() {
3373
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3374
+ this.getTotals()));
3375
+ };
3376
+
3377
+
3378
+ /**
3379
+ * @param {!(string|Uint8Array)} value
3380
+ * @return {!proto.clickhouse.grpc.Result} returns this
3381
+ */
3382
+ proto.clickhouse.grpc.Result.prototype.setTotals = function(value) {
3383
+ return jspb.Message.setProto3BytesField(this, 2, value);
3384
+ };
3385
+
3386
+
3387
+ /**
3388
+ * optional bytes extremes = 3;
3389
+ * @return {!(string|Uint8Array)}
3390
+ */
3391
+ proto.clickhouse.grpc.Result.prototype.getExtremes = function() {
3392
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3393
+ };
3394
+
3395
+
3396
+ /**
3397
+ * optional bytes extremes = 3;
3398
+ * This is a type-conversion wrapper around `getExtremes()`
3399
+ * @return {string}
3400
+ */
3401
+ proto.clickhouse.grpc.Result.prototype.getExtremes_asB64 = function() {
3402
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3403
+ this.getExtremes()));
3404
+ };
3405
+
3406
+
3407
+ /**
3408
+ * optional bytes extremes = 3;
3409
+ * Note that Uint8Array is not supported on all browsers.
3410
+ * @see http://caniuse.com/Uint8Array
3411
+ * This is a type-conversion wrapper around `getExtremes()`
3412
+ * @return {!Uint8Array}
3413
+ */
3414
+ proto.clickhouse.grpc.Result.prototype.getExtremes_asU8 = function() {
3415
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3416
+ this.getExtremes()));
3417
+ };
3418
+
3419
+
3420
+ /**
3421
+ * @param {!(string|Uint8Array)} value
3422
+ * @return {!proto.clickhouse.grpc.Result} returns this
3423
+ */
3424
+ proto.clickhouse.grpc.Result.prototype.setExtremes = function(value) {
3425
+ return jspb.Message.setProto3BytesField(this, 3, value);
3426
+ };
3427
+
3428
+
3429
+ /**
3430
+ * repeated LogEntry logs = 4;
3431
+ * @return {!Array<!proto.clickhouse.grpc.LogEntry>}
3432
+ */
3433
+ proto.clickhouse.grpc.Result.prototype.getLogsList = function() {
3434
+ return /** @type{!Array<!proto.clickhouse.grpc.LogEntry>} */ (
3435
+ jspb.Message.getRepeatedWrapperField(this, proto.clickhouse.grpc.LogEntry, 4));
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * @param {!Array<!proto.clickhouse.grpc.LogEntry>} value
3441
+ * @return {!proto.clickhouse.grpc.Result} returns this
3442
+ */
3443
+ proto.clickhouse.grpc.Result.prototype.setLogsList = function(value) {
3444
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
3445
+ };
3446
+
3447
+
3448
+ /**
3449
+ * @param {!proto.clickhouse.grpc.LogEntry=} opt_value
3450
+ * @param {number=} opt_index
3451
+ * @return {!proto.clickhouse.grpc.LogEntry}
3452
+ */
3453
+ proto.clickhouse.grpc.Result.prototype.addLogs = function(opt_value, opt_index) {
3454
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clickhouse.grpc.LogEntry, opt_index);
3455
+ };
3456
+
3457
+
3458
+ /**
3459
+ * Clears the list making it empty but non-null.
3460
+ * @return {!proto.clickhouse.grpc.Result} returns this
3461
+ */
3462
+ proto.clickhouse.grpc.Result.prototype.clearLogsList = function() {
3463
+ return this.setLogsList([]);
3464
+ };
3465
+
3466
+
3467
+ /**
3468
+ * optional Progress progress = 5;
3469
+ * @return {?proto.clickhouse.grpc.Progress}
3470
+ */
3471
+ proto.clickhouse.grpc.Result.prototype.getProgress = function() {
3472
+ return /** @type{?proto.clickhouse.grpc.Progress} */ (
3473
+ jspb.Message.getWrapperField(this, proto.clickhouse.grpc.Progress, 5));
3474
+ };
3475
+
3476
+
3477
+ /**
3478
+ * @param {?proto.clickhouse.grpc.Progress|undefined} value
3479
+ * @return {!proto.clickhouse.grpc.Result} returns this
3480
+ */
3481
+ proto.clickhouse.grpc.Result.prototype.setProgress = function(value) {
3482
+ return jspb.Message.setWrapperField(this, 5, value);
3483
+ };
3484
+
3485
+
3486
+ /**
3487
+ * Clears the message field making it undefined.
3488
+ * @return {!proto.clickhouse.grpc.Result} returns this
3489
+ */
3490
+ proto.clickhouse.grpc.Result.prototype.clearProgress = function() {
3491
+ return this.setProgress(undefined);
3492
+ };
3493
+
3494
+
3495
+ /**
3496
+ * Returns whether this field is set.
3497
+ * @return {boolean}
3498
+ */
3499
+ proto.clickhouse.grpc.Result.prototype.hasProgress = function() {
3500
+ return jspb.Message.getField(this, 5) != null;
3501
+ };
3502
+
3503
+
3504
+ /**
3505
+ * optional Stats stats = 6;
3506
+ * @return {?proto.clickhouse.grpc.Stats}
3507
+ */
3508
+ proto.clickhouse.grpc.Result.prototype.getStats = function() {
3509
+ return /** @type{?proto.clickhouse.grpc.Stats} */ (
3510
+ jspb.Message.getWrapperField(this, proto.clickhouse.grpc.Stats, 6));
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * @param {?proto.clickhouse.grpc.Stats|undefined} value
3516
+ * @return {!proto.clickhouse.grpc.Result} returns this
3517
+ */
3518
+ proto.clickhouse.grpc.Result.prototype.setStats = function(value) {
3519
+ return jspb.Message.setWrapperField(this, 6, value);
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * Clears the message field making it undefined.
3525
+ * @return {!proto.clickhouse.grpc.Result} returns this
3526
+ */
3527
+ proto.clickhouse.grpc.Result.prototype.clearStats = function() {
3528
+ return this.setStats(undefined);
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * Returns whether this field is set.
3534
+ * @return {boolean}
3535
+ */
3536
+ proto.clickhouse.grpc.Result.prototype.hasStats = function() {
3537
+ return jspb.Message.getField(this, 6) != null;
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * optional Exception exception = 7;
3543
+ * @return {?proto.clickhouse.grpc.Exception}
3544
+ */
3545
+ proto.clickhouse.grpc.Result.prototype.getException = function() {
3546
+ return /** @type{?proto.clickhouse.grpc.Exception} */ (
3547
+ jspb.Message.getWrapperField(this, proto.clickhouse.grpc.Exception, 7));
3548
+ };
3549
+
3550
+
3551
+ /**
3552
+ * @param {?proto.clickhouse.grpc.Exception|undefined} value
3553
+ * @return {!proto.clickhouse.grpc.Result} returns this
3554
+ */
3555
+ proto.clickhouse.grpc.Result.prototype.setException = function(value) {
3556
+ return jspb.Message.setWrapperField(this, 7, value);
3557
+ };
3558
+
3559
+
3560
+ /**
3561
+ * Clears the message field making it undefined.
3562
+ * @return {!proto.clickhouse.grpc.Result} returns this
3563
+ */
3564
+ proto.clickhouse.grpc.Result.prototype.clearException = function() {
3565
+ return this.setException(undefined);
3566
+ };
3567
+
3568
+
3569
+ /**
3570
+ * Returns whether this field is set.
3571
+ * @return {boolean}
3572
+ */
3573
+ proto.clickhouse.grpc.Result.prototype.hasException = function() {
3574
+ return jspb.Message.getField(this, 7) != null;
3575
+ };
3576
+
3577
+
3578
+ /**
3579
+ * optional bool cancelled = 8;
3580
+ * @return {boolean}
3581
+ */
3582
+ proto.clickhouse.grpc.Result.prototype.getCancelled = function() {
3583
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * @param {boolean} value
3589
+ * @return {!proto.clickhouse.grpc.Result} returns this
3590
+ */
3591
+ proto.clickhouse.grpc.Result.prototype.setCancelled = function(value) {
3592
+ return jspb.Message.setProto3BooleanField(this, 8, value);
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * @enum {number}
3598
+ */
3599
+ proto.clickhouse.grpc.LogsLevel = {
3600
+ LOG_NONE: 0,
3601
+ LOG_FATAL: 1,
3602
+ LOG_CRITICAL: 2,
3603
+ LOG_ERROR: 3,
3604
+ LOG_WARNING: 4,
3605
+ LOG_NOTICE: 5,
3606
+ LOG_INFORMATION: 6,
3607
+ LOG_DEBUG: 7,
3608
+ LOG_TRACE: 8
3609
+ };
3610
+
3611
+ goog.object.extend(exports, proto.clickhouse.grpc);