Class PdfInstruction (0.149.0)

public final class PdfInstruction extends GeneratedMessageV3 implements PdfInstructionOrBuilder

Instruction from a PDF file.

Protobuf type google.cloud.datalabeling.v1beta1.PdfInstruction

Static Fields

GCS_FILE_URI_FIELD_NUMBER

public static final int GCS_FILE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PdfInstruction getDefaultInstance()
Returns
TypeDescription
PdfInstruction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PdfInstruction.Builder newBuilder()
Returns
TypeDescription
PdfInstruction.Builder

newBuilder(PdfInstruction prototype)

public static PdfInstruction.Builder newBuilder(PdfInstruction prototype)
Parameter
NameDescription
prototypePdfInstruction
Returns
TypeDescription
PdfInstruction.Builder

parseDelimitedFrom(InputStream input)

public static PdfInstruction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PdfInstruction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PdfInstruction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PdfInstruction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PdfInstruction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PdfInstruction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PdfInstruction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PdfInstruction> parser()
Returns
TypeDescription
Parser<PdfInstruction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PdfInstruction getDefaultInstanceForType()
Returns
TypeDescription
PdfInstruction

getGcsFileUri()

public String getGcsFileUri()

PDF file for the instruction. Only gcs path is allowed.

string gcs_file_uri = 1;

Returns
TypeDescription
String

The gcsFileUri.

getGcsFileUriBytes()

public ByteString getGcsFileUriBytes()

PDF file for the instruction. Only gcs path is allowed.

string gcs_file_uri = 1;

Returns
TypeDescription
ByteString

The bytes for gcsFileUri.

getParserForType()

public Parser<PdfInstruction> getParserForType()
Returns
TypeDescription
Parser<PdfInstruction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PdfInstruction.Builder newBuilderForType()
Returns
TypeDescription
PdfInstruction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PdfInstruction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PdfInstruction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PdfInstruction.Builder toBuilder()
Returns
TypeDescription
PdfInstruction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException