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

namespace Google\Cloud\Channel\V1;

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

/**
 * Information needed to create an Admin User for Google Workspace.
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.AdminUser</code>
 */
class AdminUser extends \Google\Protobuf\Internal\Message
{
    /**
     * Primary email of the admin user.
     *
     * Generated from protobuf field <code>string email = 1;</code>
     */
    private $email = '';
    /**
     * Given name of the admin user.
     *
     * Generated from protobuf field <code>string given_name = 2;</code>
     */
    private $given_name = '';
    /**
     * Family name of the admin user.
     *
     * Generated from protobuf field <code>string family_name = 3;</code>
     */
    private $family_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $email
     *           Primary email of the admin user.
     *     @type string $given_name
     *           Given name of the admin user.
     *     @type string $family_name
     *           Family name of the admin user.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * Primary email of the admin user.
     *
     * Generated from protobuf field <code>string email = 1;</code>
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Primary email of the admin user.
     *
     * Generated from protobuf field <code>string email = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->email = $var;

        return $this;
    }

    /**
     * Given name of the admin user.
     *
     * Generated from protobuf field <code>string given_name = 2;</code>
     * @return string
     */
    public function getGivenName()
    {
        return $this->given_name;
    }

    /**
     * Given name of the admin user.
     *
     * Generated from protobuf field <code>string given_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setGivenName($var)
    {
        GPBUtil::checkString($var, True);
        $this->given_name = $var;

        return $this;
    }

    /**
     * Family name of the admin user.
     *
     * Generated from protobuf field <code>string family_name = 3;</code>
     * @return string
     */
    public function getFamilyName()
    {
        return $this->family_name;
    }

    /**
     * Family name of the admin user.
     *
     * Generated from protobuf field <code>string family_name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setFamilyName($var)
    {
        GPBUtil::checkString($var, True);
        $this->family_name = $var;

        return $this;
    }

}

