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

namespace Google\Cloud\BeyondCorp\ClientGateways\V1;

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

/**
 * Message describing ClientGateway object.
 *
 * Generated from protobuf message <code>google.cloud.beyondcorp.clientgateways.v1.ClientGateway</code>
 */
class ClientGateway extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. name of resource. The name is ignored during creation.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $name = '';
    /**
     * Output only. [Output only] Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $create_time = null;
    /**
     * Output only. [Output only] Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $update_time = null;
    /**
     * Output only. The operational state of the gateway.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $state = 0;
    /**
     * Output only. A unique identifier for the instance generated by the system.
     *
     * Generated from protobuf field <code>string id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $id = '';
    /**
     * Output only. The client connector service name that the client gateway is
     * associated to. Client Connector Services, named as follows:
     *   `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
     *
     * Generated from protobuf field <code>string client_connector_service = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $client_connector_service = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. name of resource. The name is ignored during creation.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. [Output only] Create time stamp.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. [Output only] Update time stamp.
     *     @type int $state
     *           Output only. The operational state of the gateway.
     *     @type string $id
     *           Output only. A unique identifier for the instance generated by the system.
     *     @type string $client_connector_service
     *           Output only. The client connector service name that the client gateway is
     *           associated to. Client Connector Services, named as follows:
     *             `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Beyondcorp\Clientgateways\V1\ClientGatewaysService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. name of resource. The name is ignored during creation.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. name of resource. The name is ignored during creation.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. [Output only] Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. [Output only] Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. [Output only] Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. [Output only] Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</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;
    }

    /**
     * Output only. The operational state of the gateway.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. The operational state of the gateway.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.clientgateways.v1.ClientGateway.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\BeyondCorp\ClientGateways\V1\ClientGateway\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. A unique identifier for the instance generated by the system.
     *
     * Generated from protobuf field <code>string id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Output only. A unique identifier for the instance generated by the system.
     *
     * Generated from protobuf field <code>string id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * Output only. The client connector service name that the client gateway is
     * associated to. Client Connector Services, named as follows:
     *   `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
     *
     * Generated from protobuf field <code>string client_connector_service = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getClientConnectorService()
    {
        return $this->client_connector_service;
    }

    /**
     * Output only. The client connector service name that the client gateway is
     * associated to. Client Connector Services, named as follows:
     *   `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
     *
     * Generated from protobuf field <code>string client_connector_service = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setClientConnectorService($var)
    {
        GPBUtil::checkString($var, True);
        $this->client_connector_service = $var;

        return $this;
    }

}

