Send feedback
  
   
 
  
    
      Class ProcessorVersion (2.8.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 2.8.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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
 
  
  
  
  Static Fields
   
  CREATE_TIME_FIELD_NUMBER 
  
    
public   static   final   int   CREATE_TIME_FIELD_NUMBER  
   
  Field Value 
  
  DEPRECATION_INFO_FIELD_NUMBER 
  
    
public   static   final   int   DEPRECATION_INFO_FIELD_NUMBER  
   
  Field Value 
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
   
  Field Value 
  
  GOOGLE_MANAGED_FIELD_NUMBER 
  
    
public   static   final   int   GOOGLE_MANAGED_FIELD_NUMBER  
   
  Field Value 
  
  KMS_KEY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   KMS_KEY_NAME_FIELD_NUMBER  
   
  Field Value 
  
  KMS_KEY_VERSION_NAME_FIELD_NUMBER 
  
    
public   static   final   int   KMS_KEY_VERSION_NAME_FIELD_NUMBER  
   
  Field Value 
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
   
  Field Value 
  
  STATE_FIELD_NUMBER 
  
    
public   static   final   int   STATE_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   ProcessorVersion   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   ProcessorVersion . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(ProcessorVersion prototype) 
  
    
public   static   ProcessorVersion . Builder   newBuilder ( ProcessorVersion   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   ProcessorVersion   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProcessorVersion   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   ProcessorVersion   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProcessorVersion   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   ProcessorVersion   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProcessorVersion   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProcessorVersion   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProcessorVersion   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProcessorVersion   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   ProcessorVersion   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   ProcessorVersion   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ProcessorVersion   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<ProcessorVersion>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getCreateTime() 
  
    
public   Timestamp   getCreateTime ()  
   
   The time the processor version was created.
 .google.protobuf.Timestamp create_time = 7;
 
  Returns 
  
   
  getCreateTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getCreateTimeOrBuilder ()  
   
   The time the processor version was created.
 .google.protobuf.Timestamp create_time = 7;
 
  Returns 
  
   
  getDefaultInstanceForType() 
  
    
public   ProcessorVersion   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDeprecationInfo() 
  
    
public   ProcessorVersion . DeprecationInfo   getDeprecationInfo ()  
   
   If set, information about the eventual deprecation of this version.
 .google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;
 
 
  Returns 
  
   
  getDeprecationInfoOrBuilder() 
  
    
public   ProcessorVersion . DeprecationInfoOrBuilder   getDeprecationInfoOrBuilder ()  
   
   If set, information about the eventual deprecation of this version.
 .google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13;
 
 
  Returns 
  
   
  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.
 
       
     
  
   
  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.
 
       
     
  
   
  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 
  
   
  getParserForType() 
  
    
public   Parser<ProcessorVersion>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getState() 
  
    
public   ProcessorVersion . State   getState ()  
   
   The state of the processor version.
 .google.cloud.documentai.v1.ProcessorVersion.State state = 6;
 
  Returns 
  
   
  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 ()  
   
  Returns 
  
  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.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   ProcessorVersion . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ProcessorVersion . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   ProcessorVersion . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]