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

namespace Google\Cloud\DataCatalog\V1\Taxonomy;

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

/**
 * The source system of the Taxonomy.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.Taxonomy.Service</code>
 */
class Service extends \Google\Protobuf\Internal\Message
{
    /**
     * The Google Cloud service name.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.ManagingSystem name = 1;</code>
     */
    private $name = 0;
    /**
     * The service agent for the service.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     */
    private $identity = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $name
     *           The Google Cloud service name.
     *     @type string $identity
     *           The service agent for the service.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * The Google Cloud service name.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.ManagingSystem name = 1;</code>
     * @return int
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The Google Cloud service name.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.ManagingSystem name = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\ManagingSystem::class);
        $this->name = $var;

        return $this;
    }

    /**
     * The service agent for the service.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * The service agent for the service.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Service::class, \Google\Cloud\DataCatalog\V1\Taxonomy_Service::class);

