Package com.google.cloud.documentai.v1
Class ProcessorVersion
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.ProcessorVersion
- All Implemented Interfaces:
ProcessorVersionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProcessorVersion
extends com.google.protobuf.GeneratedMessage
implements ProcessorVersionOrBuilder
A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.Protobuf type
google.cloud.documentai.v1.ProcessorVersion- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA processor version is an implementation of a processor.static final classInformation about the upcoming deprecation of this processor version.static interfacestatic final classInformation about Generative AI model-based processor versions.static interfacestatic enumThe possible model types of the processor version.static enumThe possible states of the processor version.Nested 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 intstatic 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 TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static ProcessorVersionOutput only.Output only.static final com.google.protobuf.Descriptors.DescriptorThe display name of the processor version.com.google.protobuf.ByteStringThe display name of the processor version.Output only.Output only.Output only.Output only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.intOutput only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.Parser<ProcessorVersion>booleanOutput only.booleanOutput only.intgetState()Output only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ProcessorVersion.Builderstatic ProcessorVersion.BuildernewBuilder(ProcessorVersion prototype) protected ProcessorVersion.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProcessorVersionparseDelimitedFrom(InputStream input) static ProcessorVersionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorVersionparseFrom(byte[] data) static ProcessorVersionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorVersionparseFrom(com.google.protobuf.ByteString data) static ProcessorVersionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorVersionparseFrom(com.google.protobuf.CodedInputStream input) static ProcessorVersionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorVersionparseFrom(InputStream input) static ProcessorVersionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessorVersionparseFrom(ByteBuffer data) static ProcessorVersionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessorVersion>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:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
DOCUMENT_SCHEMA_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
LATEST_EVALUATION_FIELD_NUMBER
public static final int LATEST_EVALUATION_FIELD_NUMBER- See Also:
-
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER- See Also:
-
KMS_KEY_VERSION_NAME_FIELD_NUMBER
public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER- See Also:
-
GOOGLE_MANAGED_FIELD_NUMBER
public static final int GOOGLE_MANAGED_FIELD_NUMBER- See Also:
-
DEPRECATION_INFO_FIELD_NUMBER
public static final int DEPRECATION_INFO_FIELD_NUMBER- See Also:
-
MODEL_TYPE_FIELD_NUMBER
public static final int MODEL_TYPE_FIELD_NUMBER- See Also:
-
SATISFIES_PZS_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER- See Also:
-
SATISFIES_PZI_FIELD_NUMBER
public static final int SATISFIES_PZI_FIELD_NUMBER- See Also:
-
GEN_AI_MODEL_INFO_FIELD_NUMBER
public static final int GEN_AI_MODEL_INFO_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
Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceProcessorVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
The display name of the processor version.
string display_name = 2;- Specified by:
getDisplayNamein interfaceProcessorVersionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the processor version.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for displayName.
-
hasDocumentSchema
public boolean hasDocumentSchema()Output only. The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDocumentSchemain interfaceProcessorVersionOrBuilder- Returns:
- Whether the documentSchema field is set.
-
getDocumentSchema
Output only. The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDocumentSchemain interfaceProcessorVersionOrBuilder- Returns:
- The documentSchema.
-
getDocumentSchemaOrBuilder
Output only. The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDocumentSchemaOrBuilderin interfaceProcessorVersionOrBuilder
-
getStateValue
public int getStateValue()Output only. The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceProcessorVersionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceProcessorVersionOrBuilder- Returns:
- The state.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time the processor version was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceProcessorVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time the processor version was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceProcessorVersionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time the processor version was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceProcessorVersionOrBuilder
-
hasLatestEvaluation
public boolean hasLatestEvaluation()Output only. The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLatestEvaluationin interfaceProcessorVersionOrBuilder- Returns:
- Whether the latestEvaluation field is set.
-
getLatestEvaluation
Output only. The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLatestEvaluationin interfaceProcessorVersionOrBuilder- Returns:
- The latestEvaluation.
-
getLatestEvaluationOrBuilder
Output only. The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLatestEvaluationOrBuilderin interfaceProcessorVersionOrBuilder
-
getKmsKeyName
Output only. The KMS key name used for encryption.
string kms_key_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKmsKeyNamein interfaceProcessorVersionOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()Output only. The KMS key name used for encryption.
string kms_key_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKmsKeyNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for kmsKeyName.
-
getKmsKeyVersionName
Output only. The KMS key version with which data is encrypted.
string kms_key_version_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKmsKeyVersionNamein interfaceProcessorVersionOrBuilder- Returns:
- The kmsKeyVersionName.
-
getKmsKeyVersionNameBytes
public com.google.protobuf.ByteString getKmsKeyVersionNameBytes()Output only. The KMS key version with which data is encrypted.
string kms_key_version_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKmsKeyVersionNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for kmsKeyVersionName.
-
getGoogleManaged
public boolean getGoogleManaged()Output only. Denotes that this `ProcessorVersion` is managed by Google.
bool google_managed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGoogleManagedin interfaceProcessorVersionOrBuilder- Returns:
- The googleManaged.
-
hasDeprecationInfo
public boolean hasDeprecationInfo()Output only. If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeprecationInfoin interfaceProcessorVersionOrBuilder- Returns:
- Whether the deprecationInfo field is set.
-
getDeprecationInfo
Output only. If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeprecationInfoin interfaceProcessorVersionOrBuilder- Returns:
- The deprecationInfo.
-
getDeprecationInfoOrBuilder
Output only. If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeprecationInfoOrBuilderin interfaceProcessorVersionOrBuilder
-
getModelTypeValue
public int getModelTypeValue()Output only. The model type of this processor version.
.google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelTypeValuein interfaceProcessorVersionOrBuilder- Returns:
- The enum numeric value on the wire for modelType.
-
getModelType
Output only. The model type of this processor version.
.google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelTypein interfaceProcessorVersionOrBuilder- Returns:
- The modelType.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. Reserved for future use.
bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPzsin interfaceProcessorVersionOrBuilder- Returns:
- The satisfiesPzs.
-
getSatisfiesPzi
public boolean getSatisfiesPzi()Output only. Reserved for future use.
bool satisfies_pzi = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPziin interfaceProcessorVersionOrBuilder- Returns:
- The satisfiesPzi.
-
hasGenAiModelInfo
public boolean hasGenAiModelInfo()Output only. Information about Generative AI model-based processor versions.
.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasGenAiModelInfoin interfaceProcessorVersionOrBuilder- Returns:
- Whether the genAiModelInfo field is set.
-
getGenAiModelInfo
Output only. Information about Generative AI model-based processor versions.
.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGenAiModelInfoin interfaceProcessorVersionOrBuilder- Returns:
- The genAiModelInfo.
-
getGenAiModelInfoOrBuilder
Output only. Information about Generative AI model-based processor versions.
.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGenAiModelInfoOrBuilderin interfaceProcessorVersionOrBuilder
-
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 ProcessorVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorVersion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorVersion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessorVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessorVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessorVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessorVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessorVersion 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 ProcessorVersion.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
-