Class File (3.1.0)

public sealed class File : IMessage<File>, IEquatable<File>, IDeepCloneable<File>, IBufferMessage, IMessage

File information about the related binary/library used by an executable, or the script used by a script interpreter

Inheritance

Object > File

Namespace

Google.Cloud.SecurityCenter.V1

Assembly

Google.Cloud.SecurityCenter.V1.dll

Constructors

File()

public File()

File(File)

public File(File other)
Parameter
NameDescription
otherFile

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
TypeDescription
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
TypeDescription
Int64

PartiallyHashed

public bool PartiallyHashed { get; set; }

True when the hash covers only a prefix of the file.

Property Value
TypeDescription
Boolean

Path

public string Path { get; set; }

Absolute path of the file as a JSON encoded string.

Property Value
TypeDescription
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
TypeDescription
String

Size

public long Size { get; set; }

Size of the file in bytes.

Property Value
TypeDescription
Int64