Package com.heroiclabs.nakama.api
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
True if the tournament is active and can enter.The category of the tournament.The UNIX time when the tournament was created.The description of the tournament.Duration of the tournament in seconds.The UNIX time when the tournament stops being active until next reset.The UNIX time when the tournament will be stopped.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()
The ID of the tournament.The maximum score updates allowed per player for the current tournament.The maximum number of players for the tournament.Additional information stored as a JSON object.The UNIX time when the tournament is next playable.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The current number of players in the tournament.ASC or DESC sort mode of scores in the tournament.The UNIX time when the tournament start being active.The UNIX time when the tournament will start.The title for the tournament.clone()
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.The UNIX time when the tournament was created.The description of the tournament.com.google.protobuf.ByteString
The description of the tournament.static final com.google.protobuf.Descriptors.Descriptor
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 UNIX time when the tournament will be stopped.getId()
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.int
getSize()
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 UNIX time when the tournament will start.getTitle()
The title for the tournament.com.google.protobuf.ByteString
The title for the tournament.boolean
The UNIX time when the tournament was created.boolean
The UNIX time when the tournament will be stopped.boolean
The UNIX time when the tournament will start.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCreateTime
(Timestamp value) The UNIX time when the tournament was created.mergeEndTime
(Timestamp value) The UNIX time when the tournament will be stopped.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Tournament other) mergeStartTime
(Timestamp value) The UNIX time when the tournament will start.final Tournament.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCanEnter
(boolean value) True if the tournament is active and can enter.setCategory
(int value) The category of the tournament.setCreateTime
(Timestamp value) The UNIX time when the tournament was created.setCreateTime
(Timestamp.Builder builderForValue) The UNIX time when the tournament was created.setDescription
(String value) The description of the tournament.setDescriptionBytes
(com.google.protobuf.ByteString value) The description of the tournament.setDuration
(int value) Duration of the tournament in seconds.setEndActive
(int value) The UNIX time when the tournament stops being active until next reset.setEndTime
(Timestamp value) The UNIX time when the tournament will be stopped.setEndTime
(Timestamp.Builder builderForValue) The UNIX time when the tournament will be stopped.The ID of the tournament.setIdBytes
(com.google.protobuf.ByteString value) The ID of the tournament.setMaxNumScore
(int value) The maximum score updates allowed per player for the current tournament.setMaxSize
(int value) The maximum number of players for the tournament.setMetadata
(String value) Additional information stored as a JSON object.setMetadataBytes
(com.google.protobuf.ByteString value) Additional information stored as a JSON object.setNextReset
(int value) The UNIX time when the tournament is next playable.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize
(int value) The current number of players in the tournament.setSortOrder
(int value) ASC or DESC sort mode of scores in the tournament.setStartActive
(int value) The UNIX time when the tournament start being active.setStartTime
(Timestamp value) The UNIX time when the tournament will start.setStartTime
(Timestamp.Builder builderForValue) The UNIX time when the tournament will start.The title for the tournament.setTitleBytes
(com.google.protobuf.ByteString value) The title for the tournament.final Tournament.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
setField
public Tournament.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
addRepeatedField
public Tournament.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Tournament.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Tournament.Builder>
- Throws:
IOException
-
getId
The ID of the tournament.
string id = 1;
- Specified by:
getId
in interfaceTournamentOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the tournament.
string id = 1;
- Specified by:
getIdBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for id.
-
setId
The ID of the tournament.
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
The ID of the tournament.
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
The ID of the tournament.
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getTitle
The title for the tournament.
string title = 2;
- Specified by:
getTitle
in interfaceTournamentOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The title for the tournament.
string title = 2;
- Specified by:
getTitleBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for title.
-
setTitle
The title for the tournament.
string title = 2;
- Parameters:
value
- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The title for the tournament.
string title = 2;
- Returns:
- This builder for chaining.
-
setTitleBytes
The title for the tournament.
string title = 2;
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
The description of the tournament. May be blank.
string description = 3;
- Specified by:
getDescription
in interfaceTournamentOrBuilder
- 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 interfaceTournamentOrBuilder
- Returns:
- The bytes for description.
-
setDescription
The description of the tournament. May be blank.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The description of the tournament. May be blank.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
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 interfaceTournamentOrBuilder
- Returns:
- The category.
-
setCategory
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
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 interfaceTournamentOrBuilder
- Returns:
- The sortOrder.
-
setSortOrder
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
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 interfaceTournamentOrBuilder
- Returns:
- The size.
-
setSize
The current number of players in the tournament.
uint32 size = 6;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
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 interfaceTournamentOrBuilder
- Returns:
- The maxSize.
-
setMaxSize
The maximum number of players for the tournament.
uint32 max_size = 7;
- Parameters:
value
- The maxSize to set.- Returns:
- This builder for chaining.
-
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 interfaceTournamentOrBuilder
- Returns:
- The maxNumScore.
-
setMaxNumScore
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
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 interfaceTournamentOrBuilder
- Returns:
- The canEnter.
-
setCanEnter
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
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 interfaceTournamentOrBuilder
- Returns:
- The endActive.
-
setEndActive
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
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 interfaceTournamentOrBuilder
- Returns:
- The nextReset.
-
setNextReset
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
The UNIX time when the tournament is next playable. A computed value.
uint32 next_reset = 11;
- Returns:
- This builder for chaining.
-
getMetadata
Additional information stored as a JSON object.
string metadata = 12;
- Specified by:
getMetadata
in interfaceTournamentOrBuilder
- Returns:
- The metadata.
-
getMetadataBytes
public com.google.protobuf.ByteString getMetadataBytes()Additional information stored as a JSON object.
string metadata = 12;
- Specified by:
getMetadataBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for metadata.
-
setMetadata
Additional information stored as a JSON object.
string metadata = 12;
- Parameters:
value
- The metadata to set.- Returns:
- This builder for chaining.
-
clearMetadata
Additional information stored as a JSON object.
string metadata = 12;
- Returns:
- This builder for chaining.
-
setMetadataBytes
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 interfaceTournamentOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
- Specified by:
getCreateTime
in interfaceTournamentOrBuilder
- Returns:
- The createTime.
-
setCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
-
setCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
-
mergeCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
-
clearCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
-
getCreateTimeBuilder
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
-
getCreateTimeOrBuilder
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
- Specified by:
getCreateTimeOrBuilder
in interfaceTournamentOrBuilder
-
hasStartTime
public boolean hasStartTime()The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
hasStartTime
in interfaceTournamentOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
getStartTime
in interfaceTournamentOrBuilder
- Returns:
- The startTime.
-
setStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
-
setStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
-
mergeStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
-
clearStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
-
getStartTimeBuilder
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
-
getStartTimeOrBuilder
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
getStartTimeOrBuilder
in interfaceTournamentOrBuilder
-
hasEndTime
public boolean hasEndTime()The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
hasEndTime
in interfaceTournamentOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
getEndTime
in interfaceTournamentOrBuilder
- Returns:
- The endTime.
-
setEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
-
setEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
-
mergeEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
-
clearEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
-
getEndTimeBuilder
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
-
getEndTimeOrBuilder
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
getEndTimeOrBuilder
in interfaceTournamentOrBuilder
-
getDuration
public int getDuration()Duration of the tournament in seconds.
uint32 duration = 16;
- Specified by:
getDuration
in interfaceTournamentOrBuilder
- Returns:
- The duration.
-
setDuration
Duration of the tournament in seconds.
uint32 duration = 16;
- Parameters:
value
- The duration to set.- Returns:
- This builder for chaining.
-
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 interfaceTournamentOrBuilder
- Returns:
- The startActive.
-
setStartActive
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
The UNIX time when the tournament start being active. A computed value.
uint32 start_active = 17;
- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-
mergeUnknownFields
public final Tournament.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Tournament.Builder>
-