Class TextExtractionAnnotation.Builder (2.76.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.76.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  TextExtractionAnnotation . Builder   extends   GeneratedMessageV3 . Builder<TextExtractionAnnotation . Builder >  implements   TextExtractionAnnotationOrBuilder  
   Annotation for identifying spans of text.
 Protobuf type google.cloud.automl.v1beta1.TextExtractionAnnotation
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
  
  
    
public   TextExtractionAnnotation . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation   build ()  
  
  
  
  
    
public   TextExtractionAnnotation   buildPartial ()  
  
  
  
  
    
public   TextExtractionAnnotation . Builder   clear ()  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   clearAnnotation ()  
  
  
  
  
    
public   TextExtractionAnnotation . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   clearScore ()  
   Output only. A confidence estimate between 0.0 and 1.0. A higher value
 means greater confidence in correctness of the annotation.
 float score = 1;
    
public   TextExtractionAnnotation . Builder   clearTextSegment ()  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   TextExtractionAnnotation . Builder   clone ()  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . AnnotationCase   getAnnotationCase ()  
  
  
  
  
    
public   TextExtractionAnnotation   getDefaultInstanceForType ()  
  
  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  
  
  
   Output only. A confidence estimate between 0.0 and 1.0. A higher value
 means greater confidence in correctness of the annotation.
 float score = 1;
    
      
        Returns  
      
        Type Description  
      
        float The score.
 
     
  
  
  
  
    
public   TextSegment   getTextSegment ()  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   TextSegment . Builder   getTextSegmentBuilder ()  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   TextSegmentOrBuilder   getTextSegmentOrBuilder ()  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   boolean   hasTextSegment ()  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the textSegment field is set.
 
     
  
  
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   mergeFrom ( TextExtractionAnnotation   other )  
  
  
  
  
  
    
public   TextExtractionAnnotation . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
  
  
    
public   TextExtractionAnnotation . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   mergeTextSegment ( TextSegment   value )  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   final   TextExtractionAnnotation . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
  
  
    
public   TextExtractionAnnotation . Builder   setScore ( float   value )  
   Output only. A confidence estimate between 0.0 and 1.0. A higher value
 means greater confidence in correctness of the annotation.
 float score = 1;
    
      
        Parameter  
      
        Name Description  
      
        valuefloat The score to set.
 
     
  
  
  
  
  
    
public   TextExtractionAnnotation . Builder   setTextSegment ( TextSegment   value )  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   TextExtractionAnnotation . Builder   setTextSegment ( TextSegment . Builder   builderForValue )  
   An entity annotation will set this, which is the part of the original
 text to which the annotation pertains.
 .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
    
public   final   TextExtractionAnnotation . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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-28 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-28 UTC."],[],[]]