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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(string, tag="1")]
pub event_id: std::string::String,
#[prost(string, tag="2")]
pub stream: std::string::String,
#[prost(map="string, string", tag="3")]
pub values: ::std::collections::HashMap<std::string::String, std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WriteResponse {
#[prost(string, tag="1")]
pub event_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamQuery {
#[prost(string, tag="1")]
pub stream_id: std::string::String,
#[prost(message, optional, tag="2")]
pub range: ::std::option::Option<TimeRange>,
#[prost(uint64, tag="3")]
pub count: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamResults {
#[prost(message, repeated, tag="2")]
pub events: ::std::vec::Vec<Event>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeRange {
#[prost(uint64, tag="1")]
pub min_time: u64,
#[prost(uint64, tag="2")]
pub max_time: u64,
}