Class Version.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
com.google.devtools.artifactregistry.v1beta2.Version.Builder
- All Implemented Interfaces:
VersionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Version
public static final class Version.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllRelatedTags(Iterable<? extends Tag> values) Output only.addRelatedTags(int index, Tag value) Output only.addRelatedTags(int index, Tag.Builder builderForValue) Output only.addRelatedTags(Tag value) Output only.addRelatedTags(Tag.Builder builderForValue) Output only.Output only.addRelatedTagsBuilder(int index) Output only.build()clear()The time when the version was created.Optional.Output only.The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".Output only.The time when the version was last updated.com.google.protobuf.TimestampThe time when the version was created.com.google.protobuf.Timestamp.BuilderThe time when the version was created.com.google.protobuf.TimestampOrBuilderThe time when the version was created.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOutput only.com.google.protobuf.Struct.BuilderOutput only.com.google.protobuf.StructOrBuilderOutput only.getName()The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".com.google.protobuf.ByteStringThe name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".getRelatedTags(int index) Output only.getRelatedTagsBuilder(int index) Output only.Output only.intOutput only.Output only.getRelatedTagsOrBuilder(int index) Output only.List<? extends TagOrBuilder>Output only.com.google.protobuf.TimestampThe time when the version was last updated.com.google.protobuf.Timestamp.BuilderThe time when the version was last updated.com.google.protobuf.TimestampOrBuilderThe time when the version was last updated.booleanThe time when the version was created.booleanOutput only.booleanThe time when the version was last updated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The time when the version was created.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadata(com.google.protobuf.Struct value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) The time when the version was last updated.removeRelatedTags(int index) Output only.setCreateTime(com.google.protobuf.Timestamp value) The time when the version was created.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the version was created.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setMetadata(com.google.protobuf.Struct value) Output only.setMetadata(com.google.protobuf.Struct.Builder builderForValue) Output only.The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".setNameBytes(com.google.protobuf.ByteString value) The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".setRelatedTags(int index, Tag value) Output only.setRelatedTags(int index, Tag.Builder builderForValue) Output only.setUpdateTime(com.google.protobuf.Timestamp value) The time when the version was last updated.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the version was last updated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Version.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Version.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Version.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Version.Builder>
-
mergeFrom
public Version.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Version.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceVersionOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description of the version, as specified in its metadata.
string description = 3;- Specified by:
getDescriptionin interfaceVersionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description of the version, as specified in its metadata.
string description = 3;- Specified by:
getDescriptionBytesin interfaceVersionOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. Description of the version, as specified in its metadata.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description of the version, as specified in its metadata.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Description of the version, as specified in its metadata.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The time when the version was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
hasCreateTimein interfaceVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The time when the version was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
getCreateTimein interfaceVersionOrBuilder- Returns:
- The createTime.
-
setCreateTime
The time when the version was created.
.google.protobuf.Timestamp create_time = 5; -
setCreateTime
The time when the version was created.
.google.protobuf.Timestamp create_time = 5; -
mergeCreateTime
The time when the version was created.
.google.protobuf.Timestamp create_time = 5; -
clearCreateTime
The time when the version was created.
.google.protobuf.Timestamp create_time = 5; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The time when the version was created.
.google.protobuf.Timestamp create_time = 5; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The time when the version was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
getCreateTimeOrBuilderin interfaceVersionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;- Specified by:
hasUpdateTimein interfaceVersionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;- Specified by:
getUpdateTimein interfaceVersionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6; -
setUpdateTime
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6; -
mergeUpdateTime
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6; -
clearUpdateTime
The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The time when the version was last updated.
.google.protobuf.Timestamp update_time = 6;- Specified by:
getUpdateTimeOrBuilderin interfaceVersionOrBuilder
-
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;- Specified by:
getRelatedTagsListin interfaceVersionOrBuilder
-
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.v1beta2.Tag related_tags = 7;- Specified by:
getRelatedTagsCountin interfaceVersionOrBuilder
-
getRelatedTags
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;- Specified by:
getRelatedTagsin interfaceVersionOrBuilder
-
setRelatedTags
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; -
setRelatedTags
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; -
addRelatedTags
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; -
addRelatedTags
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; -
addRelatedTags
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; -
addRelatedTags
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; -
addAllRelatedTags
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; -
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; -
removeRelatedTags
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; -
getRelatedTagsBuilder
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; -
getRelatedTagsOrBuilder
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;- Specified by:
getRelatedTagsOrBuilderin interfaceVersionOrBuilder
-
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;- Specified by:
getRelatedTagsOrBuilderListin interfaceVersionOrBuilder
-
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; -
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; -
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; -
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 only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMetadatain interfaceVersionOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadatain interfaceVersionOrBuilder- Returns:
- The metadata.
-
setMetadata
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setMetadata
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeMetadata
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearMetadata
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataBuilder
public com.google.protobuf.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 only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
.google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadataOrBuilderin interfaceVersionOrBuilder
-