fix: correct path required proto testdata (#14991)
This commit is contained in:
Vendored
+39
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user