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

namespace Keyapis\Multiapp\V1;

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

/**
 * Приложение.
 * # Описание модели
 *
 * Generated from protobuf message <code>keyapis.multiapp.v1.App</code>
 */
class App extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор.
     * Если не передан создаётся сервером.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $partner_id = '';
    /**
     * Тип приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Type type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $type = 0;
    /**
     * Системное наименование.
     * Не отображается пользователям.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $title = '';
    /**
     * Заголовок.
     * # Диапазон: 3..30
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue header = 5;</code>
     */
    protected $header = null;
    /**
     * Подзаголовок.
     * # Диапазон: 3..60
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue subtitle = 6;</code>
     */
    protected $subtitle = null;
    /**
     * Цвет заднего плана(подложки).
     * Все цвета должны быть в формате hex #RRGGBBAA.
     * Пример: #7e00c380.
     * # Диапазон: 9..9.
     * # Паттерн: /^#[0-9a-fA-F]{8}$/
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue background_color = 7;</code>
     */
    protected $background_color = null;
    /**
     * Статус приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.StatusType status_type = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $status_type = 0;
    /**
     * Ссылки для переходов.
     * # Диапазон: 0..100
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.Link links = 9;</code>
     */
    private $links;
    /**
     * Список тегов пользователей.
     * Обязательное.
     * Описывает кто может видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..100.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string user_tags = 10 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $user_tags;
    /**
     * Список тегов приложений.
     * Обязательное.
     * Описывает какие клиенты могут видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..20.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string app_tags = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $app_tags;
    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $created_at = null;
    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * При изменении должен совпадать со значением из БД.
     * Является версией объекта.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 13;</code>
     */
    protected $changed_at = null;
    /**
     * Разрешения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Permissions permissions = 14 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @deprecated
     */
    protected $permissions = null;
    /**
     * Список разрешений
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.GrantType grant_types = 15;</code>
     */
    private $grant_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Идентификатор.
     *           Если не передан создаётся сервером.
     *           # Тип: Guid
     *     @type string $partner_id
     *           Идентификатор партнера.
     *           # Тип: Guid
     *     @type int $type
     *           Тип приложения
     *     @type string $title
     *           Системное наименование.
     *           Не отображается пользователям.
     *           # Диапазон: 3..256
     *     @type \Google\Protobuf\StringValue $header
     *           Заголовок.
     *           # Диапазон: 3..30
     *     @type \Google\Protobuf\StringValue $subtitle
     *           Подзаголовок.
     *           # Диапазон: 3..60
     *     @type \Google\Protobuf\StringValue $background_color
     *           Цвет заднего плана(подложки).
     *           Все цвета должны быть в формате hex #RRGGBBAA.
     *           Пример: #7e00c380.
     *           # Диапазон: 9..9.
     *           # Паттерн: /^#[0-9a-fA-F]{8}$/
     *     @type int $status_type
     *           Статус приложения
     *     @type array<\Keyapis\Multiapp\V1\App\Link>|\Google\Protobuf\Internal\RepeatedField $links
     *           Ссылки для переходов.
     *           # Диапазон: 0..100
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $user_tags
     *           Список тегов пользователей.
     *           Обязательное.
     *           Описывает кто может видеть приложение.
     *           Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     *           # Диапазон: 1..100.
     *           # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $app_tags
     *           Список тегов приложений.
     *           Обязательное.
     *           Описывает какие клиенты могут видеть приложение.
     *           Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     *           # Диапазон: 1..20.
     *           # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *     @type \Google\Protobuf\Timestamp $created_at
     *           Дата создания.
     *           # Тип: DateTime
     *     @type \Google\Protobuf\Timestamp $changed_at
     *           Дата последнего изменения.
     *           Заполняется и обновляется сервером.
     *           При изменении должен совпадать со значением из БД.
     *           Является версией объекта.
     *           # Тип: DateTime
     *     @type \Keyapis\Multiapp\V1\App\Permissions $permissions
     *           Разрешения
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $grant_types
     *           Список разрешений
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Multiapp\V1\KeyapisMultiappAppV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор.
     * Если не передан создаётся сервером.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор.
     * Если не передан создаётся сервером.
     * # Тип: Guid
     *
     * 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;
    }

    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPartnerId()
    {
        return $this->partner_id;
    }

    /**
     * Идентификатор партнера.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string partner_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPartnerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->partner_id = $var;

        return $this;
    }

    /**
     * Тип приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Type type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Тип приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Type type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Multiapp\V1\App\Type::class);
        $this->type = $var;

        return $this;
    }

    /**
     * Системное наименование.
     * Не отображается пользователям.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Системное наименование.
     * Не отображается пользователям.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Заголовок.
     * # Диапазон: 3..30
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue header = 5;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getHeader()
    {
        return $this->header;
    }

    public function hasHeader()
    {
        return isset($this->header);
    }

    public function clearHeader()
    {
        unset($this->header);
    }

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

     * Заголовок.
     * # Диапазон: 3..30
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue header = 5;</code>
     * @return string|null
     */
    public function getHeaderUnwrapped()
    {
        return $this->readWrapperValue("header");
    }

    /**
     * Заголовок.
     * # Диапазон: 3..30
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue header = 5;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setHeader($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->header = $var;

        return $this;
    }

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

     * Заголовок.
     * # Диапазон: 3..30
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue header = 5;</code>
     * @param string|null $var
     * @return $this
     */
    public function setHeaderUnwrapped($var)
    {
        $this->writeWrapperValue("header", $var);
        return $this;}

    /**
     * Подзаголовок.
     * # Диапазон: 3..60
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue subtitle = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getSubtitle()
    {
        return $this->subtitle;
    }

    public function hasSubtitle()
    {
        return isset($this->subtitle);
    }

    public function clearSubtitle()
    {
        unset($this->subtitle);
    }

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

     * Подзаголовок.
     * # Диапазон: 3..60
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue subtitle = 6;</code>
     * @return string|null
     */
    public function getSubtitleUnwrapped()
    {
        return $this->readWrapperValue("subtitle");
    }

    /**
     * Подзаголовок.
     * # Диапазон: 3..60
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue subtitle = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setSubtitle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->subtitle = $var;

        return $this;
    }

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

     * Подзаголовок.
     * # Диапазон: 3..60
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue subtitle = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setSubtitleUnwrapped($var)
    {
        $this->writeWrapperValue("subtitle", $var);
        return $this;}

    /**
     * Цвет заднего плана(подложки).
     * Все цвета должны быть в формате hex #RRGGBBAA.
     * Пример: #7e00c380.
     * # Диапазон: 9..9.
     * # Паттерн: /^#[0-9a-fA-F]{8}$/
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue background_color = 7;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getBackgroundColor()
    {
        return $this->background_color;
    }

    public function hasBackgroundColor()
    {
        return isset($this->background_color);
    }

    public function clearBackgroundColor()
    {
        unset($this->background_color);
    }

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

     * Цвет заднего плана(подложки).
     * Все цвета должны быть в формате hex #RRGGBBAA.
     * Пример: #7e00c380.
     * # Диапазон: 9..9.
     * # Паттерн: /^#[0-9a-fA-F]{8}$/
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue background_color = 7;</code>
     * @return string|null
     */
    public function getBackgroundColorUnwrapped()
    {
        return $this->readWrapperValue("background_color");
    }

    /**
     * Цвет заднего плана(подложки).
     * Все цвета должны быть в формате hex #RRGGBBAA.
     * Пример: #7e00c380.
     * # Диапазон: 9..9.
     * # Паттерн: /^#[0-9a-fA-F]{8}$/
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue background_color = 7;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setBackgroundColor($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->background_color = $var;

        return $this;
    }

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

     * Цвет заднего плана(подложки).
     * Все цвета должны быть в формате hex #RRGGBBAA.
     * Пример: #7e00c380.
     * # Диапазон: 9..9.
     * # Паттерн: /^#[0-9a-fA-F]{8}$/
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue background_color = 7;</code>
     * @param string|null $var
     * @return $this
     */
    public function setBackgroundColorUnwrapped($var)
    {
        $this->writeWrapperValue("background_color", $var);
        return $this;}

    /**
     * Статус приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.StatusType status_type = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getStatusType()
    {
        return $this->status_type;
    }

    /**
     * Статус приложения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.StatusType status_type = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setStatusType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Multiapp\V1\App\StatusType::class);
        $this->status_type = $var;

        return $this;
    }

    /**
     * Ссылки для переходов.
     * # Диапазон: 0..100
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.Link links = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLinks()
    {
        return $this->links;
    }

    /**
     * Ссылки для переходов.
     * # Диапазон: 0..100
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.Link links = 9;</code>
     * @param array<\Keyapis\Multiapp\V1\App\Link>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\Multiapp\V1\App\Link::class);
        $this->links = $arr;

        return $this;
    }

    /**
     * Список тегов пользователей.
     * Обязательное.
     * Описывает кто может видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..100.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string user_tags = 10 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserTags()
    {
        return $this->user_tags;
    }

    /**
     * Список тегов пользователей.
     * Обязательное.
     * Описывает кто может видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..100.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string user_tags = 10 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUserTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->user_tags = $arr;

        return $this;
    }

    /**
     * Список тегов приложений.
     * Обязательное.
     * Описывает какие клиенты могут видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..20.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string app_tags = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAppTags()
    {
        return $this->app_tags;
    }

    /**
     * Список тегов приложений.
     * Обязательное.
     * Описывает какие клиенты могут видеть приложение.
     * Тэг - максимум 5 символов, значение - максимум 19 символов, количество сегментов - максимум 10.
     * # Диапазон: 1..20.
     * # Паттерн: /^[A-Z-]{1,5}_[0-9A-Z-]{1,19}(?:\.[A-Z-]{1,5}_[0-9A-Z-]{1,19}){0,9}$/
     *
     * Generated from protobuf field <code>repeated string app_tags = 11 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAppTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->app_tags = $arr;

        return $this;
    }

    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->created_at = $var;

        return $this;
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * При изменении должен совпадать со значением из БД.
     * Является версией объекта.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 13;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getChangedAt()
    {
        return $this->changed_at;
    }

    public function hasChangedAt()
    {
        return isset($this->changed_at);
    }

    public function clearChangedAt()
    {
        unset($this->changed_at);
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * При изменении должен совпадать со значением из БД.
     * Является версией объекта.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 13;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setChangedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->changed_at = $var;

        return $this;
    }

    /**
     * Разрешения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Permissions permissions = 14 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @return \Keyapis\Multiapp\V1\App\Permissions|null
     * @deprecated
     */
    public function getPermissions()
    {
        @trigger_error('permissions is deprecated.', E_USER_DEPRECATED);
        return $this->permissions;
    }

    public function hasPermissions()
    {
        @trigger_error('permissions is deprecated.', E_USER_DEPRECATED);
        return isset($this->permissions);
    }

    public function clearPermissions()
    {
        @trigger_error('permissions is deprecated.', E_USER_DEPRECATED);
        unset($this->permissions);
    }

    /**
     * Разрешения
     *
     * Generated from protobuf field <code>.keyapis.multiapp.v1.App.Permissions permissions = 14 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @param \Keyapis\Multiapp\V1\App\Permissions $var
     * @return $this
     * @deprecated
     */
    public function setPermissions($var)
    {
        @trigger_error('permissions is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkMessage($var, \Keyapis\Multiapp\V1\App\Permissions::class);
        $this->permissions = $var;

        return $this;
    }

    /**
     * Список разрешений
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.GrantType grant_types = 15;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGrantTypes()
    {
        return $this->grant_types;
    }

    /**
     * Список разрешений
     *
     * Generated from protobuf field <code>repeated .keyapis.multiapp.v1.App.GrantType grant_types = 15;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGrantTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\Multiapp\V1\App\GrantType::class);
        $this->grant_types = $arr;

        return $this;
    }

}

