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

namespace Google\Cloud\Dataplex\V1\Lake;

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

/**
 * Status of Lake and Dataproc Metastore service instance association.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.Lake.MetastoreStatus</code>
 */
class MetastoreStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * Current state of association.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;</code>
     */
    private $state = 0;
    /**
     * Additional information about the current status.
     *
     * Generated from protobuf field <code>string message = 2;</code>
     */
    private $message = '';
    /**
     * Last update time of the metastore status of the lake.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3;</code>
     */
    private $update_time = null;
    /**
     * The URI of the endpoint used to access the Metastore service.
     *
     * Generated from protobuf field <code>string endpoint = 4;</code>
     */
    private $endpoint = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $state
     *           Current state of association.
     *     @type string $message
     *           Additional information about the current status.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Last update time of the metastore status of the lake.
     *     @type string $endpoint
     *           The URI of the endpoint used to access the Metastore service.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Current state of association.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Current state of association.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Additional information about the current status.
     *
     * Generated from protobuf field <code>string message = 2;</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Additional information about the current status.
     *
     * Generated from protobuf field <code>string message = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

    /**
     * Last update time of the metastore status of the lake.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Last update time of the metastore status of the lake.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * The URI of the endpoint used to access the Metastore service.
     *
     * Generated from protobuf field <code>string endpoint = 4;</code>
     * @return string
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * The URI of the endpoint used to access the Metastore service.
     *
     * Generated from protobuf field <code>string endpoint = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->endpoint = $var;

        return $this;
    }

}


