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

namespace Google\Cloud\DataCatalog\V1\Contacts;

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

/**
 * A contact person for the entry.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.Contacts.Person</code>
 */
class Person extends \Google\Protobuf\Internal\Message
{
    /**
     * Designation of the person, for example, Data Steward.
     *
     * Generated from protobuf field <code>string designation = 1;</code>
     */
    private $designation = '';
    /**
     * Email of the person in the format of `john.doe&#64;xyz`,
     * `<john.doe&#64;xyz>`, or `John Doe<john.doe&#64;xyz>`.
     *
     * Generated from protobuf field <code>string email = 2;</code>
     */
    private $email = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $designation
     *           Designation of the person, for example, Data Steward.
     *     @type string $email
     *           Email of the person in the format of `john.doe&#64;xyz`,
     *           `<john.doe&#64;xyz>`, or `John Doe<john.doe&#64;xyz>`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Designation of the person, for example, Data Steward.
     *
     * Generated from protobuf field <code>string designation = 1;</code>
     * @return string
     */
    public function getDesignation()
    {
        return $this->designation;
    }

    /**
     * Designation of the person, for example, Data Steward.
     *
     * Generated from protobuf field <code>string designation = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDesignation($var)
    {
        GPBUtil::checkString($var, True);
        $this->designation = $var;

        return $this;
    }

    /**
     * Email of the person in the format of `john.doe&#64;xyz`,
     * `<john.doe&#64;xyz>`, or `John Doe<john.doe&#64;xyz>`.
     *
     * Generated from protobuf field <code>string email = 2;</code>
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Email of the person in the format of `john.doe&#64;xyz`,
     * `<john.doe&#64;xyz>`, or `John Doe<john.doe&#64;xyz>`.
     *
     * Generated from protobuf field <code>string email = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->email = $var;

        return $this;
    }

}

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

