Class PdfInstruction.Builder (0.134.0)

public static final class PdfInstruction.Builder extends GeneratedMessageV3.Builder<PdfInstruction.Builder> implements PdfInstructionOrBuilder

Instruction from a PDF file.

Protobuf type google.cloud.datalabeling.v1beta1.PdfInstruction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PdfInstruction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PdfInstruction.Builder
Overrides

build()

public PdfInstruction build()
Returns
TypeDescription
PdfInstruction

buildPartial()

public PdfInstruction buildPartial()
Returns
TypeDescription
PdfInstruction

clear()

public PdfInstruction.Builder clear()
Returns
TypeDescription
PdfInstruction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PdfInstruction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PdfInstruction.Builder
Overrides

clearGcsFileUri()

public PdfInstruction.Builder clearGcsFileUri()

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

string gcs_file_uri = 1;

Returns
TypeDescription
PdfInstruction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PdfInstruction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PdfInstruction.Builder
Overrides

clone()

public PdfInstruction.Builder clone()
Returns
TypeDescription
PdfInstruction.Builder
Overrides

getDefaultInstanceForType()

public PdfInstruction getDefaultInstanceForType()
Returns
TypeDescription
PdfInstruction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PdfInstruction other)

public PdfInstruction.Builder mergeFrom(PdfInstruction other)
Parameter
NameDescription
otherPdfInstruction
Returns
TypeDescription
PdfInstruction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PdfInstruction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PdfInstruction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PdfInstruction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PdfInstruction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PdfInstruction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PdfInstruction.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PdfInstruction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PdfInstruction.Builder
Overrides

setGcsFileUri(String value)

public PdfInstruction.Builder setGcsFileUri(String value)

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

string gcs_file_uri = 1;

Parameter
NameDescription
valueString

The gcsFileUri to set.

Returns
TypeDescription
PdfInstruction.Builder

This builder for chaining.

setGcsFileUriBytes(ByteString value)

public PdfInstruction.Builder setGcsFileUriBytes(ByteString value)

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

string gcs_file_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for gcsFileUri to set.

Returns
TypeDescription
PdfInstruction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PdfInstruction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PdfInstruction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PdfInstruction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PdfInstruction.Builder
Overrides