Class StringSetting.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StringSetting.Builder>
com.google.protobuf.GeneratedMessage.Builder<StringSetting.Builder>
com.soulfiremc.grpc.generated.StringSetting.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StringSettingOrBuilder, Cloneable
- Enclosing class:
StringSetting
public static final class StringSetting.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StringSetting.Builder>
implements StringSettingOrBuilder
UI definition for a string/text setting. Used to render text input fields in the client UI with appropriate validation and visual styling based on the input type.Protobuf type
soulfire.v1.StringSetting-
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.The type of input field to render (affects keyboard, validation, and display).Maximum allowed string length (0 means no maximum).Minimum required string length (0 means no minimum).Regular expression pattern for value validation.Placeholder text shown when the input is empty.The display name shown in the UI label for this setting.getDef()The default value used when no value is configured.com.google.protobuf.ByteStringThe 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.The type of input field to render (affects keyboard, validation, and display).intThe type of input field to render (affects keyboard, validation, and display).intMaximum allowed string length (0 means no maximum).intMinimum required string length (0 means no minimum).Regular expression pattern for value validation.com.google.protobuf.ByteStringRegular expression pattern for value validation.Placeholder text shown when the input is empty.com.google.protobuf.ByteStringPlaceholder text shown when the input is empty.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(StringSetting other) The default value used when no value is configured.setDefBytes(com.google.protobuf.ByteString 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.The type of input field to render (affects keyboard, validation, and display).setInputTypeValue(int value) The type of input field to render (affects keyboard, validation, and display).setMaxLength(int value) Maximum allowed string length (0 means no maximum).setMinLength(int value) Minimum required string length (0 means no minimum).setPattern(String value) Regular expression pattern for value validation.setPatternBytes(com.google.protobuf.ByteString value) Regular expression pattern for value validation.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.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<StringSetting.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<StringSetting.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<StringSetting.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<StringSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StringSetting.Builder>
-
mergeFrom
public StringSetting.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<StringSetting.Builder>- Throws:
IOException
-
getUiName
The display name shown in the UI label for this setting.
string ui_name = 1;- Specified by:
getUiNamein interfaceStringSettingOrBuilder- 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 interfaceStringSettingOrBuilder- 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. Typically shown as a tooltip or help text.
string description = 2;- Specified by:
getDescriptionin interfaceStringSettingOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A longer description explaining what this setting does. Typically shown as a tooltip or help text.
string description = 2;- Specified by:
getDescriptionBytesin interfaceStringSettingOrBuilder- Returns:
- The bytes for description.
-
setDescription
A longer description explaining what this setting does. Typically shown as a tooltip or help text.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A longer description explaining what this setting does. Typically shown as a tooltip or help text.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A longer description explaining what this setting does. Typically shown as a tooltip or help text.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDef
The default value used when no value is configured.
string def = 3;- Specified by:
getDefin interfaceStringSettingOrBuilder- Returns:
- The def.
-
getDefBytes
public com.google.protobuf.ByteString getDefBytes()The default value used when no value is configured.
string def = 3;- Specified by:
getDefBytesin interfaceStringSettingOrBuilder- Returns:
- The bytes for def.
-
setDef
The default value used when no value is configured.
string def = 3;- Parameters:
value- The def to set.- Returns:
- This builder for chaining.
-
clearDef
The default value used when no value is configured.
string def = 3;- Returns:
- This builder for chaining.
-
setDefBytes
The default value used when no value is configured.
string def = 3;- Parameters:
value- The bytes for def to set.- Returns:
- This builder for chaining.
-
getInputTypeValue
public int getInputTypeValue()The type of input field to render (affects keyboard, validation, and display).
.soulfire.v1.StringSetting.InputType input_type = 10;- Specified by:
getInputTypeValuein interfaceStringSettingOrBuilder- Returns:
- The enum numeric value on the wire for inputType.
-
setInputTypeValue
The type of input field to render (affects keyboard, validation, and display).
.soulfire.v1.StringSetting.InputType input_type = 10;- Parameters:
value- The enum numeric value on the wire for inputType to set.- Returns:
- This builder for chaining.
-
getInputType
The type of input field to render (affects keyboard, validation, and display).
.soulfire.v1.StringSetting.InputType input_type = 10;- Specified by:
getInputTypein interfaceStringSettingOrBuilder- Returns:
- The inputType.
-
setInputType
The type of input field to render (affects keyboard, validation, and display).
.soulfire.v1.StringSetting.InputType input_type = 10;- Parameters:
value- The inputType to set.- Returns:
- This builder for chaining.
-
clearInputType
The type of input field to render (affects keyboard, validation, and display).
.soulfire.v1.StringSetting.InputType input_type = 10;- Returns:
- This builder for chaining.
-
getPlaceholder
Placeholder text shown when the input is empty. Provides a hint about expected format or content.
string placeholder = 6;- Specified by:
getPlaceholderin interfaceStringSettingOrBuilder- Returns:
- The placeholder.
-
getPlaceholderBytes
public com.google.protobuf.ByteString getPlaceholderBytes()Placeholder text shown when the input is empty. Provides a hint about expected format or content.
string placeholder = 6;- Specified by:
getPlaceholderBytesin interfaceStringSettingOrBuilder- Returns:
- The bytes for placeholder.
-
setPlaceholder
Placeholder text shown when the input is empty. Provides a hint about expected format or content.
string placeholder = 6;- Parameters:
value- The placeholder to set.- Returns:
- This builder for chaining.
-
clearPlaceholder
Placeholder text shown when the input is empty. Provides a hint about expected format or content.
string placeholder = 6;- Returns:
- This builder for chaining.
-
setPlaceholderBytes
Placeholder text shown when the input is empty. Provides a hint about expected format or content.
string placeholder = 6;- Parameters:
value- The bytes for placeholder to set.- Returns:
- This builder for chaining.
-
getMinLength
public int getMinLength()Minimum required string length (0 means no minimum).
int32 min_length = 7;- Specified by:
getMinLengthin interfaceStringSettingOrBuilder- Returns:
- The minLength.
-
setMinLength
Minimum required string length (0 means no minimum).
int32 min_length = 7;- Parameters:
value- The minLength to set.- Returns:
- This builder for chaining.
-
clearMinLength
Minimum required string length (0 means no minimum).
int32 min_length = 7;- Returns:
- This builder for chaining.
-
getMaxLength
public int getMaxLength()Maximum allowed string length (0 means no maximum).
int32 max_length = 8;- Specified by:
getMaxLengthin interfaceStringSettingOrBuilder- Returns:
- The maxLength.
-
setMaxLength
Maximum allowed string length (0 means no maximum).
int32 max_length = 8;- Parameters:
value- The maxLength to set.- Returns:
- This builder for chaining.
-
clearMaxLength
Maximum allowed string length (0 means no maximum).
int32 max_length = 8;- Returns:
- This builder for chaining.
-
getPattern
Regular expression pattern for value validation. Empty string means no pattern validation.
string pattern = 9;- Specified by:
getPatternin interfaceStringSettingOrBuilder- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()Regular expression pattern for value validation. Empty string means no pattern validation.
string pattern = 9;- Specified by:
getPatternBytesin interfaceStringSettingOrBuilder- Returns:
- The bytes for pattern.
-
setPattern
Regular expression pattern for value validation. Empty string means no pattern validation.
string pattern = 9;- Parameters:
value- The pattern to set.- Returns:
- This builder for chaining.
-
clearPattern
Regular expression pattern for value validation. Empty string means no pattern validation.
string pattern = 9;- Returns:
- This builder for chaining.
-
setPatternBytes
Regular expression pattern for value validation. Empty string means no pattern validation.
string pattern = 9;- Parameters:
value- The bytes for pattern to set.- Returns:
- This builder for chaining.
-
getDisabled
public boolean getDisabled()Whether this setting is disabled (read-only) in the UI. Disabled settings display their value but cannot be modified.
bool disabled = 11;- Specified by:
getDisabledin interfaceStringSettingOrBuilder- Returns:
- The disabled.
-
setDisabled
Whether this setting is disabled (read-only) in the UI. Disabled settings display their value but cannot be modified.
bool disabled = 11;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Whether this setting is disabled (read-only) in the UI. Disabled settings display their value but cannot be modified.
bool disabled = 11;- Returns:
- This builder for chaining.
-