<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/databasecenter/v1beta/service.proto

namespace Google\Cloud\DatabaseCenter\V1beta;

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

/**
 * SignalProductsFilters represents a signal and list of supported products.
 *
 * Generated from protobuf message <code>google.cloud.databasecenter.v1beta.SignalProductsFilters</code>
 */
class SignalProductsFilters extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $signal_type = 0;
    /**
     * Optional. Product type of the resource. The version of the product will be
     * ignored in filtering.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $products;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $signal_type
     *           Optional. The type of signal.
     *     @type \Google\Cloud\DatabaseCenter\V1beta\Product[] $products
     *           Optional. Product type of the resource. The version of the product will be
     *           ignored in filtering.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSignalType()
    {
        return $this->signal_type;
    }

    /**
     * Optional. The type of signal.
     *
     * Generated from protobuf field <code>.google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSignalType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class);
        $this->signal_type = $var;

        return $this;
    }

    /**
     * Optional. Product type of the resource. The version of the product will be
     * ignored in filtering.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\DatabaseCenter\V1beta\Product>
     */
    public function getProducts()
    {
        return $this->products;
    }

    /**
     * Optional. Product type of the resource. The version of the product will be
     * ignored in filtering.
     *
     * Generated from protobuf field <code>repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\DatabaseCenter\V1beta\Product[] $var
     * @return $this
     */
    public function setProducts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class);
        $this->products = $arr;

        return $this;
    }

}

