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 |
---|---|
boolean |
equals(Object obj) |
String |
getFingerprint()
Returns the fingerprint for the metadata.
|
Map<String,String> |
getValues()
Returns instance's metadata as key/value pairs.
|
int |
hashCode() |
static Metadata.Builder |
newBuilder()
Returns a builder for a
Metadata object. |
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() |
public String getFingerprint()
public Metadata.Builder toBuilder()
public static Metadata.Builder newBuilder()
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 © 2019 Google LLC. All rights reserved.