kitsune2_api/proto/gen/
kitsune2.fetch.rs1#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct FetchRequest {
5 #[prost(bytes = "bytes", repeated, tag = "1")]
7 pub op_ids: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
8}
9#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct FetchResponse {
12 #[prost(message, repeated, tag = "1")]
14 pub ops: ::prost::alloc::vec::Vec<super::op_store::Op>,
15}
16#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
18pub struct K2FetchMessage {
19 #[prost(enumeration = "k2_fetch_message::FetchMessageType", tag = "1")]
21 pub fetch_message_type: i32,
22 #[prost(bytes = "bytes", tag = "2")]
24 pub data: ::prost::bytes::Bytes,
25}
26pub mod k2_fetch_message {
28 #[derive(
33 Clone,
34 Copy,
35 Debug,
36 PartialEq,
37 Eq,
38 Hash,
39 PartialOrd,
40 Ord,
41 ::prost::Enumeration
42 )]
43 #[repr(i32)]
44 pub enum FetchMessageType {
45 Unspecified = 0,
47 Request = 1,
49 Response = 2,
51 }
52 impl FetchMessageType {
53 pub fn as_str_name(&self) -> &'static str {
58 match self {
59 Self::Unspecified => "UNSPECIFIED",
60 Self::Request => "REQUEST",
61 Self::Response => "RESPONSE",
62 }
63 }
64 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
66 match value {
67 "UNSPECIFIED" => Some(Self::Unspecified),
68 "REQUEST" => Some(Self::Request),
69 "RESPONSE" => Some(Self::Response),
70 _ => None,
71 }
72 }
73 }
74}