# Google Cloud Vision Ai V1 Client - Class AnalyzerDefinition (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 AnalyzerDefinition.

Defines an Analyzer.

An analyzer processes data from its input streams using the logic defined in
the Operator that it represents. Of course, it produces data for the output
streams declared in the Operator.

Generated from protobuf message `google.cloud.visionai.v1.AnalyzerDefinition`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ analyzer` | `string` The name of this analyzer. Tentatively \[a-z\]\[a-z0-9\]*(_\[a-z0-9\]+)*. |
| `↳ operator` | `string` The name of the operator that this analyzer runs. Must match the name of a supported operator. |
| `↳ inputs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.StreamInput>` Input streams. |
| `↳ attrs` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The attribute values that this analyzer applies to the operator. Supply a mapping between the attribute names and the actual value you wish to apply. If an attribute name is omitted, then it will take a preconfigured default value. |
| `↳ debug_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.DebugOptions` Debug options. |
| `↳ operator_option` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.OperatorOption` Operator option. |

### getAnalyzer

The name of this analyzer.

Tentatively \[a-z\]\[a-z0-9\]*(_\[a-z0-9\]+)*.

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

### setAnalyzer

The name of this analyzer.

Tentatively \[a-z\]\[a-z0-9\]*(_\[a-z0-9\]+)*.

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

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

### getOperator

The name of the operator that this analyzer runs.

Must match the name of a supported operator.

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

### setOperator

The name of the operator that this analyzer runs.

Must match the name of a supported operator.

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

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

### getInputs

Input streams.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.StreamInput>` |   |

### setInputs

Input streams.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.StreamInput>` |

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

### getAttrs

The attribute values that this analyzer applies to the operator.

Supply a mapping between the attribute names and the actual value you wish
to apply. If an attribute name is omitted, then it will take a
preconfigured default value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setAttrs

The attribute values that this analyzer applies to the operator.

Supply a mapping between the attribute names and the actual value you wish
to apply. If an attribute name is omitted, then it will take a
preconfigured default value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getDebugOptions

Debug options.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.DebugOptions|null` |   |

### hasDebugOptions

### clearDebugOptions

### setDebugOptions

Debug options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.DebugOptions` |

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

### getOperatorOption

Operator option.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.OperatorOption|null` |   |

### hasOperatorOption

### clearOperatorOption

### setOperatorOption

Operator option.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnalyzerDefinition.OperatorOption` |

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