Class ChannelMessageList.Builder

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

public static final class ChannelMessageList.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelMessageList.Builder> implements ChannelMessageListOrBuilder
 A list of channel messages, usually a result of a list operation.
 
Protobuf type nakama.api.ChannelMessageList
  • 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<ChannelMessageList.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<ChannelMessageList.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<ChannelMessageList.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public ChannelMessageList.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<ChannelMessageList.Builder>
      Throws:
      IOException
    • getMessagesList

      public List<ChannelMessage> getMessagesList()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
      Specified by:
      getMessagesList in interface ChannelMessageListOrBuilder
    • getMessagesCount

      public int getMessagesCount()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
      Specified by:
      getMessagesCount in interface ChannelMessageListOrBuilder
    • getMessages

      public ChannelMessage getMessages(int index)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
      Specified by:
      getMessages in interface ChannelMessageListOrBuilder
    • setMessages

      public ChannelMessageList.Builder setMessages(int index, ChannelMessage value)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • setMessages

      public ChannelMessageList.Builder setMessages(int index, ChannelMessage.Builder builderForValue)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addMessages

      public ChannelMessageList.Builder addMessages(ChannelMessage value)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addMessages

      public ChannelMessageList.Builder addMessages(int index, ChannelMessage value)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addMessages

      public ChannelMessageList.Builder addMessages(ChannelMessage.Builder builderForValue)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addMessages

      public ChannelMessageList.Builder addMessages(int index, ChannelMessage.Builder builderForValue)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addAllMessages

      public ChannelMessageList.Builder addAllMessages(Iterable<? extends ChannelMessage> values)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • clearMessages

      public ChannelMessageList.Builder clearMessages()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • removeMessages

      public ChannelMessageList.Builder removeMessages(int index)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • getMessagesBuilder

      public ChannelMessage.Builder getMessagesBuilder(int index)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • getMessagesOrBuilder

      public ChannelMessageOrBuilder getMessagesOrBuilder(int index)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
      Specified by:
      getMessagesOrBuilder in interface ChannelMessageListOrBuilder
    • getMessagesOrBuilderList

      public List<? extends ChannelMessageOrBuilder> getMessagesOrBuilderList()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
      Specified by:
      getMessagesOrBuilderList in interface ChannelMessageListOrBuilder
    • addMessagesBuilder

      public ChannelMessage.Builder addMessagesBuilder()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • addMessagesBuilder

      public ChannelMessage.Builder addMessagesBuilder(int index)
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • getMessagesBuilderList

      public List<ChannelMessage.Builder> getMessagesBuilderList()
       A list of messages.
       
      repeated .nakama.api.ChannelMessage messages = 1;
    • getNextCursor

      public String getNextCursor()
       The cursor to send when retrieving the next page, if any.
       
      string next_cursor = 2;
      Specified by:
      getNextCursor in interface ChannelMessageListOrBuilder
      Returns:
      The nextCursor.
    • getNextCursorBytes

      public com.google.protobuf.ByteString getNextCursorBytes()
       The cursor to send when retrieving the next page, if any.
       
      string next_cursor = 2;
      Specified by:
      getNextCursorBytes in interface ChannelMessageListOrBuilder
      Returns:
      The bytes for nextCursor.
    • setNextCursor

      public ChannelMessageList.Builder setNextCursor(String value)
       The cursor to send when retrieving the next page, if any.
       
      string next_cursor = 2;
      Parameters:
      value - The nextCursor to set.
      Returns:
      This builder for chaining.
    • clearNextCursor

      public ChannelMessageList.Builder clearNextCursor()
       The cursor to send when retrieving the next page, if any.
       
      string next_cursor = 2;
      Returns:
      This builder for chaining.
    • setNextCursorBytes

      public ChannelMessageList.Builder setNextCursorBytes(com.google.protobuf.ByteString value)
       The cursor to send when retrieving the next page, if any.
       
      string next_cursor = 2;
      Parameters:
      value - The bytes for nextCursor to set.
      Returns:
      This builder for chaining.
    • getPrevCursor

      public String getPrevCursor()
       The cursor to send when retrieving the previous page, if any.
       
      string prev_cursor = 3;
      Specified by:
      getPrevCursor in interface ChannelMessageListOrBuilder
      Returns:
      The prevCursor.
    • getPrevCursorBytes

      public com.google.protobuf.ByteString getPrevCursorBytes()
       The cursor to send when retrieving the previous page, if any.
       
      string prev_cursor = 3;
      Specified by:
      getPrevCursorBytes in interface ChannelMessageListOrBuilder
      Returns:
      The bytes for prevCursor.
    • setPrevCursor

      public ChannelMessageList.Builder setPrevCursor(String value)
       The cursor to send when retrieving the previous page, if any.
       
      string prev_cursor = 3;
      Parameters:
      value - The prevCursor to set.
      Returns:
      This builder for chaining.
    • clearPrevCursor

      public ChannelMessageList.Builder clearPrevCursor()
       The cursor to send when retrieving the previous page, if any.
       
      string prev_cursor = 3;
      Returns:
      This builder for chaining.
    • setPrevCursorBytes

      public ChannelMessageList.Builder setPrevCursorBytes(com.google.protobuf.ByteString value)
       The cursor to send when retrieving the previous page, if any.
       
      string prev_cursor = 3;
      Parameters:
      value - The bytes for prevCursor to set.
      Returns:
      This builder for chaining.
    • getCacheableCursor

      public String getCacheableCursor()
       Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors.
       
      string cacheable_cursor = 4;
      Specified by:
      getCacheableCursor in interface ChannelMessageListOrBuilder
      Returns:
      The cacheableCursor.
    • getCacheableCursorBytes

      public com.google.protobuf.ByteString getCacheableCursorBytes()
       Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors.
       
      string cacheable_cursor = 4;
      Specified by:
      getCacheableCursorBytes in interface ChannelMessageListOrBuilder
      Returns:
      The bytes for cacheableCursor.
    • setCacheableCursor

      public ChannelMessageList.Builder setCacheableCursor(String value)
       Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors.
       
      string cacheable_cursor = 4;
      Parameters:
      value - The cacheableCursor to set.
      Returns:
      This builder for chaining.
    • clearCacheableCursor

      public ChannelMessageList.Builder clearCacheableCursor()
       Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors.
       
      string cacheable_cursor = 4;
      Returns:
      This builder for chaining.
    • setCacheableCursorBytes

      public ChannelMessageList.Builder setCacheableCursorBytes(com.google.protobuf.ByteString value)
       Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors.
       
      string cacheable_cursor = 4;
      Parameters:
      value - The bytes for cacheableCursor to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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