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

Message describing node object.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ output_all_output_channels_to_stream` | `bool` By default, the output of the node will only be available to downstream nodes. To consume the direct output from the application node, the output must be sent to Vision AI Streams at first. By setting output_all_output_channels_to_stream to true, App Platform will automatically send all the outputs of the current node to Vision AI Stream resources (one stream per output channel). The output stream resource will be created by App Platform automatically during deployment and deleted after application un-deployment. Note that this config applies to all the Application Instances. The output stream can be override at instance level by configuring the `output_resources` section of Instance resource. `producer_node` should be current node, `output_resource_binding` should be the output channel name (or leave it blank if there is only 1 output channel of the processor) and `output_resource` should be the target output stream. |
| `↳ name` | `string` Required. A unique name for the node. |
| `↳ display_name` | `string` A user friendly display name for the node. |
| `↳ node_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ProcessorConfig` Node config. |
| `↳ processor` | `string` Processor name refer to the chosen processor resource. |
| `↳ parents` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Node.InputEdge>` Parent node. Input node should not have parent node. For V1 Alpha1/Beta only media warehouse node can have multiple parents, other types of nodes will only have one parent. |

### getOutputAllOutputChannelsToStream

By default, the output of the node will only be available to downstream
nodes. To consume the direct output from the application node, the output
must be sent to Vision AI Streams at first.

By setting output_all_output_channels_to_stream to true, App Platform
will automatically send all the outputs of the current node to Vision AI
Stream resources (one stream per output channel). The output stream
resource will be created by App Platform automatically during deployment
and deleted after application un-deployment.
Note that this config applies to all the Application Instances.
The output stream can be override at instance level by
configuring the `output_resources` section of Instance resource.
`producer_node` should be current node, `output_resource_binding` should
be the output channel name (or leave it blank if there is only 1 output
channel of the processor) and `output_resource` should be the target
output stream.

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

### hasOutputAllOutputChannelsToStream

### setOutputAllOutputChannelsToStream

By default, the output of the node will only be available to downstream
nodes. To consume the direct output from the application node, the output
must be sent to Vision AI Streams at first.

By setting output_all_output_channels_to_stream to true, App Platform
will automatically send all the outputs of the current node to Vision AI
Stream resources (one stream per output channel). The output stream
resource will be created by App Platform automatically during deployment
and deleted after application un-deployment.
Note that this config applies to all the Application Instances.
The output stream can be override at instance level by
configuring the `output_resources` section of Instance resource.
`producer_node` should be current node, `output_resource_binding` should
be the output channel name (or leave it blank if there is only 1 output
channel of the processor) and `output_resource` should be the target
output stream.

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

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

### getName

Required. A unique name for the node.

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

### setName

Required. A unique name for the node.

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

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

### getDisplayName

A user friendly display name for the node.

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

### setDisplayName

A user friendly display name for the node.

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

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

### getNodeConfig

Node config.

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

### hasNodeConfig

### clearNodeConfig

### setNodeConfig

Node config.

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

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

### getProcessor

Processor name refer to the chosen processor resource.

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

### setProcessor

Processor name refer to the chosen processor resource.

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

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

### getParents

Parent node. Input node should not have parent node. For V1 Alpha1/Beta
only media warehouse node can have multiple parents, other types of nodes
will only have one parent.

| **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.Node.InputEdge>` |   |

### setParents

Parent node. Input node should not have parent node. For V1 Alpha1/Beta
only media warehouse node can have multiple parents, other types of nodes
will only have one parent.

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

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

### getStreamOutputConfig

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