# Google Cloud Vision Ai V1 Client - Class Option (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Option.

Option for one data schema key.

Generated from protobuf message `google.cloud.visionai.v1.SchemaKeySortingStrategy.Option`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ SchemaKeySortingStrategy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_schema_key` | `string` The data used to sort. |
| `↳ sort_decreasing` | `bool` Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order. |
| `↳ aggregate_method` | `int` Aggregate method for the current data schema key. |

### getDataSchemaKey

The data used to sort.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDataSchemaKey

The data used to sort.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSortDecreasing

Whether to sort in decreasing order or increasing order.

By default, results are sorted in incresing order.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSortDecreasing

Whether to sort in decreasing order or increasing order.

By default, results are sorted in incresing order.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAggregateMethod

Aggregate method for the current data schema key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasAggregateMethod

### clearAggregateMethod

### setAggregateMethod

Aggregate method for the current data schema key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |