Class Tournament.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
com.heroiclabs.nakama.api.Tournament.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TournamentOrBuilder, Cloneable
Enclosing class:
Tournament

public static final class Tournament.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder> implements TournamentOrBuilder
 A tournament on the server.
 
Protobuf type nakama.api.Tournament
  • Method Details

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

      public Tournament.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<Tournament.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.GeneratedMessageV3.Builder<Tournament.Builder>
    • getDefaultInstanceForType

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

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

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

      public Tournament.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<Tournament.Builder>
    • setField

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

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

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

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

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

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

      public Tournament.Builder mergeFrom(Tournament other)
    • isInitialized

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

      public Tournament.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<Tournament.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public Tournament.Builder setId(String value)
       The ID of the tournament.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Tournament.Builder clearId()
       The ID of the tournament.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Tournament.Builder setIdBytes(com.google.protobuf.ByteString value)
       The ID of the tournament.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTitle

      public Tournament.Builder setTitle(String value)
       The title for the tournament.
       
      string title = 2;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Tournament.Builder clearTitle()
       The title for the tournament.
       
      string title = 2;
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Tournament.Builder setTitleBytes(com.google.protobuf.ByteString value)
       The title for the tournament.
       
      string title = 2;
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDescription

      public Tournament.Builder setDescription(String value)
       The description of the tournament. May be blank.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Tournament.Builder clearDescription()
       The description of the tournament. May be blank.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Tournament.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the tournament. May be blank.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCategory

      public Tournament.Builder setCategory(int value)
       The category of the tournament. e.g. "vip" could be category 1.
       
      uint32 category = 4;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public Tournament.Builder clearCategory()
       The category of the tournament. e.g. "vip" could be category 1.
       
      uint32 category = 4;
      Returns:
      This builder for chaining.
    • 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.
    • setSortOrder

      public Tournament.Builder setSortOrder(int value)
       ASC or DESC sort mode of scores in the tournament.
       
      uint32 sort_order = 5;
      Parameters:
      value - The sortOrder to set.
      Returns:
      This builder for chaining.
    • clearSortOrder

      public Tournament.Builder clearSortOrder()
       ASC or DESC sort mode of scores in the tournament.
       
      uint32 sort_order = 5;
      Returns:
      This builder for chaining.
    • getSize

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

      public Tournament.Builder setSize(int value)
       The current number of players in the tournament.
       
      uint32 size = 6;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public Tournament.Builder clearSize()
       The current number of players in the tournament.
       
      uint32 size = 6;
      Returns:
      This builder for chaining.
    • 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.
    • setMaxSize

      public Tournament.Builder setMaxSize(int value)
       The maximum number of players for the tournament.
       
      uint32 max_size = 7;
      Parameters:
      value - The maxSize to set.
      Returns:
      This builder for chaining.
    • clearMaxSize

      public Tournament.Builder clearMaxSize()
       The maximum number of players for the tournament.
       
      uint32 max_size = 7;
      Returns:
      This builder for chaining.
    • 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.
    • setMaxNumScore

      public Tournament.Builder setMaxNumScore(int value)
       The maximum score updates allowed per player for the current tournament.
       
      uint32 max_num_score = 8;
      Parameters:
      value - The maxNumScore to set.
      Returns:
      This builder for chaining.
    • clearMaxNumScore

      public Tournament.Builder clearMaxNumScore()
       The maximum score updates allowed per player for the current tournament.
       
      uint32 max_num_score = 8;
      Returns:
      This builder for chaining.
    • 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.
    • setCanEnter

      public Tournament.Builder setCanEnter(boolean value)
       True if the tournament is active and can enter. A computed value.
       
      bool can_enter = 9;
      Parameters:
      value - The canEnter to set.
      Returns:
      This builder for chaining.
    • clearCanEnter

      public Tournament.Builder clearCanEnter()
       True if the tournament is active and can enter. A computed value.
       
      bool can_enter = 9;
      Returns:
      This builder for chaining.
    • 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.
    • setEndActive

      public Tournament.Builder setEndActive(int value)
       The UNIX time when the tournament stops being active until next reset. A computed value.
       
      uint32 end_active = 10;
      Parameters:
      value - The endActive to set.
      Returns:
      This builder for chaining.
    • clearEndActive

      public Tournament.Builder clearEndActive()
       The UNIX time when the tournament stops being active until next reset. A computed value.
       
      uint32 end_active = 10;
      Returns:
      This builder for chaining.
    • 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.
    • setNextReset

      public Tournament.Builder setNextReset(int value)
       The UNIX time when the tournament is next playable. A computed value.
       
      uint32 next_reset = 11;
      Parameters:
      value - The nextReset to set.
      Returns:
      This builder for chaining.
    • clearNextReset

      public Tournament.Builder clearNextReset()
       The UNIX time when the tournament is next playable. A computed value.
       
      uint32 next_reset = 11;
      Returns:
      This builder for chaining.
    • 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.
    • setMetadata

      public Tournament.Builder setMetadata(String value)
       Additional information stored as a JSON object.
       
      string metadata = 12;
      Parameters:
      value - The metadata to set.
      Returns:
      This builder for chaining.
    • clearMetadata

      public Tournament.Builder clearMetadata()
       Additional information stored as a JSON object.
       
      string metadata = 12;
      Returns:
      This builder for chaining.
    • setMetadataBytes

      public Tournament.Builder setMetadataBytes(com.google.protobuf.ByteString value)
       Additional information stored as a JSON object.
       
      string metadata = 12;
      Parameters:
      value - The bytes for metadata to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public Tournament.Builder setCreateTime(Timestamp value)
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
    • setCreateTime

      public Tournament.Builder setCreateTime(Timestamp.Builder builderForValue)
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
    • mergeCreateTime

      public Tournament.Builder mergeCreateTime(Timestamp value)
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
    • clearCreateTime

      public Tournament.Builder clearCreateTime()
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
    • getCreateTimeBuilder

      public Timestamp.Builder getCreateTimeBuilder()
       The UNIX time when the tournament was created.
       
      .google.protobuf.Timestamp create_time = 13;
    • 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.
    • setStartTime

      public Tournament.Builder setStartTime(Timestamp value)
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
    • setStartTime

      public Tournament.Builder setStartTime(Timestamp.Builder builderForValue)
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
    • mergeStartTime

      public Tournament.Builder mergeStartTime(Timestamp value)
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
    • clearStartTime

      public Tournament.Builder clearStartTime()
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
    • getStartTimeBuilder

      public Timestamp.Builder getStartTimeBuilder()
       The UNIX time when the tournament will start.
       
      .google.protobuf.Timestamp start_time = 14;
    • 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.
    • setEndTime

      public Tournament.Builder setEndTime(Timestamp value)
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
    • setEndTime

      public Tournament.Builder setEndTime(Timestamp.Builder builderForValue)
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
    • mergeEndTime

      public Tournament.Builder mergeEndTime(Timestamp value)
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
    • clearEndTime

      public Tournament.Builder clearEndTime()
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
    • getEndTimeBuilder

      public Timestamp.Builder getEndTimeBuilder()
       The UNIX time when the tournament will be stopped.
       
      .google.protobuf.Timestamp end_time = 15;
    • 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.
    • setDuration

      public Tournament.Builder setDuration(int value)
       Duration of the tournament in seconds.
       
      uint32 duration = 16;
      Parameters:
      value - The duration to set.
      Returns:
      This builder for chaining.
    • clearDuration

      public Tournament.Builder clearDuration()
       Duration of the tournament in seconds.
       
      uint32 duration = 16;
      Returns:
      This builder for chaining.
    • 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.
    • setStartActive

      public Tournament.Builder setStartActive(int value)
       The UNIX time when the tournament start being active. A computed value.
       
      uint32 start_active = 17;
      Parameters:
      value - The startActive to set.
      Returns:
      This builder for chaining.
    • clearStartActive

      public Tournament.Builder clearStartActive()
       The UNIX time when the tournament start being active. A computed value.
       
      uint32 start_active = 17;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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