public static function toProtobuf($object, $filter = NULL)
	{
		$output = '';

		if (isset($object->x) && ($filter === null || isset($filter['x']))) {
			$output .= "\x08";
			$output .= Binary::encodeVarint($object->x);
		}

		return $output;
	}