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

namespace Rv\Data\API_v1_Prop_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_Prop_Request.PutProp</code>
 */
class PutProp 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_Prop_Request.PutProp.AutoClearChange auto_clear_change = 3;</code>
     */
    protected $auto_clear_change = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $name_change
     *     @type \Rv\Data\API_v1_Prop_Request\PutProp\AutoClearChange $auto_clear_change
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Prop::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_Prop_Request.PutProp.AutoClearChange auto_clear_change = 3;</code>
     * @return \Rv\Data\API_v1_Prop_Request\PutProp\AutoClearChange|null
     */
    public function getAutoClearChange()
    {
        return $this->auto_clear_change;
    }

    public function hasAutoClearChange()
    {
        return isset($this->auto_clear_change);
    }

    public function clearAutoClearChange()
    {
        unset($this->auto_clear_change);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.PutProp.AutoClearChange auto_clear_change = 3;</code>
     * @param \Rv\Data\API_v1_Prop_Request\PutProp\AutoClearChange $var
     * @return $this
     */
    public function setAutoClearChange($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\PutProp\AutoClearChange::class);
        $this->auto_clear_change = $var;

        return $this;
    }

}

