Class PlayerNotification.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PlayerNotification.Builder>
com.google.protobuf.GeneratedMessage.Builder<PlayerNotification.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,PlayerNotification.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<PlayerNotification.Builder>
studio.o7.octopus.sdk.gen.api.v1.PlayerNotification.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, PlayerNotificationOrBuilder
Enclosing class:
PlayerNotification

public static final class PlayerNotification.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlayerNotification.Builder> implements PlayerNotificationOrBuilder

 PlayerNotification

 A notification message sent to a player, containing multiple translations.
 Typically emitted by independent services.

 Examples:
   - Player bought a rank in the store
   - Player won a giveaway on Discord
   - External services notifying a player
 
Protobuf type api.v1.PlayerNotification
  • 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<PlayerNotification.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<PlayerNotification.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<PlayerNotification.Builder>
    • getDefaultInstanceForType

      public PlayerNotification 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 PlayerNotification build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PlayerNotification buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<PlayerNotification.Builder>
    • setField

      public PlayerNotification.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<PlayerNotification.Builder>
    • clearField

      public PlayerNotification.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<PlayerNotification.Builder>
    • clearOneof

      public PlayerNotification.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<PlayerNotification.Builder>
    • setRepeatedField

      public PlayerNotification.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<PlayerNotification.Builder>
    • addRepeatedField

      public PlayerNotification.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<PlayerNotification.Builder>
    • mergeFrom

      public PlayerNotification.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<PlayerNotification.Builder>
    • mergeFrom

    • 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,PlayerNotification.Builder>
    • mergeFrom

      public PlayerNotification.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<PlayerNotification.Builder>
      Throws:
      IOException
    • getTranslationsList

      public List<Translation> getTranslationsList()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
      Specified by:
      getTranslationsList in interface PlayerNotificationOrBuilder
    • getTranslationsCount

      public int getTranslationsCount()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
      Specified by:
      getTranslationsCount in interface PlayerNotificationOrBuilder
    • getTranslations

      public Translation getTranslations(int index)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
      Specified by:
      getTranslations in interface PlayerNotificationOrBuilder
    • setTranslations

      public PlayerNotification.Builder setTranslations(int index, Translation value)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • setTranslations

      public PlayerNotification.Builder setTranslations(int index, Translation.Builder builderForValue)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addTranslations

      public PlayerNotification.Builder addTranslations(Translation value)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addTranslations

      public PlayerNotification.Builder addTranslations(int index, Translation value)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addTranslations

      public PlayerNotification.Builder addTranslations(Translation.Builder builderForValue)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addTranslations

      public PlayerNotification.Builder addTranslations(int index, Translation.Builder builderForValue)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addAllTranslations

      public PlayerNotification.Builder addAllTranslations(Iterable<? extends Translation> values)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • clearTranslations

      public PlayerNotification.Builder clearTranslations()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • removeTranslations

      public PlayerNotification.Builder removeTranslations(int index)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • getTranslationsBuilder

      public Translation.Builder getTranslationsBuilder(int index)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • getTranslationsOrBuilder

      public TranslationOrBuilder getTranslationsOrBuilder(int index)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
      Specified by:
      getTranslationsOrBuilder in interface PlayerNotificationOrBuilder
    • getTranslationsOrBuilderList

      public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
      Specified by:
      getTranslationsOrBuilderList in interface PlayerNotificationOrBuilder
    • addTranslationsBuilder

      public Translation.Builder addTranslationsBuilder()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • addTranslationsBuilder

      public Translation.Builder addTranslationsBuilder(int index)
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • getTranslationsBuilderList

      public List<Translation.Builder> getTranslationsBuilderList()
       List of translated messages; the player's locale will be selected automatically.
       
      repeated .api.v1.Translation translations = 1 [json_name = "translations"];
    • setUnknownFields

      public final PlayerNotification.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<PlayerNotification.Builder>
    • mergeUnknownFields

      public final PlayerNotification.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<PlayerNotification.Builder>