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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// @generated
/// GetRequest is the Query/Get request type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRequest {
/// message_name is the fully-qualified message name of the ORM table being queried.
#[prost(string, tag="1")]
pub message_name: ::prost::alloc::string::String,
/// index is the index fields expression used in orm definitions. If it
/// is empty, the table's primary key is assumed. If it is non-empty, it must
/// refer to an unique index.
#[prost(string, tag="2")]
pub index: ::prost::alloc::string::String,
/// values are the values of the fields corresponding to the requested index.
/// There must be as many values provided as there are fields in the index and
/// these values must correspond to the index field types.
#[prost(message, repeated, tag="3")]
pub values: ::prost::alloc::vec::Vec<IndexValue>,
}
/// GetResponse is the Query/Get response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetResponse {
/// result is the result of the get query. If no value is found, the gRPC
/// status code NOT_FOUND will be returned.
#[prost(message, optional, tag="1")]
pub result: ::core::option::Option<::prost_types::Any>,
}
/// ListRequest is the Query/List request type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRequest {
/// message_name is the fully-qualified message name of the ORM table being queried.
#[prost(string, tag="1")]
pub message_name: ::prost::alloc::string::String,
/// index is the index fields expression used in orm definitions. If it
/// is empty, the table's primary key is assumed.
#[prost(string, tag="2")]
pub index: ::prost::alloc::string::String,
/// pagination is the pagination request.
#[prost(message, optional, tag="5")]
pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
/// query is the query expression corresponding to the provided index. If
/// neither prefix nor range is specified, the query will list all the fields
/// in the index.
#[prost(oneof="list_request::Query", tags="3, 4")]
pub query: ::core::option::Option<list_request::Query>,
}
/// Nested message and enum types in `ListRequest`.
pub mod list_request {
/// Prefix specifies the arguments to a prefix query.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Prefix {
/// values specifies the index values for the prefix query.
/// It is valid to special a partial prefix with fewer values than
/// the number of fields in the index.
#[prost(message, repeated, tag="1")]
pub values: ::prost::alloc::vec::Vec<super::IndexValue>,
}
/// Range specifies the arguments to a range query.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Range {
/// start specifies the starting index values for the range query.
/// It is valid to provide fewer values than the number of fields in the
/// index.
#[prost(message, repeated, tag="1")]
pub start: ::prost::alloc::vec::Vec<super::IndexValue>,
/// end specifies the inclusive ending index values for the range query.
/// It is valid to provide fewer values than the number of fields in the
/// index.
#[prost(message, repeated, tag="2")]
pub end: ::prost::alloc::vec::Vec<super::IndexValue>,
}
/// query is the query expression corresponding to the provided index. If
/// neither prefix nor range is specified, the query will list all the fields
/// in the index.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
/// prefix defines a prefix query.
#[prost(message, tag="3")]
Prefix(Prefix),
/// range defines a range query.
#[prost(message, tag="4")]
Range(Range),
}
}
/// ListResponse is the Query/List response type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListResponse {
/// results are the results of the query.
#[prost(message, repeated, tag="1")]
pub results: ::prost::alloc::vec::Vec<::prost_types::Any>,
/// pagination is the pagination response.
#[prost(message, optional, tag="5")]
pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
}
/// IndexValue represents the value of a field in an ORM index expression.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IndexValue {
/// value specifies the index value
#[prost(oneof="index_value::Value", tags="1, 2, 3, 4, 5, 6, 7, 8")]
pub value: ::core::option::Option<index_value::Value>,
}
/// Nested message and enum types in `IndexValue`.
pub mod index_value {
/// value specifies the index value
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// uint specifies a value for an uint32, fixed32, uint64, or fixed64
/// index field.
#[prost(uint64, tag="1")]
Uint(u64),
/// int64 specifies a value for an int32, sfixed32, int64, or sfixed64
/// index field.
#[prost(int64, tag="2")]
Int(i64),
/// str specifies a value for a string index field.
#[prost(string, tag="3")]
Str(::prost::alloc::string::String),
/// bytes specifies a value for a bytes index field.
#[prost(bytes, tag="4")]
Bytes(::prost::bytes::Bytes),
/// enum specifies a value for an enum index field.
#[prost(string, tag="5")]
Enum(::prost::alloc::string::String),
/// bool specifies a value for a bool index field.
#[prost(bool, tag="6")]
Bool(bool),
/// timestamp specifies a value for a timestamp index field.
#[prost(message, tag="7")]
Timestamp(::prost_types::Timestamp),
/// duration specifies a value for a duration index field.
#[prost(message, tag="8")]
Duration(::prost_types::Duration),
}
}
// @@protoc_insertion_point(module)