Package com.google.cloud.documentai.v1
Class ProcessorVersion
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class ProcessorVersion extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.documentai.v1.ProcessorVersion- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessorVersion.BuilderA processor version is an implementation of a processor.static classProcessorVersion.DeprecationInfoInformation about the upcoming deprecation of this processor version.static interfaceProcessorVersion.DeprecationInfoOrBuilderstatic classProcessorVersion.StateThe possible states of the processor version.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCREATE_TIME_FIELD_NUMBERstatic intDEPRECATION_INFO_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intDOCUMENT_SCHEMA_FIELD_NUMBERstatic intGOOGLE_MANAGED_FIELD_NUMBERstatic intKMS_KEY_NAME_FIELD_NUMBERstatic intKMS_KEY_VERSION_NAME_FIELD_NUMBERstatic intLATEST_EVALUATION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.TimestampgetCreateTime()The time the processor version was created.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The time the processor version was created.static ProcessorVersiongetDefaultInstance()ProcessorVersiongetDefaultInstanceForType()ProcessorVersion.DeprecationInfogetDeprecationInfo()If set, information about the eventual deprecation of this version.ProcessorVersion.DeprecationInfoOrBuildergetDeprecationInfoOrBuilder()If set, information about the eventual deprecation of this version.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()The display name of the processor version.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name of the processor version.DocumentSchemagetDocumentSchema()The schema of the processor version.DocumentSchemaOrBuildergetDocumentSchemaOrBuilder()The schema of the processor version.booleangetGoogleManaged()Output only.StringgetKmsKeyName()The KMS key name used for encryption.com.google.protobuf.ByteStringgetKmsKeyNameBytes()The KMS key name used for encryption.StringgetKmsKeyVersionName()The KMS key version with which data is encrypted.com.google.protobuf.ByteStringgetKmsKeyVersionNameBytes()The KMS key version with which data is encrypted.EvaluationReferencegetLatestEvaluation()The most recently invoked evaluation for the processor version.EvaluationReferenceOrBuildergetLatestEvaluationOrBuilder()The most recently invoked evaluation for the processor version.StringgetName()The resource name of the processor version.com.google.protobuf.ByteStringgetNameBytes()The resource name of the processor version.com.google.protobuf.Parser<ProcessorVersion>getParserForType()intgetSerializedSize()ProcessorVersion.StategetState()The state of the processor version.intgetStateValue()The state of the processor version.booleanhasCreateTime()The time the processor version was created.booleanhasDeprecationInfo()If set, information about the eventual deprecation of this version.booleanhasDocumentSchema()The schema of the processor version.inthashCode()booleanhasLatestEvaluation()The most recently invoked evaluation for the processor version.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProcessorVersion.BuildernewBuilder()static ProcessorVersion.BuildernewBuilder(ProcessorVersion prototype)ProcessorVersion.BuildernewBuilderForType()protected ProcessorVersion.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()ProcessorVersion.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_SCHEMA_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LATEST_EVALUATION_FIELD_NUMBER
public static final int LATEST_EVALUATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_VERSION_NAME_FIELD_NUMBER
public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GOOGLE_MANAGED_FIELD_NUMBER
public static final int GOOGLE_MANAGED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATION_INFO_FIELD_NUMBER
public static final int DEPRECATION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`string name = 1;- Specified by:
getNamein interfaceProcessorVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`string name = 1;- Specified by:
getNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String 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()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;- Specified by:
hasDocumentSchemain interfaceProcessorVersionOrBuilder- Returns:
- Whether the documentSchema field is set.
-
getDocumentSchema
public DocumentSchema getDocumentSchema()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;- Specified by:
getDocumentSchemain interfaceProcessorVersionOrBuilder- Returns:
- The documentSchema.
-
getDocumentSchemaOrBuilder
public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;- Specified by:
getDocumentSchemaOrBuilderin interfaceProcessorVersionOrBuilder
-
getStateValue
public int getStateValue()
The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6;- Specified by:
getStateValuein interfaceProcessorVersionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public ProcessorVersion.State getState()
The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6;- Specified by:
getStatein interfaceProcessorVersionOrBuilder- Returns:
- The state.
-
hasCreateTime
public boolean hasCreateTime()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
hasCreateTimein interfaceProcessorVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimein interfaceProcessorVersionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimeOrBuilderin interfaceProcessorVersionOrBuilder
-
hasLatestEvaluation
public boolean hasLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;- Specified by:
hasLatestEvaluationin interfaceProcessorVersionOrBuilder- Returns:
- Whether the latestEvaluation field is set.
-
getLatestEvaluation
public EvaluationReference getLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;- Specified by:
getLatestEvaluationin interfaceProcessorVersionOrBuilder- Returns:
- The latestEvaluation.
-
getLatestEvaluationOrBuilder
public EvaluationReferenceOrBuilder getLatestEvaluationOrBuilder()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;- Specified by:
getLatestEvaluationOrBuilderin interfaceProcessorVersionOrBuilder
-
getKmsKeyName
public String getKmsKeyName()
The KMS key name used for encryption.
string kms_key_name = 9;- Specified by:
getKmsKeyNamein interfaceProcessorVersionOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
The KMS key name used for encryption.
string kms_key_name = 9;- Specified by:
getKmsKeyNameBytesin interfaceProcessorVersionOrBuilder- Returns:
- The bytes for kmsKeyName.
-
getKmsKeyVersionName
public String getKmsKeyVersionName()
The KMS key version with which data is encrypted.
string kms_key_version_name = 10;- Specified by:
getKmsKeyVersionNamein interfaceProcessorVersionOrBuilder- Returns:
- The kmsKeyVersionName.
-
getKmsKeyVersionNameBytes
public com.google.protobuf.ByteString getKmsKeyVersionNameBytes()
The KMS key version with which data is encrypted.
string kms_key_version_name = 10;- 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()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;- Specified by:
hasDeprecationInfoin interfaceProcessorVersionOrBuilder- Returns:
- Whether the deprecationInfo field is set.
-
getDeprecationInfo
public ProcessorVersion.DeprecationInfo getDeprecationInfo()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;- Specified by:
getDeprecationInfoin interfaceProcessorVersionOrBuilder- Returns:
- The deprecationInfo.
-
getDeprecationInfoOrBuilder
public ProcessorVersion.DeprecationInfoOrBuilder getDeprecationInfoOrBuilder()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;- Specified by:
getDeprecationInfoOrBuilderin interfaceProcessorVersionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static ProcessorVersion parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProcessorVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessorVersion parseDelimitedFrom(InputStream input) throws IOException
- 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
public ProcessorVersion.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProcessorVersion.Builder newBuilder()
-
newBuilder
public static ProcessorVersion.Builder newBuilder(ProcessorVersion prototype)
-
toBuilder
public ProcessorVersion.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessorVersion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ProcessorVersion getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ProcessorVersion> parser()
-
getParserForType
public com.google.protobuf.Parser<ProcessorVersion> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessorVersion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-