Module it.auties.cobalt
Enum Class ProtocolMessage.Type
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufEnum,it.auties.protobuf.model.ProtobufObject,Serializable,Comparable<ProtocolMessage.Type>,Constable
- Enclosing class:
ProtocolMessage
public static enum ProtocolMessage.Type
extends Enum<ProtocolMessage.Type>
implements it.auties.protobuf.model.ProtobufEnum
The constants of this enumerated type describe the various type of data that a
ProtocolMessage can wrap-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApp state dataSync key requestApp state dataSync key shareAProtocolMessagethat notifies that the ephemeral settings in a chat have changedAProtocolMessagethat notifies that a dataSync in an ephemeral chatApp state fatal exception notificationAProtocolMessagethat notifies that a history dataSync in any chatInitial security notification setting dataSyncMessage back-fill requestMessage editAProtocolMessagethat notifies that a message was deleted for everyone in a chatShare phone number -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintindex()static ProtocolMessage.TypeReturns the enum constant of this class with the specified name.static ProtocolMessage.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REVOKE
AProtocolMessagethat notifies that a message was deleted for everyone in a chat -
EPHEMERAL_SETTING
AProtocolMessagethat notifies that the ephemeral settings in a chat have changed -
EPHEMERAL_SYNC_RESPONSE
AProtocolMessagethat notifies that a dataSync in an ephemeral chat -
HISTORY_SYNC_NOTIFICATION
AProtocolMessagethat notifies that a history dataSync in any chat -
APP_STATE_SYNC_KEY_SHARE
App state dataSync key share -
APP_STATE_SYNC_KEY_REQUEST
App state dataSync key request -
MESSAGE_BACK_FILL_REQUEST
Message back-fill request -
INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC
Initial security notification setting dataSync -
EXCEPTION_NOTIFICATION
App state fatal exception notification -
SHARE_PHONE_NUMBER
Share phone number -
MESSAGE_EDIT
Message edit
-
-
Field Details
-
index
final int index
-
-
Constructor Details
-
Type
private Type(int index)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
index
public int index()
-