static _encodeProto(proto, data) {
		return proto.encode(data).finish();
	}
Encode a protobuf.
@param {object} proto - The protobuf class
@param {object} data - The data to serialize
@returns {Buffer}
@protected