<code>map&lt;string, string&gt; tags = 6;</code>
17719
public java.lang.String getTagsOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
839382
public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
    return internalGetTags().getMap();
  }
1228374
protected static String tagsToString(Set<Tag> tags) {
        StringBuilder sb = new StringBuilder();
        for (Tag tag : tags) {
            if (sb.length() > 0) {
                sb.append('\r');
            }
            sb.append(tag.key).append(Tag.KEY_VALUE_SEPARATOR).append(tag.value);
        }
        return sb.toString();
    }
1201833
public CreateTagsRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1292384
public static Set<String> getTagSet(String tags) {
		tags = StringUtils.substringBefore(tags, "\n");
		String[] tagArr = tags.split("[\\s,，;；]");
		Set<String> tagSet = new HashSet<String>();
		for (int i = 0; i < tagArr.length; i++) {
			String tag = tagArr[i].trim();
			if (!tag.isEmpty()) {
				tagSet.add(tag);
			}
		}
		return tagSet;
	}
59539
public GetTagsResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
540222
public ListTagsForStreamResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
245009
public GetSubscriptionDefinitionResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
348983
protected String toTagParameterArray(Map<String, String> tags) throws UnsupportedEncodingException {
    	if(tags == null || tags.isEmpty()) {
    		return "";
    	}
    	
        StringBuilder sb = new StringBuilder(encode("{", "UTF-8"));
        for (Map.Entry<String, String> tagEntry : tags.entrySet()) {
            sb.append(tagEntry.getKey()).append("=");

            String tagV = tagEntry.getValue().replaceAll("\\|", encode("|", "UTF-8"));

            sb.append(tagV).append(",");
        }
        sb.replace(sb.length() - 1, sb.length(), encode("}", "UTF-8"));
        
        return sb.toString();
    }
986044
public final void setTags(Map<String, String> tags) {
        Map<String, String> updatedTags = new TreeMap<>();

        if (tags != null) {
            for (Map.Entry<String, String> entry : tags.entrySet()) {
                String key = entry.getKey();

                requireArgument(!Metric.ReservedField.isReservedField(key), MessageFormat.format("Tag {0} is a reserved tag name.", key));
                updatedTags.put(key, entry.getValue());
            }
        }
        _tags.clear();
        _tags.putAll(updatedTags);
    }
1039373
private ImmutableMap<String, String> initCustomTagsMap(ImmutableMap<String, String> tags) {
		return ImmutableMap.copyOf(firstNonNull(tags, Collections.<String, String>emptyMap()));
	}
377300
public final <R> Parser<R> map(final Function<? super T, ? extends R> map) {
    return new Parser<R>() {
      @Override boolean apply(final ParseContext ctxt) {
        final boolean r = Parser.this.apply(ctxt);
        if (r) {
          ctxt.result = map.apply(Parser.this.getReturn(ctxt));
        }
        return r;
      }
      @Override public String toString() {
        return map.toString();
      }
    };
  }
337363
public ListQueueTagsResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1026041
public DescribeRobotApplicationResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
123425
public void setTags(Map<String, String> tags) {
        if (tags == null) {
            this.tags = new HashMap<>();
        } else {
            this.tags = tags;
        }
    }
117232
public DescribeFleetResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
615651
public Map<String, String> getTags() {
        Map<String, String> distilledTags = new HashMap<String, String>();

        for (Map.Entry<String, String> entry : potentialTags.entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();

            if (tagCounts.get(key).equals(totalAdds)) {
                distilledTags.put(key, value);
            }
        }
        return distilledTags;
    }