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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRow {
#[prost(message, repeated, tag = "1")]
pub datums: ::prost::alloc::vec::Vec<ProtoDatum>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDatum {
#[prost(
oneof = "proto_datum::DatumType",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31"
)]
pub datum_type: ::core::option::Option<proto_datum::DatumType>,
}
pub mod proto_datum {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DatumType {
#[prost(enumeration = "super::ProtoDatumOther", tag = "1")]
Other(i32),
#[prost(int32, tag = "2")]
Int16(i32),
#[prost(int32, tag = "3")]
Int32(i32),
#[prost(int64, tag = "4")]
Int64(i64),
#[prost(float, tag = "5")]
Float32(f32),
#[prost(double, tag = "6")]
Float64(f64),
#[prost(bytes, tag = "7")]
Bytes(::prost::alloc::vec::Vec<u8>),
#[prost(string, tag = "8")]
String(::prost::alloc::string::String),
#[prost(message, tag = "16")]
Date(super::super::adt::date::ProtoDate),
#[prost(message, tag = "17")]
Time(super::super::chrono::ProtoNaiveTime),
#[prost(message, tag = "18")]
Timestamp(super::super::chrono::ProtoNaiveDateTime),
#[prost(message, tag = "19")]
TimestampTz(super::super::chrono::ProtoNaiveDateTime),
#[prost(message, tag = "20")]
Interval(super::super::adt::interval::ProtoInterval),
#[prost(message, tag = "21")]
Array(super::ProtoArray),
#[prost(message, tag = "22")]
List(super::ProtoRow),
#[prost(message, tag = "23")]
Dict(super::ProtoDict),
#[prost(message, tag = "24")]
Numeric(super::ProtoNumeric),
#[prost(bytes, tag = "25")]
Uuid(::prost::alloc::vec::Vec<u8>),
#[prost(uint32, tag = "26")]
Uint32(u32),
#[prost(uint32, tag = "27")]
Uint8(u32),
#[prost(uint32, tag = "28")]
Uint16(u32),
#[prost(uint64, tag = "29")]
Uint64(u64),
#[prost(uint64, tag = "30")]
MzTimestamp(u64),
#[prost(message, tag = "31")]
Range(::prost::alloc::boxed::Box<super::ProtoRange>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoArray {
#[prost(message, optional, tag = "1")]
pub elements: ::core::option::Option<ProtoRow>,
#[prost(message, repeated, tag = "2")]
pub dims: ::prost::alloc::vec::Vec<ProtoArrayDimension>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoArrayDimension {
#[prost(uint64, tag = "1")]
pub lower_bound: u64,
#[prost(uint64, tag = "2")]
pub length: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDict {
#[prost(message, repeated, tag = "1")]
pub elements: ::prost::alloc::vec::Vec<ProtoDictElement>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDictElement {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub val: ::core::option::Option<ProtoDatum>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoNumeric {
#[prost(bytes = "vec", tag = "1")]
pub bcd: ::prost::alloc::vec::Vec<u8>,
#[prost(int32, tag = "2")]
pub scale: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRangeInner {
#[prost(bool, tag = "1")]
pub lower_inclusive: bool,
#[prost(message, optional, boxed, tag = "2")]
pub lower: ::core::option::Option<::prost::alloc::boxed::Box<ProtoDatum>>,
#[prost(bool, tag = "3")]
pub upper_inclusive: bool,
#[prost(message, optional, boxed, tag = "4")]
pub upper: ::core::option::Option<::prost::alloc::boxed::Box<ProtoDatum>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRange {
#[prost(message, optional, boxed, tag = "1")]
pub inner: ::core::option::Option<::prost::alloc::boxed::Box<ProtoRangeInner>>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProtoDatumOther {
Unknown = 0,
Null = 1,
False = 2,
True = 3,
JsonNull = 4,
Dummy = 5,
NumericPosInf = 6,
NumericNegInf = 7,
NumericNaN = 8,
}
impl ProtoDatumOther {
pub fn as_str_name(&self) -> &'static str {
match self {
ProtoDatumOther::Unknown => "UNKNOWN",
ProtoDatumOther::Null => "NULL",
ProtoDatumOther::False => "FALSE",
ProtoDatumOther::True => "TRUE",
ProtoDatumOther::JsonNull => "JSON_NULL",
ProtoDatumOther::Dummy => "DUMMY",
ProtoDatumOther::NumericPosInf => "NUMERIC_POS_INF",
ProtoDatumOther::NumericNegInf => "NUMERIC_NEG_INF",
ProtoDatumOther::NumericNaN => "NUMERIC_NA_N",
}
}
}