cls.LogGroup
*/
class LogGroup extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field repeated .cls.Log logs = 1;
*/
private $logs;
/**
* Generated from protobuf field optional string contextFlow = 2;
*/
protected $contextFlow = null;
/**
* Generated from protobuf field optional string filename = 3;
*/
protected $filename = null;
/**
* Generated from protobuf field optional string source = 4;
*/
protected $source = null;
/**
* Generated from protobuf field repeated .cls.LogTag logTags = 5;
*/
private $logTags;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $logs
* @type string $contextFlow
* @type string $filename
* @type string $source
* @type \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $logTags
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Cls::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field repeated .cls.Log logs = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getLogs()
{
return $this->logs;
}
/**
* Generated from protobuf field repeated .cls.Log logs = 1;
* @param \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setLogs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\Log::class);
$this->logs = $arr;
return $this;
}
/**
* Generated from protobuf field optional string contextFlow = 2;
* @return string
*/
public function getContextFlow()
{
return isset($this->contextFlow) ? $this->contextFlow : '';
}
public function hasContextFlow()
{
return isset($this->contextFlow);
}
public function clearContextFlow()
{
unset($this->contextFlow);
}
/**
* Generated from protobuf field optional string contextFlow = 2;
* @param string $var
* @return $this
*/
public function setContextFlow($var)
{
GPBUtil::checkString($var, True);
$this->contextFlow = $var;
return $this;
}
/**
* Generated from protobuf field optional string filename = 3;
* @return string
*/
public function getFilename()
{
return isset($this->filename) ? $this->filename : '';
}
public function hasFilename()
{
return isset($this->filename);
}
public function clearFilename()
{
unset($this->filename);
}
/**
* Generated from protobuf field optional string filename = 3;
* @param string $var
* @return $this
*/
public function setFilename($var)
{
GPBUtil::checkString($var, True);
$this->filename = $var;
return $this;
}
/**
* Generated from protobuf field optional string source = 4;
* @return string
*/
public function getSource()
{
return isset($this->source) ? $this->source : '';
}
public function hasSource()
{
return isset($this->source);
}
public function clearSource()
{
unset($this->source);
}
/**
* Generated from protobuf field optional string source = 4;
* @param string $var
* @return $this
*/
public function setSource($var)
{
GPBUtil::checkString($var, True);
$this->source = $var;
return $this;
}
/**
* Generated from protobuf field repeated .cls.LogTag logTags = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getLogTags()
{
return $this->logTags;
}
/**
* Generated from protobuf field repeated .cls.LogTag logTags = 5;
* @param \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setLogTags($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\LogTag::class);
$this->logTags = $arr;
return $this;
}
}