Class TextFrame.Builder (2.0.27) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.0.27keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  TextFrame . Builder   extends   GeneratedMessageV3 . Builder<TextFrame . Builder >  implements   TextFrameOrBuilder  
   
   Video frame level annotation results for text annotation (OCR).
 Contains information regarding timestamp and bounding box locations for the
 frames containing detected OCR text snippets.
 Protobuf type google.cloud.videointelligence.v1p3beta1.TextFrame
 
  
  
  
  Static Methods
   
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
  Methods
   
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   TextFrame . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  build() 
  
  Returns 
  
   
  buildPartial() 
  
    
public   TextFrame   buildPartial ()  
   
  Returns 
  
   
  clear() 
  
    
public   TextFrame . Builder   clear ()  
   
  Returns 
  
  Overrides 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   TextFrame . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   TextFrame . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearRotatedBoundingBox() 
  
    
public   TextFrame . Builder   clearRotatedBoundingBox ()  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Returns 
  
   
  clearTimeOffset() 
  
    
public   TextFrame . Builder   clearTimeOffset ()  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Returns 
  
   
  clone() 
  
    
public   TextFrame . Builder   clone ()  
   
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   TextFrame   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  Returns 
  
  Overrides 
  
   
  getRotatedBoundingBox() 
  
    
public   NormalizedBoundingPoly   getRotatedBoundingBox ()  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Returns 
  
   
  getRotatedBoundingBoxBuilder() 
  
    
public   NormalizedBoundingPoly . Builder   getRotatedBoundingBoxBuilder ()  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Returns 
  
   
  getRotatedBoundingBoxOrBuilder() 
  
    
public   NormalizedBoundingPolyOrBuilder   getRotatedBoundingBoxOrBuilder ()  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Returns 
  
   
  getTimeOffset() 
  
    
public   Duration   getTimeOffset ()  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        Duration  
        The timeOffset.
 
       
     
  
   
  getTimeOffsetBuilder() 
  
    
public   Duration . Builder   getTimeOffsetBuilder ()  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Returns 
  
   
  getTimeOffsetOrBuilder() 
  
    
public   DurationOrBuilder   getTimeOffsetOrBuilder ()  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Returns 
  
   
  hasRotatedBoundingBox() 
  
    
public   boolean   hasRotatedBoundingBox ()  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the rotatedBoundingBox field is set.
 
       
     
  
   
  hasTimeOffset() 
  
    
public   boolean   hasTimeOffset ()  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the timeOffset field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  mergeFrom(TextFrame other) 
  
    
public   TextFrame . Builder   mergeFrom ( TextFrame   other )  
   
  Parameter 
  
  Returns 
  
   
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   TextFrame . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
   
  mergeFrom(Message other) 
  
    
public   TextFrame . Builder   mergeFrom ( Message   other )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  mergeRotatedBoundingBox(NormalizedBoundingPoly value) 
  
    
public   TextFrame . Builder   mergeRotatedBoundingBox ( NormalizedBoundingPoly   value )  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Parameter 
  
  Returns 
  
   
  mergeTimeOffset(Duration value) 
  
    
public   TextFrame . Builder   mergeTimeOffset ( Duration   value )  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Parameter 
  
  Returns 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   TextFrame . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   TextFrame . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   TextFrame . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setRotatedBoundingBox(NormalizedBoundingPoly value) 
  
    
public   TextFrame . Builder   setRotatedBoundingBox ( NormalizedBoundingPoly   value )  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Parameter 
  
  Returns 
  
   
  setRotatedBoundingBox(NormalizedBoundingPoly.Builder builderForValue) 
  
    
public   TextFrame . Builder   setRotatedBoundingBox ( NormalizedBoundingPoly . Builder   builderForValue )  
   
   Bounding polygon of the detected text for this frame.
 
 .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
 
 
  Parameter 
  
  Returns 
  
   
  setTimeOffset(Duration value) 
  
    
public   TextFrame . Builder   setTimeOffset ( Duration   value )  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Parameter 
  
  Returns 
  
   
  setTimeOffset(Duration.Builder builderForValue) 
  
    
public   TextFrame . Builder   setTimeOffset ( Duration . Builder   builderForValue )  
   
   Timestamp of this frame.
 .google.protobuf.Duration time_offset = 2;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        builderForValue  
        Builder  
       
     
  
  Returns 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   TextFrame . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  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."],[],[]]