#![allow(clippy::allow_attributes, clippy::pedantic, clippy::use_self, clippy::absolute_paths, missing_docs)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Unit {}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct MontyNode {
#[prost(
oneof = "monty_node::Kind",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30"
)]
pub kind: ::core::option::Option<monty_node::Kind>,
}
pub mod monty_node {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(message, tag = "1")]
Ellipsis(super::Unit),
#[prost(message, tag = "2")]
None(super::Unit),
#[prost(message, tag = "3")]
NotImplemented(super::Unit),
#[prost(bool, tag = "4")]
Boolean(bool),
#[prost(sint64, tag = "5")]
Int(i64),
#[prost(message, tag = "6")]
Bigint(super::BigInt),
#[prost(double, tag = "7")]
Float(f64),
#[prost(string, tag = "8")]
Str(crate::budgeted_prost::alloc::string::String),
#[prost(bytes, tag = "9")]
Bytes(crate::budgeted_prost::alloc::vec::Vec<u8>),
#[prost(message, tag = "10")]
Uuid(super::Uuid),
#[prost(message, tag = "11")]
List(crate::WireIndexes),
#[prost(message, tag = "12")]
Tuple(crate::WireIndexes),
#[prost(message, tag = "13")]
NamedTuple(crate::WireNamedTuple),
#[prost(message, tag = "14")]
Dict(crate::WireNodePairs),
#[prost(message, tag = "15")]
Set(crate::WireIndexes),
#[prost(message, tag = "16")]
FrozenSet(crate::WireIndexes),
#[prost(message, tag = "17")]
Date(super::Date),
#[prost(message, tag = "18")]
Time(super::Time),
#[prost(message, tag = "19")]
Datetime(super::DateTime),
#[prost(message, tag = "20")]
Timedelta(super::TimeDelta),
#[prost(message, tag = "21")]
Timezone(super::TimeZone),
#[prost(message, tag = "22")]
Exception(super::Exception),
#[prost(message, tag = "23")]
Type(super::Type),
#[prost(message, tag = "24")]
ClassInstance(super::ClassInstanceNode),
#[prost(message, tag = "25")]
Function(super::Function),
#[prost(string, tag = "26")]
BuiltinFunction(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "27")]
Path(crate::budgeted_prost::alloc::string::String),
#[prost(message, tag = "28")]
FileHandle(super::FileHandle),
#[prost(string, tag = "29")]
Repr(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "30")]
Cycle(crate::budgeted_prost::alloc::string::String),
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct NodePair {
#[prost(uint32, tag = "1")]
pub key: u32,
#[prost(uint32, tag = "2")]
pub value: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct BigInt {
#[prost(bool, tag = "1")]
pub negative: bool,
#[prost(bytes = "vec", tag = "2")]
pub magnitude: crate::budgeted_prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Date {
#[prost(int32, tag = "1")]
pub year: i32,
#[prost(uint32, tag = "2")]
pub month: u32,
#[prost(uint32, tag = "3")]
pub day: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct DateTime {
#[prost(int32, tag = "1")]
pub year: i32,
#[prost(uint32, tag = "2")]
pub month: u32,
#[prost(uint32, tag = "3")]
pub day: u32,
#[prost(uint32, tag = "4")]
pub hour: u32,
#[prost(uint32, tag = "5")]
pub minute: u32,
#[prost(uint32, tag = "6")]
pub second: u32,
#[prost(uint32, tag = "7")]
pub microsecond: u32,
#[prost(int32, optional, tag = "8")]
pub offset_seconds: ::core::option::Option<i32>,
#[prost(string, optional, tag = "9")]
pub timezone_name: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Time {
#[prost(uint32, tag = "1")]
pub hour: u32,
#[prost(uint32, tag = "2")]
pub minute: u32,
#[prost(uint32, tag = "3")]
pub second: u32,
#[prost(uint32, tag = "4")]
pub microsecond: u32,
#[prost(int32, optional, tag = "5")]
pub offset_seconds: ::core::option::Option<i32>,
#[prost(string, optional, tag = "6")]
pub timezone_name: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
#[prost(uint32, tag = "7")]
pub fold: u32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct TimeDelta {
#[prost(int32, tag = "1")]
pub days: i32,
#[prost(int32, tag = "2")]
pub seconds: i32,
#[prost(int32, tag = "3")]
pub microseconds: i32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct TimeZone {
#[prost(int32, tag = "1")]
pub offset_seconds: i32,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Exception {
#[prost(string, tag = "1")]
pub exc_type: crate::budgeted_prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub arg: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct FileHandle {
#[prost(string, tag = "1")]
pub path: crate::budgeted_prost::alloc::string::String,
#[prost(string, tag = "2")]
pub mode: crate::budgeted_prost::alloc::string::String,
#[prost(uint64, tag = "3")]
pub position: u64,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Uuid {
#[prost(bytes = "vec", tag = "1")]
pub data: crate::budgeted_prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Type {
#[prost(string, tag = "1")]
pub name: crate::budgeted_prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub id: ::core::option::Option<Uuid>,
#[prost(enumeration = "TypeOrigin", tag = "3")]
pub origin: i32,
#[prost(bool, tag = "4")]
pub is_dataclass: bool,
#[prost(message, optional, tag = "5")]
pub attrs: ::core::option::Option<crate::WireNodePairs>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ClassInstanceNode {
#[prost(uint32, tag = "1")]
pub class_type: u32,
#[prost(message, optional, tag = "2")]
pub instance_id: ::core::option::Option<Uuid>,
#[prost(message, optional, tag = "3")]
pub attrs: ::core::option::Option<crate::WireNodePairs>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Function {
#[prost(string, tag = "1")]
pub name: crate::budgeted_prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub docstring: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct RaisedException {
#[prost(string, tag = "1")]
pub exc_type: crate::budgeted_prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub message: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
#[prost(message, repeated, tag = "3")]
pub traceback: crate::budgeted_prost::alloc::vec::Vec<StackFrame>,
#[prost(message, optional, tag = "4")]
pub data: ::core::option::Option<ExcData>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ExcData {
#[prost(oneof = "exc_data::Kind", tags = "1, 2")]
pub kind: ::core::option::Option<exc_data::Kind>,
}
pub mod exc_data {
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(message, tag = "1")]
Unicode(super::UnicodeErrorData),
#[prost(message, tag = "2")]
Json(super::JsonErrorData),
}
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct UnicodeErrorData {
#[prost(string, tag = "1")]
pub encoding: crate::budgeted_prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub start: u64,
#[prost(uint64, tag = "5")]
pub end: u64,
#[prost(string, tag = "6")]
pub reason: crate::budgeted_prost::alloc::string::String,
#[prost(oneof = "unicode_error_data::Object", tags = "2, 3")]
pub object: ::core::option::Option<unicode_error_data::Object>,
}
pub mod unicode_error_data {
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Object {
#[prost(bytes, tag = "2")]
ObjectBytes(crate::budgeted_prost::alloc::vec::Vec<u8>),
#[prost(string, tag = "3")]
ObjectStr(crate::budgeted_prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct JsonErrorData {
#[prost(string, tag = "1")]
pub msg: crate::budgeted_prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub doc: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
#[prost(uint64, tag = "3")]
pub pos: u64,
#[prost(uint64, tag = "4")]
pub lineno: u64,
#[prost(uint64, tag = "5")]
pub colno: u64,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct CodeLoc {
#[prost(uint32, tag = "1")]
pub line: u32,
#[prost(uint32, tag = "2")]
pub column: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct SourceRange {
#[prost(string, tag = "1")]
pub filename: crate::budgeted_prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub start: u32,
#[prost(uint32, tag = "3")]
pub end: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct StackFrame {
#[prost(string, tag = "1")]
pub filename: crate::budgeted_prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub start: ::core::option::Option<CodeLoc>,
#[prost(message, optional, tag = "3")]
pub end: ::core::option::Option<CodeLoc>,
#[prost(string, optional, tag = "4")]
pub frame_name: ::core::option::Option<crate::budgeted_prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub preview_line: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
#[prost(bool, tag = "6")]
pub hide_caret: bool,
#[prost(bool, tag = "7")]
pub hide_frame_name: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ResourceLimits {
#[prost(uint64, optional, tag = "2")]
pub max_memory_bytes: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "3")]
pub gc_interval: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "4")]
pub max_recursion_depth: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "5")]
pub max_suspensions: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "6")]
pub max_feed_duration_micros: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "7")]
pub max_turn_duration_micros: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "8")]
pub max_total_sleep_micros: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct OsPolicy {
#[prost(message, optional, tag = "4")]
pub timezone: ::core::option::Option<SandboxTimeZone>,
#[prost(message, optional, tag = "5")]
pub sleep: ::core::option::Option<SleepMode>,
#[prost(oneof = "os_policy::Datetime", tags = "1, 2, 3")]
pub datetime: ::core::option::Option<os_policy::Datetime>,
#[prost(oneof = "os_policy::RandomStart", tags = "6, 7, 8")]
pub random_start: ::core::option::Option<os_policy::RandomStart>,
#[prost(oneof = "os_policy::ProcessTime", tags = "9, 10")]
pub process_time: ::core::option::Option<os_policy::ProcessTime>,
}
pub mod os_policy {
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Datetime {
#[prost(message, tag = "1")]
System(super::Unit),
#[prost(message, tag = "2")]
CallHost(super::Unit),
#[prost(message, tag = "3")]
Fixed(super::FixedDateTime),
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum RandomStart {
#[prost(message, tag = "6")]
RandomSystem(super::Unit),
#[prost(message, tag = "7")]
RandomCallHost(super::Unit),
#[prost(message, tag = "8")]
Seed(super::RandomSeed),
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum ProcessTime {
#[prost(message, tag = "9")]
Zero(super::Unit),
#[prost(message, tag = "10")]
Elapsed(super::Unit),
}
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct SandboxTimeZone {
#[prost(oneof = "sandbox_time_zone::Zone", tags = "1, 2, 3")]
pub zone: ::core::option::Option<sandbox_time_zone::Zone>,
}
pub mod sandbox_time_zone {
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Zone {
#[prost(message, tag = "1")]
Utc(super::Unit),
#[prost(string, tag = "2")]
Named(crate::budgeted_prost::alloc::string::String),
#[prost(message, tag = "3")]
Fixed(super::TimeZone),
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct SleepMode {
#[prost(oneof = "sleep_mode::Mode", tags = "1, 2, 3")]
pub mode: ::core::option::Option<sleep_mode::Mode>,
}
pub mod sleep_mode {
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Mode {
#[prost(message, tag = "1")]
System(super::SystemSleep),
#[prost(message, tag = "2")]
CallHost(super::Unit),
#[prost(message, tag = "3")]
Zero(super::Unit),
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct SystemSleep {
#[prost(uint64, optional, tag = "1")]
pub max_micros: ::core::option::Option<u64>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct FixedDateTime {
#[prost(int64, tag = "1")]
pub unix_seconds: i64,
#[prost(uint32, tag = "2")]
pub microsecond: u32,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct RandomSeed {
#[prost(oneof = "random_seed::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<random_seed::Value>,
}
pub mod random_seed {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Value {
#[prost(bytes, tag = "1")]
Int(crate::budgeted_prost::alloc::vec::Vec<u8>),
#[prost(double, tag = "2")]
Float(f64),
#[prost(string, tag = "3")]
Str(crate::budgeted_prost::alloc::string::String),
#[prost(bytes, tag = "4")]
Bytes(crate::budgeted_prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ExtFunctionResult {
#[prost(oneof = "ext_function_result::Kind", tags = "1, 2, 3, 4, 5")]
pub kind: ::core::option::Option<ext_function_result::Kind>,
}
pub mod ext_function_result {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(uint32, tag = "1")]
ReturnValue(u32),
#[prost(message, tag = "2")]
Error(super::RaisedException),
#[prost(uint32, tag = "3")]
Future(u32),
#[prost(string, tag = "4")]
NotFound(crate::budgeted_prost::alloc::string::String),
#[prost(message, tag = "5")]
NotHandled(super::Unit),
}
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct FutureResult {
#[prost(uint32, tag = "1")]
pub call_id: u32,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<ExtFunctionResult>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct NamedRef {
#[prost(string, tag = "1")]
pub name: crate::budgeted_prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub value: u32,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ParentRequest {
#[prost(string, optional, tag = "20")]
pub trace_parent: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
#[prost(oneof = "parent_request::Kind", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11")]
pub kind: ::core::option::Option<parent_request::Kind>,
}
pub mod parent_request {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(message, tag = "1")]
Configure(super::Configure),
#[prost(message, tag = "2")]
InstallDependencies(super::InstallDependencies),
#[prost(message, tag = "3")]
Feed(super::Feed),
#[prost(message, tag = "4")]
ResumeCall(super::ResumeCall),
#[prost(message, tag = "5")]
ResumeNameLookup(super::ResumeNameLookup),
#[prost(message, tag = "6")]
ResumeFutures(super::ResumeFutures),
#[prost(message, tag = "7")]
Dump(super::Dump),
#[prost(message, tag = "8")]
Load(super::Load),
#[prost(message, tag = "9")]
Reset(super::Reset),
#[prost(message, tag = "10")]
Shutdown(super::Shutdown),
#[prost(message, tag = "11")]
AbortFeed(super::AbortFeed),
}
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Configure {
#[prost(string, tag = "1")]
pub script_name: crate::budgeted_prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub limits: ::core::option::Option<ResourceLimits>,
#[prost(bool, tag = "3")]
pub type_check: bool,
#[prost(string, optional, tag = "4")]
pub type_check_stubs: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
#[prost(string, tag = "5")]
pub monty_version: crate::budgeted_prost::alloc::string::String,
#[prost(uint32, optional, tag = "6")]
pub assert_message_annotations: ::core::option::Option<u32>,
#[prost(enumeration = "TypeCheckFormat", tag = "7")]
pub type_check_format: i32,
#[prost(bool, tag = "8")]
pub type_check_color: bool,
#[prost(uint32, tag = "9")]
pub protocol_version: u32,
#[prost(uint32, optional, tag = "10")]
pub print_flush_interval_ms: ::core::option::Option<u32>,
#[prost(message, optional, tag = "11")]
pub os_policy: ::core::option::Option<OsPolicy>,
#[prost(enumeration = "Persistence", tag = "12")]
pub persistence: i32,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Feed {
#[prost(string, tag = "1")]
pub code: crate::budgeted_prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub inputs: crate::budgeted_prost::alloc::vec::Vec<NamedRef>,
#[prost(message, optional, tag = "3")]
pub values: ::core::option::Option<crate::WireArena>,
#[prost(bool, tag = "4")]
pub skip_type_check: bool,
#[prost(string, tag = "5")]
pub cwd: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct AbortFeed {
#[prost(message, optional, tag = "1")]
pub exception: ::core::option::Option<RaisedException>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ResumeCall {
#[prost(uint32, tag = "1")]
pub call_id: u32,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<ExtFunctionResult>,
#[prost(message, optional, tag = "3")]
pub values: ::core::option::Option<crate::WireArena>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ResumeNameLookup {
#[prost(message, optional, tag = "1")]
pub values: ::core::option::Option<crate::WireArena>,
#[prost(oneof = "resume_name_lookup::Kind", tags = "2, 3, 4")]
pub kind: ::core::option::Option<resume_name_lookup::Kind>,
}
pub mod resume_name_lookup {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(uint32, tag = "2")]
Value(u32),
#[prost(message, tag = "3")]
Undefined(super::Unit),
#[prost(message, tag = "4")]
Error(super::RaisedException),
}
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ResumeFutures {
#[prost(message, repeated, tag = "1")]
pub results: crate::budgeted_prost::alloc::vec::Vec<FutureResult>,
#[prost(message, optional, tag = "2")]
pub values: ::core::option::Option<crate::WireArena>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Dump {}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Load {
#[prost(bytes = "vec", tag = "1")]
pub state: crate::budgeted_prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Reset {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Shutdown {}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct InstallDependencies {
#[prost(string, repeated, tag = "1")]
pub requirements: crate::budgeted_prost::alloc::vec::Vec<
crate::budgeted_prost::alloc::string::String,
>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ChildEvent {
#[prost(uint64, tag = "20")]
pub total_execution_micros: u64,
#[prost(uint64, optional, tag = "22")]
pub max_suspensions: ::core::option::Option<u64>,
#[prost(uint64, tag = "24")]
pub feed_execution_micros: u64,
#[prost(uint64, optional, tag = "25")]
pub max_feed_duration_micros: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "26")]
pub max_turn_duration_micros: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "27")]
pub max_total_sleep_micros: ::core::option::Option<u64>,
#[prost(string, optional, tag = "23")]
pub restored_script_name: ::core::option::Option<
crate::budgeted_prost::alloc::string::String,
>,
#[prost(bytes = "vec", optional, tag = "28")]
pub session_id: ::core::option::Option<crate::budgeted_prost::alloc::vec::Vec<u8>>,
#[prost(oneof = "child_event::Kind", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12")]
pub kind: ::core::option::Option<child_event::Kind>,
}
pub mod child_event {
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Kind {
#[prost(message, tag = "1")]
Print(super::Print),
#[prost(message, tag = "2")]
FunctionCall(crate::WireFunctionCall),
#[prost(message, tag = "3")]
OsCall(super::OsCall),
#[prost(message, tag = "4")]
NameLookup(super::NameLookup),
#[prost(message, tag = "5")]
ResolveFutures(super::ResolveFutures),
#[prost(message, tag = "6")]
Complete(super::Complete),
#[prost(message, tag = "7")]
Error(super::Error),
#[prost(message, tag = "8")]
TypingError(super::TypingError),
#[prost(message, tag = "9")]
DumpResult(super::DumpResult),
#[prost(message, tag = "10")]
Ok(super::Ok),
#[prost(message, tag = "11")]
FatalError(super::FatalError),
#[prost(message, tag = "12")]
Shutdown(super::ShutdownDump),
}
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct PrintSegment {
#[prost(enumeration = "PrintStream", tag = "1")]
pub stream: i32,
#[prost(string, tag = "2")]
pub text: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Print {
#[prost(message, repeated, tag = "1")]
pub segments: crate::budgeted_prost::alloc::vec::Vec<PrintSegment>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct OsCall {
#[prost(uint32, tag = "1")]
pub call_id: u32,
#[prost(message, optional, tag = "50")]
pub values: ::core::option::Option<crate::WireArena>,
#[prost(bool, tag = "51")]
pub allow_eager_await: bool,
#[prost(message, optional, tag = "52")]
pub position: ::core::option::Option<SourceRange>,
#[prost(
oneof = "os_call::Call",
tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30"
)]
pub call: ::core::option::Option<os_call::Call>,
}
pub mod os_call {
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct TextWrite {
#[prost(string, tag = "1")]
pub path: crate::budgeted_prost::alloc::string::String,
#[prost(string, tag = "2")]
pub data: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct BytesWrite {
#[prost(string, tag = "1")]
pub path: crate::budgeted_prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub data: crate::budgeted_prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Open {
#[prost(string, tag = "1")]
pub path: crate::budgeted_prost::alloc::string::String,
#[prost(string, tag = "2")]
pub mode: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Mkdir {
#[prost(string, tag = "1")]
pub path: crate::budgeted_prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub parents: bool,
#[prost(bool, tag = "3")]
pub exist_ok: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Rename {
#[prost(string, tag = "1")]
pub src: crate::budgeted_prost::alloc::string::String,
#[prost(string, tag = "2")]
pub dst: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Getenv {
#[prost(string, tag = "1")]
pub key: crate::budgeted_prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub default: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct TimeCall {
#[prost(string, tag = "1")]
pub caller: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct DateTimeNow {
#[prost(message, optional, tag = "1")]
pub tz: ::core::option::Option<super::TimeZone>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Urandom {
#[prost(uint64, tag = "1")]
pub size: u64,
}
#[derive(Clone, Copy, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Sleep {
#[prost(double, tag = "1")]
pub seconds: f64,
}
#[derive(Clone, Copy, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct AsyncSleep {
#[prost(double, tag = "1")]
pub delay: f64,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Oneof)]
#[prost(prost_path = "crate::budgeted_prost")]
pub enum Call {
#[prost(string, tag = "2")]
Exists(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "3")]
IsFile(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "4")]
IsDir(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "5")]
IsSymlink(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "6")]
ReadText(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "7")]
ReadBytes(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "8")]
Stat(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "9")]
Iterdir(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "10")]
Resolve(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "11")]
Absolute(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "12")]
Unlink(crate::budgeted_prost::alloc::string::String),
#[prost(string, tag = "13")]
Rmdir(crate::budgeted_prost::alloc::string::String),
#[prost(message, tag = "14")]
WriteText(TextWrite),
#[prost(message, tag = "15")]
AppendText(TextWrite),
#[prost(message, tag = "16")]
WriteBytes(BytesWrite),
#[prost(message, tag = "17")]
AppendBytes(BytesWrite),
#[prost(message, tag = "18")]
Open(Open),
#[prost(message, tag = "19")]
Mkdir(Mkdir),
#[prost(message, tag = "20")]
Rename(Rename),
#[prost(message, tag = "21")]
Getenv(Getenv),
#[prost(message, tag = "22")]
GetEnviron(super::Unit),
#[prost(message, tag = "23")]
DateToday(super::Unit),
#[prost(message, tag = "24")]
DateTimeNow(DateTimeNow),
#[prost(message, tag = "25")]
Urandom(Urandom),
#[prost(message, tag = "26")]
Time(TimeCall),
#[prost(message, tag = "27")]
Sleep(Sleep),
#[prost(message, tag = "28")]
AsyncSleep(AsyncSleep),
#[prost(message, tag = "29")]
SystemSleep(Sleep),
#[prost(message, tag = "30")]
AsyncSystemSleep(AsyncSleep),
}
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct NameLookup {
#[prost(string, tag = "1")]
pub name: crate::budgeted_prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub object_id: ::core::option::Option<Uuid>,
#[prost(message, optional, tag = "3")]
pub position: ::core::option::Option<SourceRange>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ResolveFutures {
#[prost(uint32, repeated, tag = "1")]
pub pending_call_ids: crate::budgeted_prost::alloc::vec::Vec<u32>,
#[prost(message, optional, tag = "2")]
pub position: ::core::option::Option<SourceRange>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Complete {
#[prost(uint32, tag = "1")]
pub value: u32,
#[prost(message, optional, tag = "2")]
pub values: ::core::option::Option<crate::WireArena>,
}
#[derive(Clone, PartialEq, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Error {
#[prost(message, optional, tag = "1")]
pub exception: ::core::option::Option<RaisedException>,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct TypingError {
#[prost(string, tag = "1")]
pub diagnostics: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct DumpResult {
#[prost(bytes = "vec", tag = "1")]
pub state: crate::budgeted_prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct Ok {}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct FatalError {
#[prost(string, tag = "1")]
pub message: crate::budgeted_prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, crate::budgeted_prost::Message)]
#[prost(prost_path = "crate::budgeted_prost")]
pub struct ShutdownDump {
#[prost(bytes = "vec", optional, tag = "1")]
pub dump: ::core::option::Option<crate::budgeted_prost::alloc::vec::Vec<u8>>,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
crate::budgeted_prost::Enumeration
)]
#[prost(prost_path = "crate::budgeted_prost")]
#[repr(i32)]
pub enum TypeOrigin {
Unspecified = 0,
Builtin = 1,
Sandbox = 2,
Host = 3,
}
impl TypeOrigin {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TYPE_ORIGIN_UNSPECIFIED",
Self::Builtin => "TYPE_ORIGIN_BUILTIN",
Self::Sandbox => "TYPE_ORIGIN_SANDBOX",
Self::Host => "TYPE_ORIGIN_HOST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_ORIGIN_UNSPECIFIED" => Some(Self::Unspecified),
"TYPE_ORIGIN_BUILTIN" => Some(Self::Builtin),
"TYPE_ORIGIN_SANDBOX" => Some(Self::Sandbox),
"TYPE_ORIGIN_HOST" => Some(Self::Host),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
crate::budgeted_prost::Enumeration
)]
#[prost(prost_path = "crate::budgeted_prost")]
#[repr(i32)]
pub enum Persistence {
Unspecified = 0,
Ephemeral = 1,
Stored = 2,
}
impl Persistence {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PERSISTENCE_UNSPECIFIED",
Self::Ephemeral => "PERSISTENCE_EPHEMERAL",
Self::Stored => "PERSISTENCE_STORED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PERSISTENCE_UNSPECIFIED" => Some(Self::Unspecified),
"PERSISTENCE_EPHEMERAL" => Some(Self::Ephemeral),
"PERSISTENCE_STORED" => Some(Self::Stored),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
crate::budgeted_prost::Enumeration
)]
#[prost(prost_path = "crate::budgeted_prost")]
#[repr(i32)]
pub enum TypeCheckFormat {
Unspecified = 0,
Full = 1,
Concise = 2,
Azure = 3,
Json = 4,
JsonLines = 5,
Rdjson = 6,
Pylint = 7,
Gitlab = 8,
Github = 9,
}
impl TypeCheckFormat {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TYPE_CHECK_FORMAT_UNSPECIFIED",
Self::Full => "TYPE_CHECK_FORMAT_FULL",
Self::Concise => "TYPE_CHECK_FORMAT_CONCISE",
Self::Azure => "TYPE_CHECK_FORMAT_AZURE",
Self::Json => "TYPE_CHECK_FORMAT_JSON",
Self::JsonLines => "TYPE_CHECK_FORMAT_JSON_LINES",
Self::Rdjson => "TYPE_CHECK_FORMAT_RDJSON",
Self::Pylint => "TYPE_CHECK_FORMAT_PYLINT",
Self::Gitlab => "TYPE_CHECK_FORMAT_GITLAB",
Self::Github => "TYPE_CHECK_FORMAT_GITHUB",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_CHECK_FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
"TYPE_CHECK_FORMAT_FULL" => Some(Self::Full),
"TYPE_CHECK_FORMAT_CONCISE" => Some(Self::Concise),
"TYPE_CHECK_FORMAT_AZURE" => Some(Self::Azure),
"TYPE_CHECK_FORMAT_JSON" => Some(Self::Json),
"TYPE_CHECK_FORMAT_JSON_LINES" => Some(Self::JsonLines),
"TYPE_CHECK_FORMAT_RDJSON" => Some(Self::Rdjson),
"TYPE_CHECK_FORMAT_PYLINT" => Some(Self::Pylint),
"TYPE_CHECK_FORMAT_GITLAB" => Some(Self::Gitlab),
"TYPE_CHECK_FORMAT_GITHUB" => Some(Self::Github),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
crate::budgeted_prost::Enumeration
)]
#[prost(prost_path = "crate::budgeted_prost")]
#[repr(i32)]
pub enum PrintStream {
Unspecified = 0,
Stdout = 1,
Stderr = 2,
}
impl PrintStream {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PRINT_STREAM_UNSPECIFIED",
Self::Stdout => "PRINT_STREAM_STDOUT",
Self::Stderr => "PRINT_STREAM_STDERR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PRINT_STREAM_UNSPECIFIED" => Some(Self::Unspecified),
"PRINT_STREAM_STDOUT" => Some(Self::Stdout),
"PRINT_STREAM_STDERR" => Some(Self::Stderr),
_ => None,
}
}
}