<?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;

/**
 * Used as part of Deployment write APIs to update metadata attached to a deployment.
 * Deprecated.
 *
 * Generated from protobuf message <code>temporal.api.deployment.v1.UpdateDeploymentMetadata</code>
 */
class UpdateDeploymentMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payload> upsert_entries = 1;</code>
     */
    private $upsert_entries;
    /**
     * List of keys to remove from the metadata.
     *
     * Generated from protobuf field <code>repeated string remove_entries = 2;</code>
     */
    private $remove_entries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $upsert_entries
     *     @type string[] $remove_entries
     *           List of keys to remove from the metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Deployment\V1\Message::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * List of keys to remove from the metadata.
     *
     * Generated from protobuf field <code>repeated string remove_entries = 2;</code>
     * @return RepeatedField<string>
     */
    public function getRemoveEntries()
    {
        return $this->remove_entries;
    }

    /**
     * List of keys to remove from the metadata.
     *
     * Generated from protobuf field <code>repeated string remove_entries = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRemoveEntries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->remove_entries = $arr;

        return $this;
    }

}

