public final class ResourceMetadata
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
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ResourceMetadata() |
| Modifier and Type | Method and Description |
|---|---|
ResourceMetadata |
clone() |
String |
getApiVersion()
The version of the API interface that this resource was retrieved through.
|
String |
getResourceType()
The canonical resource type name in the format of a resource type as defined by
[AIP-123](https://google.aip.dev/123).
|
ResourceMetadata |
set(String fieldName,
Object value) |
ResourceMetadata |
setApiVersion(String apiVersion)
The version of the API interface that this resource was retrieved through.
|
ResourceMetadata |
setResourceType(String resourceType)
The canonical resource type name in the format of a resource type as defined by
[AIP-123](https://google.aip.dev/123).
|
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 getApiVersion()
null for nonepublic ResourceMetadata setApiVersion(String apiVersion)
apiVersion - apiVersion or null for nonepublic String getResourceType()
null for nonepublic ResourceMetadata setResourceType(String resourceType)
resourceType - resourceType or null for nonepublic ResourceMetadata set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic ResourceMetadata clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.