Class Version.Builder
1.86.0 (latest)
1.84.0
1.82.0
1.81.0
1.80.0
1.79.0
1.77.0
1.75.0
1.74.0
1.73.0
1.72.0
1.71.0
1.69.0
1.67.0
1.66.0
1.63.0
1.62.0
1.61.0
1.59.0
1.58.0
1.57.0
1.56.0
1.55.0
1.54.0
1.53.0
1.52.0
1.51.0
1.50.0
1.48.0
1.47.0
1.46.0
1.45.0
1.44.0
1.43.0
1.42.0
1.41.0
1.40.0
1.39.0
1.38.0
1.36.0
1.35.0
1.34.0
1.33.0
1.32.0
1.31.0
1.30.0
1.29.0
1.28.0
1.27.0
1.26.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.0
1.17.0
1.16.0
1.15.0
1.14.0
1.13.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.9
1.1.1
0.5.0
0.4.0
public static final class Version . Builder extends GeneratedMessageV3 . Builder<Version . Builder > implements VersionOrBuilder
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.
Protobuf type google.devtools.artifactregistry.v1beta2.Version
Methods
public Version . Builder addAllRelatedTags ( Iterable <? extends Tag > values )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
values
Iterable <? extends com.google.devtools.artifactregistry.v1beta2.Tag >
Returns
public Version . Builder addRelatedTags ( Tag value )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
value
Tag
Returns
public Version . Builder addRelatedTags ( Tag . Builder builderForValue )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Returns
public Version . Builder addRelatedTags ( int index , Tag value )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameters
Name
Description
index
int
value
Tag
Returns
public Version . Builder addRelatedTags ( int index , Tag . Builder builderForValue )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameters
Returns
public Tag . Builder addRelatedTagsBuilder ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
public Tag . Builder addRelatedTagsBuilder ( int index )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
index
int
Returns
public Version . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
Returns
public Version buildPartial ()
Returns
public Version . Builder clear ()
Returns
Overrides
public Version . Builder clearCreateTime ()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Version . Builder clearDescription ()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Returns
public Version . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public Version . Builder clearName ()
The name of the version, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
string name = 1;
Returns
public Version . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public Version . Builder clearRelatedTags ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
public Version . Builder clearUpdateTime ()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public Version . Builder clone ()
Returns
Overrides
public Timestamp getCreateTime ()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Timestamp . Builder getCreateTimeBuilder ()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder ()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Version getDefaultInstanceForType ()
Returns
public String getDescription ()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Returns
Type
Description
String
The description.
public ByteString getDescriptionBytes ()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Returns
Type
Description
ByteString
The bytes for description.
public static final Descriptors . Descriptor getDescriptor ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
The name of the version, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
string name = 1;
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
The name of the version, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
string name = 1;
Returns
public Tag getRelatedTags ( int index )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
index
int
Returns
public Tag . Builder getRelatedTagsBuilder ( int index )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
index
int
Returns
public List<Tag . Builder > getRelatedTagsBuilderList ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
public int getRelatedTagsCount ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
public List<Tag> getRelatedTagsList ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
public TagOrBuilder getRelatedTagsOrBuilder ( int index )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
index
int
Returns
public List <? extends TagOrBuilder > getRelatedTagsOrBuilderList ()
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Returns
Type
Description
List <? extends com.google.devtools.artifactregistry.v1beta2.TagOrBuilder >
public Timestamp getUpdateTime ()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public Timestamp . Builder getUpdateTimeBuilder ()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder ()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public boolean hasCreateTime ()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Returns
Type
Description
boolean
Whether the createTime field is set.
public boolean hasUpdateTime ()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
Type
Description
boolean
Whether the updateTime field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public Version . Builder mergeCreateTime ( Timestamp value )
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public Version . Builder mergeFrom ( Version other )
Parameter
Returns
public Version . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public Version . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final Version . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public Version . Builder mergeUpdateTime ( Timestamp value )
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
public Version . Builder removeRelatedTags ( int index )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameter
Name
Description
index
int
Returns
public Version . Builder setCreateTime ( Timestamp value )
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public Version . Builder setCreateTime ( Timestamp . Builder builderForValue )
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Name
Description
builderForValue
Builder
Returns
public Version . Builder setDescription ( String value )
Optional. Description of the version, as specified in its metadata.
string description = 3;
Parameter
Name
Description
value
String The description to set.
Returns
public Version . Builder setDescriptionBytes ( ByteString value )
Optional. Description of the version, as specified in its metadata.
string description = 3;
Parameter
Name
Description
value
ByteString The bytes for description to set.
Returns
public Version . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public Version . Builder setName ( String value )
The name of the version, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
string name = 1;
Parameter
Name
Description
value
String The name to set.
Returns
public Version . Builder setNameBytes ( ByteString value )
The name of the version, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
string name = 1;
Parameter
Name
Description
value
ByteString The bytes for name to set.
Returns
public Version . Builder setRelatedTags ( int index , Tag value )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameters
Name
Description
index
int
value
Tag
Returns
public Version . Builder setRelatedTags ( int index , Tag . Builder builderForValue )
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
repeated .google.devtools.artifactregistry.v1beta2.Tag related_tags = 7;
Parameters
Returns
public Version . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final Version . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public Version . Builder setUpdateTime ( Timestamp value )
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
public Version . Builder setUpdateTime ( Timestamp . Builder builderForValue )
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Name
Description
builderForValue
Builder
Returns
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]