NAME
Google::Cloud::Securitycenter::V2::File - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/file.proto
SYNOPSIS
use Google::Cloud::Securitycenter::V2::File;
my $msg = Google::Cloud::Securitycenter::V2::File::File->new({
path => $path,
size => $size,
sha256 => $sha256,
hashed_size => $hashed_size,
});
# Read or update a field
my $val = $msg->path();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V2::File::File->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/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::Cloud::Securitycenter::V2::File::File
File information about the related binary/library used by an executable, or the script used by a script interpreter
Inherits from Protobuf::Message.
Accessors
$msg->path()/$msg->path($value)Type:
StringAbsolute path of the file as a JSON encoded string.
$msg->size()/$msg->size($value)Type:
Int64Size of the file in bytes.
$msg->sha256()/$msg->sha256($value)Type:
StringSHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
$msg->hashed_size()/$msg->hashed_size($value)Type:
Int64The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
$msg->partially_hashed()/$msg->partially_hashed($value)Type:
BoolTrue when the hash covers only a prefix of the file.
$msg->contents()/$msg->contents($value)Type:
StringPrefix of the file contents as a JSON-encoded string.
$msg->disk_path()/$msg->disk_path($value)Type:
Message(Google::Cloud::Securitycenter::V2::File::File::DiskPath)Path of the file in terms of underlying disk/partition identifiers.
$msg->operations()/$msg->operations($value)Type:
Message(Google::Cloud::Securitycenter::V2::File::File::FileOperation)Operation(s) performed on a file.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::File::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.