method
ListUsers
acme.user.v1.UserService.ListUsers
List users with optional server-side filtering.
Pagination
page_sizeaccepts values from0through100.- Pass a returned
next_page_tokenaspage_tokento request another page. - Treat page tokens as opaque strings rather than parsing their contents.
Filter syntax and the default page size are implementation choices; this example schema does not define them.
RPC on UserService
rpc ListUsers(acme.user.v1.ListUsersRequest) returns (acme.user.v1.ListUsersResponse);
NO_SIDE_EFFECTS
Options
idempotency_level
idempotency_level = NO_SIDE_EFFECTS
HTTP — GET /v1/users
GET
(google.api.http) = { get: "/v1/users" }Request
| Field | Number | Type | Cardinality | Validation | Description |
|---|---|---|---|---|---|
| page_size | 1 | int32 | implicit | int32.lte=100int32.gte=0 | —Details
(buf.validate.field) = {
int32: {
lte: 100
gte: 0
}
}
|
| page_token | 2 | string | implicit | — | —Details
|
| filter | 3 | string | implicit | — | —Details
|
Response
acme.user.v1.ListUsersResponse
| Field | Number | Type | Cardinality | Validation | Description |
|---|---|---|---|---|---|
| users | 1 | acme.user.v1.User | repeated | — | —Details
|
| next_page_token | 2 | string | implicit | — | —Details
|