Class Tournament

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.heroiclabs.nakama.api.Tournament
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TournamentOrBuilder, Serializable

public final class Tournament extends com.google.protobuf.GeneratedMessageV3 implements TournamentOrBuilder
 A tournament on the server.
 
Protobuf type nakama.api.Tournament
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A tournament on the server.

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

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    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
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    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
     
    boolean
    True if the tournament is active and can enter.
    int
    The category of the tournament.
    The UNIX time when the tournament was created.
    The UNIX time when the tournament was created.
    static Tournament
     
     
    The description of the tournament.
    com.google.protobuf.ByteString
    The description of the tournament.
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    Duration of the tournament in seconds.
    int
    The UNIX time when the tournament stops being active until next reset.
    The UNIX time when the tournament will be stopped.
    The UNIX time when the tournament will be stopped.
    The ID of the tournament.
    com.google.protobuf.ByteString
    The ID of the tournament.
    int
    The maximum score updates allowed per player for the current tournament.
    int
    The maximum number of players for the tournament.
    Additional information stored as a JSON object.
    com.google.protobuf.ByteString
    Additional information stored as a JSON object.
    int
    The UNIX time when the tournament is next playable.
    com.google.protobuf.Parser<Tournament>
     
    int
     
    int
    The current number of players in the tournament.
    int
    ASC or DESC sort mode of scores in the tournament.
    int
    The UNIX time when the tournament start being active.
    The UNIX time when the tournament will start.
    The UNIX time when the tournament will start.
    The title for the tournament.
    com.google.protobuf.ByteString
    The title for the tournament.
    final com.google.protobuf.UnknownFieldSet
     
    boolean
    The UNIX time when the tournament was created.
    boolean
    The UNIX time when the tournament will be stopped.
    int
     
    boolean
    The UNIX time when the tournament will start.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Tournament
     
    static Tournament
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Tournament
    parseFrom(byte[] data)
     
    static Tournament
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Tournament
    parseFrom(com.google.protobuf.ByteString data)
     
    static Tournament
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Tournament
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Tournament
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Tournament
     
    static Tournament
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Tournament
     
    static Tournament
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Tournament>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, 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, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

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

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getId

      public String getId()
       The ID of the tournament.
       
      string id = 1;
      Specified by:
      getId in interface TournamentOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The ID of the tournament.
       
      string id = 1;
      Specified by:
      getIdBytes in interface TournamentOrBuilder
      Returns:
      The bytes for id.
    • getTitle

      public String getTitle()
       The title for the tournament.
       
      string title = 2;
      Specified by:
      getTitle in interface TournamentOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       The title for the tournament.
       
      string title = 2;
      Specified by:
      getTitleBytes in interface TournamentOrBuilder
      Returns:
      The bytes for title.
    • getDescription

      public String getDescription()
       The description of the tournament. May be blank.
       
      string description = 3;
      Specified by:
      getDescription in interface TournamentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the tournament. May be blank.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface TournamentOrBuilder
      Returns:
      The bytes for description.
    • getCategory

      public int getCategory()
       The category of the tournament. e.g. "vip" could be category 1.
       
      uint32 category = 4;
      Specified by:
      getCategory in interface TournamentOrBuilder
      Returns:
      The category.
    • getSortOrder

      public int getSortOrder()
       ASC or DESC sort mode of scores in the tournament.
       
      uint32 sort_order = 5;
      Specified by:
      getSortOrder in interface TournamentOrBuilder
      Returns:
      The sortOrder.
    • getSize

      public int getSize()
       The current number of players in the tournament.
       
      uint32 size = 6;
      Specified by:
      getSize in interface TournamentOrBuilder
      Returns:
      The size.
    • getMaxSize

      public int getMaxSize()
       The maximum number of players for the tournament.
       
      uint32 max_size = 7;
      Specified by:
      getMaxSize in interface TournamentOrBuilder
      Returns:
      The maxSize.
    • getMaxNumScore

      public int getMaxNumScore()
       The maximum score updates allowed per player for the current tournament.
       
      uint32 max_num_score = 8;
      Specified by:
      getMaxNumScore in interface TournamentOrBuilder
      Returns:
      The maxNumScore.
    • getCanEnter

      public boolean getCanEnter()
       True if the tournament is active and can enter. A computed value.
       
      bool can_enter = 9;
      Specified by:
      getCanEnter in interface TournamentOrBuilder
      Returns:
      The canEnter.
    • getEndActive

      public int getEndActive()
       The UNIX time when the tournament stops being active until next reset. A computed value.
       
      uint32 end_active = 10;
      Specified by:
      getEndActive in interface TournamentOrBuilder
      Returns:
      The endActive.
    • getNextReset

      public int getNextReset()
       The UNIX time when the tournament is next playable. A computed value.
       
      uint32 next_reset = 11;
      Specified by:
      getNextReset in interface TournamentOrBuilder
      Returns:
      The nextReset.
    • getMetadata

      public String getMetadata()
       Additional information stored as a JSON object.
       
      string metadata = 12;
      Specified by:
      getMetadata in interface TournamentOrBuilder
      Returns:
      The metadata.
    • getMetadataBytes

      public com.google.protobuf.ByteString getMetadataBytes()
       Additional information stored as a JSON object.
       
      string metadata = 12;
      Specified by:
      getMetadataBytes in interface TournamentOrBuilder
      Returns:
      The bytes for metadata.
    • hasCreateTime

      public boolean hasCreateTime()
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
      Specified by:
      hasCreateTime in interface TournamentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public Timestamp getCreateTime()
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
      Specified by:
      getCreateTime in interface TournamentOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public TimestampOrBuilder getCreateTimeOrBuilder()
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
      Specified by:
      getCreateTimeOrBuilder in interface TournamentOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
      Specified by:
      hasStartTime in interface TournamentOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public Timestamp getStartTime()
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
      Specified by:
      getStartTime in interface TournamentOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public TimestampOrBuilder getStartTimeOrBuilder()
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
      Specified by:
      getStartTimeOrBuilder in interface TournamentOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
      Specified by:
      hasEndTime in interface TournamentOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public Timestamp getEndTime()
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
      Specified by:
      getEndTime in interface TournamentOrBuilder
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      public TimestampOrBuilder getEndTimeOrBuilder()
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
      Specified by:
      getEndTimeOrBuilder in interface TournamentOrBuilder
    • getDuration

      public int getDuration()
       Duration of the tournament in seconds.
       
      uint32 duration = 16;
      Specified by:
      getDuration in interface TournamentOrBuilder
      Returns:
      The duration.
    • getStartActive

      public int getStartActive()
       The UNIX time when the tournament start being active. A computed value.
       
      uint32 start_active = 17;
      Specified by:
      getStartActive in interface TournamentOrBuilder
      Returns:
      The startActive.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 Tournament parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Tournament.Builder newBuilder()
    • newBuilder

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

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

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

      public static Tournament getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Tournament> 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.GeneratedMessageV3
    • getDefaultInstanceForType

      public Tournament getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder