public sealed class File : IMessage<File>, IEquatable<File>, IDeepCloneable<File>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Security Command Center v1 API class File.
File information about the related binary/library used by an executable, or the script used by a script interpreter
Namespace
Google.Cloud.SecurityCenter.V1Assembly
Google.Cloud.SecurityCenter.V1.dll
Constructors
File()
public File()
File(File)
public File(File other)
Parameter | |
---|---|
Name | Description |
other | File |
Properties
Contents
public string Contents { get; set; }
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
Property Value | |
---|---|
Type | Description |
String |
HashedSize
public long HashedSize { get; set; }
The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
Property Value | |
---|---|
Type | Description |
Int64 |
PartiallyHashed
public bool PartiallyHashed { get; set; }
True when the hash covers only a prefix of the file.
Property Value | |
---|---|
Type | Description |
Boolean |
Path
public string Path { get; set; }
Absolute path of the file as a JSON encoded string.
Property Value | |
---|---|
Type | Description |
String |
Sha256
public string Sha256 { get; set; }
SHA256 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.
Property Value | |
---|---|
Type | Description |
String |
Size
public long Size { get; set; }
Size of the file in bytes.
Property Value | |
---|---|
Type | Description |
Int64 |