ids_apis/kdo.v1.user.rs
1// @generated
2// This file is @generated by prost-build.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct GetUserRequest {
6 /// The name of the user to retrieve.
7 /// Format: users/{id}
8 /// Alias "users/me" is supported.
9 #[prost(string, tag="1")]
10 pub user: ::prost::alloc::string::String,
11}
12/// ListUsersRequest payload
13/// (-- api-linter: core::0158::request-page-token-field=disabled
14/// aip.dev/not-precedent: We need to do this because reasons. --)
15/// (-- api-linter: core::0132::request-unknown-fields=disabled
16/// aip.dev/not-precedent: We really need this field because reasons. --)
17#[allow(clippy::derive_partial_eq_without_eq)]
18#[derive(Clone, PartialEq, ::prost::Message)]
19pub struct ListUsersRequest {
20 /// The maximum number of users to return. The service may return fewer than
21 /// this value.
22 /// If unspecified, at most 50 rows will be returned.
23 /// The maximum value is 1024; values above 1024 will be coerced to 1024.
24 #[prost(int32, tag="1")]
25 pub page_size: i32,
26 /// Token of the page to retrieve. If not specified, the first
27 /// page of results will be returned. Use the value obtained from
28 /// `next_page_token` in the previous response in order to request
29 /// the next page of results.
30 ///
31 /// When paginating, all other parameters provided to `ListUsers` must match
32 /// the call that provided the page token.
33 #[prost(string, tag="2")]
34 pub page_token: ::prost::alloc::string::String,
35 /// Available Sequence and Operator
36 /// * name
37 /// * `Equal`
38 /// * address
39 /// * Equal`
40 /// * display_name
41 /// * Equal`
42 ///
43 /// Examples
44 /// * name="users/FZ4MT1HYJHd9GK8D5mJ9f3r7irLaDL5NxBNLjGqrLqs9"
45 /// * address="FZ4MT1HYJHd9GK8D5mJ9f3r7irLaDL5NxBNLjGqrLqs9"
46 /// * display_name="Alice"
47 #[prost(string, tag="3")]
48 pub filter: ::prost::alloc::string::String,
49}
50/// ListUsersResponse
51/// (-- api-linter: core::0158::response-next-page-token-field=disabled
52/// aip.dev/not-precedent: We need to do this because reasons. --)
53#[allow(clippy::derive_partial_eq_without_eq)]
54#[derive(Clone, PartialEq, ::prost::Message)]
55pub struct ListUsersResponse {
56 /// The list of rows that matched the query.
57 #[prost(message, repeated, tag="1")]
58 pub users: ::prost::alloc::vec::Vec<User>,
59 /// Pagination token used to retrieve the next page of results.
60 /// Pass the content of this string as the `page_token` attribute of
61 /// the next request. `next_page_token` is not returned for the last
62 /// page.
63 #[prost(string, tag="2")]
64 pub next_page_token: ::prost::alloc::string::String,
65}
66#[allow(clippy::derive_partial_eq_without_eq)]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct User {
69 /// The resource name of the User.
70 /// Format: users/{id}
71 #[prost(string, tag="1")]
72 pub name: ::prost::alloc::string::String,
73 /// The Auth ID of User. (generated by Privy or Web3Auth)
74 #[prost(string, tag="2")]
75 pub id: ::prost::alloc::string::String,
76 /// The display name of User.
77 #[prost(string, tag="3")]
78 pub display_name: ::prost::alloc::string::String,
79 #[prost(string, tag="4")]
80 pub employee_id: ::prost::alloc::string::String,
81 #[prost(string, tag="5")]
82 pub ip: ::prost::alloc::string::String,
83}
84include!("kdo.v1.user.tonic.rs");
85include!("kdo.v1.user.serde.rs");
86// @@protoc_insertion_point(module)