Class ProcessorVersion
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.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.v1beta3.ProcessorVersion
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorVersion.Builder
A processor version is an implementation of a processor.static class
ProcessorVersion.DeprecationInfo
Information about the upcoming deprecation of this processor version.static interface
ProcessorVersion.DeprecationInfoOrBuilder
static class
ProcessorVersion.State
The 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 int
CREATE_TIME_FIELD_NUMBER
static int
DEPRECATION_INFO_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
DOCUMENT_SCHEMA_FIELD_NUMBER
static int
GOOGLE_MANAGED_FIELD_NUMBER
static int
KMS_KEY_NAME_FIELD_NUMBER
static int
KMS_KEY_VERSION_NAME_FIELD_NUMBER
static int
LATEST_EVALUATION_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreateTime()
The time the processor version was created.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The time the processor version was created.static ProcessorVersion
getDefaultInstance()
ProcessorVersion
getDefaultInstanceForType()
ProcessorVersion.DeprecationInfo
getDeprecationInfo()
If set, information about the eventual deprecation of this version.ProcessorVersion.DeprecationInfoOrBuilder
getDeprecationInfoOrBuilder()
If set, information about the eventual deprecation of this version.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
The display name of the processor version.com.google.protobuf.ByteString
getDisplayNameBytes()
The display name of the processor version.DocumentSchema
getDocumentSchema()
The schema of the processor version.DocumentSchemaOrBuilder
getDocumentSchemaOrBuilder()
The schema of the processor version.boolean
getGoogleManaged()
Output only.String
getKmsKeyName()
The KMS key name used for encryption.com.google.protobuf.ByteString
getKmsKeyNameBytes()
The KMS key name used for encryption.String
getKmsKeyVersionName()
The KMS key version with which data is encrypted.com.google.protobuf.ByteString
getKmsKeyVersionNameBytes()
The KMS key version with which data is encrypted.EvaluationReference
getLatestEvaluation()
The most recently invoked evaluation for the processor version.EvaluationReferenceOrBuilder
getLatestEvaluationOrBuilder()
The most recently invoked evaluation for the processor version.String
getName()
The resource name of the processor version.com.google.protobuf.ByteString
getNameBytes()
The resource name of the processor version.com.google.protobuf.Parser<ProcessorVersion>
getParserForType()
int
getSerializedSize()
ProcessorVersion.State
getState()
The state of the processor version.int
getStateValue()
The state of the processor version.boolean
hasCreateTime()
The time the processor version was created.boolean
hasDeprecationInfo()
If set, information about the eventual deprecation of this version.boolean
hasDocumentSchema()
The schema of the processor version.int
hashCode()
boolean
hasLatestEvaluation()
The most recently invoked evaluation for the processor version.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ProcessorVersion.Builder
newBuilder()
static ProcessorVersion.Builder
newBuilder(ProcessorVersion prototype)
ProcessorVersion.Builder
newBuilderForType()
protected ProcessorVersion.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ProcessorVersion
parseDelimitedFrom(InputStream input)
static ProcessorVersion
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessorVersion
parseFrom(byte[] data)
static ProcessorVersion
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessorVersion
parseFrom(com.google.protobuf.ByteString data)
static ProcessorVersion
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessorVersion
parseFrom(com.google.protobuf.CodedInputStream input)
static ProcessorVersion
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessorVersion
parseFrom(InputStream input)
static ProcessorVersion
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessorVersion
parseFrom(ByteBuffer data)
static ProcessorVersion
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ProcessorVersion>
parser()
ProcessorVersion.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in interfaceProcessorVersionOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
The display name of the processor version.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceProcessorVersionOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name of the processor version.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceProcessorVersionOrBuilder
- Returns:
- The bytes for displayName.
-
hasDocumentSchema
public boolean hasDocumentSchema()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 12;
- Specified by:
hasDocumentSchema
in interfaceProcessorVersionOrBuilder
- Returns:
- Whether the documentSchema field is set.
-
getDocumentSchema
public DocumentSchema getDocumentSchema()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 12;
- Specified by:
getDocumentSchema
in interfaceProcessorVersionOrBuilder
- Returns:
- The documentSchema.
-
getDocumentSchemaOrBuilder
public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1beta3.DocumentSchema document_schema = 12;
- Specified by:
getDocumentSchemaOrBuilder
in interfaceProcessorVersionOrBuilder
-
getStateValue
public int getStateValue()
The state of the processor version.
.google.cloud.documentai.v1beta3.ProcessorVersion.State state = 6;
- Specified by:
getStateValue
in 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.v1beta3.ProcessorVersion.State state = 6;
- Specified by:
getState
in interfaceProcessorVersionOrBuilder
- Returns:
- The state.
-
hasCreateTime
public boolean hasCreateTime()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceProcessorVersionOrBuilder
-
hasLatestEvaluation
public boolean hasLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8;
- Specified by:
hasLatestEvaluation
in interfaceProcessorVersionOrBuilder
- Returns:
- Whether the latestEvaluation field is set.
-
getLatestEvaluation
public EvaluationReference getLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8;
- Specified by:
getLatestEvaluation
in interfaceProcessorVersionOrBuilder
- Returns:
- The latestEvaluation.
-
getLatestEvaluationOrBuilder
public EvaluationReferenceOrBuilder getLatestEvaluationOrBuilder()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8;
- Specified by:
getLatestEvaluationOrBuilder
in interfaceProcessorVersionOrBuilder
-
getKmsKeyName
public String getKmsKeyName()
The KMS key name used for encryption.
string kms_key_name = 9;
- Specified by:
getKmsKeyName
in 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:
getKmsKeyNameBytes
in 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:
getKmsKeyVersionName
in 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:
getKmsKeyVersionNameBytes
in 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:
getGoogleManaged
in interfaceProcessorVersionOrBuilder
- Returns:
- The googleManaged.
-
hasDeprecationInfo
public boolean hasDeprecationInfo()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo deprecation_info = 13;
- Specified by:
hasDeprecationInfo
in 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.v1beta3.ProcessorVersion.DeprecationInfo deprecation_info = 13;
- Specified by:
getDeprecationInfo
in interfaceProcessorVersionOrBuilder
- Returns:
- The deprecationInfo.
-
getDeprecationInfoOrBuilder
public ProcessorVersion.DeprecationInfoOrBuilder getDeprecationInfoOrBuilder()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo deprecation_info = 13;
- Specified by:
getDeprecationInfoOrBuilder
in interfaceProcessorVersionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessorVersion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessorVersion getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-