# Cloud Vision V1p3beta1 API - Class Google::Cloud::Vision::V1p3beta1::Feature (v0.20.0)

0.20.0 (latest) 0.19.1 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.1 0.12.2 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.0 0.5.5 Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::Feature.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #max_results

    def max_results() -> ::Integer

**Returns**

- (::Integer) --- Maximum number of results of this type. Does not apply to `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.

### #max_results=

    def max_results=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum number of results of this type. Does not apply to `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
**Returns**

- (::Integer) --- Maximum number of results of this type. Does not apply to `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.

### #model

    def model() -> ::String

**Returns**

- (::String) --- 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.

### #model=

    def model=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #type

    def type() -> ::Google::Cloud::Vision::V1p3beta1::Feature::Type

**Returns**

- ([::Google::Cloud::Vision::V1p3beta1::Feature::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-Feature-Type)) --- The feature type.

### #type=

    def type=(value) -> ::Google::Cloud::Vision::V1p3beta1::Feature::Type

**Parameter**

- **value** ([::Google::Cloud::Vision::V1p3beta1::Feature::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-Feature-Type)) --- The feature type.
**Returns**

- ([::Google::Cloud::Vision::V1p3beta1::Feature::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-Feature-Type)) --- The feature type.