Debian Codegraph @

test/core/resource_quota/memory_quota_fuzzer.proto

raw
1 // Copyright 2021 gRPC authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16
17 package memory_quota_fuzzer;
18
19 message Empty {}
20
21 message Reclaimer {
22 enum Pass {
23 BENIGN = 0;
24 IDLE = 1;
25 DESTRUCTIVE = 2;
26 }
27 bool synchronous = 1;
28 Pass pass = 2;
29 Msg msg = 3;
30 }
31
32 message AllocationRequest {
33 uint32 min = 1;
34 uint32 max = 2;
35 }
36
37 message Action {
38 reserved 15;
39 int32 quota = 1;
40 int32 allocator = 2;
41 int32 allocation = 3;
42 oneof action_type {
43 Empty flush_exec_ctx = 7;
44 Empty create_quota = 10;
45 Empty delete_quota = 11;
46 Empty create_allocator = 12;
47 Empty delete_allocator = 13;
48 uint64 set_quota_size = 14;
49 AllocationRequest create_allocation = 16;
50 Empty delete_allocation = 17;
51 Reclaimer post_reclaimer = 18;
52 }
53 }
54
55 message Msg {
56 repeated Action actions = 2;
57 }