public final class Version 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 |
|---|
Version() |
| Modifier and Type | Method and Description |
|---|---|
Version |
clone() |
String |
getCreateTime()
The time when the version was created.
|
String |
getDescription()
Optional.
|
Map<String,Object> |
getMetadata()
Output only.
|
String |
getName()
The name of the version, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/versions/art1".
|
List<Tag> |
getRelatedTags()
Output only.
|
String |
getUpdateTime()
The time when the version was last updated.
|
Version |
set(String fieldName,
Object value) |
Version |
setCreateTime(String createTime)
The time when the version was created.
|
Version |
setDescription(String description)
Optional.
|
Version |
setMetadata(Map<String,Object> metadata)
Output only.
|
Version |
setName(String name)
The name of the version, for example: "projects/p1/locations/us-
central1/repositories/repo1/packages/pkg1/versions/art1".
|
Version |
setRelatedTags(List<Tag> relatedTags)
Output only.
|
Version |
setUpdateTime(String updateTime)
The time when the version was last updated.
|
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 getCreateTime()
null for nonepublic Version setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getDescription()
null for nonepublic Version setDescription(String description)
description - description or null for nonepublic Map<String,Object> getMetadata()
null for nonepublic Version setMetadata(Map<String,Object> metadata)
metadata - metadata or null for nonepublic String getName()
null for nonepublic Version setName(String name)
name - name or null for nonepublic List<Tag> getRelatedTags()
null for nonepublic Version setRelatedTags(List<Tag> relatedTags)
relatedTags - relatedTags or null for nonepublic String getUpdateTime()
null for nonepublic Version setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic Version set(String fieldName, Object value)
set in class GenericJsonpublic Version clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.