Class DialogSingleOptionInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DialogSingleOptionInput.Builder>
com.google.protobuf.GeneratedMessage.Builder<DialogSingleOptionInput.Builder>
com.soulfiremc.grpc.generated.DialogSingleOptionInput.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DialogSingleOptionInputOrBuilder, Cloneable
- Enclosing class:
DialogSingleOptionInput
public static final class DialogSingleOptionInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DialogSingleOptionInput.Builder>
implements DialogSingleOptionInputOrBuilder
Single option selection input (dropdown/combo box) in a dialog.Protobuf type
soulfire.v1.DialogSingleOptionInput-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptions(Iterable<? extends DialogOption> values) Available options to choose from.addOptions(int index, DialogOption value) Available options to choose from.addOptions(int index, DialogOption.Builder builderForValue) Available options to choose from.addOptions(DialogOption value) Available options to choose from.addOptions(DialogOption.Builder builderForValue) Available options to choose from.Available options to choose from.addOptionsBuilder(int index) Available options to choose from.build()clear()ID of the initially selected option.clearKey()Identifier used when submitting the dialog.Display label for the dropdown.Whether to show the label.Available options to choose from.Display width in pixels.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorID of the initially selected option.com.google.protobuf.ByteStringID of the initially selected option.getKey()Identifier used when submitting the dialog.com.google.protobuf.ByteStringIdentifier used when submitting the dialog.getLabel()Display label for the dropdown.com.google.protobuf.ByteStringDisplay label for the dropdown.booleanWhether to show the label.getOptions(int index) Available options to choose from.getOptionsBuilder(int index) Available options to choose from.Available options to choose from.intAvailable options to choose from.Available options to choose from.getOptionsOrBuilder(int index) Available options to choose from.List<? extends DialogOptionOrBuilder> Available options to choose from.intgetWidth()Display width in pixels.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DialogSingleOptionInput other) removeOptions(int index) Available options to choose from.setInitialOptionId(String value) ID of the initially selected option.setInitialOptionIdBytes(com.google.protobuf.ByteString value) ID of the initially selected option.Identifier used when submitting the dialog.setKeyBytes(com.google.protobuf.ByteString value) Identifier used when submitting the dialog.Display label for the dropdown.setLabelBytes(com.google.protobuf.ByteString value) Display label for the dropdown.setLabelVisible(boolean value) Whether to show the label.setOptions(int index, DialogOption value) Available options to choose from.setOptions(int index, DialogOption.Builder builderForValue) Available options to choose from.setWidth(int value) Display width in pixels.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<DialogSingleOptionInput.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<DialogSingleOptionInput.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<DialogSingleOptionInput.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<DialogSingleOptionInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DialogSingleOptionInput.Builder>
-
mergeFrom
public DialogSingleOptionInput.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<DialogSingleOptionInput.Builder>- Throws:
IOException
-
getKey
Identifier used when submitting the dialog.
string key = 1;- Specified by:
getKeyin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Identifier used when submitting the dialog.
string key = 1;- Specified by:
getKeyBytesin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The bytes for key.
-
setKey
Identifier used when submitting the dialog.
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Identifier used when submitting the dialog.
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
Identifier used when submitting the dialog.
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getLabel
Display label for the dropdown.
string label = 2;- Specified by:
getLabelin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Display label for the dropdown.
string label = 2;- Specified by:
getLabelBytesin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The bytes for label.
-
setLabel
Display label for the dropdown.
string label = 2;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Display label for the dropdown.
string label = 2;- Returns:
- This builder for chaining.
-
setLabelBytes
Display label for the dropdown.
string label = 2;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getLabelVisible
public boolean getLabelVisible()Whether to show the label. Default: true.
bool label_visible = 3;- Specified by:
getLabelVisiblein interfaceDialogSingleOptionInputOrBuilder- Returns:
- The labelVisible.
-
setLabelVisible
Whether to show the label. Default: true.
bool label_visible = 3;- Parameters:
value- The labelVisible to set.- Returns:
- This builder for chaining.
-
clearLabelVisible
Whether to show the label. Default: true.
bool label_visible = 3;- Returns:
- This builder for chaining.
-
getWidth
public int getWidth()Display width in pixels. Range: 1-1024, default: 200.
int32 width = 4;- Specified by:
getWidthin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The width.
-
setWidth
Display width in pixels. Range: 1-1024, default: 200.
int32 width = 4;- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
Display width in pixels. Range: 1-1024, default: 200.
int32 width = 4;- Returns:
- This builder for chaining.
-
getOptionsList
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5;- Specified by:
getOptionsListin interfaceDialogSingleOptionInputOrBuilder
-
getOptionsCount
public int getOptionsCount()Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5;- Specified by:
getOptionsCountin interfaceDialogSingleOptionInputOrBuilder
-
getOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5;- Specified by:
getOptionsin interfaceDialogSingleOptionInputOrBuilder
-
setOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
setOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addAllOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
clearOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
removeOptions
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
getOptionsBuilder
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
getOptionsOrBuilder
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5;- Specified by:
getOptionsOrBuilderin interfaceDialogSingleOptionInputOrBuilder
-
getOptionsOrBuilderList
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5;- Specified by:
getOptionsOrBuilderListin interfaceDialogSingleOptionInputOrBuilder
-
addOptionsBuilder
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
addOptionsBuilder
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
getOptionsBuilderList
Available options to choose from.
repeated .soulfire.v1.DialogOption options = 5; -
getInitialOptionId
ID of the initially selected option.
string initial_option_id = 6;- Specified by:
getInitialOptionIdin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The initialOptionId.
-
getInitialOptionIdBytes
public com.google.protobuf.ByteString getInitialOptionIdBytes()ID of the initially selected option.
string initial_option_id = 6;- Specified by:
getInitialOptionIdBytesin interfaceDialogSingleOptionInputOrBuilder- Returns:
- The bytes for initialOptionId.
-
setInitialOptionId
ID of the initially selected option.
string initial_option_id = 6;- Parameters:
value- The initialOptionId to set.- Returns:
- This builder for chaining.
-
clearInitialOptionId
ID of the initially selected option.
string initial_option_id = 6;- Returns:
- This builder for chaining.
-
setInitialOptionIdBytes
public DialogSingleOptionInput.Builder setInitialOptionIdBytes(com.google.protobuf.ByteString value) ID of the initially selected option.
string initial_option_id = 6;- Parameters:
value- The bytes for initialOptionId to set.- Returns:
- This builder for chaining.
-