public final class Feature extends GeneratedMessageV3 implements FeatureOrBuilder
The type of Google Cloud Vision API detection to perform, and the maximum
number of results to return for that type. Multiple Feature
objects can
be specified in the features
list.
Protobuf type google.cloud.vision.v1p2beta1.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. Does not apply to
TEXT_DETECTION
, DOCUMENT_TEXT_DETECTION
, or CROP_HINTS
.
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".
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".
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.v1p2beta1.Feature.Type type = 1;
Returns
getTypeValue()
public int getTypeValue()
The feature type.
.google.cloud.vision.v1p2beta1.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