pub fn build(self) -> Method {
        Method {
            name: self.name.unwrap(),
            route_name: self.route_name.unwrap(),
            comments: self.comments,
            input_type: self.input_type.unwrap(),
            output_type: self.output_type.unwrap(),
            client_streaming: self.client_streaming,
            server_streaming: self.server_streaming,
            deprecated: self.deprecated,
            codec_path: self.codec_path.unwrap(),
        }
    }
Build a Method

Panics if `name`, `route_name`, `input_type`, `output_type`, or `codec_path` weren't set.
tonic-build/src/manual.rs