<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Description of an a image to use during Skaffold rendering.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.BuildArtifact</code>
 */
class BuildArtifact extends \Google\Protobuf\Internal\Message
{
    /**
     * Image name in Skaffold configuration.
     *
     * Generated from protobuf field <code>string image = 3;</code>
     */
    private $image = '';
    /**
     * Image tag to use. This will generally be the full path to an image, such
     * as "gcr.io/my-project/busybox:1.2.3" or
     * "gcr.io/my-project/busybox&#64;sha256:abc123".
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     */
    private $tag = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $image
     *           Image name in Skaffold configuration.
     *     @type string $tag
     *           Image tag to use. This will generally be the full path to an image, such
     *           as "gcr.io/my-project/busybox:1.2.3" or
     *           "gcr.io/my-project/busybox&#64;sha256:abc123".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Image name in Skaffold configuration.
     *
     * Generated from protobuf field <code>string image = 3;</code>
     * @return string
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * Image name in Skaffold configuration.
     *
     * Generated from protobuf field <code>string image = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setImage($var)
    {
        GPBUtil::checkString($var, True);
        $this->image = $var;

        return $this;
    }

    /**
     * Image tag to use. This will generally be the full path to an image, such
     * as "gcr.io/my-project/busybox:1.2.3" or
     * "gcr.io/my-project/busybox&#64;sha256:abc123".
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     * @return string
     */
    public function getTag()
    {
        return $this->tag;
    }

    /**
     * Image tag to use. This will generally be the full path to an image, such
     * as "gcr.io/my-project/busybox:1.2.3" or
     * "gcr.io/my-project/busybox&#64;sha256:abc123".
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTag($var)
    {
        GPBUtil::checkString($var, True);
        $this->tag = $var;

        return $this;
    }

}

