palm.lily.v1.PandocTask.Input
*/
class Input extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .palm.lily.v1.PandocTask.Format format = 1;
*/
protected $format = 0;
/**
* Generated from protobuf field bytes payload = 2;
*/
protected $payload = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $format
* @type string $payload
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Lily::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .palm.lily.v1.PandocTask.Format format = 1;
* @return int
*/
public function getFormat()
{
return $this->format;
}
/**
* Generated from protobuf field .palm.lily.v1.PandocTask.Format format = 1;
* @param int $var
* @return $this
*/
public function setFormat($var)
{
GPBUtil::checkEnum($var, \Palm\Lily\V1\PandocTask\Format::class);
$this->format = $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;
}
}