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
Metadata
|
com.google.api.client.util.GenericData.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 com.google.api.client.json.GenericJson
public Metadata clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.