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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Uuid {
#[prost(oneof = "uuid::Value", tags = "1, 2")]
pub value: ::core::option::Option<uuid::Value>,
}
pub mod uuid {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Structured {
#[prost(int64, tag = "1")]
pub most_significant_bits: i64,
#[prost(int64, tag = "2")]
pub least_significant_bits: i64,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Structured(Structured),
#[prost(string, tag = "2")]
String(::prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Empty {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamIdentifier {
#[prost(bytes = "vec", tag = "3")]
pub stream_name: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllStreamPosition {
#[prost(uint64, tag = "1")]
pub commit_position: u64,
#[prost(uint64, tag = "2")]
pub prepare_position: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WrongExpectedVersion {
#[prost(
oneof = "wrong_expected_version::CurrentStreamRevisionOption",
tags = "1, 2"
)]
pub current_stream_revision_option:
::core::option::Option<wrong_expected_version::CurrentStreamRevisionOption>,
#[prost(
oneof = "wrong_expected_version::ExpectedStreamPositionOption",
tags = "3, 4, 5, 6"
)]
pub expected_stream_position_option:
::core::option::Option<wrong_expected_version::ExpectedStreamPositionOption>,
}
pub mod wrong_expected_version {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CurrentStreamRevisionOption {
#[prost(uint64, tag = "1")]
CurrentStreamRevision(u64),
#[prost(message, tag = "2")]
CurrentNoStream(()),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ExpectedStreamPositionOption {
#[prost(uint64, tag = "3")]
ExpectedStreamPosition(u64),
#[prost(message, tag = "4")]
ExpectedAny(()),
#[prost(message, tag = "5")]
ExpectedStreamExists(()),
#[prost(message, tag = "6")]
ExpectedNoStream(()),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessDenied {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamDeleted {
#[prost(message, optional, tag = "1")]
pub stream_identifier: ::core::option::Option<StreamIdentifier>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Timeout {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Unknown {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvalidTransaction {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaximumAppendSizeExceeded {
#[prost(uint32, tag = "1")]
pub max_append_size: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BadRequest {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
}