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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
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 |
prototype | Feature
|
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 |
data | byte[]
|
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 |
obj | Object
|
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)
Overrides
toBuilder()
public Feature.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides