#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigKey {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConfigValue {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingKey {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingValue {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdAllocKey {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IdAllocValue {
#[prost(uint64, tag = "1")]
pub next_id: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GidMappingKey {
#[prost(string, tag = "1")]
pub schema_name: ::prost::alloc::string::String,
#[prost(enumeration = "CatalogItemType", tag = "2")]
pub object_type: i32,
#[prost(string, tag = "3")]
pub object_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GidMappingValue {
#[prost(uint64, tag = "1")]
pub id: u64,
#[prost(string, tag = "2")]
pub fingerprint: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<ClusterId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterValue {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub owner_id: ::core::option::Option<RoleId>,
#[prost(message, repeated, tag = "4")]
pub privileges: ::prost::alloc::vec::Vec<MzAclItem>,
#[prost(message, optional, tag = "5")]
pub config: ::core::option::Option<ClusterConfig>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterIntrospectionSourceIndexKey {
#[prost(message, optional, tag = "1")]
pub cluster_id: ::core::option::Option<ClusterId>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterIntrospectionSourceIndexValue {
#[prost(uint64, tag = "1")]
pub index_id: u64,
#[prost(uint32, tag = "2")]
pub oid: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterReplicaKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<ReplicaId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterReplicaValue {
#[prost(message, optional, tag = "1")]
pub cluster_id: ::core::option::Option<ClusterId>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub config: ::core::option::Option<ReplicaConfig>,
#[prost(message, optional, tag = "4")]
pub owner_id: ::core::option::Option<RoleId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DatabaseKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<DatabaseId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatabaseValue {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub owner_id: ::core::option::Option<RoleId>,
#[prost(message, repeated, tag = "3")]
pub privileges: ::prost::alloc::vec::Vec<MzAclItem>,
#[prost(uint32, tag = "4")]
pub oid: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SchemaKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<SchemaId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaValue {
#[prost(message, optional, tag = "1")]
pub database_id: ::core::option::Option<DatabaseId>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub owner_id: ::core::option::Option<RoleId>,
#[prost(message, repeated, tag = "4")]
pub privileges: ::prost::alloc::vec::Vec<MzAclItem>,
#[prost(uint32, tag = "5")]
pub oid: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ItemKey {
#[prost(message, optional, tag = "1")]
pub gid: ::core::option::Option<GlobalId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ItemValue {
#[prost(message, optional, tag = "1")]
pub schema_id: ::core::option::Option<SchemaId>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub definition: ::core::option::Option<CatalogItem>,
#[prost(message, optional, tag = "4")]
pub owner_id: ::core::option::Option<RoleId>,
#[prost(message, repeated, tag = "5")]
pub privileges: ::prost::alloc::vec::Vec<MzAclItem>,
#[prost(uint32, tag = "6")]
pub oid: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoleKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<RoleId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoleValue {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub attributes: ::core::option::Option<RoleAttributes>,
#[prost(message, optional, tag = "3")]
pub membership: ::core::option::Option<RoleMembership>,
#[prost(message, optional, tag = "4")]
pub vars: ::core::option::Option<RoleVars>,
#[prost(uint32, tag = "5")]
pub oid: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerConfigurationKey {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerConfigurationValue {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogKey {
#[prost(oneof = "audit_log_key::Event", tags = "1")]
pub event: ::core::option::Option<audit_log_key::Event>,
}
pub mod audit_log_key {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Event {
#[prost(message, tag = "1")]
V1(super::AuditLogEventV1),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CommentKey {
#[prost(
oneof = "comment_key::Object",
tags = "1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 17, 12, 13, 14, 15, 16"
)]
pub object: ::core::option::Option<comment_key::Object>,
#[prost(oneof = "comment_key::SubComponent", tags = "3")]
pub sub_component: ::core::option::Option<comment_key::SubComponent>,
}
pub mod comment_key {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Object {
#[prost(message, tag = "1")]
Table(super::GlobalId),
#[prost(message, tag = "2")]
View(super::GlobalId),
#[prost(message, tag = "4")]
MaterializedView(super::GlobalId),
#[prost(message, tag = "5")]
Source(super::GlobalId),
#[prost(message, tag = "6")]
Sink(super::GlobalId),
#[prost(message, tag = "7")]
Index(super::GlobalId),
#[prost(message, tag = "8")]
Func(super::GlobalId),
#[prost(message, tag = "9")]
Connection(super::GlobalId),
#[prost(message, tag = "10")]
Type(super::GlobalId),
#[prost(message, tag = "11")]
Secret(super::GlobalId),
#[prost(message, tag = "17")]
ContinualTask(super::GlobalId),
#[prost(message, tag = "12")]
Role(super::RoleId),
#[prost(message, tag = "13")]
Database(super::DatabaseId),
#[prost(message, tag = "14")]
Schema(super::ResolvedSchema),
#[prost(message, tag = "15")]
Cluster(super::ClusterId),
#[prost(message, tag = "16")]
ClusterReplica(super::ClusterReplicaId),
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum SubComponent {
#[prost(uint64, tag = "3")]
ColumnPos(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommentValue {
#[prost(string, tag = "1")]
pub comment: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SourceReferencesKey {
#[prost(message, optional, tag = "1")]
pub source: ::core::option::Option<GlobalId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceReferencesValue {
#[prost(message, repeated, tag = "1")]
pub references: ::prost::alloc::vec::Vec<SourceReference>,
#[prost(message, optional, tag = "2")]
pub updated_at: ::core::option::Option<EpochMillis>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceReference {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StorageCollectionMetadataKey {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<GlobalId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageCollectionMetadataValue {
#[prost(string, tag = "1")]
pub shard: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnfinalizedShardKey {
#[prost(string, tag = "1")]
pub shard: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxnWalShardValue {
#[prost(string, tag = "1")]
pub shard: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Empty {}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringWrapper {
#[prost(string, tag = "1")]
pub inner: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Duration {
#[prost(uint64, tag = "1")]
pub secs: u64,
#[prost(uint32, tag = "2")]
pub nanos: u32,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EpochMillis {
#[prost(uint64, tag = "1")]
pub millis: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Timestamp {
#[prost(uint64, tag = "1")]
pub internal: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CatalogItem {
#[prost(oneof = "catalog_item::Value", tags = "1")]
pub value: ::core::option::Option<catalog_item::Value>,
}
pub mod catalog_item {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct V1 {
#[prost(string, tag = "1")]
pub create_sql: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
V1(V1),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GlobalId {
#[prost(oneof = "global_id::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<global_id::Value>,
}
pub mod global_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
#[prost(uint64, tag = "3")]
Transient(u64),
#[prost(message, tag = "4")]
Explain(super::Empty),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterId {
#[prost(oneof = "cluster_id::Value", tags = "1, 2")]
pub value: ::core::option::Option<cluster_id::Value>,
}
pub mod cluster_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DatabaseId {
#[prost(oneof = "database_id::Value", tags = "1, 2")]
pub value: ::core::option::Option<database_id::Value>,
}
pub mod database_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolvedDatabaseSpecifier {
#[prost(oneof = "resolved_database_specifier::Spec", tags = "1, 2")]
pub spec: ::core::option::Option<resolved_database_specifier::Spec>,
}
pub mod resolved_database_specifier {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Spec {
#[prost(message, tag = "1")]
Ambient(super::Empty),
#[prost(message, tag = "2")]
Id(super::DatabaseId),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SchemaId {
#[prost(oneof = "schema_id::Value", tags = "1, 2")]
pub value: ::core::option::Option<schema_id::Value>,
}
pub mod schema_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SchemaSpecifier {
#[prost(oneof = "schema_specifier::Spec", tags = "1, 2")]
pub spec: ::core::option::Option<schema_specifier::Spec>,
}
pub mod schema_specifier {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Spec {
#[prost(message, tag = "1")]
Temporary(super::Empty),
#[prost(message, tag = "2")]
Id(super::SchemaId),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolvedSchema {
#[prost(message, optional, tag = "1")]
pub database: ::core::option::Option<ResolvedDatabaseSpecifier>,
#[prost(message, optional, tag = "2")]
pub schema: ::core::option::Option<SchemaSpecifier>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReplicaId {
#[prost(oneof = "replica_id::Value", tags = "1, 2")]
pub value: ::core::option::Option<replica_id::Value>,
}
pub mod replica_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterReplicaId {
#[prost(message, optional, tag = "1")]
pub cluster_id: ::core::option::Option<ClusterId>,
#[prost(message, optional, tag = "2")]
pub replica_id: ::core::option::Option<ReplicaId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReplicaLogging {
#[prost(bool, tag = "1")]
pub log_logging: bool,
#[prost(message, optional, tag = "2")]
pub interval: ::core::option::Option<Duration>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OptimizerFeatureOverride {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterScheduleRefreshOptions {
#[prost(message, optional, tag = "1")]
pub rehydration_time_estimate: ::core::option::Option<Duration>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterSchedule {
#[prost(oneof = "cluster_schedule::Value", tags = "1, 2")]
pub value: ::core::option::Option<cluster_schedule::Value>,
}
pub mod cluster_schedule {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Manual(super::Empty),
#[prost(message, tag = "2")]
Refresh(super::ClusterScheduleRefreshOptions),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterConfig {
#[prost(string, optional, tag = "3")]
pub workload_class: ::core::option::Option<::prost::alloc::string::String>,
#[prost(oneof = "cluster_config::Variant", tags = "1, 2")]
pub variant: ::core::option::Option<cluster_config::Variant>,
}
pub mod cluster_config {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedCluster {
#[prost(string, tag = "1")]
pub size: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub replication_factor: u32,
#[prost(string, repeated, tag = "3")]
pub availability_zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub logging: ::core::option::Option<super::ReplicaLogging>,
#[prost(bool, tag = "6")]
pub disk: bool,
#[prost(message, repeated, tag = "7")]
pub optimizer_feature_overrides: ::prost::alloc::vec::Vec<
super::OptimizerFeatureOverride,
>,
#[prost(message, optional, tag = "8")]
pub schedule: ::core::option::Option<super::ClusterSchedule>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Variant {
#[prost(message, tag = "1")]
Unmanaged(super::Empty),
#[prost(message, tag = "2")]
Managed(ManagedCluster),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReplicaConfig {
#[prost(message, optional, tag = "3")]
pub logging: ::core::option::Option<ReplicaLogging>,
#[prost(oneof = "replica_config::Location", tags = "1, 2")]
pub location: ::core::option::Option<replica_config::Location>,
}
pub mod replica_config {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnmanagedLocation {
#[prost(string, repeated, tag = "1")]
pub storagectl_addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub storage_addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub computectl_addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "4")]
pub compute_addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(uint64, tag = "5")]
pub workers: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedLocation {
#[prost(string, tag = "1")]
pub size: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub availability_zone: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub disk: bool,
#[prost(bool, tag = "5")]
pub internal: bool,
#[prost(string, optional, tag = "6")]
pub billed_as: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "7")]
pub pending: bool,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Location {
#[prost(message, tag = "1")]
Unmanaged(UnmanagedLocation),
#[prost(message, tag = "2")]
Managed(ManagedLocation),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoleId {
#[prost(oneof = "role_id::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<role_id::Value>,
}
pub mod role_id {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(uint64, tag = "1")]
System(u64),
#[prost(uint64, tag = "2")]
User(u64),
#[prost(message, tag = "3")]
Public(super::Empty),
#[prost(uint64, tag = "4")]
Predefined(u64),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoleAttributes {
#[prost(bool, tag = "1")]
pub inherit: bool,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoleMembership {
#[prost(message, repeated, tag = "1")]
pub map: ::prost::alloc::vec::Vec<role_membership::Entry>,
}
pub mod role_membership {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Entry {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::RoleId>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::RoleId>,
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoleVars {
#[prost(message, repeated, tag = "1")]
pub entries: ::prost::alloc::vec::Vec<role_vars::Entry>,
}
pub mod role_vars {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SqlSet {
#[prost(string, repeated, tag = "1")]
pub entries: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entry {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(oneof = "entry::Val", tags = "2, 3")]
pub val: ::core::option::Option<entry::Val>,
}
pub mod entry {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Val {
#[prost(string, tag = "2")]
Flat(::prost::alloc::string::String),
#[prost(message, tag = "3")]
SqlSet(super::SqlSet),
}
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AclMode {
#[prost(uint64, tag = "1")]
pub bitflags: u64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MzAclItem {
#[prost(message, optional, tag = "1")]
pub grantee: ::core::option::Option<RoleId>,
#[prost(message, optional, tag = "2")]
pub grantor: ::core::option::Option<RoleId>,
#[prost(message, optional, tag = "3")]
pub acl_mode: ::core::option::Option<AclMode>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DefaultPrivilegesKey {
#[prost(message, optional, tag = "1")]
pub role_id: ::core::option::Option<RoleId>,
#[prost(message, optional, tag = "2")]
pub database_id: ::core::option::Option<DatabaseId>,
#[prost(message, optional, tag = "3")]
pub schema_id: ::core::option::Option<SchemaId>,
#[prost(enumeration = "ObjectType", tag = "4")]
pub object_type: i32,
#[prost(message, optional, tag = "5")]
pub grantee: ::core::option::Option<RoleId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DefaultPrivilegesValue {
#[prost(message, optional, tag = "1")]
pub privileges: ::core::option::Option<AclMode>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SystemPrivilegesKey {
#[prost(message, optional, tag = "1")]
pub grantee: ::core::option::Option<RoleId>,
#[prost(message, optional, tag = "2")]
pub grantor: ::core::option::Option<RoleId>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SystemPrivilegesValue {
#[prost(message, optional, tag = "1")]
pub acl_mode: ::core::option::Option<AclMode>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogEventV1 {
#[prost(uint64, tag = "1")]
pub id: u64,
#[prost(enumeration = "audit_log_event_v1::EventType", tag = "2")]
pub event_type: i32,
#[prost(enumeration = "audit_log_event_v1::ObjectType", tag = "3")]
pub object_type: i32,
#[prost(message, optional, tag = "4")]
pub user: ::core::option::Option<StringWrapper>,
#[prost(message, optional, tag = "5")]
pub occurred_at: ::core::option::Option<EpochMillis>,
#[prost(
oneof = "audit_log_event_v1::Details",
tags = "6, 33, 7, 34, 8, 9, 10, 25, 11, 12, 13, 14, 22, 23, 24, 15, 20, 21, 16, 17, 18, 19, 27, 26, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40"
)]
pub details: ::core::option::Option<audit_log_event_v1::Details>,
}
pub mod audit_log_event_v1 {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdFullNameV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FullNameV1 {
#[prost(string, tag = "1")]
pub database: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub schema: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub item: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdNameV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenameClusterV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub old_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub new_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenameClusterReplicaV1 {
#[prost(string, tag = "1")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub replica_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub old_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub new_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenameItemV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub old_name: ::core::option::Option<FullNameV1>,
#[prost(message, optional, tag = "3")]
pub new_name: ::core::option::Option<FullNameV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateClusterReplicaV1 {
#[prost(string, tag = "1")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub replica_id: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub replica_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub logical_size: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub disk: bool,
#[prost(string, optional, tag = "7")]
pub billed_as: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "8")]
pub internal: bool,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateClusterReplicaV2 {
#[prost(string, tag = "1")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub replica_id: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub replica_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub logical_size: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub disk: bool,
#[prost(string, optional, tag = "7")]
pub billed_as: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "8")]
pub internal: bool,
#[prost(message, optional, tag = "9")]
pub reason: ::core::option::Option<CreateOrDropClusterReplicaReasonV1>,
#[prost(message, optional, tag = "10")]
pub scheduling_policies: ::core::option::Option<
SchedulingDecisionsWithReasonsV1,
>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DropClusterReplicaV1 {
#[prost(string, tag = "1")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub replica_id: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub replica_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DropClusterReplicaV2 {
#[prost(string, tag = "1")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub replica_id: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub replica_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "5")]
pub reason: ::core::option::Option<CreateOrDropClusterReplicaReasonV1>,
#[prost(message, optional, tag = "6")]
pub scheduling_policies: ::core::option::Option<
SchedulingDecisionsWithReasonsV1,
>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CreateOrDropClusterReplicaReasonV1 {
#[prost(
oneof = "create_or_drop_cluster_replica_reason_v1::Reason",
tags = "1, 2, 3"
)]
pub reason: ::core::option::Option<
create_or_drop_cluster_replica_reason_v1::Reason,
>,
}
pub mod create_or_drop_cluster_replica_reason_v1 {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Reason {
#[prost(message, tag = "1")]
Manual(super::super::Empty),
#[prost(message, tag = "2")]
Schedule(super::super::Empty),
#[prost(message, tag = "3")]
System(super::super::Empty),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchedulingDecisionsWithReasonsV1 {
#[prost(message, optional, tag = "1")]
pub on_refresh: ::core::option::Option<RefreshDecisionWithReasonV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshDecisionWithReasonV1 {
#[prost(string, repeated, tag = "3")]
pub objects_needing_refresh: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
#[prost(string, tag = "4")]
pub rehydration_time_estimate: ::prost::alloc::string::String,
#[prost(oneof = "refresh_decision_with_reason_v1::Decision", tags = "1, 2")]
pub decision: ::core::option::Option<refresh_decision_with_reason_v1::Decision>,
}
pub mod refresh_decision_with_reason_v1 {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Decision {
#[prost(message, tag = "1")]
On(super::super::Empty),
#[prost(message, tag = "2")]
Off(super::super::Empty),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSourceSinkV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(message, optional, tag = "3")]
pub size: ::core::option::Option<super::StringWrapper>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSourceSinkV2 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(message, optional, tag = "3")]
pub size: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub external_type: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSourceSinkV3 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(string, tag = "3")]
pub external_type: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSourceSinkV4 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cluster_id: ::core::option::Option<super::StringWrapper>,
#[prost(message, optional, tag = "3")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(string, tag = "4")]
pub external_type: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateIndexV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub name: ::core::option::Option<FullNameV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMaterializedViewV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cluster_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub name: ::core::option::Option<FullNameV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterSourceSinkV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(message, optional, tag = "3")]
pub old_size: ::core::option::Option<super::StringWrapper>,
#[prost(message, optional, tag = "4")]
pub new_size: ::core::option::Option<super::StringWrapper>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterSetClusterV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
#[prost(message, optional, tag = "3")]
pub old_cluster: ::core::option::Option<super::StringWrapper>,
#[prost(message, optional, tag = "4")]
pub new_cluster: ::core::option::Option<super::StringWrapper>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GrantRoleV1 {
#[prost(string, tag = "1")]
pub role_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub grantor_id: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GrantRoleV2 {
#[prost(string, tag = "1")]
pub role_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub grantor_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub executed_by: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RevokeRoleV1 {
#[prost(string, tag = "1")]
pub role_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RevokeRoleV2 {
#[prost(string, tag = "1")]
pub role_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub grantor_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub executed_by: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePrivilegeV1 {
#[prost(string, tag = "1")]
pub object_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub grantee_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub grantor_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub privileges: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterDefaultPrivilegeV1 {
#[prost(string, tag = "1")]
pub role_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub database_id: ::core::option::Option<super::StringWrapper>,
#[prost(message, optional, tag = "3")]
pub schema_id: ::core::option::Option<super::StringWrapper>,
#[prost(string, tag = "4")]
pub grantee_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub privileges: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateOwnerV1 {
#[prost(string, tag = "1")]
pub object_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub old_owner_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub new_owner_id: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub database_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaV2 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub database_name: ::core::option::Option<super::StringWrapper>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenameSchemaV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub database_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub old_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub new_name: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateItemV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<FullNameV1>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterRetainHistoryV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub old_history: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub new_history: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ToNewIdV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub new_id: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FromPreviousIdV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub previous_id: ::prost::alloc::string::String,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetV1 {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RotateKeysV1 {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(::proptest_derive::Arbitrary)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EventType {
Unknown = 0,
Create = 1,
Drop = 2,
Alter = 3,
Grant = 4,
Revoke = 5,
Comment = 6,
}
impl EventType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unknown => "EVENT_TYPE_UNKNOWN",
Self::Create => "EVENT_TYPE_CREATE",
Self::Drop => "EVENT_TYPE_DROP",
Self::Alter => "EVENT_TYPE_ALTER",
Self::Grant => "EVENT_TYPE_GRANT",
Self::Revoke => "EVENT_TYPE_REVOKE",
Self::Comment => "EVENT_TYPE_COMMENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVENT_TYPE_UNKNOWN" => Some(Self::Unknown),
"EVENT_TYPE_CREATE" => Some(Self::Create),
"EVENT_TYPE_DROP" => Some(Self::Drop),
"EVENT_TYPE_ALTER" => Some(Self::Alter),
"EVENT_TYPE_GRANT" => Some(Self::Grant),
"EVENT_TYPE_REVOKE" => Some(Self::Revoke),
"EVENT_TYPE_COMMENT" => Some(Self::Comment),
_ => None,
}
}
}
#[derive(::proptest_derive::Arbitrary)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ObjectType {
Unknown = 0,
Cluster = 1,
ClusterReplica = 2,
Connection = 3,
Database = 4,
Func = 5,
Index = 6,
MaterializedView = 7,
Role = 8,
Secret = 9,
Schema = 10,
Sink = 11,
Source = 12,
Table = 13,
Type = 14,
View = 15,
System = 16,
ContinualTask = 17,
}
impl ObjectType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unknown => "OBJECT_TYPE_UNKNOWN",
Self::Cluster => "OBJECT_TYPE_CLUSTER",
Self::ClusterReplica => "OBJECT_TYPE_CLUSTER_REPLICA",
Self::Connection => "OBJECT_TYPE_CONNECTION",
Self::Database => "OBJECT_TYPE_DATABASE",
Self::Func => "OBJECT_TYPE_FUNC",
Self::Index => "OBJECT_TYPE_INDEX",
Self::MaterializedView => "OBJECT_TYPE_MATERIALIZED_VIEW",
Self::Role => "OBJECT_TYPE_ROLE",
Self::Secret => "OBJECT_TYPE_SECRET",
Self::Schema => "OBJECT_TYPE_SCHEMA",
Self::Sink => "OBJECT_TYPE_SINK",
Self::Source => "OBJECT_TYPE_SOURCE",
Self::Table => "OBJECT_TYPE_TABLE",
Self::Type => "OBJECT_TYPE_TYPE",
Self::View => "OBJECT_TYPE_VIEW",
Self::System => "OBJECT_TYPE_SYSTEM",
Self::ContinualTask => "OBJECT_TYPE_CONTINUAL_TASK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OBJECT_TYPE_UNKNOWN" => Some(Self::Unknown),
"OBJECT_TYPE_CLUSTER" => Some(Self::Cluster),
"OBJECT_TYPE_CLUSTER_REPLICA" => Some(Self::ClusterReplica),
"OBJECT_TYPE_CONNECTION" => Some(Self::Connection),
"OBJECT_TYPE_DATABASE" => Some(Self::Database),
"OBJECT_TYPE_FUNC" => Some(Self::Func),
"OBJECT_TYPE_INDEX" => Some(Self::Index),
"OBJECT_TYPE_MATERIALIZED_VIEW" => Some(Self::MaterializedView),
"OBJECT_TYPE_ROLE" => Some(Self::Role),
"OBJECT_TYPE_SECRET" => Some(Self::Secret),
"OBJECT_TYPE_SCHEMA" => Some(Self::Schema),
"OBJECT_TYPE_SINK" => Some(Self::Sink),
"OBJECT_TYPE_SOURCE" => Some(Self::Source),
"OBJECT_TYPE_TABLE" => Some(Self::Table),
"OBJECT_TYPE_TYPE" => Some(Self::Type),
"OBJECT_TYPE_VIEW" => Some(Self::View),
"OBJECT_TYPE_SYSTEM" => Some(Self::System),
"OBJECT_TYPE_CONTINUAL_TASK" => Some(Self::ContinualTask),
_ => None,
}
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Details {
#[prost(message, tag = "6")]
CreateClusterReplicaV1(CreateClusterReplicaV1),
#[prost(message, tag = "33")]
CreateClusterReplicaV2(CreateClusterReplicaV2),
#[prost(message, tag = "7")]
DropClusterReplicaV1(DropClusterReplicaV1),
#[prost(message, tag = "34")]
DropClusterReplicaV2(DropClusterReplicaV2),
#[prost(message, tag = "8")]
CreateSourceSinkV1(CreateSourceSinkV1),
#[prost(message, tag = "9")]
CreateSourceSinkV2(CreateSourceSinkV2),
#[prost(message, tag = "10")]
AlterSourceSinkV1(AlterSourceSinkV1),
#[prost(message, tag = "25")]
AlterSetClusterV1(AlterSetClusterV1),
#[prost(message, tag = "11")]
GrantRoleV1(GrantRoleV1),
#[prost(message, tag = "12")]
GrantRoleV2(GrantRoleV2),
#[prost(message, tag = "13")]
RevokeRoleV1(RevokeRoleV1),
#[prost(message, tag = "14")]
RevokeRoleV2(RevokeRoleV2),
#[prost(message, tag = "22")]
UpdatePrivilegeV1(UpdatePrivilegeV1),
#[prost(message, tag = "23")]
AlterDefaultPrivilegeV1(AlterDefaultPrivilegeV1),
#[prost(message, tag = "24")]
UpdateOwnerV1(UpdateOwnerV1),
#[prost(message, tag = "15")]
IdFullNameV1(IdFullNameV1),
#[prost(message, tag = "20")]
RenameClusterV1(RenameClusterV1),
#[prost(message, tag = "21")]
RenameClusterReplicaV1(RenameClusterReplicaV1),
#[prost(message, tag = "16")]
RenameItemV1(RenameItemV1),
#[prost(message, tag = "17")]
IdNameV1(IdNameV1),
#[prost(message, tag = "18")]
SchemaV1(SchemaV1),
#[prost(message, tag = "19")]
SchemaV2(SchemaV2),
#[prost(message, tag = "27")]
RenameSchemaV1(RenameSchemaV1),
#[prost(message, tag = "26")]
UpdateItemV1(UpdateItemV1),
#[prost(message, tag = "29")]
CreateSourceSinkV3(CreateSourceSinkV3),
#[prost(message, tag = "30")]
AlterRetainHistoryV1(AlterRetainHistoryV1),
#[prost(message, tag = "31")]
ToNewIdV1(ToNewIdV1),
#[prost(message, tag = "32")]
FromPreviousIdV1(FromPreviousIdV1),
#[prost(message, tag = "35")]
SetV1(SetV1),
#[prost(message, tag = "36")]
ResetAllV1(super::Empty),
#[prost(message, tag = "37")]
RotateKeysV1(RotateKeysV1),
#[prost(message, tag = "38")]
CreateSourceSinkV4(CreateSourceSinkV4),
#[prost(message, tag = "39")]
CreateIndexV1(CreateIndexV1),
#[prost(message, tag = "40")]
CreateMaterializedViewV1(CreateMaterializedViewV1),
}
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StateUpdateKind {
#[prost(
oneof = "state_update_kind::Kind",
tags = "1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 16, 17, 18, 20, 21, 23, 24, 25"
)]
pub kind: ::core::option::Option<state_update_kind::Kind>,
}
pub mod state_update_kind {
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLog {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::AuditLogKey>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cluster {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ClusterKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ClusterValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterReplica {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ClusterReplicaKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ClusterReplicaValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Comment {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::CommentKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::CommentValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Config {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ConfigKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ConfigValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Database {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::DatabaseKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::DatabaseValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DefaultPrivileges {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::DefaultPrivilegesKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::DefaultPrivilegesValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FenceToken {
#[prost(uint64, tag = "1")]
pub deploy_generation: u64,
#[prost(int64, tag = "2")]
pub epoch: i64,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdAlloc {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::IdAllocKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::IdAllocValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterIntrospectionSourceIndex {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ClusterIntrospectionSourceIndexKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ClusterIntrospectionSourceIndexValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Item {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ItemKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ItemValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Role {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::RoleKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::RoleValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Schema {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::SchemaKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::SchemaValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Setting {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::SettingKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::SettingValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerConfiguration {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::ServerConfigurationKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::ServerConfigurationValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceReferences {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::SourceReferencesKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::SourceReferencesValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GidMapping {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::GidMappingKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::GidMappingValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SystemPrivileges {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::SystemPrivilegesKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::SystemPrivilegesValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageCollectionMetadata {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::StorageCollectionMetadataKey>,
#[prost(message, optional, tag = "2")]
pub value: ::core::option::Option<super::StorageCollectionMetadataValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnfinalizedShard {
#[prost(message, optional, tag = "1")]
pub key: ::core::option::Option<super::UnfinalizedShardKey>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxnWalShard {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<super::TxnWalShardValue>,
}
#[derive(Eq, PartialOrd, Ord, ::serde::Serialize, ::serde::Deserialize)]
#[serde(tag = "kind")]
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(message, tag = "1")]
AuditLog(AuditLog),
#[prost(message, tag = "2")]
Cluster(Cluster),
#[prost(message, tag = "3")]
ClusterReplica(ClusterReplica),
#[prost(message, tag = "4")]
Comment(Comment),
#[prost(message, tag = "5")]
Config(Config),
#[prost(message, tag = "6")]
Database(Database),
#[prost(message, tag = "7")]
DefaultPrivileges(DefaultPrivileges),
#[prost(message, tag = "9")]
IdAlloc(IdAlloc),
#[prost(message, tag = "10")]
ClusterIntrospectionSourceIndex(ClusterIntrospectionSourceIndex),
#[prost(message, tag = "11")]
Item(Item),
#[prost(message, tag = "12")]
Role(Role),
#[prost(message, tag = "13")]
Schema(Schema),
#[prost(message, tag = "14")]
Setting(Setting),
#[prost(message, tag = "16")]
ServerConfiguration(ServerConfiguration),
#[prost(message, tag = "17")]
GidMapping(GidMapping),
#[prost(message, tag = "18")]
SystemPrivileges(SystemPrivileges),
#[prost(message, tag = "20")]
StorageCollectionMetadata(StorageCollectionMetadata),
#[prost(message, tag = "21")]
UnfinalizedShard(UnfinalizedShard),
#[prost(message, tag = "23")]
TxnWalShard(TxnWalShard),
#[prost(message, tag = "24")]
SourceReferences(SourceReferences),
#[prost(message, tag = "25")]
FenceToken(FenceToken),
}
}
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CatalogItemType {
Unknown = 0,
Table = 1,
Source = 2,
Sink = 3,
View = 4,
MaterializedView = 5,
Index = 6,
Type = 7,
Func = 8,
Secret = 9,
Connection = 10,
ContinualTask = 11,
}
impl CatalogItemType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unknown => "CATALOG_ITEM_TYPE_UNKNOWN",
Self::Table => "CATALOG_ITEM_TYPE_TABLE",
Self::Source => "CATALOG_ITEM_TYPE_SOURCE",
Self::Sink => "CATALOG_ITEM_TYPE_SINK",
Self::View => "CATALOG_ITEM_TYPE_VIEW",
Self::MaterializedView => "CATALOG_ITEM_TYPE_MATERIALIZED_VIEW",
Self::Index => "CATALOG_ITEM_TYPE_INDEX",
Self::Type => "CATALOG_ITEM_TYPE_TYPE",
Self::Func => "CATALOG_ITEM_TYPE_FUNC",
Self::Secret => "CATALOG_ITEM_TYPE_SECRET",
Self::Connection => "CATALOG_ITEM_TYPE_CONNECTION",
Self::ContinualTask => "CATALOG_ITEM_TYPE_CONTINUAL_TASK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CATALOG_ITEM_TYPE_UNKNOWN" => Some(Self::Unknown),
"CATALOG_ITEM_TYPE_TABLE" => Some(Self::Table),
"CATALOG_ITEM_TYPE_SOURCE" => Some(Self::Source),
"CATALOG_ITEM_TYPE_SINK" => Some(Self::Sink),
"CATALOG_ITEM_TYPE_VIEW" => Some(Self::View),
"CATALOG_ITEM_TYPE_MATERIALIZED_VIEW" => Some(Self::MaterializedView),
"CATALOG_ITEM_TYPE_INDEX" => Some(Self::Index),
"CATALOG_ITEM_TYPE_TYPE" => Some(Self::Type),
"CATALOG_ITEM_TYPE_FUNC" => Some(Self::Func),
"CATALOG_ITEM_TYPE_SECRET" => Some(Self::Secret),
"CATALOG_ITEM_TYPE_CONNECTION" => Some(Self::Connection),
"CATALOG_ITEM_TYPE_CONTINUAL_TASK" => Some(Self::ContinualTask),
_ => None,
}
}
}
#[derive(::proptest_derive::Arbitrary)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ObjectType {
Unknown = 0,
Table = 1,
View = 2,
MaterializedView = 3,
Source = 4,
Sink = 5,
Index = 6,
Type = 7,
Role = 8,
Cluster = 9,
ClusterReplica = 10,
Secret = 11,
Connection = 12,
Database = 13,
Schema = 14,
Func = 15,
ContinualTask = 16,
}
impl ObjectType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unknown => "OBJECT_TYPE_UNKNOWN",
Self::Table => "OBJECT_TYPE_TABLE",
Self::View => "OBJECT_TYPE_VIEW",
Self::MaterializedView => "OBJECT_TYPE_MATERIALIZED_VIEW",
Self::Source => "OBJECT_TYPE_SOURCE",
Self::Sink => "OBJECT_TYPE_SINK",
Self::Index => "OBJECT_TYPE_INDEX",
Self::Type => "OBJECT_TYPE_TYPE",
Self::Role => "OBJECT_TYPE_ROLE",
Self::Cluster => "OBJECT_TYPE_CLUSTER",
Self::ClusterReplica => "OBJECT_TYPE_CLUSTER_REPLICA",
Self::Secret => "OBJECT_TYPE_SECRET",
Self::Connection => "OBJECT_TYPE_CONNECTION",
Self::Database => "OBJECT_TYPE_DATABASE",
Self::Schema => "OBJECT_TYPE_SCHEMA",
Self::Func => "OBJECT_TYPE_FUNC",
Self::ContinualTask => "OBJECT_TYPE_CONTINUAL_TASK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OBJECT_TYPE_UNKNOWN" => Some(Self::Unknown),
"OBJECT_TYPE_TABLE" => Some(Self::Table),
"OBJECT_TYPE_VIEW" => Some(Self::View),
"OBJECT_TYPE_MATERIALIZED_VIEW" => Some(Self::MaterializedView),
"OBJECT_TYPE_SOURCE" => Some(Self::Source),
"OBJECT_TYPE_SINK" => Some(Self::Sink),
"OBJECT_TYPE_INDEX" => Some(Self::Index),
"OBJECT_TYPE_TYPE" => Some(Self::Type),
"OBJECT_TYPE_ROLE" => Some(Self::Role),
"OBJECT_TYPE_CLUSTER" => Some(Self::Cluster),
"OBJECT_TYPE_CLUSTER_REPLICA" => Some(Self::ClusterReplica),
"OBJECT_TYPE_SECRET" => Some(Self::Secret),
"OBJECT_TYPE_CONNECTION" => Some(Self::Connection),
"OBJECT_TYPE_DATABASE" => Some(Self::Database),
"OBJECT_TYPE_SCHEMA" => Some(Self::Schema),
"OBJECT_TYPE_FUNC" => Some(Self::Func),
"OBJECT_TYPE_CONTINUAL_TASK" => Some(Self::ContinualTask),
_ => None,
}
}
}