public final class Feature extends GeneratedMessageV3 implements FeatureOrBuilder
Users describe the type of Google Cloud Vision API tasks to perform over
images by using Features. 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
Static Fields
MAX_RESULTS_FIELD_NUMBER
public static final int MAX_RESULTS_FIELD_NUMBER
Field Value
MODEL_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Feature getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Feature.Builder newBuilder()
Returns
newBuilder(Feature prototype)
public static Feature.Builder newBuilder(Feature prototype)
Parameter
Returns
public static Feature parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Feature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Feature parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Feature parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Feature parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Feature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Feature parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Feature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Feature parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Feature> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Feature getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<Feature> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getType()
public Feature.Type getType()
The feature type.
.google.cloud.vision.v1p1beta1.Feature.Type type = 1;
Returns
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Feature.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Feature.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Feature.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions