Class Node (0.2.0)

public final class Node extends GeneratedMessageV3 implements NodeOrBuilder

Message describing node object.

Protobuf type google.cloud.visionai.v1.Node

Implements

NodeOrBuilder

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NODE_CONFIG_FIELD_NUMBER

public static final int NODE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER

public static final int OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER
Field Value
Type Description
int

PARENTS_FIELD_NUMBER

public static final int PARENTS_FIELD_NUMBER
Field Value
Type Description
int

PROCESSOR_FIELD_NUMBER

public static final int PROCESSOR_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Node getDefaultInstance()
Returns
Type Description
Node

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Node.Builder newBuilder()
Returns
Type Description
Node.Builder

newBuilder(Node prototype)

public static Node.Builder newBuilder(Node prototype)
Parameter
Name Description
prototype Node
Returns
Type Description
Node.Builder

parseDelimitedFrom(InputStream input)

public static Node parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Node parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Node parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Node parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Node parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Node parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Node
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Node> parser()
Returns
Type Description
Parser<Node>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Node getDefaultInstanceForType()
Returns
Type Description
Node

getDisplayName()

public String getDisplayName()

A user friendly display name for the node.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A user friendly display name for the node.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Required. A unique name for the node.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A unique name for the node.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getNodeConfig()

public ProcessorConfig getNodeConfig()

Node config.

.google.cloud.visionai.v1.ProcessorConfig node_config = 3;

Returns
Type Description
ProcessorConfig

The nodeConfig.

getNodeConfigOrBuilder()

public ProcessorConfigOrBuilder getNodeConfigOrBuilder()

Node config.

.google.cloud.visionai.v1.ProcessorConfig node_config = 3;

Returns
Type Description
ProcessorConfigOrBuilder

getOutputAllOutputChannelsToStream()

public boolean 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.

bool output_all_output_channels_to_stream = 6;

Returns
Type Description
boolean

The outputAllOutputChannelsToStream.

getParents(int index)

public Node.InputEdge getParents(int index)

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.

repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;

Parameter
Name Description
index int
Returns
Type Description
Node.InputEdge

getParentsCount()

public int getParentsCount()

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.

repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
Type Description
int

getParentsList()

public List<Node.InputEdge> getParentsList()

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.

repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
Type Description
List<InputEdge>

getParentsOrBuilder(int index)

public Node.InputEdgeOrBuilder getParentsOrBuilder(int index)

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.

repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;

Parameter
Name Description
index int
Returns
Type Description
Node.InputEdgeOrBuilder

getParentsOrBuilderList()

public List<? extends Node.InputEdgeOrBuilder> getParentsOrBuilderList()

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.

repeated .google.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.Node.InputEdgeOrBuilder>

getParserForType()

public Parser<Node> getParserForType()
Returns
Type Description
Parser<Node>
Overrides

getProcessor()

public String getProcessor()

Processor name refer to the chosen processor resource.

string processor = 4;

Returns
Type Description
String

The processor.

getProcessorBytes()

public ByteString getProcessorBytes()

Processor name refer to the chosen processor resource.

string processor = 4;

Returns
Type Description
ByteString

The bytes for processor.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStreamOutputConfigCase()

public Node.StreamOutputConfigCase getStreamOutputConfigCase()
Returns
Type Description
Node.StreamOutputConfigCase

hasNodeConfig()

public boolean hasNodeConfig()

Node config.

.google.cloud.visionai.v1.ProcessorConfig node_config = 3;

Returns
Type Description
boolean

Whether the nodeConfig field is set.

hasOutputAllOutputChannelsToStream()

public boolean hasOutputAllOutputChannelsToStream()

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.

bool output_all_output_channels_to_stream = 6;

Returns
Type Description
boolean

Whether the outputAllOutputChannelsToStream field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Node.Builder newBuilderForType()
Returns
Type Description
Node.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Node.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Node.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Node.Builder toBuilder()
Returns
Type Description
Node.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException