NAME
Google::Devtools::Artifactregistry::V1::File - Compiled Protocol Buffers messages for google/devtools/artifactregistry/v1/file.proto
SYNOPSIS
use Google::Devtools::Artifactregistry::V1::File;
my $msg = Google::Devtools::Artifactregistry::V1::File::Hash->new({
type => $type,
value => $value,
});
# Read or update a field
my $val = $msg->type();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devtools::Artifactregistry::V1::File::Hash->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devtools/artifactregistry/v1/file.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::File::Hash
A hash of file content.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::Hash::HashType)The algorithm used to compute the hash value.
$msg->value()/$msg->value($value)Type:
BytesThe hash value.
Enum: Hash::HashType
HASH_TYPE_UNSPECIFIED=>0SHA256=>1MD5=>2DIRSUM_SHA256=>3
Google::Devtools::Artifactregistry::V1::File::File
Files store content that is potentially associated with Packages or Versions.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the file, for example: `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they are escaped.
$msg->size_bytes()/$msg->size_bytes($value)Type:
Int64The size of the File in bytes.
$msg->hashes()/$msg->hashes($value)Type:
Message(Google::Devtools::Artifactregistry::V1::File::Hash)The hashes of the file content.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the File was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the File was last updated.
$msg->owner()/$msg->owner($value)Type:
StringThe name of the Package or Version that owns this file, if any.
$msg->fetch_time()/$msg->fetch_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Devtools::Artifactregistry::V1::File::File::AnnotationsEntry)Optional. Client specified annotations.
Google::Devtools::Artifactregistry::V1::File::ListFilesRequest
The request to list files.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1
$msg->filter()/$msg->filter($value)Type:
StringAn expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are:
* `name` * `owner` * `annotations`Examples of using a filter:
To filter the results of your request to files with the name `my_file.txt` in project `my-project` in the `us-central` region, in repository `my-repo`, append the following filter expression to your request: * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` You can also use wildcards to match any number of characters before or after the value: * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` To filter the results of your request to files owned by the version `1.0` in package `pkg1`, append the following filter expression to your request: * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` To filter the results of your request to files with the annotation key-value pair [`external_link`: `external_link_value`], append the following filter expression to your request: * `"annotations.external_link:external_link_value"` To filter just for a specific annotation key `external_link`, append the following filter expression to your request: * `"annotations.external_link"` If the annotation key or value contains special characters, you can escape them by surrounding the value with backticks. For example, to filter the results of your request to files with the annotation key-value pair [`external.link`:`https://example.com/my-file`], append the following filter expression to your request: * `` "annotations.`external.link`:`https://example.com/my-file`" `` You can also filter with annotations with a wildcard to match any number of characters before or after the value: * `` "annotations.*_link:`*example.com*`" ``$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of files to return. Maximum page size is 1,000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request, if any.
$msg->order_by()/$msg->order_by($value)Type:
StringThe field to order the results by.
Google::Devtools::Artifactregistry::V1::File::ListFilesResponse
The response from listing files.
Inherits from Protobuf::Message.
Accessors
$msg->files()/$msg->files($value)Type:
Message(Google::Devtools::Artifactregistry::V1::File::File)The files returned.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe token to retrieve the next page of files, or empty if there are no more files to return.
Google::Devtools::Artifactregistry::V1::File::GetFileRequest
The request to retrieve a file.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the file to retrieve.
Google::Devtools::Artifactregistry::V1::File::DeleteFileRequest
The request to delete a file.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the file to delete.
Google::Devtools::Artifactregistry::V1::File::UpdateFileRequest
The request to update a file.
Inherits from Protobuf::Message.
Accessors
$msg->file()/$msg->file($value)Type:
Message(Google::Devtools::Artifactregistry::V1::File::File)Required. The File that replaces the resource on the server.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
SEE ALSO
Protobuf, Protobuf::Message, Google::Devtools::Artifactregistry::V1::File::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.