Skip to main content

ora_server/proto/generated/
ora.common.v1.rs

1// This file is @generated by prost-build.
2/// A label for categorizing and grouping entities.
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct Label {
5    /// The key of the label.
6    #[prost(string, tag = "1")]
7    pub key: ::prost::alloc::string::String,
8    /// The value of the label.
9    #[prost(string, tag = "2")]
10    pub value: ::prost::alloc::string::String,
11}
12impl ::prost::Name for Label {
13    const NAME: &'static str = "Label";
14    const PACKAGE: &'static str = "ora.common.v1";
15    fn full_name() -> ::prost::alloc::string::String {
16        "ora.common.v1.Label".into()
17    }
18    fn type_url() -> ::prost::alloc::string::String {
19        "/ora.common.v1.Label".into()
20    }
21}
22/// A filter for labels.
23#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
24pub struct LabelFilter {
25    /// The key of the label to filter by.
26    #[prost(string, tag = "1")]
27    pub key: ::prost::alloc::string::String,
28    /// An optional value of the label to filter by,
29    /// if not specified, entities with
30    /// the given key and any value will match.
31    #[prost(string, optional, tag = "2")]
32    pub value: ::core::option::Option<::prost::alloc::string::String>,
33}
34impl ::prost::Name for LabelFilter {
35    const NAME: &'static str = "LabelFilter";
36    const PACKAGE: &'static str = "ora.common.v1";
37    fn full_name() -> ::prost::alloc::string::String {
38        "ora.common.v1.LabelFilter".into()
39    }
40    fn type_url() -> ::prost::alloc::string::String {
41        "/ora.common.v1.LabelFilter".into()
42    }
43}
44/// A time range.
45///
46/// A time range is a range of time between two points.
47///
48/// The time range is inclusive of the start time and exclusive of the end time.
49#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
50pub struct TimeRange {
51    /// The start time of the time range.
52    ///
53    /// If not provided, the time range is open-ended.
54    #[prost(message, optional, tag = "1")]
55    pub start: ::core::option::Option<::prost_types::Timestamp>,
56    /// The end time of the time range.
57    ///
58    /// If not provided, the time range is open-ended.
59    #[prost(message, optional, tag = "2")]
60    pub end: ::core::option::Option<::prost_types::Timestamp>,
61}
62impl ::prost::Name for TimeRange {
63    const NAME: &'static str = "TimeRange";
64    const PACKAGE: &'static str = "ora.common.v1";
65    fn full_name() -> ::prost::alloc::string::String {
66        "ora.common.v1.TimeRange".into()
67    }
68    fn type_url() -> ::prost::alloc::string::String {
69        "/ora.common.v1.TimeRange".into()
70    }
71}