Skip to main content

vortex_proto/generated/
vortex.scalar.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Scalar {
4    #[prost(message, optional, tag = "1")]
5    pub dtype: ::core::option::Option<super::dtype::DType>,
6    #[prost(message, optional, boxed, tag = "2")]
7    pub value: ::core::option::Option<::prost::alloc::boxed::Box<ScalarValue>>,
8}
9#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct ScalarValue {
11    #[prost(
12        oneof = "scalar_value::Kind",
13        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12"
14    )]
15    pub kind: ::core::option::Option<scalar_value::Kind>,
16}
17/// Nested message and enum types in `ScalarValue`.
18pub mod scalar_value {
19    #[derive(Clone, PartialEq, ::prost::Oneof)]
20    pub enum Kind {
21        #[prost(enumeration = "::prost_types::NullValue", tag = "1")]
22        NullValue(i32),
23        #[prost(bool, tag = "2")]
24        BoolValue(bool),
25        #[prost(sint64, tag = "3")]
26        Int64Value(i64),
27        #[prost(uint64, tag = "4")]
28        Uint64Value(u64),
29        #[prost(float, tag = "5")]
30        F32Value(f32),
31        #[prost(double, tag = "6")]
32        F64Value(f64),
33        #[prost(string, tag = "7")]
34        StringValue(::prost::alloc::string::String),
35        #[prost(bytes, tag = "8")]
36        BytesValue(::prost::alloc::vec::Vec<u8>),
37        #[prost(message, tag = "9")]
38        ListValue(super::ListValue),
39        #[prost(uint64, tag = "10")]
40        F16Value(u64),
41        /// Variant scalars carry a row-specific nested scalar.
42        /// See RFC 0015: <https://github.com/vortex-data/rfcs/blob/develop/accepted/0015-variant-type.md>
43        #[prost(message, tag = "11")]
44        VariantValue(::prost::alloc::boxed::Box<super::Scalar>),
45        #[prost(message, tag = "12")]
46        UnionValue(::prost::alloc::boxed::Box<super::UnionValue>),
47    }
48}
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct ListValue {
51    #[prost(message, repeated, tag = "1")]
52    pub values: ::prost::alloc::vec::Vec<ScalarValue>,
53}
54/// A present union value. Outer-null unions use ScalarValue.null_value instead.
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct UnionValue {
57    #[prost(uint32, tag = "1")]
58    pub type_id: u32,
59    #[prost(message, optional, boxed, tag = "2")]
60    pub value: ::core::option::Option<::prost::alloc::boxed::Box<ScalarValue>>,
61}