NAME

Google::Devtools::Artifactregistry::V1::Attachment - Compiled Protocol Buffers messages for google/devtools/artifactregistry/v1/attachment.proto

SYNOPSIS

use Google::Devtools::Artifactregistry::V1::Attachment;

my $msg = Google::Devtools::Artifactregistry::V1::Attachment::Attachment->new({
    name => $name,
    target => $target,
    type => $type,
    attachment_namespace => $attachment_namespace,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Artifactregistry::V1::Attachment::Attachment->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/artifactregistry/v1/attachment.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Artifactregistry::V1::Attachment::Attachment

An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.

  • $msg->target() / $msg->target($value)

    Type: String

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

  • $msg->type() / $msg->type($value)

    Type: String

    Type of attachment. E.g. `application/vnd.spdx+json`

  • $msg->attachment_namespace() / $msg->attachment_namespace($value)

    Type: String

    The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.

  • $msg->annotations() / $msg->annotations($value)

    Type: Message (Google::Devtools::Artifactregistry::V1::Attachment::Attachment::AnnotationsEntry)

    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.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the attachment was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the attachment was last updated.

  • $msg->files() / $msg->files($value)

    Type: String

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

  • $msg->oci_version_name() / $msg->oci_version_name($value)

    Type: String

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

Google::Devtools::Artifactregistry::V1::Attachment::ListAttachmentsRequest

The request to list attachments.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the parent resource whose attachments will be listed.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are:

    * `target`
    * `type`
    * `attachment_namespace`
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of attachments to return. Maximum page size is 1,000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous list request, if any.

Google::Devtools::Artifactregistry::V1::Attachment::ListAttachmentsResponse

The response from listing attachments.

Inherits from Protobuf::Message.

Accessors

  • $msg->attachments() / $msg->attachments($value)

    Type: Message (Google::Devtools::Artifactregistry::V1::Attachment::Attachment)

    The attachments returned.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    The token to retrieve the next page of attachments, or empty if there are no more attachments to return.

Google::Devtools::Artifactregistry::V1::Attachment::GetAttachmentRequest

The request to retrieve an attachment.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the attachment to retrieve.

Google::Devtools::Artifactregistry::V1::Attachment::CreateAttachmentRequest

The request to create a new attachment.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the parent resource where the attachment will be created.

  • $msg->attachment_id() / $msg->attachment_id($value)

    Type: String

    Required. The attachment id to use for this attachment.

  • $msg->attachment() / $msg->attachment($value)

    Type: Message (Google::Devtools::Artifactregistry::V1::Attachment::Attachment)

    Required. The attachment to be created.

Google::Devtools::Artifactregistry::V1::Attachment::DeleteAttachmentRequest

The request to delete an attachment.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the attachment to delete.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Artifactregistry::V1::Attachment::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.