cls.Log */ class Log extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int64 time = 1; */ protected $time = 0; /** * Generated from protobuf field repeated .cls.Log.Content contents = 2; */ private $contents; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $time * @type \Cls\Log\Content[]|\Google\Protobuf\Internal\RepeatedField $contents * } */ public function __construct($data = NULL) { \GPBMetadata\Cls::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int64 time = 1; * @return int|string */ public function getTime() { return $this->time; } /** * Generated from protobuf field int64 time = 1; * @param int|string $var * @return $this */ public function setTime($var) { GPBUtil::checkInt64($var); $this->time = $var; return $this; } /** * Generated from protobuf field repeated .cls.Log.Content contents = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getContents() { return $this->contents; } /** * Generated from protobuf field repeated .cls.Log.Content contents = 2; * @param \Cls\Log\Content[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setContents($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\Log\Content::class); $this->contents = $arr; return $this; } }