public static final class FileMetadataSection.Builder extends GeneratedMessage.Builder<FileMetadataSection.Builder> implements FileMetadataSectionOrBuilderFile metadata section.
Protobuf type google.backstory.FileMetadataSection
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FileMetadataSection.BuilderImplements
FileMetadataSectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FileMetadataSection build()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
buildPartial()
public FileMetadataSection buildPartial()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
clear()
public FileMetadataSection.Builder clear()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
clearEntropy()
public FileMetadataSection.Builder clearEntropy()Entropy of the section.
double entropy = 2;
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
clearMd5Hex()
public FileMetadataSection.Builder clearMd5Hex()MD5 hex of the file.
string md5_hex = 5;
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
clearName()
public FileMetadataSection.Builder clearName()Name of the section.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
clearRawSizeBytes()
public FileMetadataSection.Builder clearRawSizeBytes()Raw file size in bytes.
int64 raw_size_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
clearVirtualSizeBytes()
public FileMetadataSection.Builder clearVirtualSizeBytes()Virtual file size in bytes.
int64 virtual_size_bytes = 4;
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FileMetadataSection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FileMetadataSection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getRawSizeBytes()
public long getRawSizeBytes()Raw file size in bytes.
int64 raw_size_bytes = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The rawSizeBytes. |
getVirtualSizeBytes()
public long getVirtualSizeBytes()Virtual file size in bytes.
int64 virtual_size_bytes = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The virtualSizeBytes. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FileMetadataSection other)
public FileMetadataSection.Builder mergeFrom(FileMetadataSection other)| Parameter | |
|---|---|
| Name | Description |
other |
FileMetadataSection |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FileMetadataSection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FileMetadataSection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
|
setEntropy(double value)
public FileMetadataSection.Builder setEntropy(double value)Entropy of the section.
double entropy = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe entropy to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setMd5Hex(String value)
public FileMetadataSection.Builder setMd5Hex(String value)MD5 hex of the file.
string md5_hex = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe md5Hex to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setMd5HexBytes(ByteString value)
public FileMetadataSection.Builder setMd5HexBytes(ByteString value)MD5 hex of the file.
string md5_hex = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for md5Hex to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setName(String value)
public FileMetadataSection.Builder setName(String value)Name of the section.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public FileMetadataSection.Builder setNameBytes(ByteString value)Name of the section.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setRawSizeBytes(long value)
public FileMetadataSection.Builder setRawSizeBytes(long value)Raw file size in bytes.
int64 raw_size_bytes = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe rawSizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |
setVirtualSizeBytes(long value)
public FileMetadataSection.Builder setVirtualSizeBytes(long value)Virtual file size in bytes.
int64 virtual_size_bytes = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe virtualSizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
FileMetadataSection.Builder |
This builder for chaining. |