Class TrainProcessorVersionRequest.CustomDocumentExtractionOptions (2.36.0)

public static final class TrainProcessorVersionRequest.CustomDocumentExtractionOptions extends GeneratedMessageV3 implements TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder

Options to control the training of the Custom Document Extraction (CDE) Processor.

Protobuf type google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TrainProcessorVersionRequest.CustomDocumentExtractionOptions

Static Fields

TRAINING_METHOD_FIELD_NUMBER

public static final int TRAINING_METHOD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions getDefaultInstance()
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions

getDescriptor()

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

newBuilder()

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder newBuilder()
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

newBuilder(TrainProcessorVersionRequest.CustomDocumentExtractionOptions prototype)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder newBuilder(TrainProcessorVersionRequest.CustomDocumentExtractionOptions prototype)
Parameter
NameDescription
prototypeTrainProcessorVersionRequest.CustomDocumentExtractionOptions
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

parseDelimitedFrom(InputStream input)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TrainProcessorVersionRequest.CustomDocumentExtractionOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TrainProcessorVersionRequest.CustomDocumentExtractionOptions> parser()
Returns
TypeDescription
Parser<CustomDocumentExtractionOptions>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions

getParserForType()

public Parser<TrainProcessorVersionRequest.CustomDocumentExtractionOptions> getParserForType()
Returns
TypeDescription
Parser<CustomDocumentExtractionOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTrainingMethod()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod getTrainingMethod()

Training method to use for CDE training.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod

The trainingMethod.

getTrainingMethodValue()

public int getTrainingMethodValue()

Training method to use for CDE training.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for trainingMethod.

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 TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder newBuilderForType()
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder toBuilder()
Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

writeTo(CodedOutputStream output)

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