Class PDFInfo.Builder (0.3.0)

public static final class PDFInfo.Builder extends GeneratedMessage.Builder<PDFInfo.Builder> implements PDFInfoOrBuilder

Information about the PDF file structure. See https://developers.virustotal.com/reference/pdf_info

Protobuf type google.backstory.PDFInfo

Implements

PDFInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public PDFInfo build()
Returns
Type Description
PDFInfo

buildPartial()

public PDFInfo buildPartial()
Returns
Type Description
PDFInfo

clear()

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

clearAcroform()

public PDFInfo.Builder clearAcroform()

Number of /AcroForm tags found in the PDF.

int64 acroform = 7;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearAutoaction()

public PDFInfo.Builder clearAutoaction()

Number of /AA tags found in the PDF.

int64 autoaction = 8;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearEmbeddedFile()

public PDFInfo.Builder clearEmbeddedFile()

Number of /EmbeddedFile tags found in the PDF.

int64 embedded_file = 9;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearEncrypted()

public PDFInfo.Builder clearEncrypted()

Whether the document is encrypted or not. This is defined by the /Encrypt tag.

int64 encrypted = 10;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearEndobjCount()

public PDFInfo.Builder clearEndobjCount()

Number of object definitions (endobj keyword).

int64 endobj_count = 5;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearEndstreamCount()

public PDFInfo.Builder clearEndstreamCount()

Number of defined stream objects (stream keyword).

int64 endstream_count = 14;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearFlash()

public PDFInfo.Builder clearFlash()

Number of /RichMedia tags found in the PDF.

int64 flash = 11;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearHeader()

public PDFInfo.Builder clearHeader()

PDF version.

string header = 6;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearJavascript()

public PDFInfo.Builder clearJavascript()

Number of /JavaScript tags found in the PDF file. Should be the same as the js field in normal scenarios.

int64 javascript = 2;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearJbig2Compression()

public PDFInfo.Builder clearJbig2Compression()

Number of /JBIG2Decode tags found in the PDF.

int64 jbig2_compression = 12;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearJs()

public PDFInfo.Builder clearJs()

Number of /JS tags found in the PDF file. Should be the same as javascript field in normal scenarios.

int64 js = 1;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearLaunchActionCount()

public PDFInfo.Builder clearLaunchActionCount()

Number of /Launch tags found in the PDF file.

int64 launch_action_count = 3;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearObjCount()

public PDFInfo.Builder clearObjCount()

Number of objects definitions (obj keyword).

int64 obj_count = 13;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearObjectStreamCount()

public PDFInfo.Builder clearObjectStreamCount()

Number of object streams.

int64 object_stream_count = 4;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearOpenaction()

public PDFInfo.Builder clearOpenaction()

Number of /OpenAction tags found in the PDF.

int64 openaction = 17;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearPageCount()

public PDFInfo.Builder clearPageCount()

Number of pages in the PDF.

int64 page_count = 15;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearStartxref()

public PDFInfo.Builder clearStartxref()

Number of startxref keywords in the PDF.

int64 startxref = 18;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearStreamCount()

public PDFInfo.Builder clearStreamCount()

Number of defined stream objects (stream keyword).

int64 stream_count = 16;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearSuspiciousColors()

public PDFInfo.Builder clearSuspiciousColors()

Number of colors expressed with more than 3 bytes (CVE-2009-3459).

int64 suspicious_colors = 19;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearTrailer()

public PDFInfo.Builder clearTrailer()

Number of trailer keywords in the PDF.

int64 trailer = 20;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearXfa()

public PDFInfo.Builder clearXfa()

Number of \XFA tags found in the PDF.

int64 xfa = 21;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

clearXref()

public PDFInfo.Builder clearXref()

Number of xref keywords in the PDF.

int64 xref = 22;

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

getAcroform()

public long getAcroform()

Number of /AcroForm tags found in the PDF.

int64 acroform = 7;

Returns
Type Description
long

The acroform.

getAutoaction()

public long getAutoaction()

Number of /AA tags found in the PDF.

int64 autoaction = 8;

Returns
Type Description
long

The autoaction.

getDefaultInstanceForType()

public PDFInfo getDefaultInstanceForType()
Returns
Type Description
PDFInfo

getDescriptorForType()

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

getEmbeddedFile()

public long getEmbeddedFile()

Number of /EmbeddedFile tags found in the PDF.

int64 embedded_file = 9;

Returns
Type Description
long

The embeddedFile.

getEncrypted()

public long getEncrypted()

Whether the document is encrypted or not. This is defined by the /Encrypt tag.

int64 encrypted = 10;

Returns
Type Description
long

The encrypted.

getEndobjCount()

public long getEndobjCount()

Number of object definitions (endobj keyword).

int64 endobj_count = 5;

Returns
Type Description
long

The endobjCount.

getEndstreamCount()

public long getEndstreamCount()

Number of defined stream objects (stream keyword).

int64 endstream_count = 14;

Returns
Type Description
long

The endstreamCount.

getFlash()

public long getFlash()

Number of /RichMedia tags found in the PDF.

int64 flash = 11;

Returns
Type Description
long

The flash.

getHeader()

public String getHeader()

PDF version.

string header = 6;

Returns
Type Description
String

The header.

getHeaderBytes()

public ByteString getHeaderBytes()

PDF version.

string header = 6;

Returns
Type Description
ByteString

The bytes for header.

getJavascript()

public long getJavascript()

Number of /JavaScript tags found in the PDF file. Should be the same as the js field in normal scenarios.

int64 javascript = 2;

Returns
Type Description
long

The javascript.

getJbig2Compression()

public long getJbig2Compression()

Number of /JBIG2Decode tags found in the PDF.

int64 jbig2_compression = 12;

Returns
Type Description
long

The jbig2Compression.

getJs()

public long getJs()

Number of /JS tags found in the PDF file. Should be the same as javascript field in normal scenarios.

int64 js = 1;

Returns
Type Description
long

The js.

getLaunchActionCount()

public long getLaunchActionCount()

Number of /Launch tags found in the PDF file.

int64 launch_action_count = 3;

Returns
Type Description
long

The launchActionCount.

getObjCount()

public long getObjCount()

Number of objects definitions (obj keyword).

int64 obj_count = 13;

Returns
Type Description
long

The objCount.

getObjectStreamCount()

public long getObjectStreamCount()

Number of object streams.

int64 object_stream_count = 4;

Returns
Type Description
long

The objectStreamCount.

getOpenaction()

public long getOpenaction()

Number of /OpenAction tags found in the PDF.

int64 openaction = 17;

Returns
Type Description
long

The openaction.

getPageCount()

public long getPageCount()

Number of pages in the PDF.

int64 page_count = 15;

Returns
Type Description
long

The pageCount.

getStartxref()

public long getStartxref()

Number of startxref keywords in the PDF.

int64 startxref = 18;

Returns
Type Description
long

The startxref.

getStreamCount()

public long getStreamCount()

Number of defined stream objects (stream keyword).

int64 stream_count = 16;

Returns
Type Description
long

The streamCount.

getSuspiciousColors()

public long getSuspiciousColors()

Number of colors expressed with more than 3 bytes (CVE-2009-3459).

int64 suspicious_colors = 19;

Returns
Type Description
long

The suspiciousColors.

getTrailer()

public long getTrailer()

Number of trailer keywords in the PDF.

int64 trailer = 20;

Returns
Type Description
long

The trailer.

getXfa()

public long getXfa()

Number of \XFA tags found in the PDF.

int64 xfa = 21;

Returns
Type Description
long

The xfa.

getXref()

public long getXref()

Number of xref keywords in the PDF.

int64 xref = 22;

Returns
Type Description
long

The xref.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PDFInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAcroform(long value)

public PDFInfo.Builder setAcroform(long value)

Number of /AcroForm tags found in the PDF.

int64 acroform = 7;

Parameter
Name Description
value long

The acroform to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setAutoaction(long value)

public PDFInfo.Builder setAutoaction(long value)

Number of /AA tags found in the PDF.

int64 autoaction = 8;

Parameter
Name Description
value long

The autoaction to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setEmbeddedFile(long value)

public PDFInfo.Builder setEmbeddedFile(long value)

Number of /EmbeddedFile tags found in the PDF.

int64 embedded_file = 9;

Parameter
Name Description
value long

The embeddedFile to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setEncrypted(long value)

public PDFInfo.Builder setEncrypted(long value)

Whether the document is encrypted or not. This is defined by the /Encrypt tag.

int64 encrypted = 10;

Parameter
Name Description
value long

The encrypted to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setEndobjCount(long value)

public PDFInfo.Builder setEndobjCount(long value)

Number of object definitions (endobj keyword).

int64 endobj_count = 5;

Parameter
Name Description
value long

The endobjCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setEndstreamCount(long value)

public PDFInfo.Builder setEndstreamCount(long value)

Number of defined stream objects (stream keyword).

int64 endstream_count = 14;

Parameter
Name Description
value long

The endstreamCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setFlash(long value)

public PDFInfo.Builder setFlash(long value)

Number of /RichMedia tags found in the PDF.

int64 flash = 11;

Parameter
Name Description
value long

The flash to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setHeader(String value)

public PDFInfo.Builder setHeader(String value)

PDF version.

string header = 6;

Parameter
Name Description
value String

The header to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setHeaderBytes(ByteString value)

public PDFInfo.Builder setHeaderBytes(ByteString value)

PDF version.

string header = 6;

Parameter
Name Description
value ByteString

The bytes for header to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setJavascript(long value)

public PDFInfo.Builder setJavascript(long value)

Number of /JavaScript tags found in the PDF file. Should be the same as the js field in normal scenarios.

int64 javascript = 2;

Parameter
Name Description
value long

The javascript to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setJbig2Compression(long value)

public PDFInfo.Builder setJbig2Compression(long value)

Number of /JBIG2Decode tags found in the PDF.

int64 jbig2_compression = 12;

Parameter
Name Description
value long

The jbig2Compression to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setJs(long value)

public PDFInfo.Builder setJs(long value)

Number of /JS tags found in the PDF file. Should be the same as javascript field in normal scenarios.

int64 js = 1;

Parameter
Name Description
value long

The js to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setLaunchActionCount(long value)

public PDFInfo.Builder setLaunchActionCount(long value)

Number of /Launch tags found in the PDF file.

int64 launch_action_count = 3;

Parameter
Name Description
value long

The launchActionCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setObjCount(long value)

public PDFInfo.Builder setObjCount(long value)

Number of objects definitions (obj keyword).

int64 obj_count = 13;

Parameter
Name Description
value long

The objCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setObjectStreamCount(long value)

public PDFInfo.Builder setObjectStreamCount(long value)

Number of object streams.

int64 object_stream_count = 4;

Parameter
Name Description
value long

The objectStreamCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setOpenaction(long value)

public PDFInfo.Builder setOpenaction(long value)

Number of /OpenAction tags found in the PDF.

int64 openaction = 17;

Parameter
Name Description
value long

The openaction to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setPageCount(long value)

public PDFInfo.Builder setPageCount(long value)

Number of pages in the PDF.

int64 page_count = 15;

Parameter
Name Description
value long

The pageCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setStartxref(long value)

public PDFInfo.Builder setStartxref(long value)

Number of startxref keywords in the PDF.

int64 startxref = 18;

Parameter
Name Description
value long

The startxref to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setStreamCount(long value)

public PDFInfo.Builder setStreamCount(long value)

Number of defined stream objects (stream keyword).

int64 stream_count = 16;

Parameter
Name Description
value long

The streamCount to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setSuspiciousColors(long value)

public PDFInfo.Builder setSuspiciousColors(long value)

Number of colors expressed with more than 3 bytes (CVE-2009-3459).

int64 suspicious_colors = 19;

Parameter
Name Description
value long

The suspiciousColors to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setTrailer(long value)

public PDFInfo.Builder setTrailer(long value)

Number of trailer keywords in the PDF.

int64 trailer = 20;

Parameter
Name Description
value long

The trailer to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setXfa(long value)

public PDFInfo.Builder setXfa(long value)

Number of \XFA tags found in the PDF.

int64 xfa = 21;

Parameter
Name Description
value long

The xfa to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.

setXref(long value)

public PDFInfo.Builder setXref(long value)

Number of xref keywords in the PDF.

int64 xref = 22;

Parameter
Name Description
value long

The xref to set.

Returns
Type Description
PDFInfo.Builder

This builder for chaining.