Class TrainProcessorVersionRequest (2.25.0)

public final class TrainProcessorVersionRequest extends GeneratedMessageV3 implements TrainProcessorVersionRequestOrBuilder

Request message for the TrainProcessorVersion method.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest

Static Fields

BASE_PROCESSOR_VERSION_FIELD_NUMBER

public static final int BASE_PROCESSOR_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOM_DOCUMENT_EXTRACTION_OPTIONS_FIELD_NUMBER

public static final int CUSTOM_DOCUMENT_EXTRACTION_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

DOCUMENT_SCHEMA_FIELD_NUMBER

public static final int DOCUMENT_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

INPUT_DATA_FIELD_NUMBER

public static final int INPUT_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

PROCESSOR_VERSION_FIELD_NUMBER

public static final int PROCESSOR_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TrainProcessorVersionRequest getDefaultInstance()
Returns
TypeDescription
TrainProcessorVersionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(TrainProcessorVersionRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBaseProcessorVersion()

public String getBaseProcessorVersion()

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The baseProcessorVersion.

getBaseProcessorVersionBytes()

public ByteString getBaseProcessorVersionBytes()

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for baseProcessorVersion.

getCustomDocumentExtractionOptions()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions getCustomDocumentExtractionOptions()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions

The customDocumentExtractionOptions.

getCustomDocumentExtractionOptionsOrBuilder()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder getCustomDocumentExtractionOptionsOrBuilder()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder

getDefaultInstanceForType()

public TrainProcessorVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionRequest

getDocumentSchema()

public DocumentSchema getDocumentSchema()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DocumentSchema

The documentSchema.

getDocumentSchemaOrBuilder()

public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DocumentSchemaOrBuilder

getInputData()

public TrainProcessorVersionRequest.InputData getInputData()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.InputData

The inputData.

getInputDataOrBuilder()

public TrainProcessorVersionRequest.InputDataOrBuilder getInputDataOrBuilder()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.InputDataOrBuilder

getParent()

public String getParent()

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getProcessorFlagsCase()

public TrainProcessorVersionRequest.ProcessorFlagsCase getProcessorFlagsCase()
Returns
TypeDescription
TrainProcessorVersionRequest.ProcessorFlagsCase

getProcessorVersion()

public ProcessorVersion getProcessorVersion()

Required. The processor version to be created.

.google.cloud.documentai.v1beta3.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorVersion

The processorVersion.

getProcessorVersionOrBuilder()

public ProcessorVersionOrBuilder getProcessorVersionOrBuilder()

Required. The processor version to be created.

.google.cloud.documentai.v1beta3.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorVersionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCustomDocumentExtractionOptions()

public boolean hasCustomDocumentExtractionOptions()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
boolean

Whether the customDocumentExtractionOptions field is set.

hasDocumentSchema()

public boolean hasDocumentSchema()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the documentSchema field is set.

hasInputData()

public boolean hasInputData()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the inputData field is set.

hasProcessorVersion()

public boolean hasProcessorVersion()

Required. The processor version to be created.

.google.cloud.documentai.v1beta3.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the processorVersion field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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