Class ScriptEdge.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ScriptEdge.Builder>
com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder>
com.soulfiremc.grpc.generated.ScriptEdge.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ScriptEdgeOrBuilder, Cloneable
Enclosing class:
ScriptEdge

public static final class ScriptEdge.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder> implements ScriptEdgeOrBuilder
Represents a connection between two nodes in the visual script graph.
Edges define how execution flows and how data passes between nodes.
Protobuf type soulfire.v1.ScriptEdge
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder>
    • clear

      public ScriptEdge.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder>
    • getDefaultInstanceForType

      public ScriptEdge getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ScriptEdge build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ScriptEdge buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ScriptEdge.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScriptEdge.Builder>
    • mergeFrom

      public ScriptEdge.Builder mergeFrom(ScriptEdge other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ScriptEdge.Builder>
    • mergeFrom

      public ScriptEdge.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScriptEdge.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      Unique identifier for this edge within the script.
      Format: UUID string.
      
      string id = 1;
      Specified by:
      getId in interface ScriptEdgeOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      Unique identifier for this edge within the script.
      Format: UUID string.
      
      string id = 1;
      Specified by:
      getIdBytes in interface ScriptEdgeOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ScriptEdge.Builder setId(String value)
      Unique identifier for this edge within the script.
      Format: UUID string.
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ScriptEdge.Builder clearId()
      Unique identifier for this edge within the script.
      Format: UUID string.
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ScriptEdge.Builder setIdBytes(com.google.protobuf.ByteString value)
      Unique identifier for this edge within the script.
      Format: UUID string.
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getSource

      public String getSource()
      The ID of the source node where this edge originates.
      Must reference a valid node ID in the script's nodes list.
      
      string source = 2;
      Specified by:
      getSource in interface ScriptEdgeOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
      The ID of the source node where this edge originates.
      Must reference a valid node ID in the script's nodes list.
      
      string source = 2;
      Specified by:
      getSourceBytes in interface ScriptEdgeOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public ScriptEdge.Builder setSource(String value)
      The ID of the source node where this edge originates.
      Must reference a valid node ID in the script's nodes list.
      
      string source = 2;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public ScriptEdge.Builder clearSource()
      The ID of the source node where this edge originates.
      Must reference a valid node ID in the script's nodes list.
      
      string source = 2;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public ScriptEdge.Builder setSourceBytes(com.google.protobuf.ByteString value)
      The ID of the source node where this edge originates.
      Must reference a valid node ID in the script's nodes list.
      
      string source = 2;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • getSourceHandle

      public String getSourceHandle()
      The handle/port identifier on the source node.
      Identifies which output port of the source node this edge connects from.
      Examples: "exec_out", "value", "true", "false".
      
      string source_handle = 3;
      Specified by:
      getSourceHandle in interface ScriptEdgeOrBuilder
      Returns:
      The sourceHandle.
    • getSourceHandleBytes

      public com.google.protobuf.ByteString getSourceHandleBytes()
      The handle/port identifier on the source node.
      Identifies which output port of the source node this edge connects from.
      Examples: "exec_out", "value", "true", "false".
      
      string source_handle = 3;
      Specified by:
      getSourceHandleBytes in interface ScriptEdgeOrBuilder
      Returns:
      The bytes for sourceHandle.
    • setSourceHandle

      public ScriptEdge.Builder setSourceHandle(String value)
      The handle/port identifier on the source node.
      Identifies which output port of the source node this edge connects from.
      Examples: "exec_out", "value", "true", "false".
      
      string source_handle = 3;
      Parameters:
      value - The sourceHandle to set.
      Returns:
      This builder for chaining.
    • clearSourceHandle

      public ScriptEdge.Builder clearSourceHandle()
      The handle/port identifier on the source node.
      Identifies which output port of the source node this edge connects from.
      Examples: "exec_out", "value", "true", "false".
      
      string source_handle = 3;
      Returns:
      This builder for chaining.
    • setSourceHandleBytes

      public ScriptEdge.Builder setSourceHandleBytes(com.google.protobuf.ByteString value)
      The handle/port identifier on the source node.
      Identifies which output port of the source node this edge connects from.
      Examples: "exec_out", "value", "true", "false".
      
      string source_handle = 3;
      Parameters:
      value - The bytes for sourceHandle to set.
      Returns:
      This builder for chaining.
    • getTarget

      public String getTarget()
      The ID of the target node where this edge terminates.
      Must reference a valid node ID in the script's nodes list.
      
      string target = 4;
      Specified by:
      getTarget in interface ScriptEdgeOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
      The ID of the target node where this edge terminates.
      Must reference a valid node ID in the script's nodes list.
      
      string target = 4;
      Specified by:
      getTargetBytes in interface ScriptEdgeOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public ScriptEdge.Builder setTarget(String value)
      The ID of the target node where this edge terminates.
      Must reference a valid node ID in the script's nodes list.
      
      string target = 4;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public ScriptEdge.Builder clearTarget()
      The ID of the target node where this edge terminates.
      Must reference a valid node ID in the script's nodes list.
      
      string target = 4;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public ScriptEdge.Builder setTargetBytes(com.google.protobuf.ByteString value)
      The ID of the target node where this edge terminates.
      Must reference a valid node ID in the script's nodes list.
      
      string target = 4;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • getTargetHandle

      public String getTargetHandle()
      The handle/port identifier on the target node.
      Identifies which input port of the target node this edge connects to.
      Examples: "exec_in", "message", "condition".
      
      string target_handle = 5;
      Specified by:
      getTargetHandle in interface ScriptEdgeOrBuilder
      Returns:
      The targetHandle.
    • getTargetHandleBytes

      public com.google.protobuf.ByteString getTargetHandleBytes()
      The handle/port identifier on the target node.
      Identifies which input port of the target node this edge connects to.
      Examples: "exec_in", "message", "condition".
      
      string target_handle = 5;
      Specified by:
      getTargetHandleBytes in interface ScriptEdgeOrBuilder
      Returns:
      The bytes for targetHandle.
    • setTargetHandle

      public ScriptEdge.Builder setTargetHandle(String value)
      The handle/port identifier on the target node.
      Identifies which input port of the target node this edge connects to.
      Examples: "exec_in", "message", "condition".
      
      string target_handle = 5;
      Parameters:
      value - The targetHandle to set.
      Returns:
      This builder for chaining.
    • clearTargetHandle

      public ScriptEdge.Builder clearTargetHandle()
      The handle/port identifier on the target node.
      Identifies which input port of the target node this edge connects to.
      Examples: "exec_in", "message", "condition".
      
      string target_handle = 5;
      Returns:
      This builder for chaining.
    • setTargetHandleBytes

      public ScriptEdge.Builder setTargetHandleBytes(com.google.protobuf.ByteString value)
      The handle/port identifier on the target node.
      Identifies which input port of the target node this edge connects to.
      Examples: "exec_in", "message", "condition".
      
      string target_handle = 5;
      Parameters:
      value - The bytes for targetHandle to set.
      Returns:
      This builder for chaining.
    • getEdgeTypeValue

      public int getEdgeTypeValue()
      The type of this edge, determining whether it carries execution flow or data.
      
      .soulfire.v1.EdgeType edge_type = 6;
      Specified by:
      getEdgeTypeValue in interface ScriptEdgeOrBuilder
      Returns:
      The enum numeric value on the wire for edgeType.
    • setEdgeTypeValue

      public ScriptEdge.Builder setEdgeTypeValue(int value)
      The type of this edge, determining whether it carries execution flow or data.
      
      .soulfire.v1.EdgeType edge_type = 6;
      Parameters:
      value - The enum numeric value on the wire for edgeType to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getEdgeType

      public EdgeType getEdgeType()
      The type of this edge, determining whether it carries execution flow or data.
      
      .soulfire.v1.EdgeType edge_type = 6;
      Specified by:
      getEdgeType in interface ScriptEdgeOrBuilder
      Returns:
      The edgeType.
    • setEdgeType

      public ScriptEdge.Builder setEdgeType(EdgeType value)
      The type of this edge, determining whether it carries execution flow or data.
      
      .soulfire.v1.EdgeType edge_type = 6;
      Parameters:
      value - The edgeType to set.
      Returns:
      This builder for chaining.
    • clearEdgeType

      public ScriptEdge.Builder clearEdgeType()
      The type of this edge, determining whether it carries execution flow or data.
      
      .soulfire.v1.EdgeType edge_type = 6;
      Returns:
      This builder for chaining.