Class CommandScope.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CommandScope.Builder>
com.google.protobuf.GeneratedMessage.Builder<CommandScope.Builder>
com.soulfiremc.grpc.generated.CommandScope.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommandScopeOrBuilder, Cloneable
- Enclosing class:
CommandScope
public static final class CommandScope.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CommandScope.Builder>
implements CommandScopeOrBuilder
Defines the execution context for a command, determining which instances and bots the command can affect. The scope also determines required permissions.Protobuf type
soulfire.v1.CommandScope-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearBot()Execute command restricted to a specific bot within an instance.Execute command with global (unrestricted) access to all instances and bots.Execute command restricted to a specific instance and its bots.getBot()Execute command restricted to a specific bot within an instance.Execute command restricted to a specific bot within an instance.Execute command restricted to a specific bot within an instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExecute command with global (unrestricted) access to all instances and bots.Execute command with global (unrestricted) access to all instances and bots.Execute command with global (unrestricted) access to all instances and bots.Execute command restricted to a specific instance and its bots.Execute command restricted to a specific instance and its bots.Execute command restricted to a specific instance and its bots.booleanhasBot()Execute command restricted to a specific bot within an instance.booleanExecute command with global (unrestricted) access to all instances and bots.booleanExecute command restricted to a specific instance and its bots.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBot(BotCommandScope value) Execute command restricted to a specific bot within an instance.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CommandScope other) mergeGlobal(GlobalCommandScope value) Execute command with global (unrestricted) access to all instances and bots.Execute command restricted to a specific instance and its bots.setBot(BotCommandScope value) Execute command restricted to a specific bot within an instance.setBot(BotCommandScope.Builder builderForValue) Execute command restricted to a specific bot within an instance.setGlobal(GlobalCommandScope value) Execute command with global (unrestricted) access to all instances and bots.setGlobal(GlobalCommandScope.Builder builderForValue) Execute command with global (unrestricted) access to all instances and bots.setInstance(InstanceCommandScope value) Execute command restricted to a specific instance and its bots.setInstance(InstanceCommandScope.Builder builderForValue) Execute command restricted to a specific instance and its bots.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<CommandScope.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<CommandScope.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<CommandScope.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<CommandScope.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommandScope.Builder>
-
mergeFrom
public CommandScope.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<CommandScope.Builder>- Throws:
IOException
-
getScopeCase
- Specified by:
getScopeCasein interfaceCommandScopeOrBuilder
-
clearScope
-
hasGlobal
public boolean hasGlobal()Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1;- Specified by:
hasGlobalin interfaceCommandScopeOrBuilder- Returns:
- Whether the global field is set.
-
getGlobal
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1;- Specified by:
getGlobalin interfaceCommandScopeOrBuilder- Returns:
- The global.
-
setGlobal
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1; -
setGlobal
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1; -
mergeGlobal
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1; -
clearGlobal
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1; -
getGlobalBuilder
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1; -
getGlobalOrBuilder
Execute command with global (unrestricted) access to all instances and bots.
.soulfire.v1.GlobalCommandScope global = 1;- Specified by:
getGlobalOrBuilderin interfaceCommandScopeOrBuilder
-
hasInstance
public boolean hasInstance()Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2;- Specified by:
hasInstancein interfaceCommandScopeOrBuilder- Returns:
- Whether the instance field is set.
-
getInstance
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2;- Specified by:
getInstancein interfaceCommandScopeOrBuilder- Returns:
- The instance.
-
setInstance
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2; -
setInstance
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2; -
mergeInstance
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2; -
clearInstance
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2; -
getInstanceBuilder
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2; -
getInstanceOrBuilder
Execute command restricted to a specific instance and its bots.
.soulfire.v1.InstanceCommandScope instance = 2;- Specified by:
getInstanceOrBuilderin interfaceCommandScopeOrBuilder
-
hasBot
public boolean hasBot()Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3;- Specified by:
hasBotin interfaceCommandScopeOrBuilder- Returns:
- Whether the bot field is set.
-
getBot
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3;- Specified by:
getBotin interfaceCommandScopeOrBuilder- Returns:
- The bot.
-
setBot
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3; -
setBot
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3; -
mergeBot
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3; -
clearBot
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3; -
getBotBuilder
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3; -
getBotOrBuilder
Execute command restricted to a specific bot within an instance.
.soulfire.v1.BotCommandScope bot = 3;- Specified by:
getBotOrBuilderin interfaceCommandScopeOrBuilder
-