public final class File extends GeneratedMessageV3 implements FileOrBuilder
File information about the related binary/library used by an executable, or the script used by a script interpreterProtobuf type
google.cloud.securitycenter.v1.File
Modifier and Type | Class and Description |
---|---|
static class |
File.Builder
File information about the related binary/library used by an executable, or
the script used by a script interpreter
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CONTENTS_FIELD_NUMBER |
static int |
HASHED_SIZE_FIELD_NUMBER |
static int |
PARTIALLY_HASHED_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
SHA256_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContents()
Prefix of the file contents as a JSON encoded string.
|
ByteString |
getContentsBytes()
Prefix of the file contents as a JSON encoded string.
|
static File |
getDefaultInstance() |
File |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
long |
getHashedSize()
The length in bytes of the file prefix that was hashed.
|
Parser<File> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static File.Builder |
newBuilder() |
static File.Builder |
newBuilder(File prototype) |
File.Builder |
newBuilderForType() |
protected File.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static File |
parseDelimitedFrom(InputStream input) |
static File |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(byte[] data) |
static File |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(ByteBuffer data) |
static File |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(ByteString data) |
static File |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(CodedInputStream input) |
static File |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(InputStream input) |
static File |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<File> |
parser() |
File.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PATH_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int SHA256_FIELD_NUMBER
public static final int HASHED_SIZE_FIELD_NUMBER
public static final int PARTIALLY_HASHED_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;
getPath
in interface FileOrBuilder
public ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;
getPathBytes
in interface FileOrBuilder
public long getSize()
Size of the file in bytes.
int64 size = 2;
getSize
in interface FileOrBuilder
public 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;
getSha256
in interface FileOrBuilder
public 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;
getSha256Bytes
in interface FileOrBuilder
public 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;
getHashedSize
in interface FileOrBuilder
public boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;
getPartiallyHashed
in interface FileOrBuilder
public String getContents()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
getContents
in interface FileOrBuilder
public ByteString getContentsBytes()
Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
string contents = 6;
getContentsBytes
in interface FileOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static File parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static File parseFrom(InputStream input) throws IOException
IOException
public static File parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static File parseDelimitedFrom(InputStream input) throws IOException
IOException
public static File parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static File parseFrom(CodedInputStream input) throws IOException
IOException
public static File parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public File.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static File.Builder newBuilder()
public static File.Builder newBuilder(File prototype)
public File.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected File.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static File getDefaultInstance()
public Parser<File> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public File getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.