| 1 |
// Copyright 2022 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 flow_control_fuzzer; |
| 18 |
|
| 19 |
message Empty {}; |
| 20 |
|
| 21 |
message StreamWrite { |
| 22 |
uint32 id = 1; |
| 23 |
uint32 size = 2; |
| 24 |
} |
| 25 |
|
| 26 |
message Action { |
| 27 |
oneof action { |
| 28 |
uint64 set_memory_quota = 1; |
| 29 |
uint64 step_time_ms = 2; |
| 30 |
Empty periodic_update = 3; |
| 31 |
Empty perform_send_to_remote = 4; |
| 32 |
Empty read_send_to_remote = 5; |
| 33 |
Empty read_send_from_remote = 6; |
| 34 |
StreamWrite stream_write = 7; |
| 35 |
Empty perform_send_from_remote = 8; |
| 36 |
StreamWrite set_min_progress_size = 9; |
| 37 |
uint32 allocate_memory = 10; |
| 38 |
uint32 deallocate_memory = 11; |
| 39 |
Empty perform_send_to_remote_with_payload = 12; |
| 40 |
StreamWrite set_pending_size = 13; |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
message Msg { |
| 45 |
bool enable_bdp = 1; |
| 46 |
repeated Action actions = 2; |
| 47 |
} |