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 Summary
Modifier and TypeMethodDescriptionaddAllEdges(Iterable<? extends ScriptEdge> values) The list of edges connecting nodes in this script.addAllNodes(Iterable<? extends ScriptNode> values) The list of nodes that make up this script's graph.addEdges(int index, ScriptEdge value) The list of edges connecting nodes in this script.addEdges(int index, ScriptEdge.Builder builderForValue) The list of edges connecting nodes in this script.addEdges(ScriptEdge value) The list of edges connecting nodes in this script.addEdges(ScriptEdge.Builder builderForValue) The list of edges connecting nodes in this script.The list of edges connecting nodes in this script.addEdgesBuilder(int index) The list of edges connecting nodes in this script.addNodes(int index, ScriptNode value) The list of nodes that make up this script's graph.addNodes(int index, ScriptNode.Builder builderForValue) The list of nodes that make up this script's graph.addNodes(ScriptNode value) The list of nodes that make up this script's graph.addNodes(ScriptNode.Builder builderForValue) The list of nodes that make up this script's graph.The list of nodes that make up this script's graph.addNodesBuilder(int index) The list of nodes that make up this script's graph.build()clear()Optional description explaining what the script does.The list of edges connecting nodes in this script.clearId()Unique identifier for this script.The instance this script belongs to.Human-readable name for the script.The list of nodes that make up this script's graph.Whether this script is paused (not running).Optional resource quotas for this script.Optional description explaining what the script does.com.google.protobuf.ByteStringOptional description explaining what the script does.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEdges(int index) The list of edges connecting nodes in this script.getEdgesBuilder(int index) The list of edges connecting nodes in this script.The list of edges connecting nodes in this script.intThe list of edges connecting nodes in this script.The list of edges connecting nodes in this script.getEdgesOrBuilder(int index) The list of edges connecting nodes in this script.List<? extends ScriptEdgeOrBuilder> The list of edges connecting nodes in this script.getId()Unique identifier for this script.com.google.protobuf.ByteStringUnique identifier for this script.The instance this script belongs to.com.google.protobuf.ByteStringThe instance this script belongs to.getName()Human-readable name for the script.com.google.protobuf.ByteStringHuman-readable name for the script.getNodes(int index) The list of nodes that make up this script's graph.getNodesBuilder(int index) The list of nodes that make up this script's graph.The list of nodes that make up this script's graph.intThe list of nodes that make up this script's graph.The list of nodes that make up this script's graph.getNodesOrBuilder(int index) The list of nodes that make up this script's graph.List<? extends ScriptNodeOrBuilder> The list of nodes that make up this script's graph.booleanWhether this script is paused (not running).Optional resource quotas for this script.Optional resource quotas for this script.Optional resource quotas for this script.booleanOptional resource quotas for this script.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ScriptData other) mergeQuotas(ScriptQuotas value) Optional resource quotas for this script.removeEdges(int index) The list of edges connecting nodes in this script.removeNodes(int index) The list of nodes that make up this script's graph.setDescription(String value) Optional description explaining what the script does.setDescriptionBytes(com.google.protobuf.ByteString value) Optional description explaining what the script does.setEdges(int index, ScriptEdge value) The list of edges connecting nodes in this script.setEdges(int index, ScriptEdge.Builder builderForValue) The list of edges connecting nodes in this script.Unique identifier for this script.setIdBytes(com.google.protobuf.ByteString value) Unique identifier for this script.setInstanceId(String value) The instance this script belongs to.setInstanceIdBytes(com.google.protobuf.ByteString value) The instance this script belongs to.Human-readable name for the script.setNameBytes(com.google.protobuf.ByteString value) Human-readable name for the script.setNodes(int index, ScriptNode value) The list of nodes that make up this script's graph.setNodes(int index, ScriptNode.Builder builderForValue) The list of nodes that make up this script's graph.setPaused(boolean value) Whether this script is paused (not running).setQuotas(ScriptQuotas value) Optional resource quotas for this script.setQuotas(ScriptQuotas.Builder builderForValue) Optional resource quotas for this script.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ScriptData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ScriptData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ScriptData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScriptData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScriptData.Builder>- Throws:
IOException
-
getId
Unique identifier for this script. Format: UUID string.
string id = 1;- Specified by:
getIdin interfaceScriptDataOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Unique identifier for this script. Format: UUID string.
string id = 1;- Specified by:
getIdBytesin interfaceScriptDataOrBuilder- Returns:
- The bytes for id.
-
setId
Unique identifier for this script. Format: UUID string.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Unique identifier for this script. Format: UUID string.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
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
Human-readable name for the script. Displayed in the UI and used for identification.
string name = 2;- Specified by:
getNamein interfaceScriptDataOrBuilder- 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:
getNameBytesin interfaceScriptDataOrBuilder- Returns:
- The bytes for name.
-
setName
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
Human-readable name for the script. Displayed in the UI and used for identification.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
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
Optional description explaining what the script does. Displayed in script listings and detail views.
string description = 3;- Specified by:
getDescriptionin interfaceScriptDataOrBuilder- 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:
getDescriptionBytesin interfaceScriptDataOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
Optional description explaining what the script does. Displayed in script listings and detail views.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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:
getNodesListin interfaceScriptDataOrBuilder
-
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:
getNodesCountin interfaceScriptDataOrBuilder
-
getNodes
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:
getNodesin interfaceScriptDataOrBuilder
-
setNodes
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
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
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
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
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
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
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
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
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
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
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:
getNodesOrBuilderin interfaceScriptDataOrBuilder
-
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:
getNodesOrBuilderListin interfaceScriptDataOrBuilder
-
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
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
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
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:
getEdgesListin interfaceScriptDataOrBuilder
-
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:
getEdgesCountin interfaceScriptDataOrBuilder
-
getEdges
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:
getEdgesin interfaceScriptDataOrBuilder
-
setEdges
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
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
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
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
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
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
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
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
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
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
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:
getEdgesOrBuilderin interfaceScriptDataOrBuilder
-
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:
getEdgesOrBuilderListin interfaceScriptDataOrBuilder
-
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
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
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
The instance this script belongs to. Scripts are always associated with a specific instance. Format: UUID string.
string instance_id = 7;- Specified by:
getInstanceIdin interfaceScriptDataOrBuilder- 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:
getInstanceIdBytesin interfaceScriptDataOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
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
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
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:
getPausedin interfaceScriptDataOrBuilder- Returns:
- The paused.
-
setPaused
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
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:
hasQuotasin interfaceScriptDataOrBuilder- Returns:
- Whether the quotas field is set.
-
getQuotas
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9;- Specified by:
getQuotasin interfaceScriptDataOrBuilder- Returns:
- The quotas.
-
setQuotas
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9; -
setQuotas
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9; -
mergeQuotas
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9; -
clearQuotas
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9; -
getQuotasBuilder
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9; -
getQuotasOrBuilder
Optional resource quotas for this script.
.soulfire.v1.ScriptQuotas quotas = 9;- Specified by:
getQuotasOrBuilderin interfaceScriptDataOrBuilder
-