- 1.50.0 (latest)
- 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.v1.Version
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Version.BuilderImplements
VersionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllRelatedTags(Iterable<? extends Tag> values)
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.v1.Tag related_tags = 7;
Name | Description |
values | Iterable<? extends com.google.devtools.artifactregistry.v1.Tag> |
Type | Description |
Version.Builder |
addRelatedTags(Tag value)
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.v1.Tag related_tags = 7;
Name | Description |
value | Tag |
Type | Description |
Version.Builder |
addRelatedTags(Tag.Builder builderForValue)
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.v1.Tag related_tags = 7;
Name | Description |
builderForValue | Tag.Builder |
Type | Description |
Version.Builder |
addRelatedTags(int index, Tag value)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
value | Tag |
Type | Description |
Version.Builder |
addRelatedTags(int index, Tag.Builder builderForValue)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
builderForValue | Tag.Builder |
Type | Description |
Version.Builder |
addRelatedTagsBuilder()
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.v1.Tag related_tags = 7;
Type | Description |
Tag.Builder |
addRelatedTagsBuilder(int index)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
Type | Description |
Tag.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Version.Builder |
build()
public Version build()
Type | Description |
Version |
buildPartial()
public Version buildPartial()
Type | Description |
Version |
clear()
public Version.Builder clear()
Type | Description |
Version.Builder |
clearCreateTime()
public Version.Builder clearCreateTime()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Version.Builder |
clearDescription()
public Version.Builder clearDescription()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Type | Description |
Version.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Version.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Version.Builder |
clearMetadata()
public Version.Builder clearMetadata()
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Version.Builder |
clearName()
public Version.Builder clearName()
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.
string name = 1;
Type | Description |
Version.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Version.Builder |
clearRelatedTags()
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.v1.Tag related_tags = 7;
Type | Description |
Version.Builder |
clearUpdateTime()
public Version.Builder clearUpdateTime()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Version.Builder |
clone()
public Version.Builder clone()
Type | Description |
Version.Builder |
getCreateTime()
public Timestamp getCreateTime()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Version getDefaultInstanceForType()
Type | Description |
Version |
getDescription()
public String getDescription()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Description of the version, as specified in its metadata.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMetadata()
public Struct getMetadata()
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Struct | The metadata. |
getMetadataBuilder()
public Struct.Builder getMetadataBuilder()
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getMetadataOrBuilder()
public StructOrBuilder getMetadataOrBuilder()
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
StructOrBuilder |
getName()
public String getName()
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.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
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.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getRelatedTags(int index)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
Type | Description |
Tag |
getRelatedTagsBuilder(int index)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
Type | Description |
Tag.Builder |
getRelatedTagsBuilderList()
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.v1.Tag related_tags = 7;
Type | Description |
List<Builder> |
getRelatedTagsCount()
public int getRelatedTagsCount()
Output only. A list of related tags. Will contain up to 100 tags that reference this version.
repeated .google.devtools.artifactregistry.v1.Tag related_tags = 7;
Type | Description |
int |
getRelatedTagsList()
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.v1.Tag related_tags = 7;
Type | Description |
List<Tag> |
getRelatedTagsOrBuilder(int index)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
Type | Description |
TagOrBuilder |
getRelatedTagsOrBuilderList()
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.v1.Tag related_tags = 7;
Type | Description |
List<? extends com.google.devtools.artifactregistry.v1.TagOrBuilder> |
getUpdateTime()
public Timestamp getUpdateTime()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
boolean | Whether the createTime field is set. |
hasMetadata()
public boolean hasMetadata()
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the metadata field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Version.Builder mergeCreateTime(Timestamp value)
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
Version.Builder |
mergeFrom(Version other)
public Version.Builder mergeFrom(Version other)
Name | Description |
other | Version |
Type | Description |
Version.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Version.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Version.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Version.Builder |
mergeMetadata(Struct value)
public Version.Builder mergeMetadata(Struct value)
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Struct |
Type | Description |
Version.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Version.Builder |
mergeUpdateTime(Timestamp value)
public Version.Builder mergeUpdateTime(Timestamp value)
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
Version.Builder |
removeRelatedTags(int index)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
Type | Description |
Version.Builder |
setCreateTime(Timestamp value)
public Version.Builder setCreateTime(Timestamp value)
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
Version.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Version.Builder setCreateTime(Timestamp.Builder builderForValue)
The time when the version was created.
.google.protobuf.Timestamp create_time = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
Version.Builder |
setDescription(String value)
public Version.Builder setDescription(String value)
Optional. Description of the version, as specified in its metadata.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
Version.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Version.Builder setDescriptionBytes(ByteString value)
Optional. Description of the version, as specified in its metadata.
string description = 3;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Version.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Version.Builder |
setMetadata(Struct value)
public Version.Builder setMetadata(Struct value)
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Struct |
Type | Description |
Version.Builder |
setMetadata(Struct.Builder builderForValue)
public Version.Builder setMetadata(Struct.Builder builderForValue)
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: DockerImage MavenArtifact
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Version.Builder |
setName(String value)
public Version.Builder setName(String value)
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.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Version.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Version.Builder setNameBytes(ByteString value)
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.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Version.Builder | This builder for chaining. |
setRelatedTags(int index, Tag value)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
value | Tag |
Type | Description |
Version.Builder |
setRelatedTags(int index, Tag.Builder builderForValue)
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.v1.Tag related_tags = 7;
Name | Description |
index | int |
builderForValue | Tag.Builder |
Type | Description |
Version.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Version.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Version.Builder |
setUpdateTime(Timestamp value)
public Version.Builder setUpdateTime(Timestamp value)
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
Version.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Version.Builder setUpdateTime(Timestamp.Builder builderForValue)
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
Version.Builder |