Class ServerDialog
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ServerDialog
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerDialogOrBuilder, Serializable
@Generated
public final class ServerDialog
extends com.google.protobuf.GeneratedMessage
implements ServerDialogOrBuilder
Complete server dialog definition. Contains all information needed to render and interact with a dialog.Protobuf type
soulfire.v1.ServerDialog- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComplete server dialog definition.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor NOTICE type: the single action button.For NOTICE type: the single action button.getActions(int index) For MULTI_ACTION type: list of action buttons.intFor MULTI_ACTION type: list of action buttons.For MULTI_ACTION type: list of action buttons.getActionsOrBuilder(int index) For MULTI_ACTION type: list of action buttons.List<? extends DialogButtonOrBuilder> For MULTI_ACTION type: list of action buttons.Behavior after an action button is clicked.intBehavior after an action button is clicked.getBody(int index) Body elements (text and items) displayed in the dialog.intBody elements (text and items) displayed in the dialog.Body elements (text and items) displayed in the dialog.getBodyOrBuilder(int index) Body elements (text and items) displayed in the dialog.List<? extends DialogBodyElementOrBuilder> Body elements (text and items) displayed in the dialog.intFor SERVER_LINKS and DIALOG_LIST: button width.booleanWhether ESC key can close the dialog.intFor MULTI_ACTION and DIALOG_LIST: number of button columns.static ServerDialogstatic final com.google.protobuf.Descriptors.DescriptorFor MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.For MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.Button label when shown as an external/minimized button.com.google.protobuf.ByteStringButton label when shown as an external/minimized button.getId()Dialog identifier from the server.com.google.protobuf.ByteStringDialog identifier from the server.getInputs(int index) Input controls for gathering user data.intInput controls for gathering user data.Input controls for gathering user data.getInputsOrBuilder(int index) Input controls for gathering user data.List<? extends DialogInputOrBuilder> Input controls for gathering user data.getNo()For CONFIRMATION type: the "no" button.For CONFIRMATION type: the "no" button.com.google.protobuf.Parser<ServerDialog> booleangetPause()Whether to pause the game in singleplayer.intgetTitle()Dialog title (may be a JSON text component).com.google.protobuf.ByteStringDialog title (may be a JSON text component).getType()The type of dialog, determining overall structure.intThe type of dialog, determining overall structure.getYes()For CONFIRMATION type: the "yes" button.For CONFIRMATION type: the "yes" button.booleanFor NOTICE type: the single action button.booleanFor MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.booleanButton label when shown as an external/minimized button.inthashCode()booleanhasNo()For CONFIRMATION type: the "no" button.booleanhasYes()For CONFIRMATION type: the "yes" button.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ServerDialog.Builderstatic ServerDialog.BuildernewBuilder(ServerDialog prototype) protected ServerDialog.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ServerDialogparseDelimitedFrom(InputStream input) static ServerDialogparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerDialogparseFrom(byte[] data) static ServerDialogparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerDialogparseFrom(com.google.protobuf.ByteString data) static ServerDialogparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerDialogparseFrom(com.google.protobuf.CodedInputStream input) static ServerDialogparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerDialogparseFrom(InputStream input) static ServerDialogparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerDialogparseFrom(ByteBuffer data) static ServerDialogparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServerDialog> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
EXTERNAL_TITLE_FIELD_NUMBER
public static final int EXTERNAL_TITLE_FIELD_NUMBER- See Also:
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
INPUTS_FIELD_NUMBER
public static final int INPUTS_FIELD_NUMBER- See Also:
-
CAN_CLOSE_WITH_ESCAPE_FIELD_NUMBER
public static final int CAN_CLOSE_WITH_ESCAPE_FIELD_NUMBER- See Also:
-
PAUSE_FIELD_NUMBER
public static final int PAUSE_FIELD_NUMBER- See Also:
-
AFTER_ACTION_FIELD_NUMBER
public static final int AFTER_ACTION_FIELD_NUMBER- See Also:
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER- See Also:
-
YES_FIELD_NUMBER
public static final int YES_FIELD_NUMBER- See Also:
-
NO_FIELD_NUMBER
public static final int NO_FIELD_NUMBER- See Also:
-
ACTIONS_FIELD_NUMBER
public static final int ACTIONS_FIELD_NUMBER- See Also:
-
COLUMNS_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER- See Also:
-
EXIT_ACTION_FIELD_NUMBER
public static final int EXIT_ACTION_FIELD_NUMBER- See Also:
-
BUTTON_WIDTH_FIELD_NUMBER
public static final int BUTTON_WIDTH_FIELD_NUMBER- See Also:
-
-
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
-
getId
Dialog identifier from the server. Format: namespaced identifier (e.g., "myserver:welcome_dialog").
string id = 1;- Specified by:
getIdin interfaceServerDialogOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Dialog identifier from the server. Format: namespaced identifier (e.g., "myserver:welcome_dialog").
string id = 1;- Specified by:
getIdBytesin interfaceServerDialogOrBuilder- Returns:
- The bytes for id.
-
getTypeValue
public int getTypeValue()The type of dialog, determining overall structure.
.soulfire.v1.DialogType type = 2;- Specified by:
getTypeValuein interfaceServerDialogOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
The type of dialog, determining overall structure.
.soulfire.v1.DialogType type = 2;- Specified by:
getTypein interfaceServerDialogOrBuilder- Returns:
- The type.
-
getTitle
Dialog title (may be a JSON text component).
string title = 3;- Specified by:
getTitlein interfaceServerDialogOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Dialog title (may be a JSON text component).
string title = 3;- Specified by:
getTitleBytesin interfaceServerDialogOrBuilder- Returns:
- The bytes for title.
-
hasExternalTitle
public boolean hasExternalTitle()Button label when shown as an external/minimized button.
optional string external_title = 4;- Specified by:
hasExternalTitlein interfaceServerDialogOrBuilder- Returns:
- Whether the externalTitle field is set.
-
getExternalTitle
Button label when shown as an external/minimized button.
optional string external_title = 4;- Specified by:
getExternalTitlein interfaceServerDialogOrBuilder- Returns:
- The externalTitle.
-
getExternalTitleBytes
public com.google.protobuf.ByteString getExternalTitleBytes()Button label when shown as an external/minimized button.
optional string external_title = 4;- Specified by:
getExternalTitleBytesin interfaceServerDialogOrBuilder- Returns:
- The bytes for externalTitle.
-
getBodyList
Body elements (text and items) displayed in the dialog.
repeated .soulfire.v1.DialogBodyElement body = 5;- Specified by:
getBodyListin interfaceServerDialogOrBuilder
-
getBodyOrBuilderList
Body elements (text and items) displayed in the dialog.
repeated .soulfire.v1.DialogBodyElement body = 5;- Specified by:
getBodyOrBuilderListin interfaceServerDialogOrBuilder
-
getBodyCount
public int getBodyCount()Body elements (text and items) displayed in the dialog.
repeated .soulfire.v1.DialogBodyElement body = 5;- Specified by:
getBodyCountin interfaceServerDialogOrBuilder
-
getBody
Body elements (text and items) displayed in the dialog.
repeated .soulfire.v1.DialogBodyElement body = 5;- Specified by:
getBodyin interfaceServerDialogOrBuilder
-
getBodyOrBuilder
Body elements (text and items) displayed in the dialog.
repeated .soulfire.v1.DialogBodyElement body = 5;- Specified by:
getBodyOrBuilderin interfaceServerDialogOrBuilder
-
getInputsList
Input controls for gathering user data.
repeated .soulfire.v1.DialogInput inputs = 6;- Specified by:
getInputsListin interfaceServerDialogOrBuilder
-
getInputsOrBuilderList
Input controls for gathering user data.
repeated .soulfire.v1.DialogInput inputs = 6;- Specified by:
getInputsOrBuilderListin interfaceServerDialogOrBuilder
-
getInputsCount
public int getInputsCount()Input controls for gathering user data.
repeated .soulfire.v1.DialogInput inputs = 6;- Specified by:
getInputsCountin interfaceServerDialogOrBuilder
-
getInputs
Input controls for gathering user data.
repeated .soulfire.v1.DialogInput inputs = 6;- Specified by:
getInputsin interfaceServerDialogOrBuilder
-
getInputsOrBuilder
Input controls for gathering user data.
repeated .soulfire.v1.DialogInput inputs = 6;- Specified by:
getInputsOrBuilderin interfaceServerDialogOrBuilder
-
getCanCloseWithEscape
public boolean getCanCloseWithEscape()Whether ESC key can close the dialog. Default: true.
bool can_close_with_escape = 7;- Specified by:
getCanCloseWithEscapein interfaceServerDialogOrBuilder- Returns:
- The canCloseWithEscape.
-
getPause
public boolean getPause()Whether to pause the game in singleplayer. Default: true. No effect in multiplayer.
bool pause = 8;- Specified by:
getPausein interfaceServerDialogOrBuilder- Returns:
- The pause.
-
getAfterActionValue
public int getAfterActionValue()Behavior after an action button is clicked.
.soulfire.v1.DialogAfterAction after_action = 9;- Specified by:
getAfterActionValuein interfaceServerDialogOrBuilder- Returns:
- The enum numeric value on the wire for afterAction.
-
getAfterAction
Behavior after an action button is clicked.
.soulfire.v1.DialogAfterAction after_action = 9;- Specified by:
getAfterActionin interfaceServerDialogOrBuilder- Returns:
- The afterAction.
-
hasAction
public boolean hasAction()For NOTICE type: the single action button.
optional .soulfire.v1.DialogButton action = 10;- Specified by:
hasActionin interfaceServerDialogOrBuilder- Returns:
- Whether the action field is set.
-
getAction
For NOTICE type: the single action button.
optional .soulfire.v1.DialogButton action = 10;- Specified by:
getActionin interfaceServerDialogOrBuilder- Returns:
- The action.
-
getActionOrBuilder
For NOTICE type: the single action button.
optional .soulfire.v1.DialogButton action = 10;- Specified by:
getActionOrBuilderin interfaceServerDialogOrBuilder
-
hasYes
public boolean hasYes()For CONFIRMATION type: the "yes" button.
optional .soulfire.v1.DialogButton yes = 11;- Specified by:
hasYesin interfaceServerDialogOrBuilder- Returns:
- Whether the yes field is set.
-
getYes
For CONFIRMATION type: the "yes" button.
optional .soulfire.v1.DialogButton yes = 11;- Specified by:
getYesin interfaceServerDialogOrBuilder- Returns:
- The yes.
-
getYesOrBuilder
For CONFIRMATION type: the "yes" button.
optional .soulfire.v1.DialogButton yes = 11;- Specified by:
getYesOrBuilderin interfaceServerDialogOrBuilder
-
hasNo
public boolean hasNo()For CONFIRMATION type: the "no" button.
optional .soulfire.v1.DialogButton no = 12;- Specified by:
hasNoin interfaceServerDialogOrBuilder- Returns:
- Whether the no field is set.
-
getNo
For CONFIRMATION type: the "no" button.
optional .soulfire.v1.DialogButton no = 12;- Specified by:
getNoin interfaceServerDialogOrBuilder- Returns:
- The no.
-
getNoOrBuilder
For CONFIRMATION type: the "no" button.
optional .soulfire.v1.DialogButton no = 12;- Specified by:
getNoOrBuilderin interfaceServerDialogOrBuilder
-
getActionsList
For MULTI_ACTION type: list of action buttons.
repeated .soulfire.v1.DialogButton actions = 13;- Specified by:
getActionsListin interfaceServerDialogOrBuilder
-
getActionsOrBuilderList
For MULTI_ACTION type: list of action buttons.
repeated .soulfire.v1.DialogButton actions = 13;- Specified by:
getActionsOrBuilderListin interfaceServerDialogOrBuilder
-
getActionsCount
public int getActionsCount()For MULTI_ACTION type: list of action buttons.
repeated .soulfire.v1.DialogButton actions = 13;- Specified by:
getActionsCountin interfaceServerDialogOrBuilder
-
getActions
For MULTI_ACTION type: list of action buttons.
repeated .soulfire.v1.DialogButton actions = 13;- Specified by:
getActionsin interfaceServerDialogOrBuilder
-
getActionsOrBuilder
For MULTI_ACTION type: list of action buttons.
repeated .soulfire.v1.DialogButton actions = 13;- Specified by:
getActionsOrBuilderin interfaceServerDialogOrBuilder
-
getColumns
public int getColumns()For MULTI_ACTION and DIALOG_LIST: number of button columns. Default: 2.
int32 columns = 14;- Specified by:
getColumnsin interfaceServerDialogOrBuilder- Returns:
- The columns.
-
hasExitAction
public boolean hasExitAction()For MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.
optional .soulfire.v1.DialogButton exit_action = 15;- Specified by:
hasExitActionin interfaceServerDialogOrBuilder- Returns:
- Whether the exitAction field is set.
-
getExitAction
For MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.
optional .soulfire.v1.DialogButton exit_action = 15;- Specified by:
getExitActionin interfaceServerDialogOrBuilder- Returns:
- The exitAction.
-
getExitActionOrBuilder
For MULTI_ACTION, SERVER_LINKS, DIALOG_LIST: exit/close button.
optional .soulfire.v1.DialogButton exit_action = 15;- Specified by:
getExitActionOrBuilderin interfaceServerDialogOrBuilder
-
getButtonWidth
public int getButtonWidth()For SERVER_LINKS and DIALOG_LIST: button width. Default: 150.
int32 button_width = 16;- Specified by:
getButtonWidthin interfaceServerDialogOrBuilder- Returns:
- The buttonWidth.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServerDialog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerDialog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerDialog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerDialog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerDialog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerDialog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServerDialog parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServerDialog parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServerDialog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServerDialog.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-