Skip to content

GRPCProtobufPayload issue with import proto in another proto #738

Closed
@Banck

Description

@Banck

Hello!
Let's imagine we have 2 (or more) protos. And in one proto we imported another one.
In this case, in every *.grpc.swift will be generated extensions for the same messages with conform GRPCProtobufPayload protocol.
For example:
Devices has RegisterRequest and ResponseRequest.
And Video looks like:

syntax = "proto3";

option java_package = "*";

import "google/protobuf/empty.proto";
import "devices_services.proto";

service Videos {
    rpc test (RegisterRequest) returns (RegisterResponse);
}

Then in devices_services.grpc will be

/// Provides conformance to `GRPCPayload` for the request and response messages
extension RegisterRequest: GRPCProtobufPayload {}
extension RegisterResponse: GRPCProtobufPayload {}

and in videos_services.grpc will be the same lines:

/// Provides conformance to `GRPCPayload` for the request and response messages
extension RegisterRequest: GRPCProtobufPayload {}
extension RegisterResponse: GRPCProtobufPayload {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions