Skip to content
New issue

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

feat(protoc_plugin): use Fully-qualified service name even for Non-gRPC Service (e.g. greet.v1.GreetService) #941

Open
utamori opened this issue Aug 6, 2024 · 0 comments

Comments

@utamori
Copy link

utamori commented Aug 6, 2024

The process for obtaining the service name is different Whether the grpc option is enabled.

I want to call rpc with the full service name, even when grpc is not used.
Should I add a new option?

GrpcServiceGenerator(this._descriptor, this.fileGen) {
final name = _descriptor.name;
final package = fileGen.package;
if (package.isNotEmpty) {
_fullServiceName = '$package.$name';
} else {
_fullServiceName = name;

ClientApiGenerator(
this.service, Set<String> usedNames, this._repeatedFieldIndex)
: className = disambiguateName(
avoidInitialUnderscore(service._descriptor.name),
usedNames,
defaultSuffixes());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant