public interface FileOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
String |
getContents()
Prefix of the file contents as a JSON encoded string.
|
ByteString |
getContentsBytes()
Prefix of the file contents as a JSON encoded string.
|
long |
getHashedSize()
The length in bytes of the file prefix that was hashed.
|
boolean |
getPartiallyHashed()
True when the hash covers only a prefix of the file.
|
String |
getPath()
Absolute path of the file as a JSON encoded string.
|
ByteString |
getPathBytes()
Absolute path of the file as a JSON encoded string.
|
String |
getSha256()
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
ByteString |
getSha256Bytes()
SHA256 hash of the first hashed_size bytes of the file encoded as a
hex string.
|
long |
getSize()
Size of the file in bytes.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;
ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;
long getSize()
Size of the file in bytes.
int64 size = 2;
String getSha256()
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.
string sha256 = 3;
ByteString getSha256Bytes()
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.
string sha256 = 3;
long getHashedSize()
The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
int64 hashed_size = 4;
boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
String getContents()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
ByteString getContentsBytes()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
Copyright © 2022 Google LLC. All rights reserved.