public final class Metadata extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
A builder for
Metadata objects. |
| Modifier and Type | Method and Description |
|---|---|
static Metadata.Builder |
builder()
Returns a builder for a
Metadata object. |
boolean |
equals(Object obj) |
String |
fingerprint()
Returns the fingerprint for the metadata.
|
int |
hashCode() |
static Metadata |
of(Map<String,String> values)
Returns a
Metadata object given the the metadata as a map. |
Metadata.Builder |
toBuilder()
Returns a builder for the current instance metadata.
|
String |
toString() |
Map<String,String> |
values()
Returns instance's metadata as key/value pairs.
|
public String fingerprint()
public Metadata.Builder toBuilder()
public static Metadata.Builder builder()
Metadata object.public static Metadata of(Map<String,String> values)
Metadata object given the the metadata as a map. The total size of all keys
and values must be less than 512 KB. Keys must conform to the following regexp:
[a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a
URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any
other metadata keys for the project. Values must be less than or equal to 32768 bytes.Copyright © 2016 Google. All rights reserved.