<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/deployment/v1/message.proto

namespace Temporal\Api\Deployment\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.deployment.v1.VersionMetadata</code>
 */
class VersionMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Arbitrary key-values.
     *
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payload> entries = 1;</code>
     */
    private $entries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $entries
     *           Arbitrary key-values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Deployment\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Arbitrary key-values.
     *
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payload> entries = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getEntries()
    {
        return $this->entries;
    }

    /**
     * Arbitrary key-values.
     *
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payload> entries = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setEntries($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payload::class);
        $this->entries = $arr;

        return $this;
    }

}

