Skip to main content

vortex_array/proto/generated/
vortex.scalar.rs

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