Class Feature.Builder (2.1.4)

public static final class Feature.Builder extends GeneratedMessageV3.Builder<Feature.Builder> 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.v1.Feature

Implements

FeatureOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Feature.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Feature.Builder
Overrides

build()

public Feature build()
Returns
TypeDescription
Feature

buildPartial()

public Feature buildPartial()
Returns
TypeDescription
Feature

clear()

public Feature.Builder clear()
Returns
TypeDescription
Feature.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Feature.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Feature.Builder
Overrides

clearMaxResults()

public Feature.Builder clearMaxResults()

Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

int32 max_results = 2;

Returns
TypeDescription
Feature.Builder

This builder for chaining.

clearModel()

public Feature.Builder clearModel()

Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 3;

Returns
TypeDescription
Feature.Builder

This builder for chaining.