<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_group_v1.proto

namespace Keyapis\Vc\V1;

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

/**
 * Фильтр коллекций камер
 *
 * Generated from protobuf message <code>keyapis.vc.v1.CameraCollectionFilter</code>
 */
class CameraCollectionFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Наименование.
     * # - Описание.
     * # - Теги коллекции
     *
     * Generated from protobuf field <code>string text = 1;</code>
     */
    protected $text = '';
    /**
     * По тегам.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated string tags = 2;</code>
     */
    private $tags;
    /**
     * По компаниям.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated int64 company_ids = 3;</code>
     */
    private $company_ids;
    /**
     * Показывать удаленные.
     * Если поле не передано, по умолчанию false, фильтр исключает удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_deleted = 4;</code>
     */
    protected $is_deleted = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text
     *           По тексту.
     *           Если значение не передано то поиск по нему не производится.
     *           # Диапазон: 3..64.
     *           # Поиск производится по полям:
     *           # - Наименование.
     *           # - Описание.
     *           # - Теги коллекции
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $tags
     *           По тегам.
     *           Диапазон: 0..10
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $company_ids
     *           По компаниям.
     *           Диапазон: 0..10
     *     @type \Google\Protobuf\BoolValue $is_deleted
     *           Показывать удаленные.
     *           Если поле не передано, по умолчанию false, фильтр исключает удаленные
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraGroupV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Наименование.
     * # - Описание.
     * # - Теги коллекции
     *
     * Generated from protobuf field <code>string text = 1;</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * По тексту.
     * Если значение не передано то поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Наименование.
     * # - Описание.
     * # - Теги коллекции
     *
     * Generated from protobuf field <code>string text = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $var;

        return $this;
    }

    /**
     * По тегам.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated string tags = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTags()
    {
        return $this->tags;
    }

    /**
     * По тегам.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated string tags = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->tags = $arr;

        return $this;
    }

    /**
     * По компаниям.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated int64 company_ids = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCompanyIds()
    {
        return $this->company_ids;
    }

    /**
     * По компаниям.
     * Диапазон: 0..10
     *
     * Generated from protobuf field <code>repeated int64 company_ids = 3;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCompanyIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->company_ids = $arr;

        return $this;
    }

    /**
     * Показывать удаленные.
     * Если поле не передано, по умолчанию false, фильтр исключает удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_deleted = 4;</code>
     * @return \Google\Protobuf\BoolValue|null
     */
    public function getIsDeleted()
    {
        return $this->is_deleted;
    }

    public function hasIsDeleted()
    {
        return isset($this->is_deleted);
    }

    public function clearIsDeleted()
    {
        unset($this->is_deleted);
    }

    /**
     * Returns the unboxed value from <code>getIsDeleted()</code>

     * Показывать удаленные.
     * Если поле не передано, по умолчанию false, фильтр исключает удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_deleted = 4;</code>
     * @return bool|null
     */
    public function getIsDeletedUnwrapped()
    {
        return $this->readWrapperValue("is_deleted");
    }

    /**
     * Показывать удаленные.
     * Если поле не передано, по умолчанию false, фильтр исключает удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_deleted = 4;</code>
     * @param \Google\Protobuf\BoolValue $var
     * @return $this
     */
    public function setIsDeleted($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
        $this->is_deleted = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

     * Показывать удаленные.
     * Если поле не передано, по умолчанию false, фильтр исключает удаленные
     *
     * Generated from protobuf field <code>.google.protobuf.BoolValue is_deleted = 4;</code>
     * @param bool|null $var
     * @return $this
     */
    public function setIsDeletedUnwrapped($var)
    {
        $this->writeWrapperValue("is_deleted", $var);
        return $this;}

}

