<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Macro.proto

namespace Rv\Data\API_v1_Macro_Request;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.API_v1_Macro_Request.PutMacro</code>
 */
class PutMacro extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string name_change = 2;</code>
     */
    protected $name_change = '';
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Color color_change = 3;</code>
     */
    protected $color_change = null;
    /**
     * Generated from protobuf field <code>string image_type_change = 4;</code>
     */
    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 <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name_change = 2;</code>
     * @return string
     */
    public function getNameChange()
    {
        return $this->name_change;
    }

    /**
     * Generated from protobuf field <code>string name_change = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNameChange($var)
    {
        GPBUtil::checkString($var, True);
        $this->name_change = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Color color_change = 3;</code>
     * @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 <code>.rv.data.API_v1_Color color_change = 3;</code>
     * @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 <code>string image_type_change = 4;</code>
     * @return string
     */
    public function getImageTypeChange()
    {
        return $this->image_type_change;
    }

    /**
     * Generated from protobuf field <code>string image_type_change = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setImageTypeChange($var)
    {
        GPBUtil::checkString($var, True);
        $this->image_type_change = $var;

        return $this;
    }

}

