Class Attachment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
com.google.devtools.artifactregistry.v1.Attachment.Builder
All Implemented Interfaces:
AttachmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Attachment

public static final class Attachment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder> implements AttachmentOrBuilder
 An Attachment refers to additional metadata that can be attached to
 artifacts in Artifact Registry. An attachment consists of one or more files.
 
Protobuf type google.devtools.artifactregistry.v1.Attachment
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
    • internalGetFieldAccessorTable

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

      public Attachment.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<Attachment.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<Attachment.Builder>
    • getDefaultInstanceForType

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

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

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

      public Attachment.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<Attachment.Builder>
    • mergeFrom

      public Attachment.Builder mergeFrom(Attachment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
    • mergeFrom

      public Attachment.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<Attachment.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the attachment. E.g.
       `projects/p1/locations/us/repositories/repo/attachments/sbom`.
       
      string name = 1;
      Specified by:
      getName in interface AttachmentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the attachment. E.g.
       `projects/p1/locations/us/repositories/repo/attachments/sbom`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Attachment.Builder setName(String value)
       The name of the attachment. E.g.
       `projects/p1/locations/us/repositories/repo/attachments/sbom`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Attachment.Builder clearName()
       The name of the attachment. E.g.
       `projects/p1/locations/us/repositories/repo/attachments/sbom`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Attachment.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the attachment. E.g.
       `projects/p1/locations/us/repositories/repo/attachments/sbom`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTarget

      public String getTarget()
       Required. The target the attachment is for, can be a Version, Package or
       Repository. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTarget in interface AttachmentOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       Required. The target the attachment is for, can be a Version, Package or
       Repository. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public Attachment.Builder setTarget(String value)
       Required. The target the attachment is for, can be a Version, Package or
       Repository. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public Attachment.Builder clearTarget()
       Required. The target the attachment is for, can be a Version, Package or
       Repository. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTargetBytes

      public Attachment.Builder setTargetBytes(com.google.protobuf.ByteString value)
       Required. The target the attachment is for, can be a Version, Package or
       Repository. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       Type of attachment.
       E.g. `application/vnd.spdx+json`
       
      string type = 3;
      Specified by:
      getType in interface AttachmentOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of attachment.
       E.g. `application/vnd.spdx+json`
       
      string type = 3;
      Specified by:
      getTypeBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Attachment.Builder setType(String value)
       Type of attachment.
       E.g. `application/vnd.spdx+json`
       
      string type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Attachment.Builder clearType()
       Type of attachment.
       E.g. `application/vnd.spdx+json`
       
      string type = 3;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Attachment.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Type of attachment.
       E.g. `application/vnd.spdx+json`
       
      string type = 3;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getAttachmentNamespace

      public String getAttachmentNamespace()
       The namespace this attachment belongs to.
       E.g. If an attachment is created by artifact analysis, namespace is set
       to `artifactanalysis.googleapis.com`.
       
      string attachment_namespace = 4;
      Specified by:
      getAttachmentNamespace in interface AttachmentOrBuilder
      Returns:
      The attachmentNamespace.
    • getAttachmentNamespaceBytes

      public com.google.protobuf.ByteString getAttachmentNamespaceBytes()
       The namespace this attachment belongs to.
       E.g. If an attachment is created by artifact analysis, namespace is set
       to `artifactanalysis.googleapis.com`.
       
      string attachment_namespace = 4;
      Specified by:
      getAttachmentNamespaceBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for attachmentNamespace.
    • setAttachmentNamespace

      public Attachment.Builder setAttachmentNamespace(String value)
       The namespace this attachment belongs to.
       E.g. If an attachment is created by artifact analysis, namespace is set
       to `artifactanalysis.googleapis.com`.
       
      string attachment_namespace = 4;
      Parameters:
      value - The attachmentNamespace to set.
      Returns:
      This builder for chaining.
    • clearAttachmentNamespace

      public Attachment.Builder clearAttachmentNamespace()
       The namespace this attachment belongs to.
       E.g. If an attachment is created by artifact analysis, namespace is set
       to `artifactanalysis.googleapis.com`.
       
      string attachment_namespace = 4;
      Returns:
      This builder for chaining.
    • setAttachmentNamespaceBytes

      public Attachment.Builder setAttachmentNamespaceBytes(com.google.protobuf.ByteString value)
       The namespace this attachment belongs to.
       E.g. If an attachment is created by artifact analysis, namespace is set
       to `artifactanalysis.googleapis.com`.
       
      string attachment_namespace = 4;
      Parameters:
      value - The bytes for attachmentNamespace to set.
      Returns:
      This builder for chaining.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: AttachmentOrBuilder
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface AttachmentOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface AttachmentOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface AttachmentOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface AttachmentOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface AttachmentOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface AttachmentOrBuilder
    • clearAnnotations

      public Attachment.Builder clearAnnotations()
    • removeAnnotations

      public Attachment.Builder removeAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Attachment.Builder putAnnotations(String key, String value)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public Attachment.Builder putAllAnnotations(Map<String,String> values)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Artifact Registry. See
       https://google.aip.dev/128#annotations for more details such as format and
       size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AttachmentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AttachmentOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Attachment.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Attachment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Attachment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Attachment.Builder clearCreateTime()
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the attachment was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AttachmentOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AttachmentOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AttachmentOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Attachment.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Attachment.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Attachment.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Attachment.Builder clearUpdateTime()
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the attachment was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AttachmentOrBuilder
    • getFilesList

      public com.google.protobuf.ProtocolStringList getFilesList()
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getFilesList in interface AttachmentOrBuilder
      Returns:
      A list containing the files.
    • getFilesCount

      public int getFilesCount()
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getFilesCount in interface AttachmentOrBuilder
      Returns:
      The count of files.
    • getFiles

      public String getFiles(int index)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getFiles in interface AttachmentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The files at the given index.
    • getFilesBytes

      public com.google.protobuf.ByteString getFilesBytes(int index)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getFilesBytes in interface AttachmentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the files at the given index.
    • setFiles

      public Attachment.Builder setFiles(int index, String value)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The files to set.
      Returns:
      This builder for chaining.
    • addFiles

      public Attachment.Builder addFiles(String value)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The files to add.
      Returns:
      This builder for chaining.
    • addAllFiles

      public Attachment.Builder addAllFiles(Iterable<String> values)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The files to add.
      Returns:
      This builder for chaining.
    • clearFiles

      public Attachment.Builder clearFiles()
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addFilesBytes

      public Attachment.Builder addFilesBytes(com.google.protobuf.ByteString value)
       Required. The files that belong to this attachment.
       If the file ID part contains slashes, they are escaped. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
       
      repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the files to add.
      Returns:
      This builder for chaining.
    • getOciVersionName

      public String getOciVersionName()
       Output only. The name of the OCI version that this attachment created. Only
       populated for Docker attachments. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOciVersionName in interface AttachmentOrBuilder
      Returns:
      The ociVersionName.
    • getOciVersionNameBytes

      public com.google.protobuf.ByteString getOciVersionNameBytes()
       Output only. The name of the OCI version that this attachment created. Only
       populated for Docker attachments. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOciVersionNameBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for ociVersionName.
    • setOciVersionName

      public Attachment.Builder setOciVersionName(String value)
       Output only. The name of the OCI version that this attachment created. Only
       populated for Docker attachments. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The ociVersionName to set.
      Returns:
      This builder for chaining.
    • clearOciVersionName

      public Attachment.Builder clearOciVersionName()
       Output only. The name of the OCI version that this attachment created. Only
       populated for Docker attachments. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOciVersionNameBytes

      public Attachment.Builder setOciVersionNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the OCI version that this attachment created. Only
       populated for Docker attachments. E.g.
       `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
       
      string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for ociVersionName to set.
      Returns:
      This builder for chaining.