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

Message for input channel specification.

Generated from protobuf message `google.cloud.visionai.v1.ProcessorIOSpec.GraphInputChannelSpec`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ ProcessorIOSpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the current input channel. |
| `↳ data_type` | `int` The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types. |
| `↳ accepted_data_type_uris` | `string[]` If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted. |
| `↳ required` | `bool` Whether the current input channel is required by the processor. For example, for a processor with required video input and optional audio input, if video input is missing, the application will be rejected while the audio input can be missing as long as the video input exists. |
| `↳ max_connection_allowed` | `int|string` How many input edges can be connected to this input channel. 0 means unlimited. |

### getName

The name of the current input channel.

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

### setName

The name of the current input channel.

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

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

### getDataType

The data types of the current input channel.

When this field has more than 1 value, it means this input channel can be
connected to either of these different data types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DataType). |

### setDataType

The data types of the current input channel.

When this field has more than 1 value, it means this input channel can be
connected to either of these different data types.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DataType). |

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

### getAcceptedDataTypeUris

If specified, only those detailed data types can be connected to the
processor. For example, jpeg stream for MEDIA, or PredictionResult proto
for PROTO type. If unspecified, then any proto is accepted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAcceptedDataTypeUris

If specified, only those detailed data types can be connected to the
processor. For example, jpeg stream for MEDIA, or PredictionResult proto
for PROTO type. If unspecified, then any proto is accepted.

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

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

### getRequired

Whether the current input channel is required by the processor.

For example, for a processor with required video input and optional audio
input, if video input is missing, the application will be rejected while
the audio input can be missing as long as the video input exists.

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

### setRequired

Whether the current input channel is required by the processor.

For example, for a processor with required video input and optional audio
input, if video input is missing, the application will be rejected while
the audio input can be missing as long as the video input exists.

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

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

### getMaxConnectionAllowed

How many input edges can be connected to this input channel. 0 means
unlimited.

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

### setMaxConnectionAllowed

How many input edges can be connected to this input channel. 0 means
unlimited.

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

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