palm.lily.v1.File
*/
class File extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field optional string content_type = 1;
*/
protected $content_type = null;
/**
* Generated from protobuf field bytes payload = 2;
*/
protected $payload = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $content_type
* @type string $payload
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Lily::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field optional string content_type = 1;
* @return string
*/
public function getContentType()
{
return isset($this->content_type) ? $this->content_type : '';
}
public function hasContentType()
{
return isset($this->content_type);
}
public function clearContentType()
{
unset($this->content_type);
}
/**
* Generated from protobuf field optional string content_type = 1;
* @param string $var
* @return $this
*/
public function setContentType($var)
{
GPBUtil::checkString($var, True);
$this->content_type = $var;
return $this;
}
/**
* Generated from protobuf field bytes payload = 2;
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* Generated from protobuf field bytes payload = 2;
* @param string $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkString($var, False);
$this->payload = $var;
return $this;
}
}