public final class Metadata extends 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. 
 | 
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 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. 
 | 
String | 
getFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's
 contents and used for optimistic locking. 
 | 
List<Metadata.Items> | 
getItems()
Array of key/value pairs. 
 | 
String | 
getKind()
[Output Only] Type of the resource. 
 | 
Metadata | 
set(String fieldName,
   Object value)  | 
Metadata | 
setFingerprint(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(List<Metadata.Items> items)
Array of key/value pairs. 
 | 
Metadata | 
setKind(String kind)
[Output Only] Type of the resource. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public Metadata setFingerprint(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 List<Metadata.Items> getItems()
null for nonepublic Metadata setItems(List<Metadata.Items> items)
items - items or null for nonepublic String getKind()
null for nonepublic Metadata setKind(String kind)
kind - kind or null for nonepublic Metadata set(String fieldName, Object value)
set in class GenericJsonpublic Metadata clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.