Class TextExtractionPredictionInstance (3.14.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.14.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  TextExtractionPredictionInstance   extends   GeneratedMessageV3   implements   TextExtractionPredictionInstanceOrBuilder  
   
   Prediction input format for Text Extraction.
 Protobuf type 
 google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance
 
  
  
  
  Static Fields
   
  
  
    
public   static   final   int   CONTENT_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  
  
    
public   static   final   int   KEY_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  
  
    
public   static   final   int   MIME_TYPE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
  
  
  
    
public   static   TextExtractionPredictionInstance   getDefaultInstance ()  
   
  
  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
  
  
  
    
public   static   TextExtractionPredictionInstance . Builder   newBuilder ()  
   
  
  
  
  
    
public   static   TextExtractionPredictionInstance . Builder   newBuilder ( TextExtractionPredictionInstance   prototype )  
   
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( ByteString   data )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( CodedInputStream   input )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( InputStream   input )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( ByteBuffer   data )  
   
  
  
  
  
  
  
    
public   static   TextExtractionPredictionInstance   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
  
  
  
    
public   static   Parser<TextExtractionPredictionInstance>   parser ()  
   
  
  Methods
   
  
  
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
  
  
  
    
public   String   getContent ()  
   
   The text snippet to make the predictions on.
 string content = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The content.
 
       
     
  
  
  
  
    
public   ByteString   getContentBytes ()  
   
   The text snippet to make the predictions on.
 string content = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for content.
 
       
     
  
  
  
  
    
public   TextExtractionPredictionInstance   getDefaultInstanceForType ()  
   
  
  
  
  
   This field is only used for batch prediction. If a key is provided, the
 batch prediction result will by mapped to this key. If omitted, then the
 batch prediction result will contain the entire input instance. Vertex AI
 will not check if keys in the request are duplicates, so it is up to the
 caller to ensure the keys are unique.
 string key = 3;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The key.
 
       
     
  
  
  
  
    
public   ByteString   getKeyBytes ()  
   
   This field is only used for batch prediction. If a key is provided, the
 batch prediction result will by mapped to this key. If omitted, then the
 batch prediction result will contain the entire input instance. Vertex AI
 will not check if keys in the request are duplicates, so it is up to the
 caller to ensure the keys are unique.
 string key = 3;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for key.
 
       
     
  
  
  
  
    
public   String   getMimeType ()  
   
   The MIME type of the text snippet. The supported MIME types are listed
 below.
 string mime_type = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The mimeType.
 
       
     
  
  
  
  
    
public   ByteString   getMimeTypeBytes ()  
   
   The MIME type of the text snippet. The supported MIME types are listed
 below.
 string mime_type = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for mimeType.
 
       
     
  
  
  
  
    
public   Parser<TextExtractionPredictionInstance>   getParserForType ()  
   
  
  Overrides 
  
  
  
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
  
  
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  
  Overrides 
  
  
  
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
  
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
  
  
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
  
  
  
    
public   TextExtractionPredictionInstance . Builder   newBuilderForType ()  
   
  
  
  
  
    
protected   TextExtractionPredictionInstance . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
  
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
  
  
  
    
public   TextExtractionPredictionInstance . Builder   toBuilder ()  
   
  
  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]