diff --git a/src/protobuf_js_5_common.js b/src/protobuf_js_5_common.js index b16228b9..62cf2f4a 100644 --- a/src/protobuf_js_5_common.js +++ b/src/protobuf_js_5_common.js @@ -120,6 +120,7 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service, return _.camelCase(method.name); }), _.map(service.children, function(method) { return { + originalName: method.name, path: prefix + method.name, requestStream: method.requestStream, responseStream: method.responseStream, diff --git a/src/protobuf_js_6_common.js b/src/protobuf_js_6_common.js index 7e523731..cac0f711 100644 --- a/src/protobuf_js_6_common.js +++ b/src/protobuf_js_6_common.js @@ -121,6 +121,7 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service, return _.camelCase(method.name); }), _.map(service.methods, function(method) { return { + originalName: method.name, path: prefix + method.name, requestStream: !!method.requestStream, responseStream: !!method.responseStream,