rpc.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. syntax = "proto3";
  2. package etcdserverpb;
  3. import "gogoproto/gogo.proto";
  4. import "etcd/mvcc/mvccpb/kv.proto";
  5. import "etcd/auth/authpb/auth.proto";
  6. option (gogoproto.marshaler_all) = true;
  7. option (gogoproto.unmarshaler_all) = true;
  8. service KV {
  9. // Range gets the keys in the range from the key-value store.
  10. rpc Range(RangeRequest) returns (RangeResponse) {}
  11. // Put puts the given key into the key-value store.
  12. // A put request increments the revision of the key-value store
  13. // and generates one event in the event history.
  14. rpc Put(PutRequest) returns (PutResponse) {}
  15. // DeleteRange deletes the given range from the key-value store.
  16. // A delete request increments the revision of the key-value store
  17. // and generates a delete event in the event history for every deleted key.
  18. rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse) {}
  19. // Txn processes multiple requests in a single transaction.
  20. // A txn request increments the revision of the key-value store
  21. // and generates events with the same revision for every completed request.
  22. // It is not allowed to modify the same key several times within one txn.
  23. rpc Txn(TxnRequest) returns (TxnResponse) {}
  24. // Compact compacts the event history in the etcd key-value store. The key-value
  25. // store should be periodically compacted or the event history will continue to grow
  26. // indefinitely.
  27. rpc Compact(CompactionRequest) returns (CompactionResponse) {}
  28. }
  29. service Watch {
  30. // Watch watches for events happening or that have happened. Both input and output
  31. // are streams; the input stream is for creating and canceling watchers and the output
  32. // stream sends events. One watch RPC can watch on multiple key ranges, streaming events
  33. // for several watches at once. The entire event history can be watched starting from the
  34. // last compaction revision.
  35. rpc Watch(stream WatchRequest) returns (stream WatchResponse) {}
  36. }
  37. service Lease {
  38. // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
  39. // within a given time to live period. All keys attached to the lease will be expired and
  40. // deleted if the lease expires. Each expired key generates a delete event in the event history.
  41. rpc LeaseGrant(LeaseGrantRequest) returns (LeaseGrantResponse) {}
  42. // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
  43. rpc LeaseRevoke(LeaseRevokeRequest) returns (LeaseRevokeResponse) {}
  44. // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
  45. // to the server and streaming keep alive responses from the server to the client.
  46. rpc LeaseKeepAlive(stream LeaseKeepAliveRequest) returns (stream LeaseKeepAliveResponse) {}
  47. // TODO(xiangli) List all existing Leases?
  48. // TODO(xiangli) Get details information (expirations, leased keys, etc.) of a lease?
  49. }
  50. service Cluster {
  51. // MemberAdd adds a member into the cluster.
  52. rpc MemberAdd(MemberAddRequest) returns (MemberAddResponse) {}
  53. // MemberRemove removes an existing member from the cluster.
  54. rpc MemberRemove(MemberRemoveRequest) returns (MemberRemoveResponse) {}
  55. // MemberUpdate updates the member configuration.
  56. rpc MemberUpdate(MemberUpdateRequest) returns (MemberUpdateResponse) {}
  57. // MemberList lists all the members in the cluster.
  58. rpc MemberList(MemberListRequest) returns (MemberListResponse) {}
  59. }
  60. service Maintenance {
  61. // Alarm activates, deactivates, and queries alarms regarding cluster health.
  62. rpc Alarm(AlarmRequest) returns (AlarmResponse) {}
  63. // Status gets the status of the member.
  64. rpc Status(StatusRequest) returns (StatusResponse) {}
  65. // Defragment defragments a member's backend database to recover storage space.
  66. rpc Defragment(DefragmentRequest) returns (DefragmentResponse) {}
  67. // Hash returns the hash of the local KV state for consistency checking purpose.
  68. // This is designed for testing; do not use this in production when there
  69. // are ongoing transactions.
  70. rpc Hash(HashRequest) returns (HashResponse) {}
  71. // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
  72. rpc Snapshot(SnapshotRequest) returns (stream SnapshotResponse) {}
  73. }
  74. service Auth {
  75. // AuthEnable enables authentication.
  76. rpc AuthEnable(AuthEnableRequest) returns (AuthEnableResponse) {}
  77. // AuthDisable disables authentication.
  78. rpc AuthDisable(AuthDisableRequest) returns (AuthDisableResponse) {}
  79. // Authenticate processes an authenticate request.
  80. rpc Authenticate(AuthenticateRequest) returns (AuthenticateResponse) {}
  81. // UserAdd adds a new user.
  82. rpc UserAdd(AuthUserAddRequest) returns (AuthUserAddResponse) {}
  83. // UserGet gets detailed user information or lists all users.
  84. rpc UserGet(AuthUserGetRequest) returns (AuthUserGetResponse) {}
  85. // UserDelete deletes a specified user.
  86. rpc UserDelete(AuthUserDeleteRequest) returns (AuthUserDeleteResponse) {}
  87. // UserChangePassword changes the password of a specified user.
  88. rpc UserChangePassword(AuthUserChangePasswordRequest) returns (AuthUserChangePasswordResponse) {}
  89. // UserGrant grants a role to a specified user.
  90. rpc UserGrant(AuthUserGrantRequest) returns (AuthUserGrantResponse) {}
  91. // UserRevoke revokes a role of specified user.
  92. rpc UserRevoke(AuthUserRevokeRequest) returns (AuthUserRevokeResponse) {}
  93. // RoleAdd adds a new role.
  94. rpc RoleAdd(AuthRoleAddRequest) returns (AuthRoleAddResponse) {}
  95. // RoleGet gets detailed role information or lists all roles.
  96. rpc RoleGet(AuthRoleGetRequest) returns (AuthRoleGetResponse) {}
  97. // RoleDelete deletes a specified role.
  98. rpc RoleDelete(AuthRoleDeleteRequest) returns (AuthRoleDeleteResponse) {}
  99. // RoleGrant grants a permission of a specified key or range to a specified role.
  100. rpc RoleGrant(AuthRoleGrantRequest) returns (AuthRoleGrantResponse) {}
  101. // RoleRevoke revokes a key or range permission of a specified role.
  102. rpc RoleRevoke(AuthRoleRevokeRequest) returns (AuthRoleRevokeResponse) {}
  103. }
  104. message ResponseHeader {
  105. // cluster_id is the ID of the cluster which sent the response.
  106. uint64 cluster_id = 1;
  107. // member_id is the ID of the member which sent the response.
  108. uint64 member_id = 2;
  109. // revision is the key-value store revision when the request was applied.
  110. int64 revision = 3;
  111. // raft_term is the raft term when the request was applied.
  112. uint64 raft_term = 4;
  113. }
  114. message RangeRequest {
  115. enum SortOrder {
  116. NONE = 0; // default, no sorting
  117. ASCEND = 1; // lowest target value first
  118. DESCEND = 2; // highest target value first
  119. }
  120. enum SortTarget {
  121. KEY = 0;
  122. VERSION = 1;
  123. CREATE = 2;
  124. MOD = 3;
  125. VALUE = 4;
  126. }
  127. // key is the first key for the range. If range_end is not given, the request only looks up key.
  128. bytes key = 1;
  129. // range_end is the upper bound on the requested range [key, range_end).
  130. // If range_end is '\0', the range is all keys >= key.
  131. bytes range_end = 2;
  132. // limit is a limit on the number of keys returned for the request.
  133. int64 limit = 3;
  134. // revision is the point-in-time of the key-value store to use for the range.
  135. // If revision is less or equal to zero, the range is over the newest key-value store.
  136. // If the revision has been compacted, ErrCompaction is returned as a response.
  137. int64 revision = 4;
  138. // sort_order is the order for returned sorted results.
  139. SortOrder sort_order = 5;
  140. // sort_target is the key-value field to use for sorting.
  141. SortTarget sort_target = 6;
  142. // serializable sets the range request to use serializable member-local reads.
  143. // Range requests are linearizable by default; linearizable requests have higher
  144. // latency and lower throughput than serializable requests but reflect the current
  145. // consensus of the cluster. For better performance, in exchange for possible stale reads,
  146. // a serializable range request is served locally without needing to reach consensus
  147. // with other nodes in the cluster.
  148. bool serializable = 7;
  149. }
  150. message RangeResponse {
  151. ResponseHeader header = 1;
  152. // kvs is the list of key-value pairs matched by the range request.
  153. repeated mvccpb.KeyValue kvs = 2;
  154. // more indicates if there are more keys to return in the requested range.
  155. bool more = 3;
  156. }
  157. message PutRequest {
  158. // key is the key, in bytes, to put into the key-value store.
  159. bytes key = 1;
  160. // value is the value, in bytes, to associate with the key in the key-value store.
  161. bytes value = 2;
  162. // lease is the lease ID to associate with the key in the key-value store. A lease
  163. // value of 0 indicates no lease.
  164. int64 lease = 3;
  165. }
  166. message PutResponse {
  167. ResponseHeader header = 1;
  168. }
  169. message DeleteRangeRequest {
  170. // key is the first key to delete in the range.
  171. bytes key = 1;
  172. // range_end is the key following the last key to delete for the range [key, range_end).
  173. // If range_end is not given, the range is defined to contain only the key argument.
  174. // If range_end is '\0', the range is all keys greater than or equal to the key argument.
  175. bytes range_end = 2;
  176. }
  177. message DeleteRangeResponse {
  178. ResponseHeader header = 1;
  179. // deleted is the number of keys deleted by the delete range request.
  180. int64 deleted = 2;
  181. }
  182. message RequestUnion {
  183. // request is a union of request types accepted by a transaction.
  184. oneof request {
  185. RangeRequest request_range = 1;
  186. PutRequest request_put = 2;
  187. DeleteRangeRequest request_delete_range = 3;
  188. }
  189. }
  190. message ResponseUnion {
  191. // response is a union of response types returned by a transaction.
  192. oneof response {
  193. RangeResponse response_range = 1;
  194. PutResponse response_put = 2;
  195. DeleteRangeResponse response_delete_range = 3;
  196. }
  197. }
  198. message Compare {
  199. enum CompareResult {
  200. EQUAL = 0;
  201. GREATER = 1;
  202. LESS = 2;
  203. }
  204. enum CompareTarget {
  205. VERSION = 0;
  206. CREATE = 1;
  207. MOD = 2;
  208. VALUE= 3;
  209. }
  210. // result is logical comparison operation for this comparison.
  211. CompareResult result = 1;
  212. // target is the key-value field to inspect for the comparison.
  213. CompareTarget target = 2;
  214. // key is the subject key for the comparison operation.
  215. bytes key = 3;
  216. oneof target_union {
  217. // version is the version of the given key
  218. int64 version = 4;
  219. // create_revision is the creation revision of the given key
  220. int64 create_revision = 5;
  221. // mod_revision is the last modified revision of the given key.
  222. int64 mod_revision = 6;
  223. // value is the value of the given key, in bytes.
  224. bytes value = 7;
  225. }
  226. }
  227. // From google paxosdb paper:
  228. // Our implementation hinges around a powerful primitive which we call MultiOp. All other database
  229. // operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
  230. // and consists of three components:
  231. // 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
  232. // for the absence or presence of a value, or compare with a given value. Two different tests in the guard
  233. // may apply to the same or different entries in the database. All tests in the guard are applied and
  234. // MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
  235. // it executes f op (see item 3 below).
  236. // 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
  237. // lookup operation, and applies to a single database entry. Two different operations in the list may apply
  238. // to the same or different entries in the database. These operations are executed
  239. // if guard evaluates to
  240. // true.
  241. // 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
  242. message TxnRequest {
  243. // compare is a list of predicates representing a conjunction of terms.
  244. // If the comparisons succeed, then the success requests will be processed in order,
  245. // and the response will contain their respective responses in order.
  246. // If the comparisons fail, then the failure requests will be processed in order,
  247. // and the response will contain their respective responses in order.
  248. repeated Compare compare = 1;
  249. // success is a list of requests which will be applied when compare evaluates to true.
  250. repeated RequestUnion success = 2;
  251. // failure is a list of requests which will be applied when compare evaluates to false.
  252. repeated RequestUnion failure = 3;
  253. }
  254. message TxnResponse {
  255. ResponseHeader header = 1;
  256. // succeeded is set to true if the compare evaluated to true or false otherwise.
  257. bool succeeded = 2;
  258. // responses is a list of responses corresponding to the results from applying
  259. // success if succeeded is true or failure if succeeded is false.
  260. repeated ResponseUnion responses = 3;
  261. }
  262. // CompactionRequest compacts the key-value store up to a given revision. All superseded keys
  263. // with a revision less than the compaction revision will be removed.
  264. message CompactionRequest {
  265. // revision is the key-value store revision for the compaction operation.
  266. int64 revision = 1;
  267. // physical is set so the RPC will wait until the compaction is physically
  268. // applied to the local database such that compacted entries are totally
  269. // removed from the backend database.
  270. bool physical = 2;
  271. }
  272. message CompactionResponse {
  273. ResponseHeader header = 1;
  274. }
  275. message HashRequest {
  276. }
  277. message HashResponse {
  278. ResponseHeader header = 1;
  279. // hash is the hash value computed from the responding member's key-value store.
  280. uint32 hash = 2;
  281. }
  282. message SnapshotRequest {
  283. }
  284. message SnapshotResponse {
  285. // header has the current key-value store information. The first header in the snapshot
  286. // stream indicates the point in time of the snapshot.
  287. ResponseHeader header = 1;
  288. // remaining_bytes is the number of blob bytes to be sent after this message
  289. uint64 remaining_bytes = 2;
  290. // blob contains the next chunk of the snapshot in the snapshot stream.
  291. bytes blob = 3;
  292. }
  293. message WatchRequest {
  294. // request_union is a request to either create a new watcher or cancel an existing watcher.
  295. oneof request_union {
  296. WatchCreateRequest create_request = 1;
  297. WatchCancelRequest cancel_request = 2;
  298. }
  299. }
  300. message WatchCreateRequest {
  301. // key is the key to register for watching.
  302. bytes key = 1;
  303. // range_end is the end of the range [key, range_end) to watch. If range_end is not given,
  304. // only the key argument is watched. If range_end is equal to '\0', all keys greater than
  305. // or equal to the key argument are watched.
  306. bytes range_end = 2;
  307. // start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
  308. int64 start_revision = 3;
  309. // progress_notify is set so that the etcd server will periodically send a WatchResponse with
  310. // no events to the new watcher if there are no recent events. It is useful when clients
  311. // wish to recover a disconnected watcher starting from a recent known revision.
  312. // The etcd server may decide how often it will send notifications based on current load.
  313. bool progress_notify = 4;
  314. }
  315. message WatchCancelRequest {
  316. // watch_id is the watcher id to cancel so that no more events are transmitted.
  317. int64 watch_id = 1;
  318. }
  319. message WatchResponse {
  320. ResponseHeader header = 1;
  321. // watch_id is the ID of the watcher that corresponds to the response.
  322. int64 watch_id = 2;
  323. // created is set to true if the response is for a create watch request.
  324. // The client should record the watch_id and expect to receive events for
  325. // the created watcher from the same stream.
  326. // All events sent to the created watcher will attach with the same watch_id.
  327. bool created = 3;
  328. // canceled is set to true if the response is for a cancel watch request.
  329. // No further events will be sent to the canceled watcher.
  330. bool canceled = 4;
  331. // compact_revision is set to the minimum index if a watcher tries to watch
  332. // at a compacted index.
  333. //
  334. // This happens when creating a watcher at a compacted revision or the watcher cannot
  335. // catch up with the progress of the key-value store.
  336. //
  337. // The client should treat the watcher as canceled and should not try to create any
  338. // watcher with the same start_revision again.
  339. int64 compact_revision = 5;
  340. repeated mvccpb.Event events = 11;
  341. }
  342. message LeaseGrantRequest {
  343. // TTL is the advisory time-to-live in seconds.
  344. int64 TTL = 1;
  345. // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
  346. int64 ID = 2;
  347. }
  348. message LeaseGrantResponse {
  349. ResponseHeader header = 1;
  350. // ID is the lease ID for the granted lease.
  351. int64 ID = 2;
  352. // TTL is the server chosen lease time-to-live in seconds.
  353. int64 TTL = 3;
  354. string error = 4;
  355. }
  356. message LeaseRevokeRequest {
  357. // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
  358. int64 ID = 1;
  359. }
  360. message LeaseRevokeResponse {
  361. ResponseHeader header = 1;
  362. }
  363. message LeaseKeepAliveRequest {
  364. // ID is the lease ID for the lease to keep alive.
  365. int64 ID = 1;
  366. }
  367. message LeaseKeepAliveResponse {
  368. ResponseHeader header = 1;
  369. // ID is the lease ID from the keep alive request.
  370. int64 ID = 2;
  371. // TTL is the new time-to-live for the lease.
  372. int64 TTL = 3;
  373. }
  374. message Member {
  375. // ID is the member ID for this member.
  376. uint64 ID = 1;
  377. // name is the human-readable name of the member. If the member is not started, the name will be an empty string.
  378. string name = 2;
  379. // peerURLs is the list of URLs the member exposes to the cluster for communication.
  380. repeated string peerURLs = 3;
  381. // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
  382. repeated string clientURLs = 4;
  383. }
  384. message MemberAddRequest {
  385. // peerURLs is the list of URLs the added member will use to communicate with the cluster.
  386. repeated string peerURLs = 1;
  387. }
  388. message MemberAddResponse {
  389. ResponseHeader header = 1;
  390. // member is the member information for the added member.
  391. Member member = 2;
  392. }
  393. message MemberRemoveRequest {
  394. // ID is the member ID of the member to remove.
  395. uint64 ID = 1;
  396. }
  397. message MemberRemoveResponse {
  398. ResponseHeader header = 1;
  399. }
  400. message MemberUpdateRequest {
  401. // ID is the member ID of the member to update.
  402. uint64 ID = 1;
  403. // peerURLs is the new list of URLs the member will use to communicate with the cluster.
  404. repeated string peerURLs = 2;
  405. }
  406. message MemberUpdateResponse{
  407. ResponseHeader header = 1;
  408. }
  409. message MemberListRequest {
  410. }
  411. message MemberListResponse {
  412. ResponseHeader header = 1;
  413. // members is a list of all members associated with the cluster.
  414. repeated Member members = 2;
  415. }
  416. message DefragmentRequest {
  417. }
  418. message DefragmentResponse {
  419. ResponseHeader header = 1;
  420. }
  421. enum AlarmType {
  422. NONE = 0; // default, used to query if any alarm is active
  423. NOSPACE = 1; // space quota is exhausted
  424. }
  425. message AlarmRequest {
  426. enum AlarmAction {
  427. GET = 0;
  428. ACTIVATE = 1;
  429. DEACTIVATE = 2;
  430. }
  431. // action is the kind of alarm request to issue. The action
  432. // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
  433. // raised alarm.
  434. AlarmAction action = 1;
  435. // memberID is the ID of the member associated with the alarm. If memberID is 0, the
  436. // alarm request covers all members.
  437. uint64 memberID = 2;
  438. // alarm is the type of alarm to consider for this request.
  439. AlarmType alarm = 3;
  440. }
  441. message AlarmMember {
  442. // memberID is the ID of the member associated with the raised alarm.
  443. uint64 memberID = 1;
  444. // alarm is the type of alarm which has been raised.
  445. AlarmType alarm = 2;
  446. }
  447. message AlarmResponse {
  448. ResponseHeader header = 1;
  449. // alarms is a list of alarms associated with the alarm request.
  450. repeated AlarmMember alarms = 2;
  451. }
  452. message StatusRequest {
  453. }
  454. message StatusResponse {
  455. ResponseHeader header = 1;
  456. // version is the cluster protocol version used by the responding member.
  457. string version = 2;
  458. // dbSize is the size of the backend database, in bytes, of the responding member.
  459. int64 dbSize = 3;
  460. // leader is the member ID which the responding member believes is the current leader.
  461. uint64 leader = 4;
  462. // raftIndex is the current raft index of the responding member.
  463. uint64 raftIndex = 5;
  464. // raftTerm is the current raft term of the responding member.
  465. uint64 raftTerm = 6;
  466. }
  467. message AuthEnableRequest {
  468. }
  469. message AuthDisableRequest {
  470. }
  471. message AuthenticateRequest {
  472. string name = 1;
  473. string password = 2;
  474. }
  475. message AuthUserAddRequest {
  476. string name = 1;
  477. string password = 2;
  478. }
  479. message AuthUserGetRequest {
  480. }
  481. message AuthUserDeleteRequest {
  482. // name is the name of the user to delete.
  483. string name = 1;
  484. }
  485. message AuthUserChangePasswordRequest {
  486. // name is the name of the user whose password is being changed.
  487. string name = 1;
  488. // password is the new password for the user.
  489. string password = 2;
  490. }
  491. message AuthUserGrantRequest {
  492. // user is the name of the user which should be granted a given role.
  493. string user = 1;
  494. // role is the name of the role to grant to the user.
  495. string role = 2;
  496. }
  497. message AuthUserRevokeRequest {
  498. }
  499. message AuthRoleAddRequest {
  500. // name is the name of the role to add to the authentication system.
  501. string name = 1;
  502. }
  503. message AuthRoleGetRequest {
  504. }
  505. message AuthRoleDeleteRequest {
  506. }
  507. message AuthRoleGrantRequest {
  508. // name is the name of the role which will be granted the permission.
  509. string name = 1;
  510. // perm is the permission to grant to the role.
  511. authpb.Permission perm = 2;
  512. }
  513. message AuthRoleRevokeRequest {
  514. }
  515. message AuthEnableResponse {
  516. ResponseHeader header = 1;
  517. }
  518. message AuthDisableResponse {
  519. ResponseHeader header = 1;
  520. }
  521. message AuthenticateResponse {
  522. ResponseHeader header = 1;
  523. // token is an authorized token that can be used in succeeding RPCs
  524. string token = 2;
  525. }
  526. message AuthUserAddResponse {
  527. ResponseHeader header = 1;
  528. }
  529. message AuthUserGetResponse {
  530. ResponseHeader header = 1;
  531. }
  532. message AuthUserDeleteResponse {
  533. ResponseHeader header = 1;
  534. }
  535. message AuthUserChangePasswordResponse {
  536. ResponseHeader header = 1;
  537. }
  538. message AuthUserGrantResponse {
  539. ResponseHeader header = 1;
  540. }
  541. message AuthUserRevokeResponse {
  542. ResponseHeader header = 1;
  543. }
  544. message AuthRoleAddResponse {
  545. ResponseHeader header = 1;
  546. }
  547. message AuthRoleGetResponse {
  548. ResponseHeader header = 1;
  549. }
  550. message AuthRoleDeleteResponse {
  551. ResponseHeader header = 1;
  552. }
  553. message AuthRoleGrantResponse {
  554. ResponseHeader header = 1;
  555. }
  556. message AuthRoleRevokeResponse {
  557. ResponseHeader header = 1;
  558. }