palm.lily.v1.S3GetFileRequest
*/
class S3GetFileRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string bucket = 1;
*/
protected $bucket = '';
/**
* Generated from protobuf field string name = 2;
*/
protected $name = '';
/**
* Generated from protobuf field .google.protobuf.Duration ttl = 9;
*/
protected $ttl = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $bucket
* @type string $name
* @type \Google\Protobuf\Duration $ttl
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Lily::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string bucket = 1;
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Generated from protobuf field string bucket = 1;
* @param string $var
* @return $this
*/
public function setBucket($var)
{
GPBUtil::checkString($var, True);
$this->bucket = $var;
return $this;
}
/**
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field .google.protobuf.Duration ttl = 9;
* @return \Google\Protobuf\Duration|null
*/
public function getTtl()
{
return $this->ttl;
}
public function hasTtl()
{
return isset($this->ttl);
}
public function clearTtl()
{
unset($this->ttl);
}
/**
* Generated from protobuf field .google.protobuf.Duration ttl = 9;
* @param \Google\Protobuf\Duration $var
* @return $this
*/
public function setTtl($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
$this->ttl = $var;
return $this;
}
}