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 ClassesModifier and TypeClassDescriptionstatic final classRepresents 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsData(String key) Configuration data for this node instance.booleanbooleanWhether this node is collapsed (showing only header).getContainedNodes(int index) For frame nodes: IDs of nodes contained within this frame.com.google.protobuf.ByteStringgetContainedNodesBytes(int index) For frame nodes: IDs of nodes contained within this frame.intFor frame nodes: IDs of nodes contained within this frame.com.google.protobuf.ProtocolStringListFor frame nodes: IDs of nodes contained within this frame.getData()Deprecated.intConfiguration data for this node instance.Configuration data for this node instance.com.google.protobuf.ValuegetDataOrDefault(String key, com.google.protobuf.Value defaultValue) Configuration data for this node instance.com.google.protobuf.ValuegetDataOrThrow(String key) Configuration data for this node instance.static ScriptNodestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleFor frame nodes: the height of the frame.getId()Unique identifier for this node within the script.com.google.protobuf.ByteStringUnique identifier for this node within the script.getLabel()Optional label override for this node instance.com.google.protobuf.ByteStringOptional label override for this node instance.booleangetMuted()Whether this node is muted (bypassed during execution).Parent frame node ID, if this node is inside a frame.com.google.protobuf.ByteStringParent 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.intFor reroute nodes: the resolved port type based on connections.intgetType()The type identifier for this node, determining its behavior and available ports.com.google.protobuf.ByteStringThe type identifier for this node, determining its behavior and available ports.doublegetWidth()For frame nodes: the width of the frame.inthashCode()booleanFor frame nodes: the height of the frame.booleanThe visual position of this node on the editor canvas.booleanFor reroute nodes: the resolved port type based on connections.booleanhasWidth()For frame nodes: the width of the frame.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ScriptNode.Builderstatic ScriptNode.BuildernewBuilder(ScriptNode prototype) protected ScriptNode.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ScriptNodeparseDelimitedFrom(InputStream input) static ScriptNodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScriptNodeparseFrom(byte[] data) static ScriptNodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScriptNodeparseFrom(com.google.protobuf.ByteString data) static ScriptNodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScriptNodeparseFrom(com.google.protobuf.CodedInputStream input) static ScriptNodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScriptNodeparseFrom(InputStream input) static ScriptNodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScriptNodeparseFrom(ByteBuffer data) static ScriptNodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ScriptNode> parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER- See Also:
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER- See Also:
-
MUTED_FIELD_NUMBER
public static final int MUTED_FIELD_NUMBER- See Also:
-
COLLAPSED_FIELD_NUMBER
public static final int COLLAPSED_FIELD_NUMBER- See Also:
-
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER- See Also:
-
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER- See Also:
-
CONTAINED_NODES_FIELD_NUMBER
public static final int CONTAINED_NODES_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
RESOLVED_TYPE_FIELD_NUMBER
public static final int RESOLVED_TYPE_FIELD_NUMBER- See Also:
-
PARENT_FRAME_ID_FIELD_NUMBER
public static final int PARENT_FRAME_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
getIdin interfaceScriptNodeOrBuilder- 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:
getIdBytesin interfaceScriptNodeOrBuilder- Returns:
- The bytes for id.
-
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:
getTypein interfaceScriptNodeOrBuilder- 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:
getTypeBytesin interfaceScriptNodeOrBuilder- 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:
hasPositionin interfaceScriptNodeOrBuilder- Returns:
- Whether the position field is set.
-
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:
getPositionin interfaceScriptNodeOrBuilder- Returns:
- The position.
-
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:
getPositionOrBuilderin interfaceScriptNodeOrBuilder
-
getDataCount
public int getDataCount()Description copied from interface:ScriptNodeOrBuilderConfiguration 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:
getDataCountin interfaceScriptNodeOrBuilder
-
containsData
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:
containsDatain interfaceScriptNodeOrBuilder
-
getData
-
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:
getDataMapin interfaceScriptNodeOrBuilder
-
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:
getDataOrDefaultin interfaceScriptNodeOrBuilder
-
getDataOrThrow
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:
getDataOrThrowin interfaceScriptNodeOrBuilder
-
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:
getMutedin interfaceScriptNodeOrBuilder- 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:
getCollapsedin interfaceScriptNodeOrBuilder- Returns:
- The collapsed.
-
hasWidth
public boolean hasWidth()For frame nodes: the width of the frame.
optional double width = 7;- Specified by:
hasWidthin interfaceScriptNodeOrBuilder- 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:
getWidthin interfaceScriptNodeOrBuilder- Returns:
- The width.
-
hasHeight
public boolean hasHeight()For frame nodes: the height of the frame.
optional double height = 8;- Specified by:
hasHeightin interfaceScriptNodeOrBuilder- 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:
getHeightin interfaceScriptNodeOrBuilder- 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:
getContainedNodesListin interfaceScriptNodeOrBuilder- 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:
getContainedNodesCountin interfaceScriptNodeOrBuilder- Returns:
- The count of containedNodes.
-
getContainedNodes
For frame nodes: IDs of nodes contained within this frame. Updated automatically based on node positions.
repeated string contained_nodes = 9;- Specified by:
getContainedNodesin interfaceScriptNodeOrBuilder- 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:
getContainedNodesBytesin interfaceScriptNodeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the containedNodes at the given index.
-
getLabel
Optional label override for this node instance. If set, displayed instead of the node type's default label.
string label = 10;- Specified by:
getLabelin interfaceScriptNodeOrBuilder- 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:
getLabelBytesin interfaceScriptNodeOrBuilder- 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:
hasResolvedTypein interfaceScriptNodeOrBuilder- 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:
getResolvedTypeValuein interfaceScriptNodeOrBuilder- Returns:
- The enum numeric value on the wire for resolvedType.
-
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:
getResolvedTypein interfaceScriptNodeOrBuilder- Returns:
- The resolvedType.
-
getParentFrameId
Parent frame node ID, if this node is inside a frame.
string parent_frame_id = 12;- Specified by:
getParentFrameIdin interfaceScriptNodeOrBuilder- 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:
getParentFrameIdBytesin interfaceScriptNodeOrBuilder- Returns:
- The bytes for parentFrameId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static ScriptNode parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ScriptNode parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScriptNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScriptNode.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-