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

namespace Keyapis\Subscription\V1;

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

/**
 * Запрос смены статуса подписки
 *
 * Generated from protobuf message <code>keyapis.subscription.v1.PostSubscriptionSetStatusRequest</code>
 */
class PostSubscriptionSetStatusRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор подписки.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id = '';
    /**
     * Новый статус для подписки
     *
     * Generated from protobuf field <code>.keyapis.subscription.v1.Subscription.StatusType status_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $status_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Идентификатор подписки.
     *           Тип: Guid
     *     @type int $status_type
     *           Новый статус для подписки
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Subscription\V1\KeyapisSubscriptionSubscriptionV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Новый статус для подписки
     *
     * Generated from protobuf field <code>.keyapis.subscription.v1.Subscription.StatusType status_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getStatusType()
    {
        return $this->status_type;
    }

    /**
     * Новый статус для подписки
     *
     * Generated from protobuf field <code>.keyapis.subscription.v1.Subscription.StatusType status_type = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setStatusType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Subscription\V1\Subscription\StatusType::class);
        $this->status_type = $var;

        return $this;
    }

}

