Class ProcessorType.Builder (2.12.0)

public static final class ProcessorType.Builder extends GeneratedMessageV3.Builder<ProcessorType.Builder> implements ProcessorTypeOrBuilder

A processor type is responsible for performing a certain document understanding task on a certain type of document.

Protobuf type google.cloud.documentai.v1.ProcessorType

Static Methods

getDescriptor()

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

Methods

addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)

public ProcessorType.Builder addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)

The locations in which this processor is available.

repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.ProcessorType.LocationInfo>
Returns
TypeDescription
ProcessorType.Builder

addAllSampleDocumentUris(Iterable<String> values)

public ProcessorType.Builder addAllSampleDocumentUris(Iterable<String> values)

A set of Cloud Storage URIs of sample documents for this processor.

repeated string sample_document_uris = 9;

Parameter
NameDescription
valuesIterable<String>

The sampleDocumentUris to add.

Returns
TypeDescription
ProcessorType.Builder

This builder for chaining.

addAvailableLocations(ProcessorType.LocationInfo value)

public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo value)

The locations in which this processor is available.

repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

Parameter
NameDescription
valueProcessorType.LocationInfo
Returns
TypeDescription
ProcessorType.Builder

addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)

public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)

The locations in which this processor is available.

repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

Parameter
NameDescription
builderForValueProcessorType.LocationInfo.Builder
Returns
TypeDescription
ProcessorType.Builder

addAvailableLocations(int index, ProcessorType.LocationInfo value)

public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo value)

The locations in which this processor is available.

repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

Parameters
NameDescription
indexint
valueProcessorType.LocationInfo
Returns
TypeDescription
ProcessorType.Builder

addAvailableLocations(int index, ProcessorTyp