rv.data.MacroIcons.MacroIcon */ class MacroIcon extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.MacrosDocument.Macro.ImageType image_type = 1; */ protected $image_type = 0; /** * Generated from protobuf field bytes image_data = 2; */ protected $image_data = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $image_type * @type string $image_data * } */ public function __construct($data = NULL) { \GPBMetadata\ProCore::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.MacrosDocument.Macro.ImageType image_type = 1; * @return int */ public function getImageType() { return $this->image_type; } /** * Generated from protobuf field .rv.data.MacrosDocument.Macro.ImageType image_type = 1; * @param int $var * @return $this */ public function setImageType($var) { GPBUtil::checkEnum($var, \Rv\Data\MacrosDocument\Macro\ImageType::class); $this->image_type = $var; return $this; } /** * Generated from protobuf field bytes image_data = 2; * @return string */ public function getImageData() { return $this->image_data; } /** * Generated from protobuf field bytes image_data = 2; * @param string $var * @return $this */ public function setImageData($var) { GPBUtil::checkString($var, False); $this->image_data = $var; return $this; } }