<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/artifactregistry/v1/export.proto

namespace Google\Cloud\ArtifactRegistry\V1;

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

/**
 * The response for exporting an artifact to a destination.
 *
 * Generated from protobuf message <code>google.devtools.artifactregistry.v1.ExportArtifactResponse</code>
 */
class ExportArtifactResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The exported version. Should be the same as the request version with
     * fingerprint resource name.
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.Version exported_version = 1;</code>
     */
    protected $exported_version = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ArtifactRegistry\V1\Version $exported_version
     *           The exported version. Should be the same as the request version with
     *           fingerprint resource name.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Artifactregistry\V1\Export::initOnce();
        parent::__construct($data);
    }

    /**
     * The exported version. Should be the same as the request version with
     * fingerprint resource name.
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.Version exported_version = 1;</code>
     * @return \Google\Cloud\ArtifactRegistry\V1\Version|null
     */
    public function getExportedVersion()
    {
        return $this->exported_version;
    }

    public function hasExportedVersion()
    {
        return isset($this->exported_version);
    }

    public function clearExportedVersion()
    {
        unset($this->exported_version);
    }

    /**
     * The exported version. Should be the same as the request version with
     * fingerprint resource name.
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.Version exported_version = 1;</code>
     * @param \Google\Cloud\ArtifactRegistry\V1\Version $var
     * @return $this
     */
    public function setExportedVersion($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Version::class);
        $this->exported_version = $var;

        return $this;
    }

}

