public final class ProcessorVersion extends GeneratedMessageV3 implements ProcessorVersionOrBuilder
A processor version is an implementation of a processor. Each processor
can have multiple versions, pre-trained by Google internally or up-trained
by the customer. At a time, a processor can only have one default version
version. So the processor's behavior (when processing documents) is defined
by a default version
Protobuf type google.cloud.documentai.v1.ProcessorVersion
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DEPRECATION_INFO_FIELD_NUMBER
public static final int DEPRECATION_INFO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DOCUMENT_SCHEMA_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
GOOGLE_MANAGED_FIELD_NUMBER
public static final int GOOGLE_MANAGED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
KMS_KEY_VERSION_NAME_FIELD_NUMBER
public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LATEST_EVALUATION_FIELD_NUMBER
public static final int LATEST_EVALUATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ProcessorVersion getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ProcessorVersion.Builder newBuilder()
newBuilder(ProcessorVersion prototype)
public static ProcessorVersion.Builder newBuilder(ProcessorVersion prototype)
public static ProcessorVersion parseDelimitedFrom(InputStream input)
public static ProcessorVersion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ProcessorVersion parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProcessorVersion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ProcessorVersion parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProcessorVersion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProcessorVersion parseFrom(CodedInputStream input)
public static ProcessorVersion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProcessorVersion parseFrom(InputStream input)
public static ProcessorVersion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ProcessorVersion parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProcessorVersion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ProcessorVersion> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCreateTime()
public Timestamp getCreateTime()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;
getDefaultInstanceForType()
public ProcessorVersion getDefaultInstanceForType()
getDeprecationInfo()
public ProcessorVersion.DeprecationInfo getDeprecationInfo()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;
getDeprecationInfoOrBuilder()
public ProcessorVersion.DeprecationInfoOrBuilder getDeprecationInfoOrBuilder()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;
getDisplayName()
public String getDisplayName()
The display name of the processor version.
string display_name = 2;
Returns |
---|
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The display name of the processor version.
string display_name = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for displayName.
|
getDocumentSchema()
public DocumentSchema getDocumentSchema()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;
getDocumentSchemaOrBuilder()
public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;
getGoogleManaged()
public boolean getGoogleManaged()
Denotes that this ProcessorVersion is managed by google.
bool google_managed = 11;
Returns |
---|
Type | Description |
boolean | The googleManaged.
|
getKmsKeyName()
public String getKmsKeyName()
The KMS key name used for encryption.
string kms_key_name = 9;
Returns |
---|
Type | Description |
String | The kmsKeyName.
|
getKmsKeyNameBytes()
public ByteString getKmsKeyNameBytes()
The KMS key name used for encryption.
string kms_key_name = 9;
Returns |
---|
Type | Description |
ByteString | The bytes for kmsKeyName.
|
getKmsKeyVersionName()
public String getKmsKeyVersionName()
The KMS key version with which data is encrypted.
string kms_key_version_name = 10;
Returns |
---|
Type | Description |
String | The kmsKeyVersionName.
|
getKmsKeyVersionNameBytes()
public ByteString getKmsKeyVersionNameBytes()
The KMS key version with which data is encrypted.
string kms_key_version_name = 10;
Returns |
---|
Type | Description |
ByteString | The bytes for kmsKeyVersionName.
|
getLatestEvaluation()
public EvaluationReference getLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;
getLatestEvaluationOrBuilder()
public EvaluationReferenceOrBuilder getLatestEvaluationOrBuilder()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;
getName()
The resource name of the processor version.
Format:
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the processor version.
Format:
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<ProcessorVersion> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getState()
public ProcessorVersion.State getState()
The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6;
getStateValue()
public int getStateValue()
The state of the processor version.
.google.cloud.documentai.v1.ProcessorVersion.State state = 6;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for state.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasCreateTime()
public boolean hasCreateTime()
The time the processor version was created.
.google.protobuf.Timestamp create_time = 7;
Returns |
---|
Type | Description |
boolean | Whether the createTime field is set.
|
hasDeprecationInfo()
public boolean hasDeprecationInfo()
If set, information about the eventual deprecation of this version.
.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;
Returns |
---|
Type | Description |
boolean | Whether the deprecationInfo field is set.
|
hasDocumentSchema()
public boolean hasDocumentSchema()
The schema of the processor version. Describes the output.
.google.cloud.documentai.v1.DocumentSchema document_schema = 12;
Returns |
---|
Type | Description |
boolean | Whether the documentSchema field is set.
|
hasLatestEvaluation()
public boolean hasLatestEvaluation()
The most recently invoked evaluation for the processor version.
.google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8;
Returns |
---|
Type | Description |
boolean | Whether the latestEvaluation field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ProcessorVersion.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProcessorVersion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ProcessorVersion.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides