Class FileMetadataPeResourceInfo.Builder (0.3.0)

public static final class FileMetadataPeResourceInfo.Builder extends GeneratedMessage.Builder<FileMetadataPeResourceInfo.Builder> implements FileMetadataPeResourceInfoOrBuilder

File metadata for PE resource.

Protobuf type google.backstory.FileMetadataPeResourceInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FileMetadataPeResourceInfo build()
Returns
Type Description
FileMetadataPeResourceInfo

buildPartial()

public FileMetadataPeResourceInfo buildPartial()
Returns
Type Description
FileMetadataPeResourceInfo

clear()

public FileMetadataPeResourceInfo.Builder clear()
Returns
Type Description
FileMetadataPeResourceInfo.Builder
Overrides

clearEntropy()

public FileMetadataPeResourceInfo.Builder clearEntropy()

Entropy of the resource.

double entropy = 5;

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

clearFileType()

public FileMetadataPeResourceInfo.Builder clearFileType()

File type. Note that this value may not match any of the well-known type identifiers defined in the ResourceType enum.

string file_type = 6;

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

clearFiletypeMagic()

public FileMetadataPeResourceInfo.Builder clearFiletypeMagic()

Type of resource content, as identified by the magic Python module.

string filetype_magic = 2;

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

clearLanguageCode()

public FileMetadataPeResourceInfo.Builder clearLanguageCode()

Human-readable version of the language and sublanguage identifiers, as defined in the Microsoft Windows PE specification.

string language_code = 4;

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

clearSha256Hex()

public FileMetadataPeResourceInfo.Builder clearSha256Hex()

SHA256_hex field..

string sha256_hex = 1;

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public FileMetadataPeResourceInfo getDefaultInstanceForType()
Returns
Type Description
FileMetadataPeResourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntropy()

public double getEntropy()

Entropy of the resource.

double entropy = 5;

Returns
Type Description
double

The entropy.

getFileType()

public String getFileType()

File type. Note that this value may not match any of the well-known type identifiers defined in the ResourceType enum.

string file_type = 6;

Returns
Type Description
String

The fileType.

getFileTypeBytes()

public ByteString getFileTypeBytes()

File type. Note that this value may not match any of the well-known type identifiers defined in the ResourceType enum.

string file_type = 6;

Returns
Type Description
ByteString

The bytes for fileType.

getFiletypeMagic()

public String getFiletypeMagic()

Type of resource content, as identified by the magic Python module.

string filetype_magic = 2;

Returns
Type Description
String

The filetypeMagic.

getFiletypeMagicBytes()

public ByteString getFiletypeMagicBytes()

Type of resource content, as identified by the magic Python module.

string filetype_magic = 2;

Returns
Type Description
ByteString

The bytes for filetypeMagic.

getLanguageCode()

public String getLanguageCode()

Human-readable version of the language and sublanguage identifiers, as defined in the Microsoft Windows PE specification.

string language_code = 4;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Human-readable version of the language and sublanguage identifiers, as defined in the Microsoft Windows PE specification.

string language_code = 4;

Returns
Type Description
ByteString

The bytes for languageCode.

getSha256Hex()

public String getSha256Hex()

SHA256_hex field..

string sha256_hex = 1;

Returns
Type Description
String

The sha256Hex.

getSha256HexBytes()

public ByteString getSha256HexBytes()

SHA256_hex field..

string sha256_hex = 1;

Returns
Type Description
ByteString

The bytes for sha256Hex.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileMetadataPeResourceInfo other)

public FileMetadataPeResourceInfo.Builder mergeFrom(FileMetadataPeResourceInfo other)
Parameter
Name Description
other FileMetadataPeResourceInfo
Returns
Type Description
FileMetadataPeResourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FileMetadataPeResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileMetadataPeResourceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FileMetadataPeResourceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FileMetadataPeResourceInfo.Builder
Overrides

setEntropy(double value)

public FileMetadataPeResourceInfo.Builder setEntropy(double value)

Entropy of the resource.

double entropy = 5;

Parameter
Name Description
value double

The entropy to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setFileType(String value)

public FileMetadataPeResourceInfo.Builder setFileType(String value)

File type. Note that this value may not match any of the well-known type identifiers defined in the ResourceType enum.

string file_type = 6;

Parameter
Name Description
value String

The fileType to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setFileTypeBytes(ByteString value)

public FileMetadataPeResourceInfo.Builder setFileTypeBytes(ByteString value)

File type. Note that this value may not match any of the well-known type identifiers defined in the ResourceType enum.

string file_type = 6;

Parameter
Name Description
value ByteString

The bytes for fileType to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setFiletypeMagic(String value)

public FileMetadataPeResourceInfo.Builder setFiletypeMagic(String value)

Type of resource content, as identified by the magic Python module.

string filetype_magic = 2;

Parameter
Name Description
value String

The filetypeMagic to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setFiletypeMagicBytes(ByteString value)

public FileMetadataPeResourceInfo.Builder setFiletypeMagicBytes(ByteString value)

Type of resource content, as identified by the magic Python module.

string filetype_magic = 2;

Parameter
Name Description
value ByteString

The bytes for filetypeMagic to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setLanguageCode(String value)

public FileMetadataPeResourceInfo.Builder setLanguageCode(String value)

Human-readable version of the language and sublanguage identifiers, as defined in the Microsoft Windows PE specification.

string language_code = 4;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public FileMetadataPeResourceInfo.Builder setLanguageCodeBytes(ByteString value)

Human-readable version of the language and sublanguage identifiers, as defined in the Microsoft Windows PE specification.

string language_code = 4;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setSha256Hex(String value)

public FileMetadataPeResourceInfo.Builder setSha256Hex(String value)

SHA256_hex field..

string sha256_hex = 1;

Parameter
Name Description
value String

The sha256Hex to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.

setSha256HexBytes(ByteString value)

public FileMetadataPeResourceInfo.Builder setSha256HexBytes(ByteString value)

SHA256_hex field..

string sha256_hex = 1;

Parameter
Name Description
value ByteString

The bytes for sha256Hex to set.

Returns
Type Description
FileMetadataPeResourceInfo.Builder

This builder for chaining.