#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct History {
#[prost(string, tag = "1")]
pub store: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub epoch: ::prost::alloc::string::String,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Position {
#[prost(message, optional, tag = "1")]
pub history: ::core::option::Option<History>,
#[prost(uint64, tag = "2")]
pub sequence: u64,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ResourceRevision {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub revision: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadCut {
#[prost(message, repeated, tag = "1")]
pub positions: ::prost::alloc::vec::Vec<Position>,
#[prost(message, repeated, tag = "2")]
pub revisions: ::prost::alloc::vec::Vec<ResourceRevision>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct InstanceState {
#[prost(string, tag = "1")]
pub phase: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub outcome: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub cancellation_requested: bool,
#[prost(uint32, tag = "4")]
pub attempt: u32,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Callers {
Unspecified = 0,
Clients = 1,
Plugins = 2,
All = 3,
}
impl Callers {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CALLERS_UNSPECIFIED",
Self::Clients => "CLIENTS",
Self::Plugins => "PLUGINS",
Self::All => "ALL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CALLERS_UNSPECIFIED" => Some(Self::Unspecified),
"CLIENTS" => Some(Self::Clients),
"PLUGINS" => Some(Self::Plugins),
"ALL" => Some(Self::All),
_ => None,
}
}
}
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OperationPolicy {
#[prost(message, optional, tag = "1")]
pub timeout: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "2")]
pub attempt_timeout: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "3")]
pub cancellation_timeout: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "4")]
pub retries: ::core::option::Option<RetryPolicy>,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RetryPolicy {
#[prost(uint64, tag = "1")]
pub total_attempts: u64,
#[prost(message, optional, tag = "2")]
pub initial: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "3")]
pub maximum: ::core::option::Option<::prost_types::Duration>,
#[prost(bool, tag = "4")]
pub deterministic_jitter: bool,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OperationContract {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub request: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub response: ::prost::alloc::string::String,
#[prost(enumeration = "Visibility", tag = "4")]
pub visibility: i32,
#[prost(message, optional, tag = "5")]
pub policy: ::core::option::Option<OperationPolicy>,
#[prost(bytes = "vec", tag = "6")]
pub fingerprint: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "7")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag = "8")]
pub replay_safe: bool,
#[prost(string, tag = "9")]
pub lane: ::prost::alloc::string::String,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Requirement {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub fingerprint: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Protobuf {
#[prost(bytes = "vec", tag = "1")]
pub descriptors: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "2")]
pub request: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub response: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub input: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub output: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Grpc {
#[prost(string, tag = "1")]
pub package: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub service: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub method: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub managed: bool,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Grant {
#[prost(string, tag = "1")]
pub operation: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub scope: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DiscoveredContract {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "Visibility", tag = "3")]
pub visibility: i32,
#[prost(message, optional, tag = "4")]
pub policy: ::core::option::Option<OperationPolicy>,
#[prost(bool, tag = "5")]
pub replay_safe: bool,
#[prost(bytes = "vec", tag = "6")]
pub fingerprint: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "7")]
pub protobuf: ::core::option::Option<Protobuf>,
#[prost(message, optional, tag = "8")]
pub grpc: ::core::option::Option<Grpc>,
#[prost(enumeration = "Callers", tag = "9")]
pub callers: i32,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DiscoveredOperation {
#[prost(string, tag = "1")]
pub owner: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub generation: u64,
#[prost(message, optional, tag = "3")]
pub contract: ::core::option::Option<DiscoveredContract>,
#[prost(message, repeated, tag = "4")]
pub grants: ::prost::alloc::vec::Vec<Grant>,
#[prost(bool, tag = "5")]
pub conditional_access: bool,
#[prost(bool, tag = "6")]
pub grpc_available: bool,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Visibility {
Unspecified = 0,
Private = 1,
Public = 2,
Protected = 3,
}
impl Visibility {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "VISIBILITY_UNSPECIFIED",
Self::Private => "VISIBILITY_PRIVATE",
Self::Public => "VISIBILITY_PUBLIC",
Self::Protected => "VISIBILITY_PROTECTED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VISIBILITY_UNSPECIFIED" => Some(Self::Unspecified),
"VISIBILITY_PRIVATE" => Some(Self::Private),
"VISIBILITY_PUBLIC" => Some(Self::Public),
"VISIBILITY_PROTECTED" => Some(Self::Protected),
_ => None,
}
}
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Receipt {
#[prost(string, tag = "1")]
pub request_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub accepted_at: ::core::option::Option<Position>,
#[prost(message, optional, tag = "3")]
pub durable_at: ::core::option::Option<Position>,
#[prost(bool, tag = "4")]
pub completed: bool,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingsDeclarations {
#[prost(message, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<SettingDeclaration>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingDeclaration {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub default: ::core::option::Option<SettingValue>,
#[prost(message, optional, tag = "5")]
pub minimum: ::core::option::Option<SettingValue>,
#[prost(message, optional, tag = "6")]
pub maximum: ::core::option::Option<SettingValue>,
#[prost(message, repeated, tag = "7")]
pub choices: ::prost::alloc::vec::Vec<SettingValue>,
#[prost(bool, tag = "8")]
pub required: bool,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingValue {
#[prost(oneof = "setting_value::Value", tags = "1, 2, 3, 4, 5")]
pub value: ::core::option::Option<setting_value::Value>,
}
pub mod setting_value {
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(bool, tag = "1")]
Flag(bool),
#[prost(int64, tag = "2")]
Integer(i64),
#[prost(double, tag = "3")]
Number(f64),
#[prost(string, tag = "4")]
Text(::prost::alloc::string::String),
#[prost(message, tag = "5")]
Duration(::prost_types::Duration),
}
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettingValues {
#[prost(map = "string, message", tag = "1")]
pub values: ::std::collections::HashMap<
::prost::alloc::string::String,
SettingValue,
>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StreamDeclaration {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub row: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub interval: ::core::option::Option<::prost_types::Duration>,
#[prost(string, tag = "5")]
pub interval_setting: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub window_setting: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub collection: ::prost::alloc::string::String,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Declarations {
#[prost(message, repeated, tag = "1")]
pub operations: ::prost::alloc::vec::Vec<OperationContract>,
#[prost(message, repeated, tag = "2")]
pub requires: ::prost::alloc::vec::Vec<Requirement>,
#[prost(message, repeated, tag = "3")]
pub streams: ::prost::alloc::vec::Vec<StreamDeclaration>,
#[prost(message, repeated, tag = "4")]
pub sections: ::prost::alloc::vec::Vec<Section>,
#[prost(bytes = "vec", tag = "5")]
pub digest: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "6")]
pub types: ::core::option::Option<::prost_types::FileDescriptorSet>,
#[prost(message, repeated, tag = "7")]
pub lanes: ::prost::alloc::vec::Vec<LaneDeclaration>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct LaneDeclaration {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(oneof = "lane_declaration::Capacity", tags = "2, 3, 4")]
pub capacity: ::core::option::Option<lane_declaration::Capacity>,
}
pub mod lane_declaration {
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum Capacity {
#[prost(bool, tag = "2")]
Serial(bool),
#[prost(uint32, tag = "3")]
Concurrent(u32),
#[prost(bool, tag = "4")]
Unbounded(bool),
}
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Section {
#[prost(string, tag = "1")]
pub r#type: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub payload: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(enumeration = "Classification", tag = "1")]
pub classification: i32,
#[prost(string, tag = "2")]
pub code: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub message: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub action: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub operation: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub plugin: ::prost::alloc::string::String,
#[prost(message, optional, boxed, tag = "7")]
pub cause: ::core::option::Option<::prost::alloc::boxed::Box<Failure>>,
#[prost(map = "string, string", tag = "8")]
pub details: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "9")]
pub diagnostics: ::prost::alloc::string::String,
#[prost(message, optional, tag = "10")]
pub retry: ::core::option::Option<OperationRetry>,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OperationRetry {
#[prost(bool, tag = "1")]
pub retryable: bool,
#[prost(uint64, tag = "2")]
pub attempts: u64,
#[prost(uint64, tag = "3")]
pub max_attempts: u64,
#[prost(double, tag = "4")]
pub next_after_s: f64,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Classification {
Unspecified = 0,
Permanent = 1,
Transient = 2,
Cancelled = 3,
TimedOut = 4,
Refused = 5,
Invalid = 6,
}
impl Classification {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CLASSIFICATION_UNSPECIFIED",
Self::Permanent => "CLASSIFICATION_PERMANENT",
Self::Transient => "CLASSIFICATION_TRANSIENT",
Self::Cancelled => "CLASSIFICATION_CANCELLED",
Self::TimedOut => "CLASSIFICATION_TIMED_OUT",
Self::Refused => "CLASSIFICATION_REFUSED",
Self::Invalid => "CLASSIFICATION_INVALID",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CLASSIFICATION_UNSPECIFIED" => Some(Self::Unspecified),
"CLASSIFICATION_PERMANENT" => Some(Self::Permanent),
"CLASSIFICATION_TRANSIENT" => Some(Self::Transient),
"CLASSIFICATION_CANCELLED" => Some(Self::Cancelled),
"CLASSIFICATION_TIMED_OUT" => Some(Self::TimedOut),
"CLASSIFICATION_REFUSED" => Some(Self::Refused),
"CLASSIFICATION_INVALID" => Some(Self::Invalid),
_ => None,
}
}
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PageRequest {
#[prost(uint32, tag = "1")]
pub page_size: u32,
#[prost(uint64, tag = "2")]
pub max_bytes: u64,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFileProductionsRequest {
#[prost(string, tag = "1")]
pub scope: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub page: ::core::option::Option<PageRequest>,
#[prost(message, optional, tag = "3")]
pub at: ::core::option::Option<ReadCut>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFileProductionsResponse {
#[prost(message, repeated, tag = "1")]
pub productions: ::prost::alloc::vec::Vec<Upload>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub resolved_at: ::core::option::Option<ReadCut>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FileMetadata {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub scope: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub media_type: ::prost::alloc::string::String,
#[prost(uint64, optional, tag = "4")]
pub expected_length: ::core::option::Option<u64>,
#[prost(bytes = "vec", optional, tag = "5")]
pub expected_sha256: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FileReference {
#[prost(message, optional, tag = "1")]
pub position: ::core::option::Option<Position>,
#[prost(message, optional, tag = "2")]
pub metadata: ::core::option::Option<FileMetadata>,
#[prost(uint64, tag = "3")]
pub length: u64,
#[prost(bytes = "vec", tag = "4")]
pub sha256: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct File {
#[prost(message, optional, tag = "1")]
pub reference: ::core::option::Option<FileReference>,
}
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Upload {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub history: ::core::option::Option<History>,
#[prost(uint64, tag = "3")]
pub writer_generation: u64,
#[prost(uint64, tag = "4")]
pub accepted_length: u64,
#[prost(uint64, tag = "5")]
pub durable_length: u64,
#[prost(enumeration = "UploadState", tag = "6")]
pub state: i32,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UploadState {
Unspecified = 0,
Producing = 1,
Finished = 2,
Abandoned = 3,
}
impl UploadState {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "UPLOAD_STATE_UNSPECIFIED",
Self::Producing => "UPLOAD_STATE_PRODUCING",
Self::Finished => "UPLOAD_STATE_FINISHED",
Self::Abandoned => "UPLOAD_STATE_ABANDONED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UPLOAD_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"UPLOAD_STATE_PRODUCING" => Some(Self::Producing),
"UPLOAD_STATE_FINISHED" => Some(Self::Finished),
"UPLOAD_STATE_ABANDONED" => Some(Self::Abandoned),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StorageTransferSettings {
#[prost(uint64, optional, tag = "1", default = "4194304")]
pub chunk_bytes: ::core::option::Option<u64>,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MessageSettings {
#[prost(uint64, optional, tag = "1", default = "8388608")]
pub message_bytes: ::core::option::Option<u64>,
}
#[allow(clippy::all)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TransferFraming {
Unspecified = 0,
Bytes = 512,
}
impl TransferFraming {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TRANSFER_FRAMING_UNSPECIFIED",
Self::Bytes => "TRANSFER_FRAMING_BYTES",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TRANSFER_FRAMING_UNSPECIFIED" => Some(Self::Unspecified),
"TRANSFER_FRAMING_BYTES" => Some(Self::Bytes),
_ => None,
}
}
}