github.com/cosmos/cosmos-sdk@v0.50.10/testutil/testdata/testpb/testdata.proto (about) 1 syntax = "proto3"; 2 package testpb; 3 4 import "gogoproto/gogo.proto"; 5 import "google/protobuf/any.proto"; 6 7 option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; 8 9 message Dog { 10 string size = 1; 11 string name = 2; 12 } 13 14 message Cat { 15 string moniker = 1; 16 int32 lives = 2; 17 } 18 19 message Bird { 20 string species = 1; 21 int32 color = 2; 22 } 23 24 message HasAnimal { 25 google.protobuf.Any animal = 1; 26 int64 x = 2; 27 } 28 29 message HasHasAnimal { 30 google.protobuf.Any has_animal = 1; 31 } 32 33 message HasHasHasAnimal { 34 google.protobuf.Any has_has_animal = 1; 35 } 36 37 // bad MultiSignature with extra fields 38 message BadMultiSignature { 39 option (gogoproto.goproto_unrecognized) = true; 40 repeated bytes signatures = 1; 41 bytes malicious_field = 5; 42 } 43 44 message TableModel { 45 uint64 id = 1; 46 string name = 2; 47 uint64 number = 3; 48 bytes metadata = 4; 49 }