rv.data.API_v1_Macro_Request.PutMacro
*/
class PutMacro extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string id = 1;
*/
protected $id = '';
/**
* Generated from protobuf field string name_change = 2;
*/
protected $name_change = '';
/**
* Generated from protobuf field .rv.data.API_v1_Color color_change = 3;
*/
protected $color_change = null;
/**
* Generated from protobuf field string image_type_change = 4;
*/
protected $image_type_change = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* @type string $name_change
* @type \Rv\Data\API_v1_Color $color_change
* @type string $image_type_change
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Macro::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string id = 1;
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Generated from protobuf field string id = 1;
* @param string $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkString($var, True);
$this->id = $var;
return $this;
}
/**
* Generated from protobuf field string name_change = 2;
* @return string
*/
public function getNameChange()
{
return $this->name_change;
}
/**
* Generated from protobuf field string name_change = 2;
* @param string $var
* @return $this
*/
public function setNameChange($var)
{
GPBUtil::checkString($var, True);
$this->name_change = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.API_v1_Color color_change = 3;
* @return \Rv\Data\API_v1_Color|null
*/
public function getColorChange()
{
return $this->color_change;
}
public function hasColorChange()
{
return isset($this->color_change);
}
public function clearColorChange()
{
unset($this->color_change);
}
/**
* Generated from protobuf field .rv.data.API_v1_Color color_change = 3;
* @param \Rv\Data\API_v1_Color $var
* @return $this
*/
public function setColorChange($var)
{
GPBUtil::checkMessage($var, \Rv\Data\API_v1_Color::class);
$this->color_change = $var;
return $this;
}
/**
* Generated from protobuf field string image_type_change = 4;
* @return string
*/
public function getImageTypeChange()
{
return $this->image_type_change;
}
/**
* Generated from protobuf field string image_type_change = 4;
* @param string $var
* @return $this
*/
public function setImageTypeChange($var)
{
GPBUtil::checkString($var, True);
$this->image_type_change = $var;
return $this;
}
}