public final class Any 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Any() |
| Modifier and Type | Method and Description |
|---|---|
Any |
clone() |
byte[] |
decodeValue()
Must be a valid serialized protocol buffer of the above specified type.
|
Any |
encodeValue(byte[] value)
Must be a valid serialized protocol buffer of the above specified type.
|
String |
getTypeUrl()
A URL/resource name that uniquely identifies the type of the serialized protocol buffer
message.
|
String |
getValue()
Must be a valid serialized protocol buffer of the above specified type.
|
Any |
set(String fieldName,
Object value) |
Any |
setTypeUrl(String typeUrl)
A URL/resource name that uniquely identifies the type of the serialized protocol buffer
message.
|
Any |
setValue(String value)
Must be a valid serialized protocol buffer of the above specified type.
|
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 getTypeUrl()
null for nonepublic Any setTypeUrl(String typeUrl)
typeUrl - typeUrl or null for nonepublic String getValue()
null for nonedecodeValue()public byte[] decodeValue()
null for nonegetValue()public Any setValue(String value)
value - value or null for none#encodeValue()public Any encodeValue(byte[] value)
The value is encoded Base64 or {@code null} for none.
public Any set(String fieldName, Object value)
set in class GenericJsonpublic Any clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.