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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Unsupported {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Config {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub self_check_period_millis: u32,
#[prost(uint32, tag = "3")]
pub session_grace_period_millis: u32,
#[prost(enumeration = "ConsistencyMode", tag = "4")]
pub read_consistency_mode: i32,
#[prost(enumeration = "ConsistencyMode", tag = "5")]
pub attach_consistency_mode: i32,
#[prost(enumeration = "RateLimiterCountersMode", tag = "6")]
pub rate_limiter_counters_mode: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionDescription {
#[prost(uint64, tag = "1")]
pub session_id: u64,
#[prost(uint64, tag = "2")]
pub timeout_millis: u64,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub attached: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SemaphoreSession {
#[prost(uint64, tag = "5")]
pub order_id: u64,
#[prost(uint64, tag = "1")]
pub session_id: u64,
#[prost(uint64, tag = "2")]
pub timeout_millis: u64,
#[prost(uint64, tag = "3")]
pub count: u64,
#[prost(bytes = "vec", tag = "4")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SemaphoreDescription {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub data: ::prost::alloc::vec::Vec<u8>,
#[prost(uint64, tag = "7")]
pub count: u64,
#[prost(uint64, tag = "3")]
pub limit: u64,
#[prost(bool, tag = "4")]
pub ephemeral: bool,
#[prost(message, repeated, tag = "5")]
pub owners: ::prost::alloc::vec::Vec<SemaphoreSession>,
#[prost(message, repeated, tag = "6")]
pub waiters: ::prost::alloc::vec::Vec<SemaphoreSession>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionRequest {
#[prost(
oneof = "session_request::Request",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15"
)]
pub request: ::core::option::Option<session_request::Request>,
}
pub mod session_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingPong {
#[prost(uint64, tag = "1")]
pub opaque: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionStart {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub session_id: u64,
#[prost(uint64, tag = "3")]
pub timeout_millis: u64,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
#[prost(uint64, tag = "5")]
pub seq_no: u64,
#[prost(bytes = "vec", tag = "6")]
pub protection_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionStop {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcquireSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
pub timeout_millis: u64,
#[prost(uint64, tag = "4")]
pub count: u64,
#[prost(bytes = "vec", tag = "5")]
pub data: ::prost::alloc::vec::Vec<u8>,
#[prost(bool, tag = "6")]
pub ephemeral: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub include_owners: bool,
#[prost(bool, tag = "4")]
pub include_waiters: bool,
#[prost(bool, tag = "5")]
pub watch_data: bool,
#[prost(bool, tag = "6")]
pub watch_owners: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
pub limit: u64,
#[prost(bytes = "vec", tag = "4")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "3")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSemaphore {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub force: bool,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Request {
#[prost(message, tag = "1")]
Ping(PingPong),
#[prost(message, tag = "2")]
Pong(PingPong),
#[prost(message, tag = "3")]
SessionStart(SessionStart),
#[prost(message, tag = "4")]
SessionStop(SessionStop),
#[prost(message, tag = "5")]
Unsupported5(super::Unsupported),
#[prost(message, tag = "6")]
Unsupported6(super::Unsupported),
#[prost(message, tag = "7")]
AcquireSemaphore(AcquireSemaphore),
#[prost(message, tag = "8")]
ReleaseSemaphore(ReleaseSemaphore),
#[prost(message, tag = "9")]
DescribeSemaphore(DescribeSemaphore),
#[prost(message, tag = "10")]
CreateSemaphore(CreateSemaphore),
#[prost(message, tag = "11")]
UpdateSemaphore(UpdateSemaphore),
#[prost(message, tag = "12")]
DeleteSemaphore(DeleteSemaphore),
#[prost(message, tag = "13")]
Unsupported13(super::Unsupported),
#[prost(message, tag = "14")]
Unsupported14(super::Unsupported),
#[prost(message, tag = "15")]
Unsupported15(super::Unsupported),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionResponse {
#[prost(
oneof = "session_response::Response",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18"
)]
pub response: ::core::option::Option<session_response::Response>,
}
pub mod session_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingPong {
#[prost(uint64, tag = "1")]
pub opaque: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
pub status: i32,
#[prost(message, repeated, tag = "2")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionStarted {
#[prost(uint64, tag = "1")]
pub session_id: u64,
#[prost(uint64, tag = "2")]
pub timeout_millis: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionStopped {
#[prost(uint64, tag = "1")]
pub session_id: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcquireSemaphorePending {
#[prost(uint64, tag = "1")]
pub req_id: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcquireSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
#[prost(bool, tag = "4")]
pub acquired: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
#[prost(bool, tag = "4")]
pub released: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
#[prost(message, optional, tag = "4")]
pub semaphore_description: ::core::option::Option<super::SemaphoreDescription>,
#[prost(bool, tag = "5")]
pub watch_added: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeSemaphoreChanged {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(bool, tag = "2")]
pub data_changed: bool,
#[prost(bool, tag = "3")]
pub owners_changed: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSemaphoreResult {
#[prost(uint64, tag = "1")]
pub req_id: u64,
#[prost(enumeration = "super::super::status_ids::StatusCode", tag = "2")]
pub status: i32,
#[prost(message, repeated, tag = "3")]
pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "1")]
Ping(PingPong),
#[prost(message, tag = "2")]
Pong(PingPong),
#[prost(message, tag = "3")]
Failure(Failure),
#[prost(message, tag = "4")]
SessionStarted(SessionStarted),
#[prost(message, tag = "5")]
SessionStopped(SessionStopped),
#[prost(message, tag = "6")]
Unsupported6(super::Unsupported),
#[prost(message, tag = "7")]
Unsupported7(super::Unsupported),
#[prost(message, tag = "8")]
AcquireSemaphorePending(AcquireSemaphorePending),
#[prost(message, tag = "9")]
AcquireSemaphoreResult(AcquireSemaphoreResult),
#[prost(message, tag = "10")]
ReleaseSemaphoreResult(ReleaseSemaphoreResult),
#[prost(message, tag = "11")]
DescribeSemaphoreResult(DescribeSemaphoreResult),
#[prost(message, tag = "12")]
DescribeSemaphoreChanged(DescribeSemaphoreChanged),
#[prost(message, tag = "13")]
CreateSemaphoreResult(CreateSemaphoreResult),
#[prost(message, tag = "14")]
UpdateSemaphoreResult(UpdateSemaphoreResult),
#[prost(message, tag = "15")]
DeleteSemaphoreResult(DeleteSemaphoreResult),
#[prost(message, tag = "16")]
Unsupported16(super::Unsupported),
#[prost(message, tag = "17")]
Unsupported17(super::Unsupported),
#[prost(message, tag = "18")]
Unsupported18(super::Unsupported),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateNodeRequest {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub config: ::core::option::Option<Config>,
#[prost(message, optional, tag = "3")]
pub operation_params: ::core::option::Option<super::operations::OperationParams>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateNodeResponse {
#[prost(message, optional, tag = "1")]
pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterNodeRequest {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub config: ::core::option::Option<Config>,
#[prost(message, optional, tag = "3")]
pub operation_params: ::core::option::Option<super::operations::OperationParams>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AlterNodeResponse {
#[prost(message, optional, tag = "1")]
pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DropNodeRequest {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub operation_params: ::core::option::Option<super::operations::OperationParams>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DropNodeResponse {
#[prost(message, optional, tag = "1")]
pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeNodeRequest {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub operation_params: ::core::option::Option<super::operations::OperationParams>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeNodeResponse {
#[prost(message, optional, tag = "1")]
pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeNodeResult {
#[prost(message, optional, tag = "1")]
pub self_: ::core::option::Option<super::scheme::Entry>,
#[prost(message, optional, tag = "2")]
pub config: ::core::option::Option<Config>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConsistencyMode {
Unset = 0,
Strict = 1,
Relaxed = 2,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RateLimiterCountersMode {
Unset = 0,
Aggregated = 1,
Detailed = 2,
}