public static final class ProcessorType.Builder extends com.google.protobuf.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.v1beta3.ProcessorType| Modifier and Type | Method and Description |
|---|---|
ProcessorType.Builder |
addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)
The locations in which this processor is available.
|
ProcessorType.Builder |
addAllSampleDocumentUris(Iterable<String> values)
A set of Cloud Storage URIs of sample documents for this processor.
|
ProcessorType.Builder |
addAvailableLocations(int index,
ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
|
ProcessorType.Builder |
addAvailableLocations(int index,
ProcessorType.LocationInfo value)
The locations in which this processor is available.
|
ProcessorType.Builder |
addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
|
ProcessorType.Builder |
addAvailableLocations(ProcessorType.LocationInfo value)
The locations in which this processor is available.
|
ProcessorType.LocationInfo.Builder |
addAvailableLocationsBuilder()
The locations in which this processor is available.
|
ProcessorType.LocationInfo.Builder |
addAvailableLocationsBuilder(int index)
The locations in which this processor is available.
|
ProcessorType.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProcessorType.Builder |
addSampleDocumentUris(String value)
A set of Cloud Storage URIs of sample documents for this processor.
|
ProcessorType.Builder |
addSampleDocumentUrisBytes(com.google.protobuf.ByteString value)
A set of Cloud Storage URIs of sample documents for this processor.
|
ProcessorType |
build() |
ProcessorType |
buildPartial() |
ProcessorType.Builder |
clear() |
ProcessorType.Builder |
clearAllowCreation()
Whether the processor type allows creation.
|
ProcessorType.Builder |
clearAvailableLocations()
The locations in which this processor is available.
|
ProcessorType.Builder |
clearCategory()
The processor category, used by UI to group processor types.
|
ProcessorType.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ProcessorType.Builder |
clearLaunchStage()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8; |
ProcessorType.Builder |
clearName()
The resource name of the processor type.
|
ProcessorType.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ProcessorType.Builder |
clearSampleDocumentUris()
A set of Cloud Storage URIs of sample documents for this processor.
|
ProcessorType.Builder |
clearType()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
ProcessorType.Builder |
clone() |
boolean |
getAllowCreation()
Whether the processor type allows creation.
|
ProcessorType.LocationInfo |
getAvailableLocations(int index)
The locations in which this processor is available.
|
ProcessorType.LocationInfo.Builder |
getAvailableLocationsBuilder(int index)
The locations in which this processor is available.
|
List<ProcessorType.LocationInfo.Builder> |
getAvailableLocationsBuilderList()
The locations in which this processor is available.
|
int |
getAvailableLocationsCount()
The locations in which this processor is available.
|
List<ProcessorType.LocationInfo> |
getAvailableLocationsList()
The locations in which this processor is available.
|
ProcessorType.LocationInfoOrBuilder |
getAvailableLocationsOrBuilder(int index)
The locations in which this processor is available.
|
List<? extends ProcessorType.LocationInfoOrBuilder> |
getAvailableLocationsOrBuilderList()
The locations in which this processor is available.
|
String |
getCategory()
The processor category, used by UI to group processor types.
|
com.google.protobuf.ByteString |
getCategoryBytes()
The processor category, used by UI to group processor types.
|
ProcessorType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.api.LaunchStage |
getLaunchStage()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8; |
int |
getLaunchStageValue()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8; |
String |
getName()
The resource name of the processor type.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the processor type.
|
String |
getSampleDocumentUris(int index)
A set of Cloud Storage URIs of sample documents for this processor.
|
com.google.protobuf.ByteString |
getSampleDocumentUrisBytes(int index)
A set of Cloud Storage URIs of sample documents for this processor.
|
int |
getSampleDocumentUrisCount()
A set of Cloud Storage URIs of sample documents for this processor.
|
com.google.protobuf.ProtocolStringList |
getSampleDocumentUrisList()
A set of Cloud Storage URIs of sample documents for this processor.
|
String |
getType()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
com.google.protobuf.ByteString |
getTypeBytes()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ProcessorType.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProcessorType.Builder |
mergeFrom(com.google.protobuf.Message other) |
ProcessorType.Builder |
mergeFrom(ProcessorType other) |
ProcessorType.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ProcessorType.Builder |
removeAvailableLocations(int index)
The locations in which this processor is available.
|
ProcessorType.Builder |
setAllowCreation(boolean value)
Whether the processor type allows creation.
|
ProcessorType.Builder |
setAvailableLocations(int index,
ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
|
ProcessorType.Builder |
setAvailableLocations(int index,
ProcessorType.LocationInfo value)
The locations in which this processor is available.
|
ProcessorType.Builder |
setCategory(String value)
The processor category, used by UI to group processor types.
|
ProcessorType.Builder |
setCategoryBytes(com.google.protobuf.ByteString value)
The processor category, used by UI to group processor types.
|
ProcessorType.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProcessorType.Builder |
setLaunchStage(com.google.api.LaunchStage value)
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8; |
ProcessorType.Builder |
setLaunchStageValue(int value)
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8; |
ProcessorType.Builder |
setName(String value)
The resource name of the processor type.
|
ProcessorType.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the processor type.
|
ProcessorType.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ProcessorType.Builder |
setSampleDocumentUris(int index,
String value)
A set of Cloud Storage URIs of sample documents for this processor.
|
ProcessorType.Builder |
setType(String value)
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
ProcessorType.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
|
ProcessorType.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ProcessorType build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ProcessorType buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ProcessorType.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProcessorType.Builder>public ProcessorType.Builder mergeFrom(ProcessorType other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public ProcessorType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProcessorType.Builder>IOExceptionpublic String getName()
The resource name of the processor type.
Format: `projects/{project}/processorTypes/{processor_type}`
string name = 1;getName in interface ProcessorTypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the processor type.
Format: `projects/{project}/processorTypes/{processor_type}`
string name = 1;getNameBytes in interface ProcessorTypeOrBuilderpublic ProcessorType.Builder setName(String value)
The resource name of the processor type.
Format: `projects/{project}/processorTypes/{processor_type}`
string name = 1;value - The name to set.public ProcessorType.Builder clearName()
The resource name of the processor type.
Format: `projects/{project}/processorTypes/{processor_type}`
string name = 1;public ProcessorType.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the processor type.
Format: `projects/{project}/processorTypes/{processor_type}`
string name = 1;value - The bytes for name to set.public String getType()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;getType in interface ProcessorTypeOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;getTypeBytes in interface ProcessorTypeOrBuilderpublic ProcessorType.Builder setType(String value)
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;value - The type to set.public ProcessorType.Builder clearType()
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;public ProcessorType.Builder setTypeBytes(com.google.protobuf.ByteString value)
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;value - The bytes for type to set.public String getCategory()
The processor category, used by UI to group processor types.
string category = 3;getCategory in interface ProcessorTypeOrBuilderpublic com.google.protobuf.ByteString getCategoryBytes()
The processor category, used by UI to group processor types.
string category = 3;getCategoryBytes in interface ProcessorTypeOrBuilderpublic ProcessorType.Builder setCategory(String value)
The processor category, used by UI to group processor types.
string category = 3;value - The category to set.public ProcessorType.Builder clearCategory()
The processor category, used by UI to group processor types.
string category = 3;public ProcessorType.Builder setCategoryBytes(com.google.protobuf.ByteString value)
The processor category, used by UI to group processor types.
string category = 3;value - The bytes for category to set.public List<ProcessorType.LocationInfo> getAvailableLocationsList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
getAvailableLocationsList in interface ProcessorTypeOrBuilderpublic int getAvailableLocationsCount()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
getAvailableLocationsCount in interface ProcessorTypeOrBuilderpublic ProcessorType.LocationInfo getAvailableLocations(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
getAvailableLocations in interface ProcessorTypeOrBuilderpublic 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;
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;
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;
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;
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;
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;
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;
public ProcessorType.Builder clearAvailableLocations()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
public ProcessorType.Builder removeAvailableLocations(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
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;
public ProcessorType.LocationInfoOrBuilder getAvailableLocationsOrBuilder(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
getAvailableLocationsOrBuilder in interface ProcessorTypeOrBuilderpublic List<? extends ProcessorType.LocationInfoOrBuilder> getAvailableLocationsOrBuilderList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
getAvailableLocationsOrBuilderList in interface ProcessorTypeOrBuilderpublic ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
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;
public List<ProcessorType.LocationInfo.Builder> getAvailableLocationsBuilderList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
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;getAllowCreation in interface ProcessorTypeOrBuilderpublic 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;value - The allowCreation to set.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;public int getLaunchStageValue()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;getLaunchStageValue in interface ProcessorTypeOrBuilderpublic ProcessorType.Builder setLaunchStageValue(int value)
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;value - The enum numeric value on the wire for launchStage to set.public com.google.api.LaunchStage getLaunchStage()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;getLaunchStage in interface ProcessorTypeOrBuilderpublic ProcessorType.Builder setLaunchStage(com.google.api.LaunchStage value)
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;value - The launchStage to set.public ProcessorType.Builder clearLaunchStage()
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;public com.google.protobuf.ProtocolStringList getSampleDocumentUrisList()
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;getSampleDocumentUrisList in interface ProcessorTypeOrBuilderpublic int getSampleDocumentUrisCount()
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;getSampleDocumentUrisCount in interface ProcessorTypeOrBuilderpublic String getSampleDocumentUris(int index)
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;getSampleDocumentUris in interface ProcessorTypeOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSampleDocumentUrisBytes(int index)
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;getSampleDocumentUrisBytes in interface ProcessorTypeOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The sampleDocumentUris to set.public ProcessorType.Builder addSampleDocumentUris(String value)
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;value - The sampleDocumentUris to add.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;values - The sampleDocumentUris to add.public ProcessorType.Builder clearSampleDocumentUris()
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;public ProcessorType.Builder addSampleDocumentUrisBytes(com.google.protobuf.ByteString value)
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;value - The bytes of the sampleDocumentUris to add.public final ProcessorType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>public final ProcessorType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessorType.Builder>Copyright © 2024 Google LLC. All rights reserved.