Class ListTournamentsRequest.Builder

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

public static final class ListTournamentsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListTournamentsRequest.Builder> implements ListTournamentsRequestOrBuilder
 List active/upcoming tournaments based on given filters.
 
Protobuf type nakama.api.ListTournamentsRequest
  • 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<ListTournamentsRequest.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<ListTournamentsRequest.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<ListTournamentsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

    • isInitialized

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

      public ListTournamentsRequest.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<ListTournamentsRequest.Builder>
      Throws:
      IOException
    • hasCategoryStart

      public boolean hasCategoryStart()
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
      Specified by:
      hasCategoryStart in interface ListTournamentsRequestOrBuilder
      Returns:
      Whether the categoryStart field is set.
    • getCategoryStart

      public UInt32Value getCategoryStart()
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
      Specified by:
      getCategoryStart in interface ListTournamentsRequestOrBuilder
      Returns:
      The categoryStart.
    • setCategoryStart

      public ListTournamentsRequest.Builder setCategoryStart(UInt32Value value)
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
    • setCategoryStart

      public ListTournamentsRequest.Builder setCategoryStart(UInt32Value.Builder builderForValue)
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
    • mergeCategoryStart

      public ListTournamentsRequest.Builder mergeCategoryStart(UInt32Value value)
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
    • clearCategoryStart

      public ListTournamentsRequest.Builder clearCategoryStart()
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
    • getCategoryStartBuilder

      public UInt32Value.Builder getCategoryStartBuilder()
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
    • getCategoryStartOrBuilder

      public UInt32ValueOrBuilder getCategoryStartOrBuilder()
       The start of the categories to include. Defaults to 0.
       
      .google.protobuf.UInt32Value category_start = 1;
      Specified by:
      getCategoryStartOrBuilder in interface ListTournamentsRequestOrBuilder
    • hasCategoryEnd

      public boolean hasCategoryEnd()
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
      Specified by:
      hasCategoryEnd in interface ListTournamentsRequestOrBuilder
      Returns:
      Whether the categoryEnd field is set.
    • getCategoryEnd

      public UInt32Value getCategoryEnd()
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
      Specified by:
      getCategoryEnd in interface ListTournamentsRequestOrBuilder
      Returns:
      The categoryEnd.
    • setCategoryEnd

      public ListTournamentsRequest.Builder setCategoryEnd(UInt32Value value)
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
    • setCategoryEnd

      public ListTournamentsRequest.Builder setCategoryEnd(UInt32Value.Builder builderForValue)
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
    • mergeCategoryEnd

      public ListTournamentsRequest.Builder mergeCategoryEnd(UInt32Value value)
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
    • clearCategoryEnd

      public ListTournamentsRequest.Builder clearCategoryEnd()
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
    • getCategoryEndBuilder

      public UInt32Value.Builder getCategoryEndBuilder()
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
    • getCategoryEndOrBuilder

      public UInt32ValueOrBuilder getCategoryEndOrBuilder()
       The end of the categories to include. Defaults to 128.
       
      .google.protobuf.UInt32Value category_end = 2;
      Specified by:
      getCategoryEndOrBuilder in interface ListTournamentsRequestOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
      Specified by:
      hasStartTime in interface ListTournamentsRequestOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public UInt32Value getStartTime()
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
      Specified by:
      getStartTime in interface ListTournamentsRequestOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ListTournamentsRequest.Builder setStartTime(UInt32Value value)
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
    • setStartTime

      public ListTournamentsRequest.Builder setStartTime(UInt32Value.Builder builderForValue)
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
    • mergeStartTime

      public ListTournamentsRequest.Builder mergeStartTime(UInt32Value value)
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
    • clearStartTime

      public ListTournamentsRequest.Builder clearStartTime()
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
    • getStartTimeBuilder

      public UInt32Value.Builder getStartTimeBuilder()
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
    • getStartTimeOrBuilder

      public UInt32ValueOrBuilder getStartTimeOrBuilder()
       The start time for tournaments. Defaults to epoch.
       
      .google.protobuf.UInt32Value start_time = 3;
      Specified by:
      getStartTimeOrBuilder in interface ListTournamentsRequestOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
      Specified by:
      hasEndTime in interface ListTournamentsRequestOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public UInt32Value getEndTime()
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
      Specified by:
      getEndTime in interface ListTournamentsRequestOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public ListTournamentsRequest.Builder setEndTime(UInt32Value value)
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
    • setEndTime

      public ListTournamentsRequest.Builder setEndTime(UInt32Value.Builder builderForValue)
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
    • mergeEndTime

      public ListTournamentsRequest.Builder mergeEndTime(UInt32Value value)
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
    • clearEndTime

      public ListTournamentsRequest.Builder clearEndTime()
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
    • getEndTimeBuilder

      public UInt32Value.Builder getEndTimeBuilder()
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
    • getEndTimeOrBuilder

      public UInt32ValueOrBuilder getEndTimeOrBuilder()
       The end time for tournaments. Defaults to +1 year from current Unix time.
       
      .google.protobuf.UInt32Value end_time = 4;
      Specified by:
      getEndTimeOrBuilder in interface ListTournamentsRequestOrBuilder
    • hasLimit

      public boolean hasLimit()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
      Specified by:
      hasLimit in interface ListTournamentsRequestOrBuilder
      Returns:
      Whether the limit field is set.
    • getLimit

      public Int32Value getLimit()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
      Specified by:
      getLimit in interface ListTournamentsRequestOrBuilder
      Returns:
      The limit.
    • setLimit

      public ListTournamentsRequest.Builder setLimit(Int32Value value)
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
    • setLimit

      public ListTournamentsRequest.Builder setLimit(Int32Value.Builder builderForValue)
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
    • mergeLimit

      public ListTournamentsRequest.Builder mergeLimit(Int32Value value)
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
    • clearLimit

      public ListTournamentsRequest.Builder clearLimit()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
    • getLimitBuilder

      public Int32Value.Builder getLimitBuilder()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
    • getLimitOrBuilder

      public Int32ValueOrBuilder getLimitOrBuilder()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 6;
      Specified by:
      getLimitOrBuilder in interface ListTournamentsRequestOrBuilder
    • getCursor

      public String getCursor()
       A next page cursor for listings (optional).
       
      string cursor = 8;
      Specified by:
      getCursor in interface ListTournamentsRequestOrBuilder
      Returns:
      The cursor.
    • getCursorBytes

      public com.google.protobuf.ByteString getCursorBytes()
       A next page cursor for listings (optional).
       
      string cursor = 8;
      Specified by:
      getCursorBytes in interface ListTournamentsRequestOrBuilder
      Returns:
      The bytes for cursor.
    • setCursor

      public ListTournamentsRequest.Builder setCursor(String value)
       A next page cursor for listings (optional).
       
      string cursor = 8;
      Parameters:
      value - The cursor to set.
      Returns:
      This builder for chaining.
    • clearCursor

      public ListTournamentsRequest.Builder clearCursor()
       A next page cursor for listings (optional).
       
      string cursor = 8;
      Returns:
      This builder for chaining.
    • setCursorBytes

      public ListTournamentsRequest.Builder setCursorBytes(com.google.protobuf.ByteString value)
       A next page cursor for listings (optional).
       
      string cursor = 8;
      Parameters:
      value - The bytes for cursor to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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