array( 'name' => 'logs', 'repeated' => true, 'type' => '\Hdll\Services\Common\ClsLogger\Cls\Log' ), self::CONTEXTFLOW => array( 'name' => 'contextFlow', 'required' => false, 'type' => \ProtobufMessage::PB_TYPE_STRING, ), self::FILENAME => array( 'name' => 'filename', 'required' => false, 'type' => \ProtobufMessage::PB_TYPE_STRING, ), self::SOURCE => array( 'name' => 'source', 'required' => false, 'type' => \ProtobufMessage::PB_TYPE_STRING, ), ); /** * Constructs new message container and clears its internal state */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones * * @return null */ public function reset() { $this->values[self::LOGS] = array(); $this->values[self::CONTEXTFLOW] = null; $this->values[self::FILENAME] = null; $this->values[self::SOURCE] = null; } /** * Returns field descriptors * * @return array */ public function fields() { return self::$fields; } /** * Appends value to 'logs' list * * @param \Hdll\Services\Common\ClsLogger\Cls\Log $value Value to append * * @return null */ public function appendLogs(\Hdll\Services\Common\ClsLogger\Cls\Log $value) { return $this->append(self::LOGS, $value); } /** * Clears 'logs' list * * @return null */ public function clearLogs() { return $this->clear(self::LOGS); } /** * Returns 'logs' list * * @return \Hdll\Services\Common\ClsLogger\Cls\Log[] */ public function getLogs() { return $this->get(self::LOGS); } /** * Returns 'logs' iterator * * @return \ArrayIterator */ public function getLogsIterator() { return new \ArrayIterator($this->get(self::LOGS)); } /** * Returns element from 'logs' list at given offset * * @param int $offset Position in list * * @return \Hdll\Services\Common\ClsLogger\Cls\Log */ public function getLogsAt($offset) { return $this->get(self::LOGS, $offset); } /** * Returns count of 'logs' list * * @return int */ public function getLogsCount() { return $this->count(self::LOGS); } /** * Sets value of 'contextFlow' property * * @param string $value Property value * * @return null */ public function setContextFlow($value) { return $this->set(self::CONTEXTFLOW, $value); } /** * Returns value of 'contextFlow' property * * @return string */ public function getContextFlow() { $value = $this->get(self::CONTEXTFLOW); return $value === null ? (string)$value : $value; } /** * Sets value of 'filename' property * * @param string $value Property value * * @return null */ public function setFilename($value) { return $this->set(self::FILENAME, $value); } /** * Returns value of 'filename' property * * @return string */ public function getFilename() { $value = $this->get(self::FILENAME); return $value === null ? (string)$value : $value; } /** * Sets value of 'source' property * * @param string $value Property value * * @return null */ public function setSource($value) { return $this->set(self::SOURCE, $value); } /** * Returns value of 'source' property * * @return string */ public function getSource() { $value = $this->get(self::SOURCE); return $value === null ? (string)$value : $value; } } }