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

namespace Rv\Data;

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</code>
 */
class API_v1_Prop_Request extends \Google\Protobuf\Internal\Message
{
    protected $Request;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Prop_Request\Props $props
     *     @type \Rv\Data\API_v1_Prop_Request\GetProp $get_prop
     *     @type \Rv\Data\API_v1_Prop_Request\DeleteProp $delete_prop
     *     @type \Rv\Data\API_v1_Prop_Request\TriggerProp $trigger_prop
     *     @type \Rv\Data\API_v1_Prop_Request\ClearProp $clear_prop
     *     @type \Rv\Data\API_v1_Prop_Request\GetThumbnail $get_thumbnail
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Prop::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.Props props = 1;</code>
     * @return \Rv\Data\API_v1_Prop_Request\Props|null
     */
    public function getProps()
    {
        return $this->readOneof(1);
    }

    public function hasProps()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.Props props = 1;</code>
     * @param \Rv\Data\API_v1_Prop_Request\Props $var
     * @return $this
     */
    public function setProps($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\Props::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.GetProp get_prop = 2;</code>
     * @return \Rv\Data\API_v1_Prop_Request\GetProp|null
     */
    public function getGetProp()
    {
        return $this->readOneof(2);
    }

    public function hasGetProp()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.GetProp get_prop = 2;</code>
     * @param \Rv\Data\API_v1_Prop_Request\GetProp $var
     * @return $this
     */
    public function setGetProp($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\GetProp::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.DeleteProp delete_prop = 3;</code>
     * @return \Rv\Data\API_v1_Prop_Request\DeleteProp|null
     */
    public function getDeleteProp()
    {
        return $this->readOneof(3);
    }

    public function hasDeleteProp()
    {
        return $this->hasOneof(3);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.TriggerProp trigger_prop = 4;</code>
     * @return \Rv\Data\API_v1_Prop_Request\TriggerProp|null
     */
    public function getTriggerProp()
    {
        return $this->readOneof(4);
    }

    public function hasTriggerProp()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.TriggerProp trigger_prop = 4;</code>
     * @param \Rv\Data\API_v1_Prop_Request\TriggerProp $var
     * @return $this
     */
    public function setTriggerProp($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\TriggerProp::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.ClearProp clear_prop = 5;</code>
     * @return \Rv\Data\API_v1_Prop_Request\ClearProp|null
     */
    public function getClearProp()
    {
        return $this->readOneof(5);
    }

    public function hasClearProp()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.ClearProp clear_prop = 5;</code>
     * @param \Rv\Data\API_v1_Prop_Request\ClearProp $var
     * @return $this
     */
    public function setClearProp($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\ClearProp::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.GetThumbnail get_thumbnail = 6;</code>
     * @return \Rv\Data\API_v1_Prop_Request\GetThumbnail|null
     */
    public function getGetThumbnail()
    {
        return $this->readOneof(6);
    }

    public function hasGetThumbnail()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Prop_Request.GetThumbnail get_thumbnail = 6;</code>
     * @param \Rv\Data\API_v1_Prop_Request\GetThumbnail $var
     * @return $this
     */
    public function setGetThumbnail($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Prop_Request\GetThumbnail::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getRequest()
    {
        return $this->whichOneof("Request");
    }

}

