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

Node config.

↳ processor string

Processor name refer to the chosen processor resource.

↳ parents array<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
ProcessorConfig|null

hasNodeConfig

clearNodeConfig

setNodeConfig

Node config.

Parameter
Name Description
var 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
Google\Protobuf\Internal\RepeatedField

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<Node\InputEdge>
Returns
Type Description
$this

getStreamOutputConfig

Returns
Type Description
string