Class Feature (3.47.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.47.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  Feature   extends   GeneratedMessageV3   implements   FeatureOrBuilder  
   Users describe the type of Google Cloud Vision API tasks to perform over
 images by using Feature s. Each Feature indicates a type of image
 detection task to perform. Features encode the Cloud Vision API
 vertical to operate on and the number of top-scoring results to return.
 Protobuf type google.cloud.vision.v1p1beta1.Feature
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  MAX_RESULTS_FIELD_NUMBER 
  
    
public   static   final   int   MAX_RESULTS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  MODEL_FIELD_NUMBER 
  
    
public   static   final   int   MODEL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TYPE_FIELD_NUMBER 
  
    
public   static   final   int   TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Feature   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Feature . Builder   newBuilder ()  
  
  newBuilder(Feature prototype) 
  
    
public   static   Feature . Builder   newBuilder ( Feature   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeFeature  
     
  
  
  
    
public   static   Feature   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Feature   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Feature   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Feature   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Feature   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Feature   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Feature   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Feature   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Feature   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Feature   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Feature   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Feature   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Feature>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Feature   getDefaultInstanceForType ()  
  
  getMaxResults() 
  
    
public   int   getMaxResults ()  
   Maximum number of results of this type.
 int32 max_results = 2;
    
      
        Returns  
      
        Type Description  
      
        int The maxResults.
 
     
  
  getModel() 
  
   Model to use for the feature.
 Supported values: "builtin/stable" (the default if unset) and
 "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also
 support "builtin/weekly" for the bleeding edge release updated weekly.
 string model = 3;
    
      
        Returns  
      
        Type Description  
      
        String The model.
 
     
  
  getModelBytes() 
  
    
public   ByteString   getModelBytes ()  
   Model to use for the feature.
 Supported values: "builtin/stable" (the default if unset) and
 "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also
 support "builtin/weekly" for the bleeding edge release updated weekly.
 string model = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for model.
 
     
  
  getParserForType() 
  
    
public   Parser<Feature>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getType() 
  
    
public   Feature . Type   getType ()  
   The feature type.
 .google.cloud.vision.v1p1beta1.Feature.Type type = 1;
getTypeValue() 
  
    
public   int   getTypeValue ()  
   The feature type.
 .google.cloud.vision.v1p1beta1.Feature.Type type = 1;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for type.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Feature . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Feature . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Feature . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
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-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."],[],[]]