public final class ProcessorType extends GeneratedMessageV3 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
Static Fields
ALLOW_CREATION_FIELD_NUMBER
public static final int ALLOW_CREATION_FIELD_NUMBER
Field Value
AVAILABLE_LOCATIONS_FIELD_NUMBER
public static final int AVAILABLE_LOCATIONS_FIELD_NUMBER
Field Value
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ProcessorType getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ProcessorType.Builder newBuilder()
Returns
newBuilder(ProcessorType prototype)
public static ProcessorType.Builder newBuilder(ProcessorType prototype)
Parameter
Returns
public static ProcessorType parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProcessorType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ProcessorType parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProcessorType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ProcessorType parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProcessorType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProcessorType parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ProcessorType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProcessorType parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProcessorType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ProcessorType parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProcessorType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ProcessorType> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAllowCreation()
public boolean getAllowCreation()
Whether the processor type allows creation. If yes, user can create a
processor of this processor type. Otherwise, user needs to require for
whitelisting.
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
Returns
getAvailableLocationsCount()
public int getAvailableLocationsCount()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Returns
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
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
Returns
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.
string category = 3;
Returns
Type | Description |
String | The category.
|
getCategoryBytes()
public ByteString getCategoryBytes()
The processor category.
string category = 3;
Returns
getDefaultInstanceForType()
public ProcessorType getDefaultInstanceForType()
Returns
getName()
The resource name of the processor type.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the processor type.
string name = 1;
Returns
getParserForType()
public Parser<ProcessorType> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getType()
The type of the processor.
string type = 2;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
The type of the processor.
string type = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ProcessorType.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProcessorType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ProcessorType.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions