aboutsummaryrefslogtreecommitdiff
path: root/contrib/native/client/src/include/drill/protobuf/Types.pb.h
blob: b1dec7bd620b489c214a88142084022a9d3d72c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Types.proto

#ifndef PROTOBUF_Types_2eproto__INCLUDED
#define PROTOBUF_Types_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)

namespace common {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_Types_2eproto();
void protobuf_AssignDesc_Types_2eproto();
void protobuf_ShutdownFile_Types_2eproto();

class MajorType;

enum MinorType {
  LATE = 0,
  MAP = 1,
  TINYINT = 3,
  SMALLINT = 4,
  INT = 5,
  BIGINT = 6,
  DECIMAL9 = 7,
  DECIMAL18 = 8,
  DECIMAL28SPARSE = 9,
  DECIMAL38SPARSE = 10,
  MONEY = 11,
  DATE = 12,
  TIME = 13,
  TIMETZ = 14,
  TIMESTAMPTZ = 15,
  TIMESTAMP = 16,
  INTERVAL = 17,
  FLOAT4 = 18,
  FLOAT8 = 19,
  BIT = 20,
  FIXEDCHAR = 21,
  FIXED16CHAR = 22,
  FIXEDBINARY = 23,
  VARCHAR = 24,
  VAR16CHAR = 25,
  VARBINARY = 26,
  UINT1 = 29,
  UINT2 = 30,
  UINT4 = 31,
  UINT8 = 32,
  DECIMAL28DENSE = 33,
  DECIMAL38DENSE = 34,
  DM_UNKNOWN = 37,
  INTERVALYEAR = 38,
  INTERVALDAY = 39,
  LIST = 40,
  GENERIC_OBJECT = 41,
  UNION = 42,
  VARDECIMAL = 43
};
bool MinorType_IsValid(int value);
const MinorType MinorType_MIN = LATE;
const MinorType MinorType_MAX = VARDECIMAL;
const int MinorType_ARRAYSIZE = MinorType_MAX + 1;

const ::google::protobuf::EnumDescriptor* MinorType_descriptor();
inline const ::std::string& MinorType_Name(MinorType value) {
  return ::google::protobuf::internal::NameOfEnum(
    MinorType_descriptor(), value);
}
inline bool MinorType_Parse(
    const ::std::string& name, MinorType* value) {
  return ::google::protobuf::internal::ParseNamedEnum<MinorType>(
    MinorType_descriptor(), name, value);
}
enum DataMode {
  DM_OPTIONAL = 0,
  DM_REQUIRED = 1,
  DM_REPEATED = 2
};
bool DataMode_IsValid(int value);
const DataMode DataMode_MIN = DM_OPTIONAL;
const DataMode DataMode_MAX = DM_REPEATED;
const int DataMode_ARRAYSIZE = DataMode_MAX + 1;

const ::google::protobuf::EnumDescriptor* DataMode_descriptor();
inline const ::std::string& DataMode_Name(DataMode value) {
  return ::google::protobuf::internal::NameOfEnum(
    DataMode_descriptor(), value);
}
inline bool DataMode_Parse(
    const ::std::string& name, DataMode* value) {
  return ::google::protobuf::internal::ParseNamedEnum<DataMode>(
    DataMode_descriptor(), name, value);
}
// ===================================================================

class MajorType : public ::google::protobuf::Message {
 public:
  MajorType();
  virtual ~MajorType();

  MajorType(const MajorType& from);

  inline MajorType& operator=(const MajorType& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const MajorType& default_instance();

  void Swap(MajorType* other);

  // implements Message ----------------------------------------------

  MajorType* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const MajorType& from);
  void MergeFrom(const MajorType& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:

  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional .common.MinorType minor_type = 1;
  inline bool has_minor_type() const;
  inline void clear_minor_type();
  static const int kMinorTypeFieldNumber = 1;
  inline ::common::MinorType minor_type() const;
  inline void set_minor_type(::common::MinorType value);

  // optional .common.DataMode mode = 2;
  inline bool has_mode() const;
  inline void clear_mode();
  static const int kModeFieldNumber = 2;
  inline ::common::DataMode mode() const;
  inline void set_mode(::common::DataMode value);

  // optional int32 width = 3;
  inline bool has_width() const;
  inline void clear_width();
  static const int kWidthFieldNumber = 3;
  inline ::google::protobuf::int32 width() const;
  inline void set_width(::google::protobuf::int32 value);

  // optional int32 precision = 4;
  inline bool has_precision() const;
  inline void clear_precision();
  static const int kPrecisionFieldNumber = 4;
  inline ::google::protobuf::int32 precision() const;
  inline void set_precision(::google::protobuf::int32 value);

  // optional int32 scale = 5;
  inline bool has_scale() const;
  inline void clear_scale();
  static const int kScaleFieldNumber = 5;
  inline ::google::protobuf::int32 scale() const;
  inline void set_scale(::google::protobuf::int32 value);

  // optional int32 timeZone = 6;
  inline bool has_timezone() const;
  inline void clear_timezone();
  static const int kTimeZoneFieldNumber = 6;
  inline ::google::protobuf::int32 timezone() const;
  inline void set_timezone(::google::protobuf::int32 value);

  // repeated .common.MinorType sub_type = 7;
  inline int sub_type_size() const;
  inline void clear_sub_type();
  static const int kSubTypeFieldNumber = 7;
  inline ::common::MinorType sub_type(int index) const;
  inline void set_sub_type(int index, ::common::MinorType value);
  inline void add_sub_type(::common::MinorType value);
  inline const ::google::protobuf::RepeatedField<int>& sub_type() const;
  inline ::google::protobuf::RepeatedField<int>* mutable_sub_type();

  // @@protoc_insertion_point(class_scope:common.MajorType)
 private:
  inline void set_has_minor_type();
  inline void clear_has_minor_type();
  inline void set_has_mode();
  inline void clear_has_mode();
  inline void set_has_width();
  inline void clear_has_width();
  inline void set_has_precision();
  inline void clear_has_precision();
  inline void set_has_scale();
  inline void clear_has_scale();
  inline void set_has_timezone();
  inline void clear_has_timezone();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  int minor_type_;
  int mode_;
  ::google::protobuf::int32 width_;
  ::google::protobuf::int32 precision_;
  ::google::protobuf::int32 scale_;
  ::google::protobuf::int32 timezone_;
  ::google::protobuf::RepeatedField<int> sub_type_;

  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];

  friend void  protobuf_AddDesc_Types_2eproto();
  friend void protobuf_AssignDesc_Types_2eproto();
  friend void protobuf_ShutdownFile_Types_2eproto();

  void InitAsDefaultInstance();
  static MajorType* default_instance_;
};
// ===================================================================


// ===================================================================

// MajorType

// optional .common.MinorType minor_type = 1;
inline bool MajorType::has_minor_type() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void MajorType::set_has_minor_type() {
  _has_bits_[0] |= 0x00000001u;
}
inline void MajorType::clear_has_minor_type() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void MajorType::clear_minor_type() {
  minor_type_ = 0;
  clear_has_minor_type();
}
inline ::common::MinorType MajorType::minor_type() const {
  return static_cast< ::common::MinorType >(minor_type_);
}
inline void MajorType::set_minor_type(::common::MinorType value) {
  assert(::common::MinorType_IsValid(value));
  set_has_minor_type();
  minor_type_ = value;
}

// optional .common.DataMode mode = 2;
inline bool MajorType::has_mode() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void MajorType::set_has_mode() {
  _has_bits_[0] |= 0x00000002u;
}
inline void MajorType::clear_has_mode() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void MajorType::clear_mode() {
  mode_ = 0;
  clear_has_mode();
}
inline ::common::DataMode MajorType::mode() const {
  return static_cast< ::common::DataMode >(mode_);
}
inline void MajorType::set_mode(::common::DataMode value) {
  assert(::common::DataMode_IsValid(value));
  set_has_mode();
  mode_ = value;
}

// optional int32 width = 3;
inline bool MajorType::has_width() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void MajorType::set_has_width() {
  _has_bits_[0] |= 0x00000004u;
}
inline void MajorType::clear_has_width() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void MajorType::clear_width() {
  width_ = 0;
  clear_has_width();
}
inline ::google::protobuf::int32 MajorType::width() const {
  return width_;
}
inline void MajorType::set_width(::google::protobuf::int32 value) {
  set_has_width();
  width_ = value;
}

// optional int32 precision = 4;
inline bool MajorType::has_precision() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void MajorType::set_has_precision() {
  _has_bits_[0] |= 0x00000008u;
}
inline void MajorType::clear_has_precision() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void MajorType::clear_precision() {
  precision_ = 0;
  clear_has_precision();
}
inline ::google::protobuf::int32 MajorType::precision() const {
  return precision_;
}
inline void MajorType::set_precision(::google::protobuf::int32 value) {
  set_has_precision();
  precision_ = value;
}

// optional int32 scale = 5;
inline bool MajorType::has_scale() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void MajorType::set_has_scale() {
  _has_bits_[0] |= 0x00000010u;
}
inline void MajorType::clear_has_scale() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void MajorType::clear_scale() {
  scale_ = 0;
  clear_has_scale();
}
inline ::google::protobuf::int32 MajorType::scale() const {
  return scale_;
}
inline void MajorType::set_scale(::google::protobuf::int32 value) {
  set_has_scale();
  scale_ = value;
}

// optional int32 timeZone = 6;
inline bool MajorType::has_timezone() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void MajorType::set_has_timezone() {
  _has_bits_[0] |= 0x00000020u;
}
inline void MajorType::clear_has_timezone() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void MajorType::clear_timezone() {
  timezone_ = 0;
  clear_has_timezone();
}
inline ::google::protobuf::int32 MajorType::timezone() const {
  return timezone_;
}
inline void MajorType::set_timezone(::google::protobuf::int32 value) {
  set_has_timezone();
  timezone_ = value;
}

// repeated .common.MinorType sub_type = 7;
inline int MajorType::sub_type_size() const {
  return sub_type_.size();
}
inline void MajorType::clear_sub_type() {
  sub_type_.Clear();
}
inline ::common::MinorType MajorType::sub_type(int index) const {
  return static_cast< ::common::MinorType >(sub_type_.Get(index));
}
inline void MajorType::set_sub_type(int index, ::common::MinorType value) {
  assert(::common::MinorType_IsValid(value));
  sub_type_.Set(index, value);
}
inline void MajorType::add_sub_type(::common::MinorType value) {
  assert(::common::MinorType_IsValid(value));
  sub_type_.Add(value);
}
inline const ::google::protobuf::RepeatedField<int>&
MajorType::sub_type() const {
  return sub_type_;
}
inline ::google::protobuf::RepeatedField<int>*
MajorType::mutable_sub_type() {
  return &sub_type_;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace common

#ifndef SWIG
namespace google {
namespace protobuf {

template <>
inline const EnumDescriptor* GetEnumDescriptor< ::common::MinorType>() {
  return ::common::MinorType_descriptor();
}
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::common::DataMode>() {
  return ::common::DataMode_descriptor();
}

}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_Types_2eproto__INCLUDED