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

namespace Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction;

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

/**
 * Represents a workflow action that will run against a Notebook runtime.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction</code>
 */
class NotebookAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The code contents of a Notebook to be run.
     *
     * Generated from protobuf field <code>string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $contents = '';
    /**
     * Output only. The ID of the Vertex job that executed the notebook in
     * contents and also the ID used for the outputs created in Google Cloud
     * Storage buckets. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $job_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $contents
     *           Output only. The code contents of a Notebook to be run.
     *     @type string $job_id
     *           Output only. The ID of the Vertex job that executed the notebook in
     *           contents and also the ID used for the outputs created in Google Cloud
     *           Storage buckets. Only set once the job has started to run.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The code contents of a Notebook to be run.
     *
     * Generated from protobuf field <code>string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getContents()
    {
        return $this->contents;
    }

    /**
     * Output only. The code contents of a Notebook to be run.
     *
     * Generated from protobuf field <code>string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setContents($var)
    {
        GPBUtil::checkString($var, True);
        $this->contents = $var;

        return $this;
    }

    /**
     * Output only. The ID of the Vertex job that executed the notebook in
     * contents and also the ID used for the outputs created in Google Cloud
     * Storage buckets. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getJobId()
    {
        return $this->job_id;
    }

    /**
     * Output only. The ID of the Vertex job that executed the notebook in
     * contents and also the ID used for the outputs created in Google Cloud
     * Storage buckets. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setJobId($var)
    {
        GPBUtil::checkString($var, True);
        $this->job_id = $var;

        return $this;
    }

}


