Package com.google.cloud.documentai.v1
Class ProcessorType
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.ProcessorType
- All Implemented Interfaces:
ProcessorTypeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProcessorType
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA processor type is responsible for performing a certain document understanding task on a certain type of document.static final classThe location information about where the processor is available.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether the processor type allows creation.getAvailableLocations(int index) The locations in which this processor is available.intThe locations in which this processor is available.The locations in which this processor is available.getAvailableLocationsOrBuilder(int index) The locations in which this processor is available.List<? extends ProcessorType.LocationInfoOrBuilder>The locations in which this processor is available.The processor category, used by UI to group processor types.com.google.protobuf.ByteStringThe processor category, used by UI to group processor types.static ProcessorTypestatic final com.google.protobuf.Descriptors.DescriptorLaunch stage of the processor typeintLaunch stage of the processor typegetName()The resource name of the processor type.com.google.protobuf.ByteStringThe resource name of the processor type.com.google.protobuf.Parser<ProcessorType>getSampleDocumentUris(int index) A set of Cloud Storage URIs of sample documents for this processor.com.google.protobuf.ByteStringgetSampleDocumentUrisBytes(int index) A set of Cloud Storage URIs of sample documents for this processor.intA set of Cloud Storage URIs of sample documents for this processor.com.google.protobuf.ProtocolStringListA set of Cloud Storage URIs of sample documents for this processor.intgetType()The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.com.google.protobuf.ByteStringThe processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ProcessorType.Builderstatic ProcessorType.BuildernewBuilder(ProcessorType prototype) protected ProcessorType.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProcessorTypeparseDelimitedFrom(InputStream input) static ProcessorTypeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorTypeparseFrom(byte[] data) static ProcessorTypeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorTypeparseFrom(com.google.protobuf.ByteString data) static ProcessorTypeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorTypeparseFrom(com.google.protobuf.CodedInputStream input) static ProcessorTypeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorTypeparseFrom(InputStream input) static ProcessorTypeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorTypeparseFrom(ByteBuffer data) static ProcessorTypeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessorType>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER- See Also:
-
AVAILABLE_LOCATIONS_FIELD_NUMBER
public static final int AVAILABLE_LOCATIONS_FIELD_NUMBER- See Also:
-
ALLOW_CREATION_FIELD_NUMBER
public static final int ALLOW_CREATION_FIELD_NUMBER- See Also:
-
LAUNCH_STAGE_FIELD_NUMBER
public static final int LAUNCH_STAGE_FIELD_NUMBER- See Also:
-
SAMPLE_DOCUMENT_URIS_FIELD_NUMBER
public static final int SAMPLE_DOCUMENT_URIS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}`string name = 1;- Specified by:
getNamein interfaceProcessorTypeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}`string name = 1;- Specified by:
getNameBytesin interfaceProcessorTypeOrBuilder- Returns:
- The bytes for name.
-
getType
The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;- Specified by:
getTypein interfaceProcessorTypeOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
string type = 2;- Specified by:
getTypeBytesin interfaceProcessorTypeOrBuilder- Returns:
- The bytes for type.
-
getCategory
The processor category, used by UI to group processor types.
string category = 3;- Specified by:
getCategoryin interfaceProcessorTypeOrBuilder- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()The processor category, used by UI to group processor types.
string category = 3;- Specified by:
getCategoryBytesin interfaceProcessorTypeOrBuilder- Returns:
- The bytes for category.
-
getAvailableLocationsList
The locations in which this processor is available.
repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;- Specified by:
getAvailableLocationsListin interfaceProcessorTypeOrBuilder
-
getAvailableLocationsOrBuilderList
The locations in which this processor is available.
repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;- Specified by:
getAvailableLocationsOrBuilderListin interfaceProcessorTypeOrBuilder
-
getAvailableLocationsCount
public int getAvailableLocationsCount()The locations in which this processor is available.
repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;- Specified by:
getAvailableLocationsCountin interfaceProcessorTypeOrBuilder
-
getAvailableLocations
The locations in which this processor is available.
repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;- Specified by:
getAvailableLocationsin interfaceProcessorTypeOrBuilder
-
getAvailableLocationsOrBuilder
The locations in which this processor is available.
repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;- Specified by:
getAvailableLocationsOrBuilderin interfaceProcessorTypeOrBuilder
-
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;- Specified by:
getAllowCreationin interfaceProcessorTypeOrBuilder- Returns:
- The allowCreation.
-
getLaunchStageValue
public int getLaunchStageValue()Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;- Specified by:
getLaunchStageValuein interfaceProcessorTypeOrBuilder- Returns:
- The enum numeric value on the wire for launchStage.
-
getLaunchStage
Launch stage of the processor type
.google.api.LaunchStage launch_stage = 8;- Specified by:
getLaunchStagein interfaceProcessorTypeOrBuilder- Returns:
- The launchStage.
-
getSampleDocumentUrisList
public com.google.protobuf.ProtocolStringList getSampleDocumentUrisList()A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;- Specified by:
getSampleDocumentUrisListin interfaceProcessorTypeOrBuilder- Returns:
- A list containing the sampleDocumentUris.
-
getSampleDocumentUrisCount
public int getSampleDocumentUrisCount()A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;- Specified by:
getSampleDocumentUrisCountin interfaceProcessorTypeOrBuilder- Returns:
- The count of sampleDocumentUris.
-
getSampleDocumentUris
A set of Cloud Storage URIs of sample documents for this processor.
repeated string sample_document_uris = 9;- Specified by:
getSampleDocumentUrisin interfaceProcessorTypeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sampleDocumentUris at the given index.
-
getSampleDocumentUrisBytes
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;- Specified by:
getSampleDocumentUrisBytesin interfaceProcessorTypeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sampleDocumentUris at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProcessorType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessorType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessorType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessorType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessorType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessorType.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-