Class CommandRequest.Builder

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

public static final class CommandRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CommandRequest.Builder> implements CommandRequestOrBuilder
Request message for executing a server command.
Protobuf type soulfire.v1.CommandRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The command string to execute.
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    The command string to execute.
    com.google.protobuf.ByteString
    The command string to execute.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    boolean
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    The command string to execute.
    setCommandBytes(com.google.protobuf.ByteString value)
    The command string to execute.
    The execution scope that determines which instances/bots the command can affect and what permissions are required.
    setScope(CommandScope.Builder builderForValue)
    The execution scope that determines which instances/bots the command can affect and what permissions are required.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CommandRequest.Builder>
    • clear

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

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

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

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

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

      public CommandRequest.Builder mergeFrom(CommandRequest other)
    • isInitialized

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

      public CommandRequest.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<CommandRequest.Builder>
      Throws:
      IOException
    • hasScope

      public boolean hasScope()
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
      Specified by:
      hasScope in interface CommandRequestOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public CommandScope getScope()
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
      Specified by:
      getScope in interface CommandRequestOrBuilder
      Returns:
      The scope.
    • setScope

      public CommandRequest.Builder setScope(CommandScope value)
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
    • setScope

      public CommandRequest.Builder setScope(CommandScope.Builder builderForValue)
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
    • mergeScope

      public CommandRequest.Builder mergeScope(CommandScope value)
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
    • clearScope

      public CommandRequest.Builder clearScope()
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
    • getScopeBuilder

      public CommandScope.Builder getScopeBuilder()
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
    • getScopeOrBuilder

      public CommandScopeOrBuilder getScopeOrBuilder()
      The execution scope that determines which instances/bots the command can affect
      and what permissions are required. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 4;
      Specified by:
      getScopeOrBuilder in interface CommandRequestOrBuilder
    • getCommand

      public String getCommand()
      The command string to execute. This follows the Brigadier command format,
      e.g., "help", "move 100 64 200", "say Hello world".
      Leading/trailing whitespace will be stripped before execution.
      
      string command = 3;
      Specified by:
      getCommand in interface CommandRequestOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
      The command string to execute. This follows the Brigadier command format,
      e.g., "help", "move 100 64 200", "say Hello world".
      Leading/trailing whitespace will be stripped before execution.
      
      string command = 3;
      Specified by:
      getCommandBytes in interface CommandRequestOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public CommandRequest.Builder setCommand(String value)
      The command string to execute. This follows the Brigadier command format,
      e.g., "help", "move 100 64 200", "say Hello world".
      Leading/trailing whitespace will be stripped before execution.
      
      string command = 3;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public CommandRequest.Builder clearCommand()
      The command string to execute. This follows the Brigadier command format,
      e.g., "help", "move 100 64 200", "say Hello world".
      Leading/trailing whitespace will be stripped before execution.
      
      string command = 3;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public CommandRequest.Builder setCommandBytes(com.google.protobuf.ByteString value)
      The command string to execute. This follows the Brigadier command format,
      e.g., "help", "move 100 64 200", "say Hello world".
      Leading/trailing whitespace will be stripped before execution.
      
      string command = 3;
      Parameters:
      value - The bytes for command to set.
      Returns:
      This builder for chaining.