Class ListChannelMessagesRequest.Builder

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

public static final class ListChannelMessagesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListChannelMessagesRequest.Builder> implements ListChannelMessagesRequestOrBuilder
 List a channel's message history.
 
Protobuf type nakama.api.ListChannelMessagesRequest
  • 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<ListChannelMessagesRequest.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<ListChannelMessagesRequest.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<ListChannelMessagesRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public ListChannelMessagesRequest.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<ListChannelMessagesRequest.Builder>
      Throws:
      IOException
    • getChannelId

      public String getChannelId()
       The channel ID to list from.
       
      string channel_id = 1;
      Specified by:
      getChannelId in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The channelId.
    • getChannelIdBytes

      public com.google.protobuf.ByteString getChannelIdBytes()
       The channel ID to list from.
       
      string channel_id = 1;
      Specified by:
      getChannelIdBytes in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

      public ListChannelMessagesRequest.Builder setChannelId(String value)
       The channel ID to list from.
       
      string channel_id = 1;
      Parameters:
      value - The channelId to set.
      Returns:
      This builder for chaining.
    • clearChannelId

      public ListChannelMessagesRequest.Builder clearChannelId()
       The channel ID to list from.
       
      string channel_id = 1;
      Returns:
      This builder for chaining.
    • setChannelIdBytes

      public ListChannelMessagesRequest.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       The channel ID to list from.
       
      string channel_id = 1;
      Parameters:
      value - The bytes for channelId to set.
      Returns:
      This builder for chaining.
    • hasLimit

      public boolean hasLimit()
       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 2;
      Specified by:
      hasLimit in interface ListChannelMessagesRequestOrBuilder
      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 = 2;
      Specified by:
      getLimit in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The limit.
    • setLimit

       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 2;
    • setLimit

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

       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 2;
    • clearLimit

       Max number of records to return. Between 1 and 100.
       
      .google.protobuf.Int32Value limit = 2;
    • getLimitBuilder

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

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

      public boolean hasForward()
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
      Specified by:
      hasForward in interface ListChannelMessagesRequestOrBuilder
      Returns:
      Whether the forward field is set.
    • getForward

      public BoolValue getForward()
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
      Specified by:
      getForward in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The forward.
    • setForward

      public ListChannelMessagesRequest.Builder setForward(BoolValue value)
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
    • setForward

      public ListChannelMessagesRequest.Builder setForward(BoolValue.Builder builderForValue)
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
    • mergeForward

      public ListChannelMessagesRequest.Builder mergeForward(BoolValue value)
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
    • clearForward

      public ListChannelMessagesRequest.Builder clearForward()
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
    • getForwardBuilder

      public BoolValue.Builder getForwardBuilder()
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
    • getForwardOrBuilder

      public BoolValueOrBuilder getForwardOrBuilder()
       True if listing should be older messages to newer, false if reverse.
       
      .google.protobuf.BoolValue forward = 3;
      Specified by:
      getForwardOrBuilder in interface ListChannelMessagesRequestOrBuilder
    • getCursor

      public String getCursor()
       A pagination cursor, if any.
       
      string cursor = 4;
      Specified by:
      getCursor in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The cursor.
    • getCursorBytes

      public com.google.protobuf.ByteString getCursorBytes()
       A pagination cursor, if any.
       
      string cursor = 4;
      Specified by:
      getCursorBytes in interface ListChannelMessagesRequestOrBuilder
      Returns:
      The bytes for cursor.
    • setCursor

      public ListChannelMessagesRequest.Builder setCursor(String value)
       A pagination cursor, if any.
       
      string cursor = 4;
      Parameters:
      value - The cursor to set.
      Returns:
      This builder for chaining.
    • clearCursor

      public ListChannelMessagesRequest.Builder clearCursor()
       A pagination cursor, if any.
       
      string cursor = 4;
      Returns:
      This builder for chaining.
    • setCursorBytes

      public ListChannelMessagesRequest.Builder setCursorBytes(com.google.protobuf.ByteString value)
       A pagination cursor, if any.
       
      string cursor = 4;
      Parameters:
      value - The bytes for cursor to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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