...
service FirstService {
rpc List (ObjectA) returns (ObjectA) {}
}
service SecondService {
rpc List (ObjectB) returns (ObjectB) {}
}
The protoc generator will generate the following stub using mode=grpcwebtext
...
const methodInfo_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.servicename.ObjectB,
...
);
// and another one with the same name
const methodInfo_List = new grpc.web.AbstractClientBase.MethodInfo(
proto.servicename.ObjectA,
...
);
When give
.proto
file of suchThe
protoc
generator will generate the following stub usingmode=grpcwebtext
which results in a
SyntaxError