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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The partial command string to complete.The cursor position within the command string (0-indexed).The execution scope that determines which instances/bots are visible for completion suggestions.The partial command string to complete.com.google.protobuf.ByteStringThe partial command string to complete.intThe cursor position within the command string (0-indexed).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetScope()The execution scope that determines which instances/bots are visible for completion suggestions.The execution scope that determines which instances/bots are visible for completion suggestions.The execution scope that determines which instances/bots are visible for completion suggestions.booleanhasScope()The execution scope that determines which instances/bots are visible for completion suggestions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeScope(CommandScope value) The execution scope that determines which instances/bots are visible for completion suggestions.setCommand(String value) The partial command string to complete.setCommandBytes(com.google.protobuf.ByteString value) The partial command string to complete.setCursor(int value) The cursor position within the command string (0-indexed).setScope(CommandScope value) The execution scope that determines which instances/bots are visible for completion suggestions.setScope(CommandScope.Builder builderForValue) The execution scope that determines which instances/bots are visible for completion suggestions.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<CommandCompletionRequest.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<CommandCompletionRequest.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<CommandCompletionRequest.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<CommandCompletionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasScopein interfaceCommandCompletionRequestOrBuilder- Returns:
- Whether the scope field is set.
-
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:
getScopein interfaceCommandCompletionRequestOrBuilder- 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
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
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
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
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:
getScopeOrBuilderin interfaceCommandCompletionRequestOrBuilder
-
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:
getCommandin interfaceCommandCompletionRequestOrBuilder- 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:
getCommandBytesin interfaceCommandCompletionRequestOrBuilder- Returns:
- The bytes for command.
-
setCommand
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
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
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:
getCursorin interfaceCommandCompletionRequestOrBuilder- Returns:
- The cursor.
-
setCursor
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
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.
-