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

namespace Google\Cloud\GkeHub\V1;

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

/**
 * RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
 * resource.
 *
 * Generated from protobuf message <code>google.cloud.gkehub.v1.RBACRoleBindingLifecycleState</code>
 */
class RBACRoleBindingLifecycleState extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The current state of the rbacrolebinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $code = 0;

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

    /**
     * Output only. The current state of the rbacrolebinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Output only. The current state of the rbacrolebinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\RBACRoleBindingLifecycleState\Code::class);
        $this->code = $var;

        return $this;
    }

}

