We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
such as google.protobuf.StringValue
google.protobuf.StringValue
proto file:
syntax = "proto3"; package pb; import "google/api/annotations.proto"; import "google/api/httpbody.proto"; import "google/protobuf/wrappers.proto"; service Hello { rpc Helloworld (HelloworldRequest) returns (google.protobuf.StringValue) { option (google.api.http) = { get: "/hello/" }; } } message HelloworldRequest { string name = 1; }
the generated code:
func (s helloService) Helloworld(ctx context.Context, in *pb.HelloworldRequest) (*pb.StringValue, error) { var resp pb.StringValue return &resp, nil }
It should be
import types "github.com/gogo/protobuf/types" ... type HelloServer interface { Helloworld(context.Context, *HelloworldRequest) (*types.StringValue, error) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
such as
google.protobuf.StringValue
proto file:
the generated code:
It should be
The text was updated successfully, but these errors were encountered: