Class BoolSetting.Builder

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

public static final class BoolSetting.Builder extends com.google.protobuf.GeneratedMessage.Builder<BoolSetting.Builder> implements BoolSettingOrBuilder
UI definition for a boolean toggle setting.
Used to render checkbox or toggle switch controls in the UI.
Commonly used for enabling/disabling features.
Protobuf type soulfire.v1.BoolSetting
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The default value used when no value is configured.
    A longer description explaining what this setting does.
    Whether this setting is disabled (read-only) in the UI.
    The display name shown in the UI label for this setting.
    boolean
    The default value used when no value is configured.
     
    A longer description explaining what this setting does.
    com.google.protobuf.ByteString
    A longer description explaining what this setting does.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Whether this setting is disabled (read-only) in the UI.
    The display name shown in the UI label for this setting.
    com.google.protobuf.ByteString
    The display name shown in the UI label for this setting.
    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)
     
     
    setDef(boolean value)
    The default value used when no value is configured.
    A longer description explaining what this setting does.
    setDescriptionBytes(com.google.protobuf.ByteString value)
    A longer description explaining what this setting does.
    setDisabled(boolean value)
    Whether this setting is disabled (read-only) in the UI.
    The display name shown in the UI label for this setting.
    setUiNameBytes(com.google.protobuf.ByteString value)
    The display name shown in the UI label for this setting.

    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<BoolSetting.Builder>
    • clear

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

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

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

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

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

      public BoolSetting.Builder mergeFrom(BoolSetting other)
    • isInitialized

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

      public BoolSetting.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<BoolSetting.Builder>
      Throws:
      IOException
    • getUiName

      public String getUiName()
      The display name shown in the UI label for this setting.
      
      string ui_name = 1;
      Specified by:
      getUiName in interface BoolSettingOrBuilder
      Returns:
      The uiName.
    • getUiNameBytes

      public com.google.protobuf.ByteString getUiNameBytes()
      The display name shown in the UI label for this setting.
      
      string ui_name = 1;
      Specified by:
      getUiNameBytes in interface BoolSettingOrBuilder
      Returns:
      The bytes for uiName.
    • setUiName

      public BoolSetting.Builder setUiName(String value)
      The display name shown in the UI label for this setting.
      
      string ui_name = 1;
      Parameters:
      value - The uiName to set.
      Returns:
      This builder for chaining.
    • clearUiName

      public BoolSetting.Builder clearUiName()
      The display name shown in the UI label for this setting.
      
      string ui_name = 1;
      Returns:
      This builder for chaining.
    • setUiNameBytes

      public BoolSetting.Builder setUiNameBytes(com.google.protobuf.ByteString value)
      The display name shown in the UI label for this setting.
      
      string ui_name = 1;
      Parameters:
      value - The bytes for uiName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      A longer description explaining what this setting does.
      
      string description = 2;
      Specified by:
      getDescription in interface BoolSettingOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      A longer description explaining what this setting does.
      
      string description = 2;
      Specified by:
      getDescriptionBytes in interface BoolSettingOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public BoolSetting.Builder setDescription(String value)
      A longer description explaining what this setting does.
      
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public BoolSetting.Builder clearDescription()
      A longer description explaining what this setting does.
      
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public BoolSetting.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      A longer description explaining what this setting does.
      
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDef

      public boolean getDef()
      The default value used when no value is configured.
      
      bool def = 3;
      Specified by:
      getDef in interface BoolSettingOrBuilder
      Returns:
      The def.
    • setDef

      public BoolSetting.Builder setDef(boolean value)
      The default value used when no value is configured.
      
      bool def = 3;
      Parameters:
      value - The def to set.
      Returns:
      This builder for chaining.
    • clearDef

      public BoolSetting.Builder clearDef()
      The default value used when no value is configured.
      
      bool def = 3;
      Returns:
      This builder for chaining.
    • getDisabled

      public boolean getDisabled()
      Whether this setting is disabled (read-only) in the UI.
      
      bool disabled = 4;
      Specified by:
      getDisabled in interface BoolSettingOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public BoolSetting.Builder setDisabled(boolean value)
      Whether this setting is disabled (read-only) in the UI.
      
      bool disabled = 4;
      Parameters:
      value - The disabled to set.
      Returns:
      This builder for chaining.
    • clearDisabled

      public BoolSetting.Builder clearDisabled()
      Whether this setting is disabled (read-only) in the UI.
      
      bool disabled = 4;
      Returns:
      This builder for chaining.