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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Post startup script config.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.PostStartupScriptConfig</code>
 */
class PostStartupScriptConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Post startup script to run after runtime is started.
     *
     * Generated from protobuf field <code>string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $post_startup_script = '';
    /**
     * Optional. Post startup script url to download. Example:
     * https://bucket/script.sh
     *
     * Generated from protobuf field <code>string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $post_startup_script_url = '';
    /**
     * Optional. Post startup script behavior that defines download and execution
     * behavior.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $post_startup_script_behavior = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $post_startup_script
     *           Optional. Post startup script to run after runtime is started.
     *     @type string $post_startup_script_url
     *           Optional. Post startup script url to download. Example:
     *           https://bucket/script.sh
     *     @type int $post_startup_script_behavior
     *           Optional. Post startup script behavior that defines download and execution
     *           behavior.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\NotebookSoftwareConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Post startup script to run after runtime is started.
     *
     * Generated from protobuf field <code>string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPostStartupScript()
    {
        return $this->post_startup_script;
    }

    /**
     * Optional. Post startup script to run after runtime is started.
     *
     * Generated from protobuf field <code>string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPostStartupScript($var)
    {
        GPBUtil::checkString($var, True);
        $this->post_startup_script = $var;

        return $this;
    }

    /**
     * Optional. Post startup script url to download. Example:
     * https://bucket/script.sh
     *
     * Generated from protobuf field <code>string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPostStartupScriptUrl()
    {
        return $this->post_startup_script_url;
    }

    /**
     * Optional. Post startup script url to download. Example:
     * https://bucket/script.sh
     *
     * Generated from protobuf field <code>string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPostStartupScriptUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->post_startup_script_url = $var;

        return $this;
    }

    /**
     * Optional. Post startup script behavior that defines download and execution
     * behavior.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getPostStartupScriptBehavior()
    {
        return $this->post_startup_script_behavior;
    }

    /**
     * Optional. Post startup script behavior that defines download and execution
     * behavior.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setPostStartupScriptBehavior($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\PostStartupScriptConfig\PostStartupScriptBehavior::class);
        $this->post_startup_script_behavior = $var;

        return $this;
    }

}

