Class CommandCompletionRequest.Builder

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

public static final class CommandCompletionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CommandCompletionRequest.Builder> implements CommandCompletionRequestOrBuilder
Request message for getting tab-completion suggestions for a partial command.
Protobuf type soulfire.v1.CommandCompletionRequest
  • 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<CommandCompletionRequest.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<CommandCompletionRequest.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<CommandCompletionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public boolean hasScope()
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
      Specified by:
      hasScope in interface CommandCompletionRequestOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public CommandScope getScope()
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
      Specified by:
      getScope in interface CommandCompletionRequestOrBuilder
      Returns:
      The scope.
    • setScope

      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
    • setScope

      public CommandCompletionRequest.Builder setScope(CommandScope.Builder builderForValue)
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
    • mergeScope

      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
    • clearScope

      public CommandCompletionRequest.Builder clearScope()
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
    • getScopeBuilder

      public CommandScope.Builder getScopeBuilder()
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
    • getScopeOrBuilder

      public CommandScopeOrBuilder getScopeOrBuilder()
      The execution scope that determines which instances/bots are visible
      for completion suggestions. Must be set to one of the scope options.
      
      .soulfire.v1.CommandScope scope = 5;
      Specified by:
      getScopeOrBuilder in interface CommandCompletionRequestOrBuilder
    • getCommand

      public String getCommand()
      The partial command string to complete. May be an incomplete command
      that the user is typing, e.g., "mov" or "move 100 ".
      
      string command = 3;
      Specified by:
      getCommand in interface CommandCompletionRequestOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
      The partial command string to complete. May be an incomplete command
      that the user is typing, e.g., "mov" or "move 100 ".
      
      string command = 3;
      Specified by:
      getCommandBytes in interface CommandCompletionRequestOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public CommandCompletionRequest.Builder setCommand(String value)
      The partial command string to complete. May be an incomplete command
      that the user is typing, e.g., "mov" or "move 100 ".
      
      string command = 3;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public CommandCompletionRequest.Builder clearCommand()
      The partial command string to complete. May be an incomplete command
      that the user is typing, e.g., "mov" or "move 100 ".
      
      string command = 3;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public CommandCompletionRequest.Builder setCommandBytes(com.google.protobuf.ByteString value)
      The partial command string to complete. May be an incomplete command
      that the user is typing, e.g., "mov" or "move 100 ".
      
      string command = 3;
      Parameters:
      value - The bytes for command to set.
      Returns:
      This builder for chaining.
    • getCursor

      public int getCursor()
      The cursor position within the command string (0-indexed).
      Completions will be generated for the token at this position.
      Typically this is the length of the command string for end-of-line completion.
      
      int32 cursor = 4;
      Specified by:
      getCursor in interface CommandCompletionRequestOrBuilder
      Returns:
      The cursor.
    • setCursor

      public CommandCompletionRequest.Builder setCursor(int value)
      The cursor position within the command string (0-indexed).
      Completions will be generated for the token at this position.
      Typically this is the length of the command string for end-of-line completion.
      
      int32 cursor = 4;
      Parameters:
      value - The cursor to set.
      Returns:
      This builder for chaining.
    • clearCursor

      public CommandCompletionRequest.Builder clearCursor()
      The cursor position within the command string (0-indexed).
      Completions will be generated for the token at this position.
      Typically this is the length of the command string for end-of-line completion.
      
      int32 cursor = 4;
      Returns:
      This builder for chaining.