Class ScriptData.Builder

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

public static final class ScriptData.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScriptData.Builder> implements ScriptDataOrBuilder
Complete data structure representing a visual script.
Contains all nodes, edges, and metadata needed to render and execute the script.
Protobuf type soulfire.v1.ScriptData
  • 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<ScriptData.Builder>
    • clear

      public ScriptData.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<ScriptData.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<ScriptData.Builder>
    • getDefaultInstanceForType

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

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

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

      public ScriptData.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<ScriptData.Builder>
    • mergeFrom

      public ScriptData.Builder mergeFrom(ScriptData other)
    • isInitialized

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

      public ScriptData.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<ScriptData.Builder>
      Throws:
      IOException
    • getId

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

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

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

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

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

      public String getName()
      Human-readable name for the script.
      Displayed in the UI and used for identification.
      
      string name = 2;
      Specified by:
      getName in interface ScriptDataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      Human-readable name for the script.
      Displayed in the UI and used for identification.
      
      string name = 2;
      Specified by:
      getNameBytes in interface ScriptDataOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ScriptData.Builder setName(String value)
      Human-readable name for the script.
      Displayed in the UI and used for identification.
      
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ScriptData.Builder clearName()
      Human-readable name for the script.
      Displayed in the UI and used for identification.
      
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ScriptData.Builder setNameBytes(com.google.protobuf.ByteString value)
      Human-readable name for the script.
      Displayed in the UI and used for identification.
      
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      Optional description explaining what the script does.
      Displayed in script listings and detail views.
      
      string description = 3;
      Specified by:
      getDescription in interface ScriptDataOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      Optional description explaining what the script does.
      Displayed in script listings and detail views.
      
      string description = 3;
      Specified by:
      getDescriptionBytes in interface ScriptDataOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ScriptData.Builder setDescription(String value)
      Optional description explaining what the script does.
      Displayed in script listings and detail views.
      
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ScriptData.Builder clearDescription()
      Optional description explaining what the script does.
      Displayed in script listings and detail views.
      
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ScriptData.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      Optional description explaining what the script does.
      Displayed in script listings and detail views.
      
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getNodesList

      public List<ScriptNode> getNodesList()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
      Specified by:
      getNodesList in interface ScriptDataOrBuilder
    • getNodesCount

      public int getNodesCount()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
      Specified by:
      getNodesCount in interface ScriptDataOrBuilder
    • getNodes

      public ScriptNode getNodes(int index)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
      Specified by:
      getNodes in interface ScriptDataOrBuilder
    • setNodes

      public ScriptData.Builder setNodes(int index, ScriptNode value)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • setNodes

      public ScriptData.Builder setNodes(int index, ScriptNode.Builder builderForValue)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addNodes

      public ScriptData.Builder addNodes(ScriptNode value)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addNodes

      public ScriptData.Builder addNodes(int index, ScriptNode value)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addNodes

      public ScriptData.Builder addNodes(ScriptNode.Builder builderForValue)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addNodes

      public ScriptData.Builder addNodes(int index, ScriptNode.Builder builderForValue)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addAllNodes

      public ScriptData.Builder addAllNodes(Iterable<? extends ScriptNode> values)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • clearNodes

      public ScriptData.Builder clearNodes()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • removeNodes

      public ScriptData.Builder removeNodes(int index)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • getNodesBuilder

      public ScriptNode.Builder getNodesBuilder(int index)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • getNodesOrBuilder

      public ScriptNodeOrBuilder getNodesOrBuilder(int index)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
      Specified by:
      getNodesOrBuilder in interface ScriptDataOrBuilder
    • getNodesOrBuilderList

      public List<? extends ScriptNodeOrBuilder> getNodesOrBuilderList()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
      Specified by:
      getNodesOrBuilderList in interface ScriptDataOrBuilder
    • addNodesBuilder

      public ScriptNode.Builder addNodesBuilder()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • addNodesBuilder

      public ScriptNode.Builder addNodesBuilder(int index)
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • getNodesBuilderList

      public List<ScriptNode.Builder> getNodesBuilderList()
      The list of nodes that make up this script's graph.
      Nodes are executed based on execution edge connections.
      
      repeated .soulfire.v1.ScriptNode nodes = 4;
    • getEdgesList

      public List<ScriptEdge> getEdgesList()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
      Specified by:
      getEdgesList in interface ScriptDataOrBuilder
    • getEdgesCount

      public int getEdgesCount()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
      Specified by:
      getEdgesCount in interface ScriptDataOrBuilder
    • getEdges

      public ScriptEdge getEdges(int index)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
      Specified by:
      getEdges in interface ScriptDataOrBuilder
    • setEdges

      public ScriptData.Builder setEdges(int index, ScriptEdge value)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • setEdges

      public ScriptData.Builder setEdges(int index, ScriptEdge.Builder builderForValue)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addEdges

      public ScriptData.Builder addEdges(ScriptEdge value)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addEdges

      public ScriptData.Builder addEdges(int index, ScriptEdge value)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addEdges

      public ScriptData.Builder addEdges(ScriptEdge.Builder builderForValue)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addEdges

      public ScriptData.Builder addEdges(int index, ScriptEdge.Builder builderForValue)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addAllEdges

      public ScriptData.Builder addAllEdges(Iterable<? extends ScriptEdge> values)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • clearEdges

      public ScriptData.Builder clearEdges()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • removeEdges

      public ScriptData.Builder removeEdges(int index)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • getEdgesBuilder

      public ScriptEdge.Builder getEdgesBuilder(int index)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • getEdgesOrBuilder

      public ScriptEdgeOrBuilder getEdgesOrBuilder(int index)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
      Specified by:
      getEdgesOrBuilder in interface ScriptDataOrBuilder
    • getEdgesOrBuilderList

      public List<? extends ScriptEdgeOrBuilder> getEdgesOrBuilderList()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
      Specified by:
      getEdgesOrBuilderList in interface ScriptDataOrBuilder
    • addEdgesBuilder

      public ScriptEdge.Builder addEdgesBuilder()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • addEdgesBuilder

      public ScriptEdge.Builder addEdgesBuilder(int index)
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • getEdgesBuilderList

      public List<ScriptEdge.Builder> getEdgesBuilderList()
      The list of edges connecting nodes in this script.
      Defines both execution flow and data transfer between nodes.
      
      repeated .soulfire.v1.ScriptEdge edges = 5;
    • getInstanceId

      public String getInstanceId()
      The instance this script belongs to.
      Scripts are always associated with a specific instance.
      Format: UUID string.
      
      string instance_id = 7;
      Specified by:
      getInstanceId in interface ScriptDataOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      The instance this script belongs to.
      Scripts are always associated with a specific instance.
      Format: UUID string.
      
      string instance_id = 7;
      Specified by:
      getInstanceIdBytes in interface ScriptDataOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public ScriptData.Builder setInstanceId(String value)
      The instance this script belongs to.
      Scripts are always associated with a specific instance.
      Format: UUID string.
      
      string instance_id = 7;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public ScriptData.Builder clearInstanceId()
      The instance this script belongs to.
      Scripts are always associated with a specific instance.
      Format: UUID string.
      
      string instance_id = 7;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public ScriptData.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      The instance this script belongs to.
      Scripts are always associated with a specific instance.
      Format: UUID string.
      
      string instance_id = 7;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getPaused

      public boolean getPaused()
      Whether this script is paused (not running).
      Scripts run by default. When paused, they won't be started on server startup
      or when created/updated.
      
      bool paused = 8;
      Specified by:
      getPaused in interface ScriptDataOrBuilder
      Returns:
      The paused.
    • setPaused

      public ScriptData.Builder setPaused(boolean value)
      Whether this script is paused (not running).
      Scripts run by default. When paused, they won't be started on server startup
      or when created/updated.
      
      bool paused = 8;
      Parameters:
      value - The paused to set.
      Returns:
      This builder for chaining.
    • clearPaused

      public ScriptData.Builder clearPaused()
      Whether this script is paused (not running).
      Scripts run by default. When paused, they won't be started on server startup
      or when created/updated.
      
      bool paused = 8;
      Returns:
      This builder for chaining.
    • hasQuotas

      public boolean hasQuotas()
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
      Specified by:
      hasQuotas in interface ScriptDataOrBuilder
      Returns:
      Whether the quotas field is set.
    • getQuotas

      public ScriptQuotas getQuotas()
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
      Specified by:
      getQuotas in interface ScriptDataOrBuilder
      Returns:
      The quotas.
    • setQuotas

      public ScriptData.Builder setQuotas(ScriptQuotas value)
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
    • setQuotas

      public ScriptData.Builder setQuotas(ScriptQuotas.Builder builderForValue)
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
    • mergeQuotas

      public ScriptData.Builder mergeQuotas(ScriptQuotas value)
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
    • clearQuotas

      public ScriptData.Builder clearQuotas()
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
    • getQuotasBuilder

      public ScriptQuotas.Builder getQuotasBuilder()
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
    • getQuotasOrBuilder

      public ScriptQuotasOrBuilder getQuotasOrBuilder()
      Optional resource quotas for this script.
      
      .soulfire.v1.ScriptQuotas quotas = 9;
      Specified by:
      getQuotasOrBuilder in interface ScriptDataOrBuilder