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

namespace Google\Cloud\ConfigDelivery\V1;

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

/**
 * ReleaseInfo contains extra information about the `ResourceBundle` release
 * e.g., link to an artifact registry OCI image.
 *
 * Generated from protobuf message <code>google.cloud.configdelivery.v1.ReleaseInfo</code>
 */
class ReleaseInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. path to the oci image the service uploads to on a `Release`
     * creation.
     *
     * Generated from protobuf field <code>string oci_image_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $oci_image_path = '';
    /**
     * Optional. per-variant paths to the oci images the service uploads on
     * package release creation
     *
     * Generated from protobuf field <code>map<string, string> variant_oci_image_paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $variant_oci_image_paths;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $oci_image_path
     *           Output only. path to the oci image the service uploads to on a `Release`
     *           creation.
     *     @type array|\Google\Protobuf\Internal\MapField $variant_oci_image_paths
     *           Optional. per-variant paths to the oci images the service uploads on
     *           package release creation
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Configdelivery\V1\ConfigDelivery::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. path to the oci image the service uploads to on a `Release`
     * creation.
     *
     * Generated from protobuf field <code>string oci_image_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getOciImagePath()
    {
        return $this->oci_image_path;
    }

    /**
     * Output only. path to the oci image the service uploads to on a `Release`
     * creation.
     *
     * Generated from protobuf field <code>string oci_image_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setOciImagePath($var)
    {
        GPBUtil::checkString($var, True);
        $this->oci_image_path = $var;

        return $this;
    }

    /**
     * Optional. per-variant paths to the oci images the service uploads on
     * package release creation
     *
     * Generated from protobuf field <code>map<string, string> variant_oci_image_paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getVariantOciImagePaths()
    {
        return $this->variant_oci_image_paths;
    }

    /**
     * Optional. per-variant paths to the oci images the service uploads on
     * package release creation
     *
     * Generated from protobuf field <code>map<string, string> variant_oci_image_paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setVariantOciImagePaths($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->variant_oci_image_paths = $arr;

        return $this;
    }

}

