public final class File extends com.google.protobuf.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
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContents()
Prefix of the file contents as a JSON-encoded string.
|
com.google.protobuf.ByteString |
getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
|
static File |
getDefaultInstance() |
File |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getHashedSize()
The length in bytes of the file prefix that was hashed.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static File.Builder |
newBuilder() |
static File.Builder |
newBuilder(File prototype) |
File.Builder |
newBuilderForType() |
protected File.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static File |
parseDelimitedFrom(InputStream input) |
static File |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(byte[] data) |
static File |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(ByteBuffer data) |
static File |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(com.google.protobuf.ByteString data) |
static File |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(com.google.protobuf.CodedInputStream input) |
static File |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static File |
parseFrom(InputStream input) |
static File |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<File> |
parser() |
File.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getPath()
Absolute path of the file as a JSON encoded string.
string path = 1;getPath in interface FileOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Absolute path of the file as a JSON encoded string.
string path = 1;getPathBytes in interface FileOrBuilderpublic long getSize()
Size of the file in bytes.
int64 size = 2;getSize in interface FileOrBuilderpublic 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 FileOrBuilderpublic com.google.protobuf.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 FileOrBuilderpublic 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 FileOrBuilderpublic boolean getPartiallyHashed()
True when the hash covers only a prefix of the file.
bool partially_hashed = 5;getPartiallyHashed in interface FileOrBuilderpublic String getContents()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;getContents in interface FileOrBuilderpublic com.google.protobuf.ByteString getContentsBytes()
Prefix of the file contents as a JSON-encoded string.
string contents = 6;getContentsBytes in interface FileOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static File parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static File parseFrom(InputStream input) throws IOException
IOExceptionpublic static File parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static File parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static File parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static File parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static File parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic File.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static File.Builder newBuilder()
public static File.Builder newBuilder(File prototype)
public File.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected File.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static File getDefaultInstance()
public static com.google.protobuf.Parser<File> parser()
public com.google.protobuf.Parser<File> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public File getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.