Class CommandCompletion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CommandCompletion.Builder>
com.google.protobuf.GeneratedMessage.Builder<CommandCompletion.Builder>
com.soulfiremc.grpc.generated.CommandCompletion.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommandCompletionOrBuilder, Cloneable
- Enclosing class:
CommandCompletion
public static final class CommandCompletion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CommandCompletion.Builder>
implements CommandCompletionOrBuilder
A single tab-completion suggestion.Protobuf type
soulfire.v1.CommandCompletion-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The suggested text to insert at the cursor position.Optional tooltip providing additional context about this suggestion.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe suggested text to insert at the cursor position.com.google.protobuf.ByteStringThe suggested text to insert at the cursor position.Optional tooltip providing additional context about this suggestion.com.google.protobuf.ByteStringOptional tooltip providing additional context about this suggestion.booleanOptional tooltip providing additional context about this suggestion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CommandCompletion other) setSuggestion(String value) The suggested text to insert at the cursor position.setSuggestionBytes(com.google.protobuf.ByteString value) The suggested text to insert at the cursor position.setTooltip(String value) Optional tooltip providing additional context about this suggestion.setTooltipBytes(com.google.protobuf.ByteString value) Optional tooltip providing additional context about this suggestion.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<CommandCompletion.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<CommandCompletion.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<CommandCompletion.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<CommandCompletion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommandCompletion.Builder>
-
mergeFrom
public CommandCompletion.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<CommandCompletion.Builder>- Throws:
IOException
-
getSuggestion
The suggested text to insert at the cursor position. This is the actual completion value, not the full command.
string suggestion = 1;- Specified by:
getSuggestionin interfaceCommandCompletionOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The suggested text to insert at the cursor position. This is the actual completion value, not the full command.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceCommandCompletionOrBuilder- Returns:
- The bytes for suggestion.
-
setSuggestion
The suggested text to insert at the cursor position. This is the actual completion value, not the full command.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
The suggested text to insert at the cursor position. This is the actual completion value, not the full command.
string suggestion = 1;- Returns:
- This builder for chaining.
-
setSuggestionBytes
The suggested text to insert at the cursor position. This is the actual completion value, not the full command.
string suggestion = 1;- Parameters:
value- The bytes for suggestion to set.- Returns:
- This builder for chaining.
-
hasTooltip
public boolean hasTooltip()Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Specified by:
hasTooltipin interfaceCommandCompletionOrBuilder- Returns:
- Whether the tooltip field is set.
-
getTooltip
Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Specified by:
getTooltipin interfaceCommandCompletionOrBuilder- Returns:
- The tooltip.
-
getTooltipBytes
public com.google.protobuf.ByteString getTooltipBytes()Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Specified by:
getTooltipBytesin interfaceCommandCompletionOrBuilder- Returns:
- The bytes for tooltip.
-
setTooltip
Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Parameters:
value- The tooltip to set.- Returns:
- This builder for chaining.
-
clearTooltip
Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Returns:
- This builder for chaining.
-
setTooltipBytes
Optional tooltip providing additional context about this suggestion. May contain formatted text explaining what the suggestion does. If not present, no tooltip should be displayed.
optional string tooltip = 2;- Parameters:
value- The bytes for tooltip to set.- Returns:
- This builder for chaining.
-