Class Node (0.14.1)

public final class Node extends GeneratedMessageV3 implements NodeOrBuilder

Message describing node object.

Protobuf type google.events.cloud.visionai.v1.Node

Implements

NodeOrBuilder

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_CONFIG_FIELD_NUMBER

public static final int NODE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER

public static final int OUTPUT_ALL_OUTPUT_CHANNELS_TO_STREAM_FIELD_NUMBER
Field Value
TypeDescription
int

PARENTS_FIELD_NUMBER

public static final int PARENTS_FIELD_NUMBER
Field Value
TypeDescription
int

PROCESSOR_FIELD_NUMBER

public static final int PROCESSOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Node getDefaultInstance()
Returns
TypeDescription
Node

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Node.Builder newBuilder()
Returns
TypeDescription
Node.Builder

newBuilder(Node prototype)

public static Node.Builder newBuilder(Node prototype)
Parameter
NameDescription
prototypeNode
Returns
TypeDescription
Node.Builder

parseDelimitedFrom(InputStream input)

public static Node parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Node parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Node parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Node parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Node parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Node parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Node parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Node
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Node> parser()
Returns
TypeDescription
Parser<Node>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Node getDefaultInstanceForType()
Returns
TypeDescription
Node

getDisplayName()

public String getDisplayName()

A user friendly display name for the node.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A user friendly display name for the node.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Required. A unique name for the node.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A unique name for the node.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeConfig()

public ProcessorConfig getNodeConfig()

Node config.

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

Returns
TypeDescription
ProcessorConfig

The nodeConfig.

getNodeConfigOrBuilder()

public ProcessorConfigOrBuilder getNodeConfigOrBuilder()

Node config.

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

Returns
TypeDescription
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
TypeDescription
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.events.cloud.visionai.v1.Node.InputEdge parents = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
TypeDescription
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.events.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
TypeDescription
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.events.cloud.visionai.v1.Node.InputEdge parents = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.visionai.v1.Node.InputEdge parents = 5;

Returns
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.Node.InputEdgeOrBuilder>

getParserForType()

public Parser<Node> getParserForType()
Returns
TypeDescription
Parser<Node>
Overrides

getProcessor()

public String getProcessor()

Processor name refer to the chosen processor resource.

string processor = 4;

Returns
TypeDescription
String

The processor.

getProcessorBytes()

public ByteString getProcessorBytes()

Processor name refer to the chosen processor resource.

string processor = 4;

Returns
TypeDescription
ByteString

The bytes for processor.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStreamOutputConfigCase()

public Node.StreamOutputConfigCase getStreamOutputConfigCase()
Returns
TypeDescription
Node.StreamOutputConfigCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasNodeConfig()

public boolean hasNodeConfig()

Node config.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the outputAllOutputChannelsToStream field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Node.Builder newBuilderForType()
Returns
TypeDescription
Node.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Node.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Node.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Node.Builder toBuilder()
Returns
TypeDescription
Node.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException