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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • clear

      public Version.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Version.Builder>
    • getDefaultInstanceForType

      public Version getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Version build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Version buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Version.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Version.Builder>
    • mergeFrom

      public Version.Builder mergeFrom(Version other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Version.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getName in interface VersionOrBuilder
      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:
      getNameBytes in interface VersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Version.Builder setNameBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the version, as specified in its metadata.
       
      string description = 3;
      Specified by:
      getDescription in interface VersionOrBuilder
      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:
      getDescriptionBytes in interface VersionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Version.Builder setDescription(String value)
       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

      public Version.Builder clearDescription()
       Optional. Description of the version, as specified in its metadata.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Version.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface VersionOrBuilder
      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:
      getCreateTime in interface VersionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The time when the version was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the version was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • mergeCreateTime

      public Version.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The time when the version was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • clearCreateTime

      public Version.Builder 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:
      getCreateTimeOrBuilder in interface VersionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The time when the version was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      hasUpdateTime in interface VersionOrBuilder
      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:
      getUpdateTime in interface VersionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Version.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The time when the version was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • setUpdateTime

      public Version.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the version was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • mergeUpdateTime

      public Version.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The time when the version was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • clearUpdateTime

      public Version.Builder 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:
      getUpdateTimeOrBuilder in interface VersionOrBuilder
    • 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.v1beta2.Tag related_tags = 7;
      Specified by:
      getRelatedTagsList in interface VersionOrBuilder
    • 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:
      getRelatedTagsCount in interface VersionOrBuilder
    • getRelatedTags

      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;
      Specified by:
      getRelatedTags in interface VersionOrBuilder
    • setRelatedTags

      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;
    • setRelatedTags

      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;
    • addRelatedTags

      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;
    • addRelatedTags

      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;
    • addRelatedTags

      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;
    • addRelatedTags

      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;
    • addAllRelatedTags

      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;
    • 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.v1beta2.Tag related_tags = 7;
    • removeRelatedTags

      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;
    • getRelatedTagsBuilder

      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;
    • getRelatedTagsOrBuilder

      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;
      Specified by:
      getRelatedTagsOrBuilder in interface VersionOrBuilder
    • 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.v1beta2.Tag related_tags = 7;
      Specified by:
      getRelatedTagsOrBuilderList in interface VersionOrBuilder
    • 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.v1beta2.Tag related_tags = 7;
    • addRelatedTagsBuilder

      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;
    • 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.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:
      hasMetadata in interface VersionOrBuilder
      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:
      getMetadata in interface VersionOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public Version.Builder setMetadata(com.google.protobuf.Struct value)
       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

      public Version.Builder setMetadata(com.google.protobuf.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 only resource in use is
       [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
       
      .google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeMetadata

      public Version.Builder mergeMetadata(com.google.protobuf.Struct value)
       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

      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 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:
      getMetadataOrBuilder in interface VersionOrBuilder