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

namespace Google\Cloud\Channel\V1;

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

/**
 * Request message for
 * [CloudChannelService.CheckCloudIdentityAccountsExist][google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist].
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest</code>
 */
class CheckCloudIdentityAccountsExistRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The reseller account's resource name.
     * Parent uses the format: accounts/{account_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $parent = '';
    /**
     * Required. Domain to fetch for Cloud Identity account customers, including
     * domain and team customers. For team customers, please use the domain for
     * their emails.
     *
     * Generated from protobuf field <code>string domain = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $domain = '';
    /**
     * Optional. Primary admin email to fetch for Cloud Identity account team
     * customer.
     *
     * Generated from protobuf field <code>string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $primary_admin_email = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The reseller account's resource name.
     *           Parent uses the format: accounts/{account_id}
     *     @type string $domain
     *           Required. Domain to fetch for Cloud Identity account customers, including
     *           domain and team customers. For team customers, please use the domain for
     *           their emails.
     *     @type string $primary_admin_email
     *           Optional. Primary admin email to fetch for Cloud Identity account team
     *           customer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The reseller account's resource name.
     * Parent uses the format: accounts/{account_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The reseller account's resource name.
     * Parent uses the format: accounts/{account_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. Domain to fetch for Cloud Identity account customers, including
     * domain and team customers. For team customers, please use the domain for
     * their emails.
     *
     * Generated from protobuf field <code>string domain = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDomain()
    {
        return $this->domain;
    }

    /**
     * Required. Domain to fetch for Cloud Identity account customers, including
     * domain and team customers. For team customers, please use the domain for
     * their emails.
     *
     * Generated from protobuf field <code>string domain = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDomain($var)
    {
        GPBUtil::checkString($var, True);
        $this->domain = $var;

        return $this;
    }

    /**
     * Optional. Primary admin email to fetch for Cloud Identity account team
     * customer.
     *
     * Generated from protobuf field <code>string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPrimaryAdminEmail()
    {
        return $this->primary_admin_email;
    }

    /**
     * Optional. Primary admin email to fetch for Cloud Identity account team
     * customer.
     *
     * Generated from protobuf field <code>string primary_admin_email = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPrimaryAdminEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->primary_admin_email = $var;

        return $this;
    }

}

