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 Type
    Method
    Description
     
     
     
    The suggested text to insert at the cursor position.
    Optional tooltip providing additional context about this suggestion.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The suggested text to insert at the cursor position.
    com.google.protobuf.ByteString
    The suggested text to insert at the cursor position.
    Optional tooltip providing additional context about this suggestion.
    com.google.protobuf.ByteString
    Optional tooltip providing additional context about this suggestion.
    boolean
    Optional tooltip providing additional context about this suggestion.
    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 suggested text to insert at the cursor position.
    setSuggestionBytes(com.google.protobuf.ByteString value)
    The suggested text to insert at the cursor position.
    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, 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<CommandCompletion.Builder>
    • clear

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

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

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

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

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

      public CommandCompletion.Builder mergeFrom(CommandCompletion other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<CommandCompletion.Builder>
      Throws:
      IOException
    • getSuggestion

      public String 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:
      getSuggestion in interface CommandCompletionOrBuilder
      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:
      getSuggestionBytes in interface CommandCompletionOrBuilder
      Returns:
      The bytes for suggestion.
    • setSuggestion

      public CommandCompletion.Builder setSuggestion(String value)
      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

      public CommandCompletion.Builder 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

      public CommandCompletion.Builder setSuggestionBytes(com.google.protobuf.ByteString value)
      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:
      hasTooltip in interface CommandCompletionOrBuilder
      Returns:
      Whether the tooltip field is set.
    • getTooltip

      public String 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:
      getTooltip in interface CommandCompletionOrBuilder
      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:
      getTooltipBytes in interface CommandCompletionOrBuilder
      Returns:
      The bytes for tooltip.
    • setTooltip

      public CommandCompletion.Builder setTooltip(String value)
      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

      public CommandCompletion.Builder 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

      public CommandCompletion.Builder setTooltipBytes(com.google.protobuf.ByteString value)
      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.