Class IntSetting.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<IntSetting.Builder>
com.google.protobuf.GeneratedMessage.Builder<IntSetting.Builder>
com.soulfiremc.grpc.generated.IntSetting.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IntSettingOrBuilder, Cloneable
- Enclosing class:
IntSetting
public static final class IntSetting.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IntSetting.Builder>
implements IntSettingOrBuilder
UI definition for an integer number setting. Used to render numeric input fields with validation constraints. Supports range limits, step increments, and locale-aware formatting.Protobuf type
soulfire.v1.IntSetting-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearDef()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.clearMax()The maximum allowed value (inclusive).clearMin()The minimum allowed value (inclusive).Placeholder text shown when the input is empty.The step increment for value adjustments (e.g., for spinbox controls).Whether to display the number with thousand separators (e.g., 1,000,000).The display name shown in the UI label for this setting.intgetDef()The default value used when no value is configured.A longer description explaining what this setting does.com.google.protobuf.ByteStringA longer description explaining what this setting does.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether this setting is disabled (read-only) in the UI.intgetMax()The maximum allowed value (inclusive).intgetMin()The minimum allowed value (inclusive).Placeholder text shown when the input is empty.com.google.protobuf.ByteStringPlaceholder text shown when the input is empty.intgetStep()The step increment for value adjustments (e.g., for spinbox controls).booleanWhether to display the number with thousand separators (e.g., 1,000,000).The display name shown in the UI label for this setting.com.google.protobuf.ByteStringThe display name shown in the UI label for this setting.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(IntSetting other) setDef(int value) The default value used when no value is configured.setDescription(String value) 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.setMax(int value) The maximum allowed value (inclusive).setMin(int value) The minimum allowed value (inclusive).setPlaceholder(String value) Placeholder text shown when the input is empty.setPlaceholderBytes(com.google.protobuf.ByteString value) Placeholder text shown when the input is empty.setStep(int value) The step increment for value adjustments (e.g., for spinbox controls).setThousandSeparator(boolean value) Whether to display the number with thousand separators (e.g., 1,000,000).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, 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<IntSetting.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<IntSetting.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<IntSetting.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<IntSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IntSetting.Builder>
-
mergeFrom
public IntSetting.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<IntSetting.Builder>- Throws:
IOException
-
getUiName
The display name shown in the UI label for this setting.
string ui_name = 1;- Specified by:
getUiNamein interfaceIntSettingOrBuilder- 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:
getUiNameBytesin interfaceIntSettingOrBuilder- Returns:
- The bytes for uiName.
-
setUiName
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
The display name shown in the UI label for this setting.
string ui_name = 1;- Returns:
- This builder for chaining.
-
setUiNameBytes
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
A longer description explaining what this setting does.
string description = 2;- Specified by:
getDescriptionin interfaceIntSettingOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A longer description explaining what this setting does.
string description = 2;- Specified by:
getDescriptionBytesin interfaceIntSettingOrBuilder- Returns:
- The bytes for description.
-
setDescription
A longer description explaining what this setting does.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A longer description explaining what this setting does.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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 int getDef()The default value used when no value is configured.
int32 def = 3;- Specified by:
getDefin interfaceIntSettingOrBuilder- Returns:
- The def.
-
setDef
The default value used when no value is configured.
int32 def = 3;- Parameters:
value- The def to set.- Returns:
- This builder for chaining.
-
clearDef
The default value used when no value is configured.
int32 def = 3;- Returns:
- This builder for chaining.
-
getMin
public int getMin()The minimum allowed value (inclusive).
int32 min = 4;- Specified by:
getMinin interfaceIntSettingOrBuilder- Returns:
- The min.
-
setMin
The minimum allowed value (inclusive).
int32 min = 4;- Parameters:
value- The min to set.- Returns:
- This builder for chaining.
-
clearMin
The minimum allowed value (inclusive).
int32 min = 4;- Returns:
- This builder for chaining.
-
getMax
public int getMax()The maximum allowed value (inclusive).
int32 max = 5;- Specified by:
getMaxin interfaceIntSettingOrBuilder- Returns:
- The max.
-
setMax
The maximum allowed value (inclusive).
int32 max = 5;- Parameters:
value- The max to set.- Returns:
- This builder for chaining.
-
clearMax
The maximum allowed value (inclusive).
int32 max = 5;- Returns:
- This builder for chaining.
-
getStep
public int getStep()The step increment for value adjustments (e.g., for spinbox controls). A value of 0 means any integer is valid within the min/max range.
int32 step = 6;- Specified by:
getStepin interfaceIntSettingOrBuilder- Returns:
- The step.
-
setStep
The step increment for value adjustments (e.g., for spinbox controls). A value of 0 means any integer is valid within the min/max range.
int32 step = 6;- Parameters:
value- The step to set.- Returns:
- This builder for chaining.
-
clearStep
The step increment for value adjustments (e.g., for spinbox controls). A value of 0 means any integer is valid within the min/max range.
int32 step = 6;- Returns:
- This builder for chaining.
-
getPlaceholder
Placeholder text shown when the input is empty.
string placeholder = 7;- Specified by:
getPlaceholderin interfaceIntSettingOrBuilder- Returns:
- The placeholder.
-
getPlaceholderBytes
public com.google.protobuf.ByteString getPlaceholderBytes()Placeholder text shown when the input is empty.
string placeholder = 7;- Specified by:
getPlaceholderBytesin interfaceIntSettingOrBuilder- Returns:
- The bytes for placeholder.
-
setPlaceholder
Placeholder text shown when the input is empty.
string placeholder = 7;- Parameters:
value- The placeholder to set.- Returns:
- This builder for chaining.
-
clearPlaceholder
Placeholder text shown when the input is empty.
string placeholder = 7;- Returns:
- This builder for chaining.
-
setPlaceholderBytes
Placeholder text shown when the input is empty.
string placeholder = 7;- Parameters:
value- The bytes for placeholder to set.- Returns:
- This builder for chaining.
-
getThousandSeparator
public boolean getThousandSeparator()Whether to display the number with thousand separators (e.g., 1,000,000). Improves readability for large numbers.
bool thousand_separator = 8;- Specified by:
getThousandSeparatorin interfaceIntSettingOrBuilder- Returns:
- The thousandSeparator.
-
setThousandSeparator
Whether to display the number with thousand separators (e.g., 1,000,000). Improves readability for large numbers.
bool thousand_separator = 8;- Parameters:
value- The thousandSeparator to set.- Returns:
- This builder for chaining.
-
clearThousandSeparator
Whether to display the number with thousand separators (e.g., 1,000,000). Improves readability for large numbers.
bool thousand_separator = 8;- Returns:
- This builder for chaining.
-
getDisabled
public boolean getDisabled()Whether this setting is disabled (read-only) in the UI.
bool disabled = 9;- Specified by:
getDisabledin interfaceIntSettingOrBuilder- Returns:
- The disabled.
-
setDisabled
Whether this setting is disabled (read-only) in the UI.
bool disabled = 9;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Whether this setting is disabled (read-only) in the UI.
bool disabled = 9;- Returns:
- This builder for chaining.
-