Search in sources :

Example 6 with Service

use of io.protostuff.compiler.model.Service in project incubator-servicecomb-java-chassis by apache.

the class ProtoMapper method getResponseMessage.

public Message getResponseMessage(String operationId) {
    Service service = proto.getServices().get(0);
    ServiceMethod serviceMethod = service.getMethod(operationId);
    return serviceMethod.getReturnType();
}
Also used : Service(io.protostuff.compiler.model.Service) ServiceMethod(io.protostuff.compiler.model.ServiceMethod)

Aggregations

Service (io.protostuff.compiler.model.Service)6 ServiceMethod (io.protostuff.compiler.model.ServiceMethod)4 Enum (io.protostuff.compiler.model.Enum)2 Import (io.protostuff.compiler.model.Import)2 Message (io.protostuff.compiler.model.Message)2