#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Status {
#[prost(enumeration = "status::Code", tag = "1")]
pub code: i32,
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
}
pub mod status {
#[derive(prost_helpers::AnyPB)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Code {
Unspecified = 0,
Ok = 1,
UnknownWorker = 2,
}
impl Code {
pub fn as_str_name(&self) -> &'static str {
match self {
Code::Unspecified => "UNSPECIFIED",
Code::Ok => "OK",
Code::UnknownWorker => "UNKNOWN_WORKER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"OK" => Some(Self::Ok),
"UNKNOWN_WORKER" => Some(Self::UnknownWorker),
_ => None,
}
}
}
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostAddress {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub port: i32,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActorInfo {
#[prost(uint32, tag = "1")]
pub actor_id: u32,
#[prost(message, optional, tag = "2")]
pub host: ::core::option::Option<HostAddress>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ActorLocation {
#[prost(uint32, tag = "2")]
pub worker_node_id: u32,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkerNode {
#[prost(uint32, tag = "1")]
pub id: u32,
#[prost(enumeration = "WorkerType", tag = "2")]
pub r#type: i32,
#[prost(message, optional, tag = "3")]
pub host: ::core::option::Option<HostAddress>,
#[prost(enumeration = "worker_node::State", tag = "4")]
pub state: i32,
#[prost(message, optional, tag = "6")]
pub property: ::core::option::Option<worker_node::Property>,
#[prost(uint32, optional, tag = "7")]
pub transactional_id: ::core::option::Option<u32>,
#[prost(message, optional, tag = "8")]
pub resource: ::core::option::Option<worker_node::Resource>,
#[prost(uint64, optional, tag = "9")]
pub started_at: ::core::option::Option<u64>,
#[prost(uint32, tag = "10")]
pub parallelism: u32,
#[prost(string, tag = "11")]
pub node_label: ::prost::alloc::string::String,
}
pub mod worker_node {
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Property {
#[prost(bool, tag = "1")]
pub is_streaming: bool,
#[prost(bool, tag = "2")]
pub is_serving: bool,
#[prost(bool, tag = "3")]
pub is_unschedulable: bool,
#[prost(string, tag = "4")]
pub internal_rpc_host_addr: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Resource {
#[prost(string, tag = "1")]
pub rw_version: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub total_memory_bytes: u64,
#[prost(uint64, tag = "3")]
pub total_cpu_cores: u64,
}
#[derive(prost_helpers::AnyPB)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
Unspecified = 0,
Starting = 1,
Running = 2,
}
impl State {
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "UNSPECIFIED",
State::Starting => "STARTING",
State::Running => "RUNNING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"STARTING" => Some(Self::Starting),
"RUNNING" => Some(Self::Running),
_ => None,
}
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Eq)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Buffer {
#[prost(enumeration = "buffer::CompressionType", tag = "1")]
pub compression: i32,
#[prost(bytes = "vec", tag = "2")]
pub body: ::prost::alloc::vec::Vec<u8>,
}
pub mod buffer {
#[derive(prost_helpers::AnyPB)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CompressionType {
Unspecified = 0,
None = 1,
}
impl CompressionType {
pub fn as_str_name(&self) -> &'static str {
match self {
CompressionType::Unspecified => "UNSPECIFIED",
CompressionType::None => "NONE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkerSlotMapping {
#[prost(uint32, repeated, tag = "1")]
pub original_indices: ::prost::alloc::vec::Vec<u32>,
#[prost(uint64, repeated, tag = "2")]
pub data: ::prost::alloc::vec::Vec<u64>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BatchQueryCommittedEpoch {
#[prost(uint64, tag = "1")]
pub epoch: u64,
#[prost(uint64, tag = "2")]
pub hummock_version_id: u64,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BatchQueryEpoch {
#[prost(oneof = "batch_query_epoch::Epoch", tags = "1, 2, 3, 4")]
pub epoch: ::core::option::Option<batch_query_epoch::Epoch>,
}
pub mod batch_query_epoch {
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Epoch {
#[prost(message, tag = "1")]
Committed(super::BatchQueryCommittedEpoch),
#[prost(uint64, tag = "2")]
Current(u64),
#[prost(uint64, tag = "3")]
Backup(u64),
#[prost(uint64, tag = "4")]
TimeTravel(u64),
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OrderType {
#[prost(enumeration = "Direction", tag = "1")]
pub direction: i32,
#[prost(enumeration = "NullsAre", tag = "2")]
pub nulls_are: i32,
}
#[derive(prost_helpers::AnyPB)]
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ColumnOrder {
#[prost(uint32, tag = "1")]
pub column_index: u32,
#[prost(message, optional, tag = "2")]
pub order_type: ::core::option::Option<OrderType>,
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WorkerType {
Unspecified = 0,
Frontend = 1,
ComputeNode = 2,
RiseCtl = 3,
Compactor = 4,
Meta = 5,
}
impl WorkerType {
pub fn as_str_name(&self) -> &'static str {
match self {
WorkerType::Unspecified => "WORKER_TYPE_UNSPECIFIED",
WorkerType::Frontend => "WORKER_TYPE_FRONTEND",
WorkerType::ComputeNode => "WORKER_TYPE_COMPUTE_NODE",
WorkerType::RiseCtl => "WORKER_TYPE_RISE_CTL",
WorkerType::Compactor => "WORKER_TYPE_COMPACTOR",
WorkerType::Meta => "WORKER_TYPE_META",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"WORKER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"WORKER_TYPE_FRONTEND" => Some(Self::Frontend),
"WORKER_TYPE_COMPUTE_NODE" => Some(Self::ComputeNode),
"WORKER_TYPE_RISE_CTL" => Some(Self::RiseCtl),
"WORKER_TYPE_COMPACTOR" => Some(Self::Compactor),
"WORKER_TYPE_META" => Some(Self::Meta),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Direction {
Unspecified = 0,
Ascending = 1,
Descending = 2,
}
impl Direction {
pub fn as_str_name(&self) -> &'static str {
match self {
Direction::Unspecified => "DIRECTION_UNSPECIFIED",
Direction::Ascending => "DIRECTION_ASCENDING",
Direction::Descending => "DIRECTION_DESCENDING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
"DIRECTION_ASCENDING" => Some(Self::Ascending),
"DIRECTION_DESCENDING" => Some(Self::Descending),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NullsAre {
Unspecified = 0,
Largest = 1,
Smallest = 2,
}
impl NullsAre {
pub fn as_str_name(&self) -> &'static str {
match self {
NullsAre::Unspecified => "NULLS_ARE_UNSPECIFIED",
NullsAre::Largest => "NULLS_ARE_LARGEST",
NullsAre::Smallest => "NULLS_ARE_SMALLEST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NULLS_ARE_UNSPECIFIED" => Some(Self::Unspecified),
"NULLS_ARE_LARGEST" => Some(Self::Largest),
"NULLS_ARE_SMALLEST" => Some(Self::Smallest),
_ => None,
}
}
}