Error: undefined: proto.ProtoPackageIsVersion3

I am getting error while using ipfs-cluster.

# github.com/ipfs/ipfs-cluster/api/pb
..\github.com\ipfs\ipfs-cluster\api\pb\types.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3

The version of your gogo/protobuf dependency is out of date, try updating to the latest release