<?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;

/**
 * MembershipBindingLifecycleState describes the state of a Binding resource.
 *
 * Generated from protobuf message <code>google.cloud.gkehub.v1.MembershipBindingLifecycleState</code>
 */
class MembershipBindingLifecycleState extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The current state of the MembershipBinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.MembershipBindingLifecycleState.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 MembershipBinding resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkehub\V1\Fleet::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The current state of the MembershipBinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.MembershipBindingLifecycleState.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 MembershipBinding resource.
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.v1.MembershipBindingLifecycleState.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\MembershipBindingLifecycleState\Code::class);
        $this->code = $var;

        return $this;
    }

}

