public final class Tag 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 Artifact Registry 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 |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
String |
getName()
The name of the tag, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/tags/tag1".
|
String |
getVersion()
The name of the version the tag refers to, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID
parts contain slashes, the slashes are escaped.
|
Tag |
set(String fieldName,
Object value) |
Tag |
setName(String name)
The name of the tag, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/tags/tag1".
|
Tag |
setVersion(String version)
The name of the version the tag refers to, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID
parts contain slashes, the slashes are escaped.
|
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 getName()
null for nonepublic Tag setName(String name)
name - name or null for nonepublic String getVersion()
null for nonepublic Tag setVersion(String version)
version - version or null for nonepublic Tag set(String fieldName, Object value)
set in class GenericJsonpublic Tag clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.