Class ScriptStatus.Builder

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

public static final class ScriptStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScriptStatus.Builder> implements ScriptStatusOrBuilder
Runtime status information for a script.
Provides information about current activation state and statistics.
Protobuf type soulfire.v1.ScriptStatus
  • 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<ScriptStatus.Builder>
    • clear

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

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

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

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

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

      public ScriptStatus.Builder mergeFrom(ScriptStatus other)
    • isInitialized

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

      public ScriptStatus.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<ScriptStatus.Builder>
      Throws:
      IOException
    • getScriptId

      public String getScriptId()
      The script this status applies to.
      Format: UUID string.
      
      string script_id = 1;
      Specified by:
      getScriptId in interface ScriptStatusOrBuilder
      Returns:
      The scriptId.
    • getScriptIdBytes

      public com.google.protobuf.ByteString getScriptIdBytes()
      The script this status applies to.
      Format: UUID string.
      
      string script_id = 1;
      Specified by:
      getScriptIdBytes in interface ScriptStatusOrBuilder
      Returns:
      The bytes for scriptId.
    • setScriptId

      public ScriptStatus.Builder setScriptId(String value)
      The script this status applies to.
      Format: UUID string.
      
      string script_id = 1;
      Parameters:
      value - The scriptId to set.
      Returns:
      This builder for chaining.
    • clearScriptId

      public ScriptStatus.Builder clearScriptId()
      The script this status applies to.
      Format: UUID string.
      
      string script_id = 1;
      Returns:
      This builder for chaining.
    • setScriptIdBytes

      public ScriptStatus.Builder setScriptIdBytes(com.google.protobuf.ByteString value)
      The script this status applies to.
      Format: UUID string.
      
      string script_id = 1;
      Parameters:
      value - The bytes for scriptId to set.
      Returns:
      This builder for chaining.
    • getIsActive

      public boolean getIsActive()
      Whether the script is currently active (listening for triggers).
      
      bool is_active = 2;
      Specified by:
      getIsActive in interface ScriptStatusOrBuilder
      Returns:
      The isActive.
    • setIsActive

      public ScriptStatus.Builder setIsActive(boolean value)
      Whether the script is currently active (listening for triggers).
      
      bool is_active = 2;
      Parameters:
      value - The isActive to set.
      Returns:
      This builder for chaining.
    • clearIsActive

      public ScriptStatus.Builder clearIsActive()
      Whether the script is currently active (listening for triggers).
      
      bool is_active = 2;
      Returns:
      This builder for chaining.
    • hasActiveNodeId

      public boolean hasActiveNodeId()
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Specified by:
      hasActiveNodeId in interface ScriptStatusOrBuilder
      Returns:
      Whether the activeNodeId field is set.
    • getActiveNodeId

      public String getActiveNodeId()
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Specified by:
      getActiveNodeId in interface ScriptStatusOrBuilder
      Returns:
      The activeNodeId.
    • getActiveNodeIdBytes

      public com.google.protobuf.ByteString getActiveNodeIdBytes()
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Specified by:
      getActiveNodeIdBytes in interface ScriptStatusOrBuilder
      Returns:
      The bytes for activeNodeId.
    • setActiveNodeId

      public ScriptStatus.Builder setActiveNodeId(String value)
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Parameters:
      value - The activeNodeId to set.
      Returns:
      This builder for chaining.
    • clearActiveNodeId

      public ScriptStatus.Builder clearActiveNodeId()
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Returns:
      This builder for chaining.
    • setActiveNodeIdBytes

      public ScriptStatus.Builder setActiveNodeIdBytes(com.google.protobuf.ByteString value)
      The ID of the currently executing node, if any.
      Only present when a node is actively executing.
      
      optional string active_node_id = 3;
      Parameters:
      value - The bytes for activeNodeId to set.
      Returns:
      This builder for chaining.
    • getActivationCount

      public long getActivationCount()
      The total number of times this script has been activated.
      Incremented each time ActivateScript is called.
      
      int64 activation_count = 4;
      Specified by:
      getActivationCount in interface ScriptStatusOrBuilder
      Returns:
      The activationCount.
    • setActivationCount

      public ScriptStatus.Builder setActivationCount(long value)
      The total number of times this script has been activated.
      Incremented each time ActivateScript is called.
      
      int64 activation_count = 4;
      Parameters:
      value - The activationCount to set.
      Returns:
      This builder for chaining.
    • clearActivationCount

      public ScriptStatus.Builder clearActivationCount()
      The total number of times this script has been activated.
      Incremented each time ActivateScript is called.
      
      int64 activation_count = 4;
      Returns:
      This builder for chaining.