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

namespace Google\Cloud\NetworkManagement\V1;

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

/**
 * For display only. Metadata associated with a Cloud SQL instance.
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.CloudSQLInstanceInfo</code>
 */
class CloudSQLInstanceInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     */
    private $display_name = '';
    /**
     * URI of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    private $uri = '';
    /**
     * URI of a Cloud SQL instance network or empty string if the instance does
     * not have one.
     *
     * Generated from protobuf field <code>string network_uri = 4;</code>
     */
    private $network_uri = '';
    /**
     * Internal IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string internal_ip = 5;</code>
     */
    private $internal_ip = '';
    /**
     * External IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string external_ip = 6;</code>
     */
    private $external_ip = '';
    /**
     * Region in which the Cloud SQL instance is running.
     *
     * Generated from protobuf field <code>string region = 7;</code>
     */
    private $region = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $display_name
     *           Name of a Cloud SQL instance.
     *     @type string $uri
     *           URI of a Cloud SQL instance.
     *     @type string $network_uri
     *           URI of a Cloud SQL instance network or empty string if the instance does
     *           not have one.
     *     @type string $internal_ip
     *           Internal IP address of a Cloud SQL instance.
     *     @type string $external_ip
     *           External IP address of a Cloud SQL instance.
     *     @type string $region
     *           Region in which the Cloud SQL instance is running.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\Trace::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Name of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string display_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * URI of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * URI of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

    /**
     * URI of a Cloud SQL instance network or empty string if the instance does
     * not have one.
     *
     * Generated from protobuf field <code>string network_uri = 4;</code>
     * @return string
     */
    public function getNetworkUri()
    {
        return $this->network_uri;
    }

    /**
     * URI of a Cloud SQL instance network or empty string if the instance does
     * not have one.
     *
     * Generated from protobuf field <code>string network_uri = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setNetworkUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->network_uri = $var;

        return $this;
    }

    /**
     * Internal IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string internal_ip = 5;</code>
     * @return string
     */
    public function getInternalIp()
    {
        return $this->internal_ip;
    }

    /**
     * Internal IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string internal_ip = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setInternalIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->internal_ip = $var;

        return $this;
    }

    /**
     * External IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string external_ip = 6;</code>
     * @return string
     */
    public function getExternalIp()
    {
        return $this->external_ip;
    }

    /**
     * External IP address of a Cloud SQL instance.
     *
     * Generated from protobuf field <code>string external_ip = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setExternalIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->external_ip = $var;

        return $this;
    }

    /**
     * Region in which the Cloud SQL instance is running.
     *
     * Generated from protobuf field <code>string region = 7;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * Region in which the Cloud SQL instance is running.
     *
     * Generated from protobuf field <code>string region = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

}

