github.com/Finschia/finschia-sdk@v0.48.1/testutil/testdata/query.proto (about) 1 syntax = "proto3"; 2 package testdata; 3 4 import "google/protobuf/any.proto"; 5 import "testdata.proto"; 6 7 option go_package = "github.com/Finschia/finschia-sdk/testutil/testdata"; 8 9 // Query tests the protobuf Query service as defined in 10 // https://github.com/cosmos/cosmos-sdk/issues/5921. 11 service Query { 12 rpc Echo(EchoRequest) returns (EchoResponse); 13 rpc SayHello(SayHelloRequest) returns (SayHelloResponse); 14 rpc TestAny(TestAnyRequest) returns (TestAnyResponse); 15 } 16 17 message EchoRequest { 18 string message = 1; 19 } 20 21 message EchoResponse { 22 string message = 1; 23 } 24 25 message SayHelloRequest { 26 string name = 1; 27 } 28 29 message SayHelloResponse { 30 string greeting = 1; 31 } 32 33 message TestAnyRequest { 34 google.protobuf.Any any_animal = 1; 35 } 36 37 message TestAnyResponse { 38 testdata.HasAnimal has_animal = 1; 39 }