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

namespace Google\Cloud\LifeSciences\V2beta;

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

/**
 * An event generated when the execution of a container results in a
 * non-zero exit status that was not otherwise ignored. Execution will
 * continue, but only actions that are flagged as `ALWAYS_RUN` will be
 * executed. Other actions will be skipped.
 *
 * Generated from protobuf message <code>google.cloud.lifesciences.v2beta.UnexpectedExitStatusEvent</code>
 */
class UnexpectedExitStatusEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * The numeric ID of the action that started the container.
     *
     * Generated from protobuf field <code>int32 action_id = 1;</code>
     */
    private $action_id = 0;
    /**
     * The exit status of the container.
     *
     * Generated from protobuf field <code>int32 exit_status = 2;</code>
     */
    private $exit_status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $action_id
     *           The numeric ID of the action that started the container.
     *     @type int $exit_status
     *           The exit status of the container.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Lifesciences\V2Beta\Workflows::initOnce();
        parent::__construct($data);
    }

    /**
     * The numeric ID of the action that started the container.
     *
     * Generated from protobuf field <code>int32 action_id = 1;</code>
     * @return int
     */
    public function getActionId()
    {
        return $this->action_id;
    }

    /**
     * The numeric ID of the action that started the container.
     *
     * Generated from protobuf field <code>int32 action_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setActionId($var)
    {
        GPBUtil::checkInt32($var);
        $this->action_id = $var;

        return $this;
    }

    /**
     * The exit status of the container.
     *
     * Generated from protobuf field <code>int32 exit_status = 2;</code>
     * @return int
     */
    public function getExitStatus()
    {
        return $this->exit_status;
    }

    /**
     * The exit status of the container.
     *
     * Generated from protobuf field <code>int32 exit_status = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setExitStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->exit_status = $var;

        return $this;
    }

}

