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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for [NotebookService.CreateNotebookExecutionJob]
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest</code>
 */
class CreateNotebookExecutionJobRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the Location to create the
     * NotebookExecutionJob. Format: `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 NotebookExecutionJob to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $notebook_execution_job = null;
    /**
     * Optional. User specified ID for the NotebookExecutionJob.
     *
     * Generated from protobuf field <code>string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $notebook_execution_job_id = '';

    /**
     * @param string                                           $parent                 Required. The resource name of the Location to create the
     *                                                                                 NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
     *                                                                                 Please see {@see NotebookServiceClient::locationName()} for help formatting this field.
     * @param \Google\Cloud\AIPlatform\V1\NotebookExecutionJob $notebookExecutionJob   Required. The NotebookExecutionJob to create.
     * @param string                                           $notebookExecutionJobId Optional. User specified ID for the NotebookExecutionJob.
     *
     * @return \Google\Cloud\AIPlatform\V1\CreateNotebookExecutionJobRequest
     *
     * @experimental
     */
    public static function build(string $parent, \Google\Cloud\AIPlatform\V1\NotebookExecutionJob $notebookExecutionJob, string $notebookExecutionJobId): self
    {
        return (new self())
            ->setParent($parent)
            ->setNotebookExecutionJob($notebookExecutionJob)
            ->setNotebookExecutionJobId($notebookExecutionJobId);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The resource name of the Location to create the
     *           NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
     *     @type \Google\Cloud\AIPlatform\V1\NotebookExecutionJob $notebook_execution_job
     *           Required. The NotebookExecutionJob to create.
     *     @type string $notebook_execution_job_id
     *           Optional. User specified ID for the NotebookExecutionJob.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\NotebookService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the Location to create the
     * NotebookExecutionJob. Format: `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 resource name of the Location to create the
     * NotebookExecutionJob. Format: `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 NotebookExecutionJob to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.NotebookExecutionJob notebook_execution_job = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\NotebookExecutionJob|null
     */
    public function getNotebookExecutionJob()
    {
        return $this->notebook_execution_job;
    }

    public function hasNotebookExecutionJob()
    {
        return isset($this->notebook_execution_job);
    }

    public function clearNotebookExecutionJob()
    {
        unset($this->notebook_execution_job);
    }

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

        return $this;
    }

    /**
     * Optional. User specified ID for the NotebookExecutionJob.
     *
     * Generated from protobuf field <code>string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getNotebookExecutionJobId()
    {
        return $this->notebook_execution_job_id;
    }

    /**
     * Optional. User specified ID for the NotebookExecutionJob.
     *
     * Generated from protobuf field <code>string notebook_execution_job_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setNotebookExecutionJobId($var)
    {
        GPBUtil::checkString($var, True);
        $this->notebook_execution_job_id = $var;

        return $this;
    }

}

