#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlService {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub insecure: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlSchema {
#[prost(enumeration = "GraphqlType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub request: ::core::option::Option<GraphqlRequest>,
#[prost(message, optional, tag = "4")]
pub response: ::core::option::Option<GraphqlResponse>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub plucks: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlResponse {
#[prost(bool, tag = "1")]
pub required: bool,
#[prost(string, tag = "2")]
pub pluck: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlField {
#[prost(bool, tag = "1")]
pub required: bool,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub default: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub omit: bool,
#[prost(string, tag = "5")]
pub resolver: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub external: bool,
#[prost(string, tag = "7")]
pub requires: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub provides: ::prost::alloc::string::String,
#[prost(bool, tag = "9")]
pub shareable: bool,
#[prost(string, tag = "10")]
pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlEntity {
#[prost(string, repeated, tag = "1")]
pub keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "2")]
pub extend: bool,
#[prost(bool, tag = "3")]
pub resolvable: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GraphqlLiveQuery {
#[prost(bool, tag = "1")]
pub enabled: bool,
#[prost(uint32, tag = "2")]
pub throttle_ms: u32,
#[prost(string, repeated, tag = "3")]
pub triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(uint32, tag = "4")]
pub max_connections: u32,
#[prost(uint32, tag = "5")]
pub ttl_seconds: u32,
#[prost(enumeration = "LiveQueryStrategy", tag = "6")]
pub strategy: i32,
#[prost(uint32, tag = "7")]
pub poll_interval_ms: u32,
#[prost(string, repeated, tag = "8")]
pub depends_on: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum GraphqlType {
Query = 0,
Mutation = 1,
Resolver = 2,
Subscription = 3,
}
impl GraphqlType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Query => "QUERY",
Self::Mutation => "MUTATION",
Self::Resolver => "RESOLVER",
Self::Subscription => "SUBSCRIPTION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"QUERY" => Some(Self::Query),
"MUTATION" => Some(Self::Mutation),
"RESOLVER" => Some(Self::Resolver),
"SUBSCRIPTION" => Some(Self::Subscription),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum LiveQueryStrategy {
Invalidation = 0,
Polling = 1,
HashDiff = 2,
}
impl LiveQueryStrategy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Invalidation => "INVALIDATION",
Self::Polling => "POLLING",
Self::HashDiff => "HASH_DIFF",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INVALIDATION" => Some(Self::Invalidation),
"POLLING" => Some(Self::Polling),
"HASH_DIFF" => Some(Self::HashDiff),
_ => None,
}
}
}