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

namespace Rv\Data\Action;

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

/**
 * Generated from protobuf message <code>rv.data.Action.DocumentType</code>
 */
class DocumentType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType identification = 1;</code>
     */
    protected $identification = null;
    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_arrangement = 2;</code>
     */
    protected $selected_arrangement = null;
    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     */
    protected $content_destination = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\CollectionElementType $identification
     *     @type \Rv\Data\UUID $selected_arrangement
     *     @type int $content_destination
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType identification = 1;</code>
     * @return \Rv\Data\CollectionElementType|null
     */
    public function getIdentification()
    {
        return $this->identification;
    }

    public function hasIdentification()
    {
        return isset($this->identification);
    }

    public function clearIdentification()
    {
        unset($this->identification);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID selected_arrangement = 2;</code>
     * @return \Rv\Data\UUID|null
     */
    public function getSelectedArrangement()
    {
        return $this->selected_arrangement;
    }

    public function hasSelectedArrangement()
    {
        return isset($this->selected_arrangement);
    }

    public function clearSelectedArrangement()
    {
        unset($this->selected_arrangement);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     * @return int
     */
    public function getContentDestination()
    {
        return $this->content_destination;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setContentDestination($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\ContentDestination::class);
        $this->content_destination = $var;

        return $this;
    }

}

