Class Event

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
studio.o7.octopus.sdk.gen.api.v1.Event
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, EventOrBuilder

public final class Event extends com.google.protobuf.GeneratedMessageV3 implements EventOrBuilder

 Event

 Represents an event that can occur across services, such as sending notifications,
 modifying entries, or triggering actions.

 The event is identified by a key which follows the format:
 <system>::<field>::<uuid>

 - system: The system emitting the event (e.g., SkyWars, Lobby, Shop)
 - field: The field the system updates (e.g., Permission, Joins, Kills)
 - uuid: UUID of a Minecraft player or a database object
 
Protobuf type api.v1.Event
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static final class 
    Event Represents an event that can occur across services, such as sending notifications, modifying entries, or triggering actions.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    .api.v1.Action action = 4 [json_name = "action"];
    .api.v1.Action action = 4 [json_name = "action"];
     
    static Event
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    The event key used for subscriptions.
    com.google.protobuf.ByteString
    The event key used for subscriptions.
    com.google.protobuf.Parser<Event>
     
    .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    int
     
    boolean
    .api.v1.Action action = 4 [json_name = "action"];
    boolean
    .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    int
     
    boolean
    .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Event prototype)
     
     
    protected Event.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Event
     
    static Event
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Event
    parseFrom(byte[] data)
     
    static Event
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Event
    parseFrom(com.google.protobuf.ByteString data)
     
    static Event
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Event
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Event
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Event
     
    static Event
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Event
     
    static Event
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Event>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • KEY_FIELD_NUMBER

      public static final int KEY_FIELD_NUMBER
      See Also:
    • PLAYER_NOTIFICATION_FIELD_NUMBER

      public static final int PLAYER_NOTIFICATION_FIELD_NUMBER
      See Also:
    • ENTRY_MUTATION_FIELD_NUMBER

      public static final int ENTRY_MUTATION_FIELD_NUMBER
      See Also:
    • ACTION_FIELD_NUMBER

      public static final int ACTION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getBodyCase

      public Event.BodyCase getBodyCase()
      Specified by:
      getBodyCase in interface EventOrBuilder
    • getKey

      public String getKey()
       The event key used for subscriptions.
       
      string key = 1 [json_name = "key"];
      Specified by:
      getKey in interface EventOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The event key used for subscriptions.
       
      string key = 1 [json_name = "key"];
      Specified by:
      getKeyBytes in interface EventOrBuilder
      Returns:
      The bytes for key.
    • hasPlayerNotification

      public boolean hasPlayerNotification()
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
      Specified by:
      hasPlayerNotification in interface EventOrBuilder
      Returns:
      Whether the playerNotification field is set.
    • getPlayerNotification

      public PlayerNotification getPlayerNotification()
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
      Specified by:
      getPlayerNotification in interface EventOrBuilder
      Returns:
      The playerNotification.
    • getPlayerNotificationOrBuilder

      public PlayerNotificationOrBuilder getPlayerNotificationOrBuilder()
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
      Specified by:
      getPlayerNotificationOrBuilder in interface EventOrBuilder
    • hasEntryMutation

      public boolean hasEntryMutation()
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
      Specified by:
      hasEntryMutation in interface EventOrBuilder
      Returns:
      Whether the entryMutation field is set.
    • getEntryMutation

      public EntryMutation getEntryMutation()
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
      Specified by:
      getEntryMutation in interface EventOrBuilder
      Returns:
      The entryMutation.
    • getEntryMutationOrBuilder

      public EntryMutationOrBuilder getEntryMutationOrBuilder()
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
      Specified by:
      getEntryMutationOrBuilder in interface EventOrBuilder
    • hasAction

      public boolean hasAction()
      .api.v1.Action action = 4 [json_name = "action"];
      Specified by:
      hasAction in interface EventOrBuilder
      Returns:
      Whether the action field is set.
    • getAction

      public Action getAction()
      .api.v1.Action action = 4 [json_name = "action"];
      Specified by:
      getAction in interface EventOrBuilder
      Returns:
      The action.
    • getActionOrBuilder

      public ActionOrBuilder getActionOrBuilder()
      .api.v1.Action action = 4 [json_name = "action"];
      Specified by:
      getActionOrBuilder in interface EventOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Event parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Event parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Event parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Event parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Event parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Event parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Event parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Event.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Event.Builder newBuilder()
    • newBuilder

      public static Event.Builder newBuilder(Event prototype)
    • toBuilder

      public Event.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Event.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Event getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Event> parser()
    • getParserForType

      public com.google.protobuf.Parser<Event> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Event getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder