Skip to content

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

@utamori

Description

@utamori

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions