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

Defines the interface of an Operator.

Arguments to an operator are input/output streams that are getting
processesed/returned while attributes are fixed configuration parameters.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operator` | `string` The name of this operator. Tentatively \[A-Z\]\[a-zA-Z0-9\]\*, e.g., BboxCounter, PetDetector, PetDetector1. |
| `↳ input_args` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OperatorDefinition.ArgumentDefinition>` Declares input arguments. |
| `↳ output_args` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OperatorDefinition.ArgumentDefinition>` Declares output arguments. |
| `↳ attributes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OperatorDefinition.AttributeDefinition>` Declares the attributes. |
| `↳ resources` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ResourceSpecification` The resources for running the operator. |
| `↳ short_description` | `string` Short description of the operator. |
| `↳ description` | `string` Full description of the operator. |

### getOperator

The name of this operator.

Tentatively \[A-Z\]\[a-zA-Z0-9\]\*, e.g., BboxCounter, PetDetector,
PetDetector1.

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

### setOperator

The name of this operator.

Tentatively \[A-Z\]\[a-zA-Z0-9\]\*, e.g., BboxCounter, PetDetector,
PetDetector1.

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

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

### getInputArgs

Declares input arguments.

| **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.OperatorDefinition.ArgumentDefinition>` |   |

### setInputArgs

Declares input arguments.

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

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

### getOutputArgs

Declares output arguments.

| **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.OperatorDefinition.ArgumentDefinition>` |   |

### setOutputArgs

Declares output arguments.

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

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

### getAttributes

Declares the attributes.

| **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.OperatorDefinition.AttributeDefinition>` |   |

### setAttributes

Declares the attributes.

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

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

### getResources

The resources for running the operator.

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

### hasResources

### clearResources

### setResources

The resources for running the operator.

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

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

### getShortDescription

Short description of the operator.

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

### setShortDescription

Short description of the operator.

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

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

### getDescription

Full description of the operator.

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

### setDescription

Full description of the operator.

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

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