Class Event.Builder

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

public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> 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
  • Method Details

    • 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.Builder<Event.Builder>
    • clear

      public Event.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
    • 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
    • build

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

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

      public Event.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setField

      public Event.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearField

      public Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • clearOneof

      public Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • setRepeatedField

      public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • addRepeatedField

      public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(Event other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Event.Builder>
    • mergeFrom

      public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Event.Builder>
      Throws:
      IOException
    • getBodyCase

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

      public Event.Builder clearBody()
    • 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.
    • setKey

      public Event.Builder setKey(String value)
       The event key used for subscriptions.
       
      string key = 1 [json_name = "key"];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Event.Builder clearKey()
       The event key used for subscriptions.
       
      string key = 1 [json_name = "key"];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Event.Builder setKeyBytes(com.google.protobuf.ByteString value)
       The event key used for subscriptions.
       
      string key = 1 [json_name = "key"];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPlayerNotification

      public Event.Builder setPlayerNotification(PlayerNotification value)
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    • setPlayerNotification

      public Event.Builder setPlayerNotification(PlayerNotification.Builder builderForValue)
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    • mergePlayerNotification

      public Event.Builder mergePlayerNotification(PlayerNotification value)
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    • clearPlayerNotification

      public Event.Builder clearPlayerNotification()
      .api.v1.PlayerNotification player_notification = 2 [json_name = "playerNotification"];
    • getPlayerNotificationBuilder

      public PlayerNotification.Builder getPlayerNotificationBuilder()
      .api.v1.PlayerNotification player_notification = 2 [json_name = "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.
    • setEntryMutation

      public Event.Builder setEntryMutation(EntryMutation value)
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    • setEntryMutation

      public Event.Builder setEntryMutation(EntryMutation.Builder builderForValue)
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    • mergeEntryMutation

      public Event.Builder mergeEntryMutation(EntryMutation value)
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    • clearEntryMutation

      public Event.Builder clearEntryMutation()
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "entryMutation"];
    • getEntryMutationBuilder

      public EntryMutation.Builder getEntryMutationBuilder()
      .api.v1.EntryMutation entry_mutation = 3 [json_name = "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.
    • setAction

      public Event.Builder setAction(Action value)
      .api.v1.Action action = 4 [json_name = "action"];
    • setAction

      public Event.Builder setAction(Action.Builder builderForValue)
      .api.v1.Action action = 4 [json_name = "action"];
    • mergeAction

      public Event.Builder mergeAction(Action value)
      .api.v1.Action action = 4 [json_name = "action"];
    • clearAction

      public Event.Builder clearAction()
      .api.v1.Action action = 4 [json_name = "action"];
    • getActionBuilder

      public Action.Builder getActionBuilder()
      .api.v1.Action action = 4 [json_name = "action"];
    • getActionOrBuilder

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

      public final Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
    • mergeUnknownFields

      public final Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>