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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for
 * [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.CreateSpecialistPoolRequest</code>
 */
class CreateSpecialistPoolRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent Project name for the new SpecialistPool.
     * The form is `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Required. The SpecialistPool to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $specialist_pool = null;

    /**
     * @param string                                     $parent         Required. The parent Project name for the new SpecialistPool.
     *                                                                   The form is `projects/{project}/locations/{location}`. Please see
     *                                                                   {@see SpecialistPoolServiceClient::locationName()} for help formatting this field.
     * @param \Google\Cloud\AIPlatform\V1\SpecialistPool $specialistPool Required. The SpecialistPool to create.
     *
     * @return \Google\Cloud\AIPlatform\V1\CreateSpecialistPoolRequest
     *
     * @experimental
     */
    public static function build(string $parent, \Google\Cloud\AIPlatform\V1\SpecialistPool $specialistPool): self
    {
        return (new self())
            ->setParent($parent)
            ->setSpecialistPool($specialistPool);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The parent Project name for the new SpecialistPool.
     *           The form is `projects/{project}/locations/{location}`.
     *     @type \Google\Cloud\AIPlatform\V1\SpecialistPool $specialist_pool
     *           Required. The SpecialistPool to create.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\SpecialistPoolService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The parent Project name for the new SpecialistPool.
     * The form is `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The parent Project name for the new SpecialistPool.
     * The form is `projects/{project}/locations/{location}`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The SpecialistPool to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\SpecialistPool|null
     */
    public function getSpecialistPool()
    {
        return $this->specialist_pool;
    }

    public function hasSpecialistPool()
    {
        return isset($this->specialist_pool);
    }

    public function clearSpecialistPool()
    {
        unset($this->specialist_pool);
    }

    /**
     * Required. The SpecialistPool to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\SpecialistPool $var
     * @return $this
     */
    public function setSpecialistPool($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\SpecialistPool::class);
        $this->specialist_pool = $var;

        return $this;
    }

}

