Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class Version.
The body of a version resource. A version resource represents a
collection of components, such as files and other data. This may correspond
to a version in many package management schemes.
Generated from protobuf messagegoogle.devtools.artifactregistry.v1.Version
Namespace
Google \ Cloud \ ArtifactRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the version, for example:projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1. If the package or version ID parts contain slashes, the slashes are escaped.
↳ description
string
Optional. Description of the version, as specified in its metadata.
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the resources could be:DockerImageMavenArtifact
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Artifact Registry V1 Client - Class Version (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-artifact-registry/latest/V1.Version)\n- [1.2.0](/php/docs/reference/cloud-artifact-registry/1.2.0/V1.Version)\n- [1.1.3](/php/docs/reference/cloud-artifact-registry/1.1.3/V1.Version)\n- [1.0.0](/php/docs/reference/cloud-artifact-registry/1.0.0/V1.Version)\n- [0.6.5](/php/docs/reference/cloud-artifact-registry/0.6.5/V1.Version)\n- [0.5.1](/php/docs/reference/cloud-artifact-registry/0.5.1/V1.Version)\n- [0.4.4](/php/docs/reference/cloud-artifact-registry/0.4.4/V1.Version)\n- [0.3.13](/php/docs/reference/cloud-artifact-registry/0.3.13/V1.Version) \nReference documentation and code samples for the Google Cloud Artifact Registry V1 Client class Version.\n\nThe body of a version resource. A version resource represents a\ncollection of components, such as files and other data. This may correspond\nto a version in many package management schemes.\n\nGenerated from protobuf message `google.devtools.artifactregistry.v1.Version`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ArtifactRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe name of the version, for example:\n`projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.\n\nIf the package or version ID parts contain slashes, the slashes are\nescaped.\n\n### setName\n\nThe name of the version, for example:\n`projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`.\n\nIf the package or version ID parts contain slashes, the slashes are\nescaped.\n\n### getDescription\n\nOptional. Description of the version, as specified in its metadata.\n\n### setDescription\n\nOptional. Description of the version, as specified in its metadata.\n\n### getCreateTime\n\nThe time when the version was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nThe time when the version was created.\n\n### getUpdateTime\n\nThe time when the version was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nThe time when the version was last updated.\n\n### getRelatedTags\n\nOutput only. A list of related tags. Will contain up to 100 tags that\nreference this version.\n\n### setRelatedTags\n\nOutput only. A list of related tags. Will contain up to 100 tags that\nreference this version.\n\n### getMetadata\n\nOutput only. Repository-specific Metadata stored against this version.\n\nThe fields returned are defined by the underlying repository-specific\nresource. Currently, the resources could be:\n[DockerImage](/php/docs/reference/cloud-artifact-registry/latest/V1.DockerImage)\n[MavenArtifact](/php/docs/reference/cloud-artifact-registry/latest/V1.MavenArtifact)\n\n### hasMetadata\n\n### clearMetadata\n\n### setMetadata\n\nOutput only. Repository-specific Metadata stored against this version.\n\nThe fields returned are defined by the underlying repository-specific\nresource. Currently, the resources could be:\n[DockerImage](/php/docs/reference/cloud-artifact-registry/latest/V1.DockerImage)\n[MavenArtifact](/php/docs/reference/cloud-artifact-registry/latest/V1.MavenArtifact)\n\n### getAnnotations\n\nOptional. Client specified annotations.\n\n### setAnnotations\n\nOptional. Client specified annotations."]]