1syntax = "proto2"; 2 3import "google/protobuf/descriptor.proto"; 4 5// see https://github.com/gogo/protobuf/blob/master/gogoproto/gogo.proto 6// for the original idea 7 8// Generated files can be customized using this proto 9// or using `Customize` struct when codegen is invoked programmatically. 10 11package rustproto; 12 13extend google.protobuf.FileOptions { 14 // When false, `get_`, `set_`, `mut_` etc. accessors are not generated 15 optional bool generate_accessors_all = 17004; 16 // When false, `get_` is not generated even if `syntax = "proto2"` 17 optional bool generate_getter_all = 17005; 18 // Use `bytes::Bytes` for `bytes` fields 19 optional bool tokio_bytes_all = 17011; 20 // Use `bytes::Bytes` for `string` fields 21 optional bool tokio_bytes_for_string_all = 17012; 22 23 // When true, will only generate codes that works with lite runtime. 24 optional bool lite_runtime_all = 17035; 25} 26 27extend google.protobuf.MessageOptions { 28 // When false, `get_`, `set_`, `mut_` etc. accessors are not generated 29 optional bool generate_accessors = 17004; 30 // When false, `get_` is not generated even if `syntax = "proto2"` 31 optional bool generate_getter = 17005; 32 // Use `bytes::Bytes` for `bytes` fields 33 optional bool tokio_bytes = 17011; 34 // Use `bytes::Bytes` for `string` fields 35 optional bool tokio_bytes_for_string = 17012; 36} 37 38extend google.protobuf.FieldOptions { 39 // When false, `get_`, `set_`, `mut_` etc. accessors are not generated 40 optional bool generate_accessors_field = 17004; 41 // When false, `get_` is not generated even if `syntax = "proto2"` 42 optional bool generate_getter_field = 17005; 43 // Use `bytes::Bytes` for `bytes` fields 44 optional bool tokio_bytes_field = 17011; 45 // Use `bytes::Bytes` for `string` fields 46 optional bool tokio_bytes_for_string_field = 17012; 47} 48