func GetMethod(pb *descriptor.MethodDescriptorProto, service, pkg string) (method *Method, err error) {
	method = &Method{
		Package: pkg,
		Service: service,
		Method:  pb.GetName(),
		Stream:  pb.GetClientStreaming() || pb.GetServerStreaming(),
	}
	if pb.Options != nil {
		if method.Interceptors, err = GetInterceptors(pb.Options, annotations.E_MethodInterceptors); err != nil {
			return nil, err
		}
	}
	return
}
GetMethod parses `pb` and builds from it a `Method` object.
package descriptor
import (
	"github.com/golang/protobuf/protoc-gen-go/descriptor"
	"github.com/MarquisIO/go-grpcmw/annotations"
)
type Method struct {
	Package      string
	Service      string
	Method       string
	Stream       bool
	Interceptors *Interceptors
}