github.com/gogo/protobuf@v1.3.2/test/typedecl/typedecl.proto (about) 1 syntax = "proto3"; 2 3 package typedecl; 4 5 import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 6 7 option (gogoproto.testgen_all) = true; 8 option (gogoproto.populate_all) = true; 9 option (gogoproto.benchgen_all) = true; 10 option (gogoproto.unmarshaler_all) = true; 11 option (gogoproto.marshaler_all) = true; 12 option (gogoproto.sizer_all) = true; 13 option (gogoproto.equal_all) = true; 14 option (gogoproto.verbose_equal_all) = true; 15 option (gogoproto.unsafe_marshaler_all) = false; 16 option (gogoproto.unsafe_unmarshaler_all) = false; 17 option (gogoproto.goproto_unrecognized_all) = false; 18 19 message Dropped { 20 option (gogoproto.typedecl) = false; 21 string name = 1; 22 int32 age = 2; 23 } 24 25 message DroppedWithoutGetters { 26 option (gogoproto.typedecl) = false; 27 option (gogoproto.goproto_getters) = false; 28 int64 height = 1; 29 int64 width = 2; 30 } 31 32 message Kept { 33 string name = 1; 34 int32 age = 2; 35 }