Class CropHint.Builder (3.62.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.62.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  CropHint . Builder   extends   GeneratedMessageV3 . Builder<CropHint . Builder >  implements   CropHintOrBuilder  
   Single crop hint that is used to generate a new crop when serving an image.
 Protobuf type google.cloud.vision.v1.CropHint
    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
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CropHint . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
  
  buildPartial() 
  
    
public   CropHint   buildPartial ()  
  
  clear() 
  
    
public   CropHint . Builder   clear ()  
  
  Overrides 
  
  clearBoundingPoly() 
  
    
public   CropHint . Builder   clearBoundingPoly ()  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
clearConfidence() 
  
    
public   CropHint . Builder   clearConfidence ()  
   Confidence of this being a salient region.  Range [0, 1].
 float confidence = 2;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   CropHint . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearImportanceFraction() 
  
    
public   CropHint . Builder   clearImportanceFraction ()  
   Fraction of importance of this salient region with respect to the original
 image.
 float importance_fraction = 3;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   CropHint . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   CropHint . Builder   clone ()  
  
  Overrides 
  
  getBoundingPoly() 
  
    
public   BoundingPoly   getBoundingPoly ()  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getBoundingPolyBuilder() 
  
    
public   BoundingPoly . Builder   getBoundingPolyBuilder ()  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getBoundingPolyOrBuilder() 
  
    
public   BoundingPolyOrBuilder   getBoundingPolyOrBuilder ()  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getConfidence() 
  
    
public   float   getConfidence ()  
   Confidence of this being a salient region.  Range [0, 1].
 float confidence = 2;
    
      
        Returns  
      
        Type Description  
      
        float The confidence.
 
     
  
  getDefaultInstanceForType() 
  
    
public   CropHint   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getImportanceFraction() 
  
    
public   float   getImportanceFraction ()  
   Fraction of importance of this salient region with respect to the original
 image.
 float importance_fraction = 3;
    
      
        Returns  
      
        Type Description  
      
        float The importanceFraction.
 
     
  
  hasBoundingPoly() 
  
    
public   boolean   hasBoundingPoly ()  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the boundingPoly field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeBoundingPoly(BoundingPoly value) 
  
    
public   CropHint . Builder   mergeBoundingPoly ( BoundingPoly   value )  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
mergeFrom(CropHint other) 
  
    
public   CropHint . Builder   mergeFrom ( CropHint   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherCropHint  
     
  
  
  
    
public   CropHint . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   CropHint . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CropHint . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setBoundingPoly(BoundingPoly value) 
  
    
public   CropHint . Builder   setBoundingPoly ( BoundingPoly   value )  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
setBoundingPoly(BoundingPoly.Builder builderForValue) 
  
    
public   CropHint . Builder   setBoundingPoly ( BoundingPoly . Builder   builderForValue )  
   The bounding polygon for the crop region. The coordinates of the bounding
 box are in the original image's scale.
 .google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
setConfidence(float value) 
  
    
public   CropHint . Builder   setConfidence ( float   value )  
   Confidence of this being a salient region.  Range [0, 1].
 float confidence = 2;
    
      
        Parameter  
      
        Name Description  
      
        valuefloat The confidence to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CropHint . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setImportanceFraction(float value) 
  
    
public   CropHint . Builder   setImportanceFraction ( float   value )  
   Fraction of importance of this salient region with respect to the original
 image.
 float importance_fraction = 3;
    
      
        Parameter  
      
        Name Description  
      
        valuefloat The importanceFraction to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   CropHint . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CropHint . 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-29 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-29 UTC."],[],[]]