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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The total number of times this script has been activated.The ID of the currently executing node, if any.Whether the script is currently active (listening for triggers).The script this status applies to.longThe total number of times this script has been activated.The ID of the currently executing node, if any.com.google.protobuf.ByteStringThe ID of the currently executing node, if any.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether the script is currently active (listening for triggers).The script this status applies to.com.google.protobuf.ByteStringThe script this status applies to.booleanThe ID of the currently executing node, if any.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ScriptStatus other) setActivationCount(long value) The total number of times this script has been activated.setActiveNodeId(String value) The ID of the currently executing node, if any.setActiveNodeIdBytes(com.google.protobuf.ByteString value) The ID of the currently executing node, if any.setIsActive(boolean value) Whether the script is currently active (listening for triggers).setScriptId(String value) The script this status applies to.setScriptIdBytes(com.google.protobuf.ByteString value) The script this status applies to.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<ScriptStatus.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<ScriptStatus.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<ScriptStatus.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<ScriptStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScriptStatus.Builder>- Throws:
IOException
-
getScriptId
The script this status applies to. Format: UUID string.
string script_id = 1;- Specified by:
getScriptIdin interfaceScriptStatusOrBuilder- 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:
getScriptIdBytesin interfaceScriptStatusOrBuilder- Returns:
- The bytes for scriptId.
-
setScriptId
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
The script this status applies to. Format: UUID string.
string script_id = 1;- Returns:
- This builder for chaining.
-
setScriptIdBytes
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:
getIsActivein interfaceScriptStatusOrBuilder- Returns:
- The isActive.
-
setIsActive
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
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:
hasActiveNodeIdin interfaceScriptStatusOrBuilder- Returns:
- Whether the activeNodeId field is set.
-
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:
getActiveNodeIdin interfaceScriptStatusOrBuilder- 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:
getActiveNodeIdBytesin interfaceScriptStatusOrBuilder- Returns:
- The bytes for activeNodeId.
-
setActiveNodeId
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
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
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:
getActivationCountin interfaceScriptStatusOrBuilder- Returns:
- The activationCount.
-
setActivationCount
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
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.
-