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

namespace Rv\Data\API_v1_Library_Response;

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

/**
 * Generated from protobuf message <code>rv.data.API_v1_Library_Response.Library</code>
 */
class Library extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;</code>
     */
    protected $update_type = 0;
    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_Identifier items = 2;</code>
     */
    private $items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $update_type
     *     @type array<\Rv\Data\API_v1_Identifier>|\Google\Protobuf\Internal\RepeatedField $items
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Library::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;</code>
     * @return int
     */
    public function getUpdateType()
    {
        return $this->update_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUpdateType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\API_v1_Library_Response\Library\UpdateType::class);
        $this->update_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_Identifier items = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_Identifier items = 2;</code>
     * @param array<\Rv\Data\API_v1_Identifier>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\API_v1_Identifier::class);
        $this->items = $arr;

        return $this;
    }

}

