- 2.85.0 (latest)
- 2.84.0
- 2.82.0
- 2.80.0
- 2.79.0
- 2.78.0
- 2.77.0
- 2.76.0
- 2.74.0
- 2.72.0
- 2.71.0
- 2.68.0
- 2.67.0
- 2.66.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public static final class ProcessorType.Builder extends GeneratedMessageV3.Builder<ProcessorType.Builder> implements ProcessorTypeOrBuilderA processor type is responsible for performing a certain document understanding task on a certain type of document.
Protobuf type google.cloud.documentai.v1beta3.ProcessorType
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProcessorType.BuilderImplements
ProcessorTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
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.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.documentai.v1beta3.ProcessorType.LocationInfo> |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
values |
Iterable<String>The sampleDocumentUris to add. |
| Returns | |
|---|---|
| Type | Description |
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.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ProcessorType.LocationInfo |
| Returns | |
|---|---|
| Type | Description |
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.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProcessorType.LocationInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
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.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ProcessorType.LocationInfo |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
addAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ProcessorType.LocationInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
addAvailableLocationsBuilder()
public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.LocationInfo.Builder |
|
addAvailableLocationsBuilder(int index)
public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder(int index)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.LocationInfo.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProcessorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
addSampleDocumentUris(String value)
public ProcessorType.Builder addSampleDocumentUris(String value)A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sampleDocumentUris to add. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
addSampleDocumentUrisBytes(ByteString value)
public ProcessorType.Builder addSampleDocumentUrisBytes(ByteString value)A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the sampleDocumentUris to add. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
build()
public ProcessorType build()| Returns | |
|---|---|
| Type | Description |
ProcessorType |
|
buildPartial()
public ProcessorType buildPartial()| Returns | |
|---|---|
| Type | Description |
ProcessorType |
|
clear()
public ProcessorType.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
clearAllowCreation()
public ProcessorType.Builder clearAllowCreation()Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.
bool allow_creation = 6;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clearAvailableLocations()
public ProcessorType.Builder clearAvailableLocations()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
clearCategory()
public ProcessorType.Builder clearCategory()The processor category, used by UI to group processor types.
string category = 3;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ProcessorType.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
clearLaunchStage()
public ProcessorType.Builder clearLaunchStage()Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clearName()
public ProcessorType.Builder clearName() The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProcessorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
clearSampleDocumentUris()
public ProcessorType.Builder clearSampleDocumentUris()A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clearType()
public ProcessorType.Builder clearType() The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.
string type = 2;
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
clone()
public ProcessorType.Builder clone()| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
getAllowCreation()
public boolean getAllowCreation()Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.
bool allow_creation = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
The allowCreation. |
getAvailableLocations(int index)
public ProcessorType.LocationInfo getAvailableLocations(int index)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.LocationInfo |
|
getAvailableLocationsBuilder(int index)
public ProcessorType.LocationInfo.Builder getAvailableLocationsBuilder(int index)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.LocationInfo.Builder |
|
getAvailableLocationsBuilderList()
public List<ProcessorType.LocationInfo.Builder> getAvailableLocationsBuilderList()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAvailableLocationsCount()
public int getAvailableLocationsCount()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAvailableLocationsList()
public List<ProcessorType.LocationInfo> getAvailableLocationsList()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
List<LocationInfo> |
|
getAvailableLocationsOrBuilder(int index)
public ProcessorType.LocationInfoOrBuilder getAvailableLocationsOrBuilder(int index)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.LocationInfoOrBuilder |
|
getAvailableLocationsOrBuilderList()
public List<? extends ProcessorType.LocationInfoOrBuilder> getAvailableLocationsOrBuilderList()The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.ProcessorType.LocationInfoOrBuilder> |
|
getCategory()
public String getCategory()The processor category, used by UI to group processor types.
string category = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The category. |
getCategoryBytes()
public ByteString getCategoryBytes()The processor category, used by UI to group processor types.
string category = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for category. |
getDefaultInstanceForType()
public ProcessorType getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProcessorType |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLaunchStage()
public LaunchStage getLaunchStage()Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;
| Returns | |
|---|---|
| Type | Description |
com.google.api.LaunchStage |
The launchStage. |
getLaunchStageValue()
public int getLaunchStageValue()Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for launchStage. |
getName()
public String getName() The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSampleDocumentUris(int index)
public String getSampleDocumentUris(int index)A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The sampleDocumentUris at the given index. |
getSampleDocumentUrisBytes(int index)
public ByteString getSampleDocumentUrisBytes(int index)A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the sampleDocumentUris at the given index. |
getSampleDocumentUrisCount()
public int getSampleDocumentUrisCount()A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The count of sampleDocumentUris. |
getSampleDocumentUrisList()
public ProtocolStringList getSampleDocumentUrisList()A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the sampleDocumentUris. |
getType()
public String getType() The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.
string type = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes() The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.
string type = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ProcessorType other)
public ProcessorType.Builder mergeFrom(ProcessorType other)| Parameter | |
|---|---|
| Name | Description |
other |
ProcessorType |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProcessorType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProcessorType.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProcessorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
removeAvailableLocations(int index)
public ProcessorType.Builder removeAvailableLocations(int index)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
setAllowCreation(boolean value)
public ProcessorType.Builder setAllowCreation(boolean value)Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.
bool allow_creation = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe allowCreation to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setAvailableLocations(int index, ProcessorType.LocationInfo value)
public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo value)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ProcessorType.LocationInfo |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
setAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ProcessorType.LocationInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
setCategory(String value)
public ProcessorType.Builder setCategory(String value)The processor category, used by UI to group processor types.
string category = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe category to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setCategoryBytes(ByteString value)
public ProcessorType.Builder setCategoryBytes(ByteString value)The processor category, used by UI to group processor types.
string category = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for category to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ProcessorType.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
setLaunchStage(LaunchStage value)
public ProcessorType.Builder setLaunchStage(LaunchStage value)Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.api.LaunchStageThe launchStage to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setLaunchStageValue(int value)
public ProcessorType.Builder setLaunchStageValue(int value)Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for launchStage to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setName(String value)
public ProcessorType.Builder setName(String value) The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ProcessorType.Builder setNameBytes(ByteString value) The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProcessorType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|
setSampleDocumentUris(int index, String value)
public ProcessorType.Builder setSampleDocumentUris(int index, String value)A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe sampleDocumentUris to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setType(String value)
public ProcessorType.Builder setType(String value) The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.
string type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public ProcessorType.Builder setTypeBytes(ByteString value) The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.
string type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProcessorType.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ProcessorType.Builder |
|