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

/**
 * Additional route parameters.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.RouteParams</code>
 */
class RouteParams extends \Google\Protobuf\Internal\Message
{
    /**
     * Tag keys/values directly bound to this resource.
     * Tag keys and values have the same definition as resource
     * manager tags. The field is allowed for INSERT
     * only. The keys/values to set on the resource should be specified in
     * either ID { : } or Namespaced format
     * { : }.
     * For example the following are valid inputs:
     * * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"}
     * * {"123/environment" : "production", "345/abc" : "xyz"}
     * Note:
     * * Invalid combinations of ID & namespaced format is not supported. For
     *   instance: {"123/environment" : "tagValues/444"} is invalid.
     *
     * Generated from protobuf field <code>map<string, string> resource_manager_tags = 377671164;</code>
     */
    private $resource_manager_tags;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $resource_manager_tags
     *           Tag keys/values directly bound to this resource.
     *           Tag keys and values have the same definition as resource
     *           manager tags. The field is allowed for INSERT
     *           only. The keys/values to set on the resource should be specified in
     *           either ID { : } or Namespaced format
     *           { : }.
     *           For example the following are valid inputs:
     *           * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"}
     *           * {"123/environment" : "production", "345/abc" : "xyz"}
     *           Note:
     *           * Invalid combinations of ID & namespaced format is not supported. For
     *             instance: {"123/environment" : "tagValues/444"} is invalid.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Tag keys/values directly bound to this resource.
     * Tag keys and values have the same definition as resource
     * manager tags. The field is allowed for INSERT
     * only. The keys/values to set on the resource should be specified in
     * either ID { : } or Namespaced format
     * { : }.
     * For example the following are valid inputs:
     * * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"}
     * * {"123/environment" : "production", "345/abc" : "xyz"}
     * Note:
     * * Invalid combinations of ID & namespaced format is not supported. For
     *   instance: {"123/environment" : "tagValues/444"} is invalid.
     *
     * Generated from protobuf field <code>map<string, string> resource_manager_tags = 377671164;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getResourceManagerTags()
    {
        return $this->resource_manager_tags;
    }

    /**
     * Tag keys/values directly bound to this resource.
     * Tag keys and values have the same definition as resource
     * manager tags. The field is allowed for INSERT
     * only. The keys/values to set on the resource should be specified in
     * either ID { : } or Namespaced format
     * { : }.
     * For example the following are valid inputs:
     * * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"}
     * * {"123/environment" : "production", "345/abc" : "xyz"}
     * Note:
     * * Invalid combinations of ID & namespaced format is not supported. For
     *   instance: {"123/environment" : "tagValues/444"} is invalid.
     *
     * Generated from protobuf field <code>map<string, string> resource_manager_tags = 377671164;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setResourceManagerTags($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->resource_manager_tags = $arr;

        return $this;
    }

}

