fix: correct path required proto testdata (#14991)

This commit is contained in:
Julien Robert
2023-02-11 16:59:16 +00:00
committed by GitHub
parent 467b4f25b8
commit a90569c7e4
38 changed files with 3351 additions and 3350 deletions
+39
View File
@@ -0,0 +1,39 @@
syntax = "proto3";
package testpb;
import "google/protobuf/any.proto";
import "testpb/testdata.proto";
option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
// Query tests the protobuf Query service as defined in
// https://github.com/cosmos/cosmos-sdk/issues/5921.
service Query {
rpc Echo(EchoRequest) returns (EchoResponse);
rpc SayHello(SayHelloRequest) returns (SayHelloResponse);
rpc TestAny(TestAnyRequest) returns (TestAnyResponse);
}
message EchoRequest {
string message = 1;
}
message EchoResponse {
string message = 1;
}
message SayHelloRequest {
string name = 1;
}
message SayHelloResponse {
string greeting = 1;
}
message TestAnyRequest {
google.protobuf.Any any_animal = 1;
}
message TestAnyResponse {
testpb.HasAnimal has_animal = 1;
}