public final class FileMetadataSection extends GeneratedMessage implements FileMetadataSectionOrBuilderFile metadata section.
Protobuf type google.backstory.FileMetadataSection
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > FileMetadataSectionImplements
FileMetadataSectionOrBuilderStatic Fields
ENTROPY_FIELD_NUMBER
public static final int ENTROPY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MD5_HEX_FIELD_NUMBER
public static final int MD5_HEX_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RAW_SIZE_BYTES_FIELD_NUMBER
public static final int RAW_SIZE_BYTES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VIRTUAL_SIZE_BYTES_FIELD_NUMBER
public static final int VIRTUAL_SIZE_BYTES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static FileMetadataSection getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static FileMetadataSection.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
newBuilder(FileMetadataSection prototype)
public static FileMetadataSection.Builder newBuilder(FileMetadataSection prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
FileMetadataSection |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
parseDelimitedFrom(InputStream input)
public static FileMetadataSection parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static FileMetadataSection parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static FileMetadataSection parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static FileMetadataSection parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static FileMetadataSection parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static FileMetadataSection parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FileMetadataSection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<FileMetadataSection> parser()| Returns | |
|---|---|
| Type | Description |
Parser<FileMetadataSection> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public FileMetadataSection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
getEntropy()
public double getEntropy()Entropy of the section.
double entropy = 2;
| Returns | |
|---|---|
| Type | Description |
double |
The entropy. |
getMd5Hex()
public String getMd5Hex()MD5 hex of the file.
string md5_hex = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The md5Hex. |
getMd5HexBytes()
public ByteString getMd5HexBytes()MD5 hex of the file.
string md5_hex = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for md5Hex. |
getName()
public String getName()Name of the section.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of the section.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParserForType()
public Parser<FileMetadataSection> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<FileMetadataSection> |
|
getRawSizeBytes()
public long getRawSizeBytes()Raw file size in bytes.
int64 raw_size_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The rawSizeBytes. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getVirtualSizeBytes()
public long getVirtualSizeBytes()Virtual file size in bytes.
int64 virtual_size_bytes = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The virtualSizeBytes. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public FileMetadataSection.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected FileMetadataSection.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
toBuilder()
public FileMetadataSection.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|