<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/monitoring/v3/service.proto

namespace Google\Cloud\Monitoring\V3\Service;

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

/**
 * Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
 * will have their services ingested as this type.
 *
 * Generated from protobuf message <code>google.monitoring.v3.Service.MeshIstio</code>
 */
class MeshIstio extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier for the mesh in which this Istio service is defined.
     * Corresponds to the `mesh_uid` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string mesh_uid = 1;</code>
     */
    private $mesh_uid = '';
    /**
     * The namespace of the Istio service underlying this service. Corresponds
     * to the `destination_service_namespace` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_namespace = 3;</code>
     */
    private $service_namespace = '';
    /**
     * The name of the Istio service underlying this service. Corresponds to the
     * `destination_service_name` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_name = 4;</code>
     */
    private $service_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $mesh_uid
     *           Identifier for the mesh in which this Istio service is defined.
     *           Corresponds to the `mesh_uid` metric label in Istio metrics.
     *     @type string $service_namespace
     *           The namespace of the Istio service underlying this service. Corresponds
     *           to the `destination_service_namespace` metric label in Istio metrics.
     *     @type string $service_name
     *           The name of the Istio service underlying this service. Corresponds to the
     *           `destination_service_name` metric label in Istio metrics.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Monitoring\V3\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier for the mesh in which this Istio service is defined.
     * Corresponds to the `mesh_uid` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string mesh_uid = 1;</code>
     * @return string
     */
    public function getMeshUid()
    {
        return $this->mesh_uid;
    }

    /**
     * Identifier for the mesh in which this Istio service is defined.
     * Corresponds to the `mesh_uid` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string mesh_uid = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMeshUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->mesh_uid = $var;

        return $this;
    }

    /**
     * The namespace of the Istio service underlying this service. Corresponds
     * to the `destination_service_namespace` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_namespace = 3;</code>
     * @return string
     */
    public function getServiceNamespace()
    {
        return $this->service_namespace;
    }

    /**
     * The namespace of the Istio service underlying this service. Corresponds
     * to the `destination_service_namespace` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_namespace = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setServiceNamespace($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_namespace = $var;

        return $this;
    }

    /**
     * The name of the Istio service underlying this service. Corresponds to the
     * `destination_service_name` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_name = 4;</code>
     * @return string
     */
    public function getServiceName()
    {
        return $this->service_name;
    }

    /**
     * The name of the Istio service underlying this service. Corresponds to the
     * `destination_service_name` metric label in Istio metrics.
     *
     * Generated from protobuf field <code>string service_name = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setServiceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_name = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MeshIstio::class, \Google\Cloud\Monitoring\V3\Service_MeshIstio::class);

