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

namespace Keyapis\Subscription\V1;

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

/**
 * Событие о прекращении действия коммерческой возможности с услугой аналоговой трубки.
 * Очередь key.subscription.cms_unavailable
 *
 * Generated from protobuf message <code>keyapis.subscription.v1.CommercialOfferCmsUnavailableTask</code>
 */
class CommercialOfferCmsUnavailableTask extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $request_id = '';
    /**
     * Идентификатор ОРПОН дома 
     *
     * Generated from protobuf field <code>int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $orpon_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type int|string $orpon_id
     *           Идентификатор ОРПОН дома 
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Subscription\V1\KeyapisSubscriptionEventsV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Идентификатор ОРПОН дома 
     *
     * Generated from protobuf field <code>int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getOrponId()
    {
        return $this->orpon_id;
    }

    /**
     * Идентификатор ОРПОН дома 
     *
     * Generated from protobuf field <code>int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setOrponId($var)
    {
        GPBUtil::checkInt64($var);
        $this->orpon_id = $var;

        return $this;
    }

}

