Puts metadata.

@param key   metadata key
@param value metadata value
@return this
346759
public FileIndexBuilder putMetadata(String key, String value) {
        checkIfDestroyed();
        metadata.put(key, value);
        return this;
    }
137958
public Request data(String key, Object value) {
        this.data.put(key, value);
        return this;
    }
312089
public ParamWrapper put(String key, Object value) {
        this.paramMap.put(key, value);
        return this;
    }
323428
public Options putLiteral(String key, String value)
	{
		putOption(key, new LiteralOption(value));
		return this;
	}
200070
public OtpErlangObject put(final OtpErlangObject key,
            final OtpErlangObject value) {
        return map.put(key, value);
    }
1201825
public LogMetadata and(String key, Object value) {
        metadata.put(key, value);
        return this;
    }
1200859
public Application withMetadata(java.util.Map<String, String> metadata) {
        setMetadata(metadata);
        return this;
    }
1333367
public JSONObject put(String key, boolean value) throws JSONException {
        if (key == null) {
            throw new JSONException("Null key.");
        }
        m_map.put(key, value);
        return this;
    }
1335300
public ServiceResult<T> addMetadata(String key, Metadata metadata) {
        this.getMetadata().put(key, metadata);
        return this;
    }
562701
public Object put(Object key, Object value) {
        if (value instanceof List) {
            return mMap.put(key, new ArrayList((List)value));
        }
        else {
            return mMap.put(key, value);
        }
    }
361947
public PartitionContextBuilder put(String key, Object value) {
        _map.put(key, value);
        return this;
    }
1316865
public T put(YamlNode key, int value) {
        return put(key, getNodeFactory().intNode(value));
    }
376967
@Override
    public final void setMetadataProperty(final String key, final String value) {
        _metadataProperties.put(key, value);
    }
406131
public Attributes put(String key, String value) {
        int i = indexOfKey(key);
        if (i != NotFound)
            vals[i] = value;
        else
            add(key, value);
        return this;
    }
1330053
public Payload add(String key, String value) {
    getData().put(key, value);
    return this;
  }
1287379
public function setMetadata($key, $value)
	{
		// The key and value should be encoded.
		$key = urlencode($key);
		$value = urlencode($value);

		if (count($this->metadataHeaders) < self::MAX_METADATA_HEADERS) {
			if (strlen($key) <= self::MAX_METADATA_KEY) {
				if (strlen($value) <= self::MAX_METADATA_VALUE) {
					$this->metadataHeaders['X-Container-Meta-' . $key] = $value;
				} else {
					throw new BadMetadataException(
						"Only " . self::MAX_METADATA_VALUE
						. " characters allowed for the metadata header value!");
				}
			} else {
				throw new BadMetadataException(
					"Only " . self::MAX_METADATA_KEY
					. " characters allowed for the metadata header key!");
			}
		} else {
			throw new BadMetadataException(
				"Only " . self::MAX_METADATA_HEADERS . " metadata headers allowed!");
		}
	}
873746
public final Object put(Object key, Object value) {
        return internalData.put(key, value);
    }