<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/admin/v2/types.proto

namespace Google\Cloud\Bigtable\Admin\V2\Type;

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

/**
 * A protobuf enum type.
 * Values of type `Enum` are stored in `Value.int_value`.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.Type.Enum</code>
 */
class Enum extends \Google\Protobuf\Internal\Message
{
    /**
     * The ID of the schema bundle that this enum is defined in.
     *
     * Generated from protobuf field <code>string schema_bundle_id = 1;</code>
     */
    protected $schema_bundle_id = '';
    /**
     * The fully qualified name of the protobuf enum message, including package.
     * In the format of "foo.bar.EnumMessage".
     *
     * Generated from protobuf field <code>string enum_name = 2;</code>
     */
    protected $enum_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $schema_bundle_id
     *           The ID of the schema bundle that this enum is defined in.
     *     @type string $enum_name
     *           The fully qualified name of the protobuf enum message, including package.
     *           In the format of "foo.bar.EnumMessage".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce();
        parent::__construct($data);
    }

    /**
     * The ID of the schema bundle that this enum is defined in.
     *
     * Generated from protobuf field <code>string schema_bundle_id = 1;</code>
     * @return string
     */
    public function getSchemaBundleId()
    {
        return $this->schema_bundle_id;
    }

    /**
     * The ID of the schema bundle that this enum is defined in.
     *
     * Generated from protobuf field <code>string schema_bundle_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSchemaBundleId($var)
    {
        GPBUtil::checkString($var, True);
        $this->schema_bundle_id = $var;

        return $this;
    }

    /**
     * The fully qualified name of the protobuf enum message, including package.
     * In the format of "foo.bar.EnumMessage".
     *
     * Generated from protobuf field <code>string enum_name = 2;</code>
     * @return string
     */
    public function getEnumName()
    {
        return $this->enum_name;
    }

    /**
     * The fully qualified name of the protobuf enum message, including package.
     * In the format of "foo.bar.EnumMessage".
     *
     * Generated from protobuf field <code>string enum_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEnumName($var)
    {
        GPBUtil::checkString($var, True);
        $this->enum_name = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Enum::class, \Google\Cloud\Bigtable\Admin\V2\Type_Enum::class);

