@VisitsBefore void visit(Method method) { // Resolve input and output type of this method. TypeRef inputType = resolveType(method.getLocation(), FieldDescriptorProto.Type.TYPE_MESSAGE, method.getDescriptor().getInputTypeName()); if (inputType != null) { method.setInputType(inputType); } TypeRef outputType = resolveType(method.getLocation(), FieldDescriptorProto.Type.TYPE_MESSAGE, method.getDescriptor().getOutputTypeName()); if (outputType != null) { method.setOutputType(outputType); } findOptionTypes(method.getOptionFields()); }
@VisitsBefore void visit(Method method) { // Resolve input and output type of this method. TypeRef inputType = resolveType(method.getLocation(), FieldDescriptorProto.Type.TYPE_MESSAGE, method.getDescriptor().getInputTypeName()); if (inputType != null) { method.setInputType(inputType); } TypeRef outputType = resolveType(method.getLocation(), FieldDescriptorProto.Type.TYPE_MESSAGE, method.getDescriptor().getOutputTypeName()); if (outputType != null) { method.setOutputType(outputType); } findOptionTypes(method.getOptionFields()); }