cipherstash_grpc_wasm/generated/
stash.grpc.v1.collections.rs

1#[derive(Clone, PartialEq, ::prost::Message)]
2pub struct CreateRequest {
3    #[prost(bytes="vec", tag="1")]
4    pub r#ref: ::prost::alloc::vec::Vec<u8>,
5    #[prost(bytes="vec", tag="2")]
6    pub metadata: ::prost::alloc::vec::Vec<u8>,
7    #[prost(message, repeated, tag="3")]
8    pub indexes: ::prost::alloc::vec::Vec<super::indexes::Index>,
9    #[prost(uint32, tag="2048")]
10    pub schema_version_drop_delay: u32,
11}
12#[derive(Clone, PartialEq, ::prost::Message)]
13pub struct DeleteRequest {
14    #[prost(bytes="vec", tag="1")]
15    pub r#ref: ::prost::alloc::vec::Vec<u8>,
16}
17#[derive(Clone, PartialEq, ::prost::Message)]
18pub struct InfoRequest {
19    #[prost(bytes="vec", tag="1")]
20    pub r#ref: ::prost::alloc::vec::Vec<u8>,
21    #[prost(bytes="vec", tag="2")]
22    pub metadata: ::prost::alloc::vec::Vec<u8>,
23}
24#[derive(Clone, PartialEq, ::prost::Message)]
25pub struct InfoReply {
26    #[prost(bytes="vec", tag="1")]
27    pub id: ::prost::alloc::vec::Vec<u8>,
28    #[prost(bytes="vec", tag="2")]
29    pub r#ref: ::prost::alloc::vec::Vec<u8>,
30    #[prost(bytes="vec", tag="3")]
31    pub metadata: ::prost::alloc::vec::Vec<u8>,
32    #[prost(message, repeated, tag="4")]
33    pub indexes: ::prost::alloc::vec::Vec<super::indexes::Index>,
34    #[prost(uint32, tag="5")]
35    pub first_active_schema_version: u32,
36    #[prost(uint32, tag="6")]
37    pub last_active_schema_version: u32,
38    #[prost(uint32, tag="7")]
39    pub current_schema_version: u32,
40}
41#[derive(Clone, PartialEq, ::prost::Message)]
42pub struct ListRequest {
43}
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct ListReply {
46    #[prost(message, repeated, tag="1")]
47    pub collections: ::prost::alloc::vec::Vec<InfoReply>,
48}
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct MigrateRequest {
51    #[prost(bytes="vec", tag="1")]
52    pub r#ref: ::prost::alloc::vec::Vec<u8>,
53    #[prost(bytes="vec", tag="2")]
54    pub metadata: ::prost::alloc::vec::Vec<u8>,
55    #[prost(message, repeated, tag="3")]
56    pub indexes: ::prost::alloc::vec::Vec<super::indexes::Index>,
57    #[prost(uint32, tag="4")]
58    pub from_schema_version: u32,
59}
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct MigrateReply {
62    #[prost(message, optional, tag="1")]
63    pub collection: ::core::option::Option<InfoReply>,
64    #[prost(enumeration="migrate_reply::MigrateError", tag="2048")]
65    pub error: i32,
66}
67/// Nested message and enum types in `MigrateReply`.
68pub mod migrate_reply {
69    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
70    #[repr(i32)]
71    pub enum MigrateError {
72        NoError = 0,
73        ErrUnknownSchemaVersion = 1,
74        ErrObsoleteSchemaVersion = 2,
75    }
76}