// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Account {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub email: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub metadata: ::core::option::Option<::pbjson_types::Struct>,
    #[prost(string, repeated, tag = "5")]
    pub linked_account_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "101")]
    pub created_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "102")]
    pub deleted_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "103")]
    pub deleted_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "104")]
    pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "105")]
    pub updated_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(oneof = "account::Owner", tags = "106")]
    pub owner: ::core::option::Option<account::Owner>,
}
/// Nested message and enum types in `Account`.
pub mod account {
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Owner {
        #[prost(string, tag = "106")]
        OwnerAccountId(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AccessToken {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub expires_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(message, optional, tag = "4")]
    pub expires_in: ::core::option::Option<::pbjson_types::Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LinkedAccount {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "linked_account::Type", tag = "2")]
    pub r#type: i32,
    #[prost(enumeration = "linked_account::Provider", tag = "3")]
    pub provider: i32,
    #[prost(string, tag = "4")]
    pub provider_uid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "5")]
    pub metadata: ::core::option::Option<::pbjson_types::Struct>,
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "101")]
    pub created_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "102")]
    pub deleted_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "103")]
    pub deleted_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "104")]
    pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
    #[prost(string, optional, tag = "105")]
    pub updated_by_account_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(oneof = "linked_account::Owner", tags = "106")]
    pub owner: ::core::option::Option<linked_account::Owner>,
}
/// Nested message and enum types in `LinkedAccount`.
pub mod linked_account {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Provider {
        GitHub = 0,
        GitLab = 1,
        Stripe = 2,
        Google = 3,
    }
    impl Provider {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::GitHub => "GitHub",
                Self::GitLab => "GitLab",
                Self::Stripe => "Stripe",
                Self::Google => "Google",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "GitHub" => Some(Self::GitHub),
                "GitLab" => Some(Self::GitLab),
                "Stripe" => Some(Self::Stripe),
                "Google" => Some(Self::Google),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        IdentityProvider = 0,
        PaymentProvider = 1,
    }
    impl Type {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::IdentityProvider => "IdentityProvider",
                Self::PaymentProvider => "PaymentProvider",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "IdentityProvider" => Some(Self::IdentityProvider),
                "PaymentProvider" => Some(Self::PaymentProvider),
                _ => None,
            }
        }
    }
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Owner {
        #[prost(string, tag = "106")]
        OwnerAccountId(::prost::alloc::string::String),
    }
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypeSaladBooleanType {
    #[prost(bool, tag = "1")]
    pub col_1: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypeSaladCharacterTypes {
    #[prost(string, tag = "1")]
    pub col_1: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub col_2: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub col_3: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub col_4: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TypeSaladNumericFloatingPointTypes {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(float, tag = "2")]
    pub col_2: f32,
    #[prost(double, tag = "3")]
    pub col_3: f64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypeSaladNumericIntegerTypes {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub col_2: i32,
    #[prost(int64, tag = "3")]
    pub col_3: i64,
    #[prost(string, tag = "4")]
    pub col_4: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypeSaladUuidTypes {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
}
