jj_lib/protos/
simple_store.rs

1// This file is @generated by prost-build.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct TreeValue {
5    #[prost(oneof = "tree_value::Value", tags = "2, 3, 4, 5")]
6    pub value: ::core::option::Option<tree_value::Value>,
7}
8/// Nested message and enum types in `TreeValue`.
9pub mod tree_value {
10    #[allow(clippy::derive_partial_eq_without_eq)]
11    #[derive(Clone, PartialEq, ::prost::Message)]
12    pub struct File {
13        #[prost(bytes = "vec", tag = "1")]
14        pub id: ::prost::alloc::vec::Vec<u8>,
15        #[prost(bool, tag = "2")]
16        pub executable: bool,
17    }
18    #[allow(clippy::derive_partial_eq_without_eq)]
19    #[derive(Clone, PartialEq, ::prost::Oneof)]
20    pub enum Value {
21        #[prost(message, tag = "2")]
22        File(File),
23        #[prost(bytes, tag = "3")]
24        SymlinkId(::prost::alloc::vec::Vec<u8>),
25        #[prost(bytes, tag = "4")]
26        TreeId(::prost::alloc::vec::Vec<u8>),
27        #[prost(bytes, tag = "5")]
28        ConflictId(::prost::alloc::vec::Vec<u8>),
29    }
30}
31#[allow(clippy::derive_partial_eq_without_eq)]
32#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct Tree {
34    #[prost(message, repeated, tag = "1")]
35    pub entries: ::prost::alloc::vec::Vec<tree::Entry>,
36}
37/// Nested message and enum types in `Tree`.
38pub mod tree {
39    #[allow(clippy::derive_partial_eq_without_eq)]
40    #[derive(Clone, PartialEq, ::prost::Message)]
41    pub struct Entry {
42        #[prost(string, tag = "1")]
43        pub name: ::prost::alloc::string::String,
44        #[prost(message, optional, tag = "2")]
45        pub value: ::core::option::Option<super::TreeValue>,
46    }
47}
48#[allow(clippy::derive_partial_eq_without_eq)]
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct Commit {
51    #[prost(bytes = "vec", repeated, tag = "1")]
52    pub parents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
53    #[prost(bytes = "vec", repeated, tag = "2")]
54    pub predecessors: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
55    /// Alternating positive and negative terms
56    #[prost(bytes = "vec", repeated, tag = "3")]
57    pub root_tree: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
58    /// TODO(#1624): delete when all code paths can handle this format
59    #[prost(bool, tag = "8")]
60    pub uses_tree_conflict_format: bool,
61    #[prost(bytes = "vec", tag = "4")]
62    pub change_id: ::prost::alloc::vec::Vec<u8>,
63    #[prost(string, tag = "5")]
64    pub description: ::prost::alloc::string::String,
65    #[prost(message, optional, tag = "6")]
66    pub author: ::core::option::Option<commit::Signature>,
67    #[prost(message, optional, tag = "7")]
68    pub committer: ::core::option::Option<commit::Signature>,
69    #[prost(bytes = "vec", optional, tag = "9")]
70    pub secure_sig: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
71}
72/// Nested message and enum types in `Commit`.
73pub mod commit {
74    #[allow(clippy::derive_partial_eq_without_eq)]
75    #[derive(Clone, PartialEq, ::prost::Message)]
76    pub struct Timestamp {
77        #[prost(int64, tag = "1")]
78        pub millis_since_epoch: i64,
79        #[prost(int32, tag = "2")]
80        pub tz_offset: i32,
81    }
82    #[allow(clippy::derive_partial_eq_without_eq)]
83    #[derive(Clone, PartialEq, ::prost::Message)]
84    pub struct Signature {
85        #[prost(string, tag = "1")]
86        pub name: ::prost::alloc::string::String,
87        #[prost(string, tag = "2")]
88        pub email: ::prost::alloc::string::String,
89        #[prost(message, optional, tag = "3")]
90        pub timestamp: ::core::option::Option<Timestamp>,
91    }
92}
93#[allow(clippy::derive_partial_eq_without_eq)]
94#[derive(Clone, PartialEq, ::prost::Message)]
95pub struct Conflict {
96    #[prost(message, repeated, tag = "1")]
97    pub removes: ::prost::alloc::vec::Vec<conflict::Term>,
98    #[prost(message, repeated, tag = "2")]
99    pub adds: ::prost::alloc::vec::Vec<conflict::Term>,
100}
101/// Nested message and enum types in `Conflict`.
102pub mod conflict {
103    #[allow(clippy::derive_partial_eq_without_eq)]
104    #[derive(Clone, PartialEq, ::prost::Message)]
105    pub struct Term {
106        #[prost(message, optional, tag = "1")]
107        pub content: ::core::option::Option<super::TreeValue>,
108    }
109}