Skip to main content

haqq_grpc/gen/
cosmos.base.reflection.v2alpha1.rs

1// @generated
2/// AppDescriptor describes a cosmos-sdk based application
3#[derive(::derive_builder::Builder)]
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct AppDescriptor {
7    /// AuthnDescriptor provides information on how to authenticate transactions on the application
8    /// NOTE: experimental and subject to change in future releases.
9    #[prost(message, optional, tag="1")]
10    pub authn: ::core::option::Option<AuthnDescriptor>,
11    /// chain provides the chain descriptor
12    #[prost(message, optional, tag="2")]
13    pub chain: ::core::option::Option<ChainDescriptor>,
14    /// codec provides metadata information regarding codec related types
15    #[prost(message, optional, tag="3")]
16    pub codec: ::core::option::Option<CodecDescriptor>,
17    /// configuration provides metadata information regarding the sdk.Config type
18    #[prost(message, optional, tag="4")]
19    pub configuration: ::core::option::Option<ConfigurationDescriptor>,
20    /// query_services provides metadata information regarding the available queriable endpoints
21    #[prost(message, optional, tag="5")]
22    pub query_services: ::core::option::Option<QueryServicesDescriptor>,
23    /// tx provides metadata information regarding how to send transactions to the given application
24    #[prost(message, optional, tag="6")]
25    pub tx: ::core::option::Option<TxDescriptor>,
26}
27/// TxDescriptor describes the accepted transaction type
28#[derive(::derive_builder::Builder)]
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct TxDescriptor {
32    /// fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type)
33    /// it is not meant to support polymorphism of transaction types, it is supposed to be used by
34    /// reflection clients to understand if they can handle a specific transaction type in an application.
35    #[prost(string, tag="1")]
36    pub fullname: ::prost::alloc::string::String,
37    /// msgs lists the accepted application messages (sdk.Msg)
38    #[prost(message, repeated, tag="2")]
39    pub msgs: ::prost::alloc::vec::Vec<MsgDescriptor>,
40}
41/// AuthnDescriptor provides information on how to sign transactions without relying
42/// on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures
43#[derive(::derive_builder::Builder)]
44#[allow(clippy::derive_partial_eq_without_eq)]
45#[derive(Clone, PartialEq, ::prost::Message)]
46pub struct AuthnDescriptor {
47    /// sign_modes defines the supported signature algorithm
48    #[prost(message, repeated, tag="1")]
49    pub sign_modes: ::prost::alloc::vec::Vec<SigningModeDescriptor>,
50}
51/// SigningModeDescriptor provides information on a signing flow of the application
52/// NOTE(fdymylja): here we could go as far as providing an entire flow on how
53/// to sign a message given a SigningModeDescriptor, but it's better to think about
54/// this another time
55#[derive(::derive_builder::Builder)]
56#[allow(clippy::derive_partial_eq_without_eq)]
57#[derive(Clone, PartialEq, ::prost::Message)]
58pub struct SigningModeDescriptor {
59    /// name defines the unique name of the signing mode
60    #[prost(string, tag="1")]
61    pub name: ::prost::alloc::string::String,
62    /// number is the unique int32 identifier for the sign_mode enum
63    #[prost(int32, tag="2")]
64    pub number: i32,
65    /// authn_info_provider_method_fullname defines the fullname of the method to call to get
66    /// the metadata required to authenticate using the provided sign_modes
67    #[prost(string, tag="3")]
68    pub authn_info_provider_method_fullname: ::prost::alloc::string::String,
69}
70/// ChainDescriptor describes chain information of the application
71#[derive(::derive_builder::Builder)]
72#[allow(clippy::derive_partial_eq_without_eq)]
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct ChainDescriptor {
75    /// id is the chain id
76    #[prost(string, tag="1")]
77    pub id: ::prost::alloc::string::String,
78}
79/// CodecDescriptor describes the registered interfaces and provides metadata information on the types
80#[derive(::derive_builder::Builder)]
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct CodecDescriptor {
84    /// interfaces is a list of the registerted interfaces descriptors
85    #[prost(message, repeated, tag="1")]
86    pub interfaces: ::prost::alloc::vec::Vec<InterfaceDescriptor>,
87}
88/// InterfaceDescriptor describes the implementation of an interface
89#[derive(::derive_builder::Builder)]
90#[allow(clippy::derive_partial_eq_without_eq)]
91#[derive(Clone, PartialEq, ::prost::Message)]
92pub struct InterfaceDescriptor {
93    /// fullname is the name of the interface
94    #[prost(string, tag="1")]
95    pub fullname: ::prost::alloc::string::String,
96    /// interface_accepting_messages contains information regarding the proto messages which contain the interface as
97    /// google.protobuf.Any field
98    #[prost(message, repeated, tag="2")]
99    pub interface_accepting_messages: ::prost::alloc::vec::Vec<InterfaceAcceptingMessageDescriptor>,
100    /// interface_implementers is a list of the descriptors of the interface implementers
101    #[prost(message, repeated, tag="3")]
102    pub interface_implementers: ::prost::alloc::vec::Vec<InterfaceImplementerDescriptor>,
103}
104/// InterfaceImplementerDescriptor describes an interface implementer
105#[derive(::derive_builder::Builder)]
106#[allow(clippy::derive_partial_eq_without_eq)]
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct InterfaceImplementerDescriptor {
109    /// fullname is the protobuf queryable name of the interface implementer
110    #[prost(string, tag="1")]
111    pub fullname: ::prost::alloc::string::String,
112    /// type_url defines the type URL used when marshalling the type as any
113    /// this is required so we can provide type safe google.protobuf.Any marshalling and
114    /// unmarshalling, making sure that we don't accept just 'any' type
115    /// in our interface fields
116    #[prost(string, tag="2")]
117    pub type_url: ::prost::alloc::string::String,
118}
119/// InterfaceAcceptingMessageDescriptor describes a protobuf message which contains
120/// an interface represented as a google.protobuf.Any
121#[derive(::derive_builder::Builder)]
122#[allow(clippy::derive_partial_eq_without_eq)]
123#[derive(Clone, PartialEq, ::prost::Message)]
124pub struct InterfaceAcceptingMessageDescriptor {
125    /// fullname is the protobuf fullname of the type containing the interface
126    #[prost(string, tag="1")]
127    pub fullname: ::prost::alloc::string::String,
128    /// field_descriptor_names is a list of the protobuf name (not fullname) of the field
129    /// which contains the interface as google.protobuf.Any (the interface is the same, but
130    /// it can be in multiple fields of the same proto message)
131    #[prost(string, repeated, tag="2")]
132    pub field_descriptor_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
133}
134/// ConfigurationDescriptor contains metadata information on the sdk.Config
135#[derive(::derive_builder::Builder)]
136#[allow(clippy::derive_partial_eq_without_eq)]
137#[derive(Clone, PartialEq, ::prost::Message)]
138pub struct ConfigurationDescriptor {
139    /// bech32_account_address_prefix is the account address prefix
140    #[prost(string, tag="1")]
141    pub bech32_account_address_prefix: ::prost::alloc::string::String,
142}
143/// MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction
144#[derive(::derive_builder::Builder)]
145#[allow(clippy::derive_partial_eq_without_eq)]
146#[derive(Clone, PartialEq, ::prost::Message)]
147pub struct MsgDescriptor {
148    /// msg_type_url contains the TypeURL of a sdk.Msg.
149    #[prost(string, tag="1")]
150    pub msg_type_url: ::prost::alloc::string::String,
151}
152/// GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC
153#[derive(::derive_builder::Builder)]
154#[allow(clippy::derive_partial_eq_without_eq)]
155#[derive(Clone, PartialEq, ::prost::Message)]
156pub struct GetAuthnDescriptorRequest {
157}
158/// GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC
159#[derive(::derive_builder::Builder)]
160#[allow(clippy::derive_partial_eq_without_eq)]
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct GetAuthnDescriptorResponse {
163    /// authn describes how to authenticate to the application when sending transactions
164    #[prost(message, optional, tag="1")]
165    pub authn: ::core::option::Option<AuthnDescriptor>,
166}
167/// GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC
168#[derive(::derive_builder::Builder)]
169#[allow(clippy::derive_partial_eq_without_eq)]
170#[derive(Clone, PartialEq, ::prost::Message)]
171pub struct GetChainDescriptorRequest {
172}
173/// GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC
174#[derive(::derive_builder::Builder)]
175#[allow(clippy::derive_partial_eq_without_eq)]
176#[derive(Clone, PartialEq, ::prost::Message)]
177pub struct GetChainDescriptorResponse {
178    /// chain describes application chain information
179    #[prost(message, optional, tag="1")]
180    pub chain: ::core::option::Option<ChainDescriptor>,
181}
182/// GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC
183#[derive(::derive_builder::Builder)]
184#[allow(clippy::derive_partial_eq_without_eq)]
185#[derive(Clone, PartialEq, ::prost::Message)]
186pub struct GetCodecDescriptorRequest {
187}
188/// GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC
189#[derive(::derive_builder::Builder)]
190#[allow(clippy::derive_partial_eq_without_eq)]
191#[derive(Clone, PartialEq, ::prost::Message)]
192pub struct GetCodecDescriptorResponse {
193    /// codec describes the application codec such as registered interfaces and implementations
194    #[prost(message, optional, tag="1")]
195    pub codec: ::core::option::Option<CodecDescriptor>,
196}
197/// GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC
198#[derive(::derive_builder::Builder)]
199#[allow(clippy::derive_partial_eq_without_eq)]
200#[derive(Clone, PartialEq, ::prost::Message)]
201pub struct GetConfigurationDescriptorRequest {
202}
203/// GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC
204#[derive(::derive_builder::Builder)]
205#[allow(clippy::derive_partial_eq_without_eq)]
206#[derive(Clone, PartialEq, ::prost::Message)]
207pub struct GetConfigurationDescriptorResponse {
208    /// config describes the application's sdk.Config
209    #[prost(message, optional, tag="1")]
210    pub config: ::core::option::Option<ConfigurationDescriptor>,
211}
212/// GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC
213#[derive(::derive_builder::Builder)]
214#[allow(clippy::derive_partial_eq_without_eq)]
215#[derive(Clone, PartialEq, ::prost::Message)]
216pub struct GetQueryServicesDescriptorRequest {
217}
218/// GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC
219#[derive(::derive_builder::Builder)]
220#[allow(clippy::derive_partial_eq_without_eq)]
221#[derive(Clone, PartialEq, ::prost::Message)]
222pub struct GetQueryServicesDescriptorResponse {
223    /// queries provides information on the available queryable services
224    #[prost(message, optional, tag="1")]
225    pub queries: ::core::option::Option<QueryServicesDescriptor>,
226}
227/// GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC
228#[derive(::derive_builder::Builder)]
229#[allow(clippy::derive_partial_eq_without_eq)]
230#[derive(Clone, PartialEq, ::prost::Message)]
231pub struct GetTxDescriptorRequest {
232}
233/// GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC
234#[derive(::derive_builder::Builder)]
235#[allow(clippy::derive_partial_eq_without_eq)]
236#[derive(Clone, PartialEq, ::prost::Message)]
237pub struct GetTxDescriptorResponse {
238    /// tx provides information on msgs that can be forwarded to the application
239    /// alongside the accepted transaction protobuf type
240    #[prost(message, optional, tag="1")]
241    pub tx: ::core::option::Option<TxDescriptor>,
242}
243/// QueryServicesDescriptor contains the list of cosmos-sdk queriable services
244#[derive(::derive_builder::Builder)]
245#[allow(clippy::derive_partial_eq_without_eq)]
246#[derive(Clone, PartialEq, ::prost::Message)]
247pub struct QueryServicesDescriptor {
248    /// query_services is a list of cosmos-sdk QueryServiceDescriptor
249    #[prost(message, repeated, tag="1")]
250    pub query_services: ::prost::alloc::vec::Vec<QueryServiceDescriptor>,
251}
252/// QueryServiceDescriptor describes a cosmos-sdk queryable service
253#[derive(::derive_builder::Builder)]
254#[allow(clippy::derive_partial_eq_without_eq)]
255#[derive(Clone, PartialEq, ::prost::Message)]
256pub struct QueryServiceDescriptor {
257    /// fullname is the protobuf fullname of the service descriptor
258    #[prost(string, tag="1")]
259    pub fullname: ::prost::alloc::string::String,
260    /// is_module describes if this service is actually exposed by an application's module
261    #[prost(bool, tag="2")]
262    pub is_module: bool,
263    /// methods provides a list of query service methods
264    #[prost(message, repeated, tag="3")]
265    pub methods: ::prost::alloc::vec::Vec<QueryMethodDescriptor>,
266}
267/// QueryMethodDescriptor describes a queryable method of a query service
268/// no other info is provided beside method name and tendermint queryable path
269/// because it would be redundant with the grpc reflection service
270#[derive(::derive_builder::Builder)]
271#[allow(clippy::derive_partial_eq_without_eq)]
272#[derive(Clone, PartialEq, ::prost::Message)]
273pub struct QueryMethodDescriptor {
274    /// name is the protobuf name (not fullname) of the method
275    #[prost(string, tag="1")]
276    pub name: ::prost::alloc::string::String,
277    /// full_query_path is the path that can be used to query
278    /// this method via tendermint abci.Query
279    #[prost(string, tag="2")]
280    pub full_query_path: ::prost::alloc::string::String,
281}
282include!("cosmos.base.reflection.v2alpha1.serde.rs");
283include!("cosmos.base.reflection.v2alpha1.tonic.rs");
284// @@protoc_insertion_point(module)