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
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
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
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
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
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
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