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

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

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

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

		return $output;
	}