public final class Metadata
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Items
Model definition for MetadataItems.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
clone() |
byte[] |
decodeFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
Metadata |
encodeFingerprint(byte[] fingerprint)
Specifies a fingerprint for this request, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
java.lang.String |
getFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
java.util.List<Metadata.Items> |
getItems()
Array of key/value pairs.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
Metadata |
set(java.lang.String fieldName,
java.lang.Object value) |
Metadata |
setFingerprint(java.lang.String fingerprint)
Specifies a fingerprint for this request, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
Metadata |
setItems(java.util.List<Metadata.Items> items)
Array of key/value pairs.
|
Metadata |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public Metadata setFingerprint(java.lang.String fingerprint)
fingerprint - fingerprint or null for none#encodeFingerprint()public Metadata encodeFingerprint(byte[] fingerprint)
The value is encoded Base64 or {@code null} for none.
public java.util.List<Metadata.Items> getItems()
null for nonepublic Metadata setItems(java.util.List<Metadata.Items> items)
items - items or null for nonepublic java.lang.String getKind()
null for nonepublic Metadata setKind(java.lang.String kind)
kind - kind or null for nonepublic Metadata set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Metadata clone()
clone in class com.google.api.client.json.GenericJson