<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gkehub/v1/feature.proto

namespace Google\Cloud\GkeHub\V1;

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

/**
 * FeatureResourceState describes the state of a Feature *resource* in the
 * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
 * Hub and across Memberships.
 *
 * Generated from protobuf message <code>google.cloud.gkehub.v1.FeatureResourceState</code>
 */
class FeatureResourceState extends \Google\Protobuf\Internal\Message
{
    /**
     * The current state of the Feature resource in the Hub API.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.FeatureResourceState.State state = 1;</code>
     */
    protected $state = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $state
     *           The current state of the Feature resource in the Hub API.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
        parent::__construct($data);
    }

    /**
     * The current state of the Feature resource in the Hub API.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.FeatureResourceState.State state = 1;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * The current state of the Feature resource in the Hub API.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.FeatureResourceState.State state = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureResourceState\State::class);
        $this->state = $var;

        return $this;
    }

}

