NAME

Google::Devtools::Resultstore::V2::File - Compiled Protocol Buffers messages for google/devtools/resultstore/v2/file.proto

SYNOPSIS

use Google::Devtools::Resultstore::V2::File;

my $msg = Google::Devtools::Resultstore::V2::File::File->new({
    uid => $uid,
    uri => $uri,
    length => $length,
    content_type => $content_type,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Resultstore::V2::File::File->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/resultstore/v2/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::Resultstore::V2::File::File

The metadata for a file or an archive file entry.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The identifier of the file or archive entry. User-provided, must be unique for the repeated field it is in. When an Append RPC is called with a Files field populated, if a File already exists with this ID, that File will be overwritten with the new File proto.

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

    Type: String

    The URI of a file. This could also be the URI of an entire archive. Most log data doesn't need to be stored forever, so a ttl is suggested. Note that if you ever move or delete the file at this URI, the link from the server will be broken.

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

    Type: Message (Google::Protobuf::Wrappers::Int64Value)

    The length of the file in bytes. Allows the filesize to be shown in the UI. Omit if file is still being written or length is not known. This could also be the length of an entire archive.

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

    Type: String

    The content-type (aka MIME-type) of the file. This is sent to the web browser so it knows how to handle the file. (e.g. text/plain, image/jpeg, text/html, etc). For zip archives, use "application/zip".

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

    Type: Message (Google::Devtools::Resultstore::V2::File::ArchiveEntry)

    If the above path, length, and content_type are referring to an archive, and you wish to refer to a particular entry within that archive, put the particular archive entry data here.

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

    Type: String

    A url to a content display app/site for this file or archive entry.

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

    Type: Bool

    Whether to hide this file or archive entry in the UI. Defaults to false. A checkbox lets users see hidden files, but they're hidden by default.

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

    Type: String

    A short description of what this file or archive entry contains. This description should help someone viewing the list of these files to understand the purpose of this file and what they would want to view it for.

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

    Type: String

    The digest of this file in hexadecimal-like string if known.

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

    Type: Enum (Google::Devtools::Resultstore::V2::File::HashType)

    The algorithm corresponding to the digest if known.

Enum: File::HashType

  • HASH_TYPE_UNSPECIFIED => 0

  • MD5 => 1

  • SHA1 => 2

  • SHA256 => 3

Google::Devtools::Resultstore::V2::File::ArchiveEntry

Information specific to an entry in an archive.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The relative path of the entry within the archive.

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

    Type: Message (Google::Protobuf::Wrappers::Int64Value)

    The uncompressed length of the archive entry in bytes. Allows the entry size to be shown in the UI. Omit if the length is not known.

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

    Type: String

    The content-type (aka MIME-type) of the archive entry. (e.g. text/plain, image/jpeg, text/html, etc). This is sent to the web browser so it knows how to handle the entry.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Resultstore::V2::File::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.