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

namespace Google\Cloud\Deploy\V1;

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

/**
 * A predeploy Job.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.PredeployJob</code>
 */
class PredeployJob extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The custom actions that the predeploy Job executes.
     *
     * Generated from protobuf field <code>repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $actions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $actions
     *           Output only. The custom actions that the predeploy Job executes.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The custom actions that the predeploy Job executes.
     *
     * Generated from protobuf field <code>repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<string>
     */
    public function getActions()
    {
        return $this->actions;
    }

    /**
     * Output only. The custom actions that the predeploy Job executes.
     *
     * Generated from protobuf field <code>repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string[] $var
     * @return $this
     */
    public function setActions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->actions = $arr;

        return $this;
    }

}

