<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/subscription/v1/keyapis_subscription_offer_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.OfferFilter</code>
 */
class OfferFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По типам
     *
     * Generated from protobuf field <code>repeated .keyapis.subscription.v1.Offer.Type types = 1;</code>
     */
    private $types;
    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 2;</code>
     */
    private $orpons;
    /**
     * По идентификаторам компаний
     *
     * Generated from protobuf field <code>repeated int32 company_ids = 3;</code>
     */
    private $company_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $types
     *           По типам
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По ОРПОНам
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $company_ids
     *           По идентификаторам компаний
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Subscription\V1\KeyapisSubscriptionOfferV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типам
     *
     * Generated from protobuf field <code>repeated .keyapis.subscription.v1.Offer.Type types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTypes()
    {
        return $this->types;
    }

    /**
     * По типам
     *
     * Generated from protobuf field <code>repeated .keyapis.subscription.v1.Offer.Type types = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\Subscription\V1\Offer\Type::class);
        $this->types = $arr;

        return $this;
    }

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOrpons()
    {
        return $this->orpons;
    }

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 2;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOrpons($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->orpons = $arr;

        return $this;
    }

    /**
     * По идентификаторам компаний
     *
     * Generated from protobuf field <code>repeated int32 company_ids = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCompanyIds()
    {
        return $this->company_ids;
    }

    /**
     * По идентификаторам компаний
     *
     * Generated from protobuf field <code>repeated int32 company_ids = 3;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCompanyIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->company_ids = $arr;

        return $this;
    }

}

