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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo</code>
 */
class GetVersionOperationMetadataSbomInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * SBOM versions currently applied to the resource. The key is the component
     * name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> current_component_versions = 273325091;</code>
     */
    private $current_component_versions;
    /**
     * SBOM versions scheduled for the next maintenance. The key is the
     * component name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> target_component_versions = 345997579;</code>
     */
    private $target_component_versions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $current_component_versions
     *           SBOM versions currently applied to the resource. The key is the component
     *           name and the value is the version.
     *     @type array|\Google\Protobuf\Internal\MapField $target_component_versions
     *           SBOM versions scheduled for the next maintenance. The key is the
     *           component name and the value is the version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * SBOM versions currently applied to the resource. The key is the component
     * name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> current_component_versions = 273325091;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getCurrentComponentVersions()
    {
        return $this->current_component_versions;
    }

    /**
     * SBOM versions currently applied to the resource. The key is the component
     * name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> current_component_versions = 273325091;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setCurrentComponentVersions($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->current_component_versions = $arr;

        return $this;
    }

    /**
     * SBOM versions scheduled for the next maintenance. The key is the
     * component name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> target_component_versions = 345997579;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getTargetComponentVersions()
    {
        return $this->target_component_versions;
    }

    /**
     * SBOM versions scheduled for the next maintenance. The key is the
     * component name and the value is the version.
     *
     * Generated from protobuf field <code>map<string, string> target_component_versions = 345997579;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setTargetComponentVersions($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->target_component_versions = $arr;

        return $this;
    }

}

