Class ScriptNode

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ScriptNode
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ScriptNodeOrBuilder, Serializable

@Generated public final class ScriptNode extends com.google.protobuf.GeneratedMessage implements ScriptNodeOrBuilder
Represents a single node in the visual script graph.
Nodes are the building blocks of scripts, each performing a specific action
or computation when executed.
Protobuf type soulfire.v1.ScriptNode
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a single node in the visual script graph.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Configuration data for this node instance.
    boolean
     
    boolean
    Whether this node is collapsed (showing only header).
    getContainedNodes(int index)
    For frame nodes: IDs of nodes contained within this frame.
    com.google.protobuf.ByteString
    For frame nodes: IDs of nodes contained within this frame.
    int
    For frame nodes: IDs of nodes contained within this frame.
    com.google.protobuf.ProtocolStringList
    For frame nodes: IDs of nodes contained within this frame.
    Map<String, com.google.protobuf.Value>
    Deprecated.
    int
    Configuration data for this node instance.
    Map<String, com.google.protobuf.Value>
    Configuration data for this node instance.
    com.google.protobuf.Value
    getDataOrDefault(String key, com.google.protobuf.Value defaultValue)
    Configuration data for this node instance.
    com.google.protobuf.Value
    Configuration data for this node instance.
    static ScriptNode
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    For frame nodes: the height of the frame.
    Unique identifier for this node within the script.
    com.google.protobuf.ByteString
    Unique identifier for this node within the script.
    Optional label override for this node instance.
    com.google.protobuf.ByteString
    Optional label override for this node instance.
    boolean
    Whether this node is muted (bypassed during execution).
    Parent frame node ID, if this node is inside a frame.
    com.google.protobuf.ByteString
    Parent frame node ID, if this node is inside a frame.
    com.google.protobuf.Parser<ScriptNode>
     
    The visual position of this node on the editor canvas.
    The visual position of this node on the editor canvas.
    For reroute nodes: the resolved port type based on connections.
    int
    For reroute nodes: the resolved port type based on connections.
    int
     
    The type identifier for this node, determining its behavior and available ports.
    com.google.protobuf.ByteString
    The type identifier for this node, determining its behavior and available ports.
    double
    For frame nodes: the width of the frame.
    int
     
    boolean
    For frame nodes: the height of the frame.
    boolean
    The visual position of this node on the editor canvas.
    boolean
    For reroute nodes: the resolved port type based on connections.
    boolean
    For frame nodes: the width of the frame.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static ScriptNode
     
    static ScriptNode
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ScriptNode
    parseFrom(byte[] data)
     
    static ScriptNode
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ScriptNode
    parseFrom(com.google.protobuf.ByteString data)
     
    static ScriptNode
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ScriptNode
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static ScriptNode
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ScriptNode
     
    static ScriptNode
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ScriptNode
     
    static ScriptNode
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ScriptNode>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getId

      public String getId()
      Unique identifier for this node within the script.
      Used to reference this node in edges and during execution tracking.
      Format: UUID string.
      
      string id = 1;
      Specified by:
      getId in interface ScriptNodeOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      Unique identifier for this node within the script.
      Used to reference this node in edges and during execution tracking.
      Format: UUID string.
      
      string id = 1;
      Specified by:
      getIdBytes in interface ScriptNodeOrBuilder
      Returns:
      The bytes for id.
    • getType

      public String getType()
      The type identifier for this node, determining its behavior and available ports.
      Examples: "trigger.on_chat", "action.send_message", "control.delay", "logic.condition".
      
      string type = 2;
      Specified by:
      getType in interface ScriptNodeOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      The type identifier for this node, determining its behavior and available ports.
      Examples: "trigger.on_chat", "action.send_message", "control.delay", "logic.condition".
      
      string type = 2;
      Specified by:
      getTypeBytes in interface ScriptNodeOrBuilder
      Returns:
      The bytes for type.
    • hasPosition

      public boolean hasPosition()
      The visual position of this node on the editor canvas.
      Persisted to maintain the user's layout when reopening the script.
      
      .soulfire.v1.Position position = 3;
      Specified by:
      hasPosition in interface ScriptNodeOrBuilder
      Returns:
      Whether the position field is set.
    • getPosition

      public Position getPosition()
      The visual position of this node on the editor canvas.
      Persisted to maintain the user's layout when reopening the script.
      
      .soulfire.v1.Position position = 3;
      Specified by:
      getPosition in interface ScriptNodeOrBuilder
      Returns:
      The position.
    • getPositionOrBuilder

      public PositionOrBuilder getPositionOrBuilder()
      The visual position of this node on the editor canvas.
      Persisted to maintain the user's layout when reopening the script.
      
      .soulfire.v1.Position position = 3;
      Specified by:
      getPositionOrBuilder in interface ScriptNodeOrBuilder
    • getDataCount

      public int getDataCount()
      Description copied from interface: ScriptNodeOrBuilder
      Configuration data for this node instance.
      Contains node-specific settings and parameter values.
      The structure depends on the node type.
      
      map<string, .google.protobuf.Value> data = 4;
      Specified by:
      getDataCount in interface ScriptNodeOrBuilder
    • containsData

      public boolean containsData(String key)
      Configuration data for this node instance.
      Contains node-specific settings and parameter values.
      The structure depends on the node type.
      
      map<string, .google.protobuf.Value> data = 4;
      Specified by:
      containsData in interface ScriptNodeOrBuilder
    • getData

      @Deprecated public Map<String, com.google.protobuf.Value> getData()
      Deprecated.
      Use getDataMap() instead.
      Specified by:
      getData in interface ScriptNodeOrBuilder
    • getDataMap

      public Map<String, com.google.protobuf.Value> getDataMap()
      Configuration data for this node instance.
      Contains node-specific settings and parameter values.
      The structure depends on the node type.
      
      map<string, .google.protobuf.Value> data = 4;
      Specified by:
      getDataMap in interface ScriptNodeOrBuilder
    • getDataOrDefault

      public com.google.protobuf.Value getDataOrDefault(String key, com.google.protobuf.Value defaultValue)
      Configuration data for this node instance.
      Contains node-specific settings and parameter values.
      The structure depends on the node type.
      
      map<string, .google.protobuf.Value> data = 4;
      Specified by:
      getDataOrDefault in interface ScriptNodeOrBuilder
    • getDataOrThrow

      public com.google.protobuf.Value getDataOrThrow(String key)
      Configuration data for this node instance.
      Contains node-specific settings and parameter values.
      The structure depends on the node type.
      
      map<string, .google.protobuf.Value> data = 4;
      Specified by:
      getDataOrThrow in interface ScriptNodeOrBuilder
    • getMuted

      public boolean getMuted()
      Whether this node is muted (bypassed during execution).
      When muted, the node passes inputs directly to outputs without processing.
      Visually shown as grayed out with pass-through indicator.
      
      bool muted = 5;
      Specified by:
      getMuted in interface ScriptNodeOrBuilder
      Returns:
      The muted.
    • getCollapsed

      public boolean getCollapsed()
      Whether this node is collapsed (showing only header).
      Collapsed nodes still function normally but take less visual space.
      
      bool collapsed = 6;
      Specified by:
      getCollapsed in interface ScriptNodeOrBuilder
      Returns:
      The collapsed.
    • hasWidth

      public boolean hasWidth()
      For frame nodes: the width of the frame.
      
      optional double width = 7;
      Specified by:
      hasWidth in interface ScriptNodeOrBuilder
      Returns:
      Whether the width field is set.
    • getWidth

      public double getWidth()
      For frame nodes: the width of the frame.
      
      optional double width = 7;
      Specified by:
      getWidth in interface ScriptNodeOrBuilder
      Returns:
      The width.
    • hasHeight

      public boolean hasHeight()
      For frame nodes: the height of the frame.
      
      optional double height = 8;
      Specified by:
      hasHeight in interface ScriptNodeOrBuilder
      Returns:
      Whether the height field is set.
    • getHeight

      public double getHeight()
      For frame nodes: the height of the frame.
      
      optional double height = 8;
      Specified by:
      getHeight in interface ScriptNodeOrBuilder
      Returns:
      The height.
    • getContainedNodesList

      public com.google.protobuf.ProtocolStringList getContainedNodesList()
      For frame nodes: IDs of nodes contained within this frame.
      Updated automatically based on node positions.
      
      repeated string contained_nodes = 9;
      Specified by:
      getContainedNodesList in interface ScriptNodeOrBuilder
      Returns:
      A list containing the containedNodes.
    • getContainedNodesCount

      public int getContainedNodesCount()
      For frame nodes: IDs of nodes contained within this frame.
      Updated automatically based on node positions.
      
      repeated string contained_nodes = 9;
      Specified by:
      getContainedNodesCount in interface ScriptNodeOrBuilder
      Returns:
      The count of containedNodes.
    • getContainedNodes

      public String getContainedNodes(int index)
      For frame nodes: IDs of nodes contained within this frame.
      Updated automatically based on node positions.
      
      repeated string contained_nodes = 9;
      Specified by:
      getContainedNodes in interface ScriptNodeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The containedNodes at the given index.
    • getContainedNodesBytes

      public com.google.protobuf.ByteString getContainedNodesBytes(int index)
      For frame nodes: IDs of nodes contained within this frame.
      Updated automatically based on node positions.
      
      repeated string contained_nodes = 9;
      Specified by:
      getContainedNodesBytes in interface ScriptNodeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the containedNodes at the given index.
    • getLabel

      public String getLabel()
      Optional label override for this node instance.
      If set, displayed instead of the node type's default label.
      
      string label = 10;
      Specified by:
      getLabel in interface ScriptNodeOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
      Optional label override for this node instance.
      If set, displayed instead of the node type's default label.
      
      string label = 10;
      Specified by:
      getLabelBytes in interface ScriptNodeOrBuilder
      Returns:
      The bytes for label.
    • hasResolvedType

      public boolean hasResolvedType()
      For reroute nodes: the resolved port type based on connections.
      Dynamically updated when connections change.
      
      optional .soulfire.v1.PortType resolved_type = 11;
      Specified by:
      hasResolvedType in interface ScriptNodeOrBuilder
      Returns:
      Whether the resolvedType field is set.
    • getResolvedTypeValue

      public int getResolvedTypeValue()
      For reroute nodes: the resolved port type based on connections.
      Dynamically updated when connections change.
      
      optional .soulfire.v1.PortType resolved_type = 11;
      Specified by:
      getResolvedTypeValue in interface ScriptNodeOrBuilder
      Returns:
      The enum numeric value on the wire for resolvedType.
    • getResolvedType

      public PortType getResolvedType()
      For reroute nodes: the resolved port type based on connections.
      Dynamically updated when connections change.
      
      optional .soulfire.v1.PortType resolved_type = 11;
      Specified by:
      getResolvedType in interface ScriptNodeOrBuilder
      Returns:
      The resolvedType.
    • getParentFrameId

      public String getParentFrameId()
      Parent frame node ID, if this node is inside a frame.
      
      string parent_frame_id = 12;
      Specified by:
      getParentFrameId in interface ScriptNodeOrBuilder
      Returns:
      The parentFrameId.
    • getParentFrameIdBytes

      public com.google.protobuf.ByteString getParentFrameIdBytes()
      Parent frame node ID, if this node is inside a frame.
      
      string parent_frame_id = 12;
      Specified by:
      getParentFrameIdBytes in interface ScriptNodeOrBuilder
      Returns:
      The bytes for parentFrameId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ScriptNode parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ScriptNode parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScriptNode parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ScriptNode parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ScriptNode parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScriptNode parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ScriptNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ScriptNode.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ScriptNode.Builder newBuilder()
    • newBuilder

      public static ScriptNode.Builder newBuilder(ScriptNode prototype)
    • toBuilder

      public ScriptNode.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ScriptNode.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ScriptNode getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ScriptNode> parser()
    • getParserForType

      public com.google.protobuf.Parser<ScriptNode> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ScriptNode getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder