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

namespace Google\Cloud\BeyondCorp\AppConnectors\V1;

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

/**
 * ImageConfig defines the control plane images to run.
 *
 * Generated from protobuf message <code>google.cloud.beyondcorp.appconnectors.v1.ImageConfig</code>
 */
class ImageConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The initial image the remote agent will attempt to run for the control
     * plane.
     *
     * Generated from protobuf field <code>string target_image = 1;</code>
     */
    private $target_image = '';
    /**
     * The stable image that the remote agent will fallback to if the target image
     * fails.
     *
     * Generated from protobuf field <code>string stable_image = 2;</code>
     */
    private $stable_image = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $target_image
     *           The initial image the remote agent will attempt to run for the control
     *           plane.
     *     @type string $stable_image
     *           The stable image that the remote agent will fallback to if the target image
     *           fails.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Beyondcorp\Appconnectors\V1\AppConnectorInstanceConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * The initial image the remote agent will attempt to run for the control
     * plane.
     *
     * Generated from protobuf field <code>string target_image = 1;</code>
     * @return string
     */
    public function getTargetImage()
    {
        return $this->target_image;
    }

    /**
     * The initial image the remote agent will attempt to run for the control
     * plane.
     *
     * Generated from protobuf field <code>string target_image = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTargetImage($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_image = $var;

        return $this;
    }

    /**
     * The stable image that the remote agent will fallback to if the target image
     * fails.
     *
     * Generated from protobuf field <code>string stable_image = 2;</code>
     * @return string
     */
    public function getStableImage()
    {
        return $this->stable_image;
    }

    /**
     * The stable image that the remote agent will fallback to if the target image
     * fails.
     *
     * Generated from protobuf field <code>string stable_image = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setStableImage($var)
    {
        GPBUtil::checkString($var, True);
        $this->stable_image = $var;

        return $this;
    }

}

