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

namespace Google\Cloud\Talent\V4;

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

/**
 * Delegated partner information where for admin or debug purpose, our
 * internal source needs to act as a partner to do READ_ONLY operations (for
 * example, SearchJobs).
 *
 * Generated from protobuf message <code>google.cloud.talent.v4.DelegatedUserInfo</code>
 */
class DelegatedUserInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The GCP project number of the customer that the caller is acting on
     * behalf of.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>int64 project_number = 1;</code>
     */
    private $project_number = 0;
    /**
     * The pretended distributor id.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>string distributor_id = 2;</code>
     */
    private $distributor_id = '';
    /**
     * The pretended tenant id.
     *
     * Generated from protobuf field <code>string tenant_id = 3;</code>
     */
    private $tenant_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $project_number
     *           The GCP project number of the customer that the caller is acting on
     *           behalf of.
     *           If both project number and distributor id are provided,
     *           distributor id has the higher priority.
     *     @type string $distributor_id
     *           The pretended distributor id.
     *           If both project number and distributor id are provided,
     *           distributor id has the higher priority.
     *     @type string $tenant_id
     *           The pretended tenant id.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * The GCP project number of the customer that the caller is acting on
     * behalf of.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>int64 project_number = 1;</code>
     * @return int|string
     */
    public function getProjectNumber()
    {
        return $this->project_number;
    }

    /**
     * The GCP project number of the customer that the caller is acting on
     * behalf of.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>int64 project_number = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setProjectNumber($var)
    {
        GPBUtil::checkInt64($var);
        $this->project_number = $var;

        return $this;
    }

    /**
     * The pretended distributor id.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>string distributor_id = 2;</code>
     * @return string
     */
    public function getDistributorId()
    {
        return $this->distributor_id;
    }

    /**
     * The pretended distributor id.
     * If both project number and distributor id are provided,
     * distributor id has the higher priority.
     *
     * Generated from protobuf field <code>string distributor_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDistributorId($var)
    {
        GPBUtil::checkString($var, True);
        $this->distributor_id = $var;

        return $this;
    }

    /**
     * The pretended tenant id.
     *
     * Generated from protobuf field <code>string tenant_id = 3;</code>
     * @return string
     */
    public function getTenantId()
    {
        return $this->tenant_id;
    }

    /**
     * The pretended tenant id.
     *
     * Generated from protobuf field <code>string tenant_id = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setTenantId($var)
    {
        GPBUtil::checkString($var, True);
        $this->tenant_id = $var;

        return $this;
    }

}

