Class ChannelPresenceEvent.Builder

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

public static final class ChannelPresenceEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelPresenceEvent.Builder> implements ChannelPresenceEventOrBuilder
 A set of joins and leaves on a particular channel.
 
Protobuf type nakama.realtime.ChannelPresenceEvent
  • 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<ChannelPresenceEvent.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<ChannelPresenceEvent.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<ChannelPresenceEvent.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public String getChannelId()
       The channel identifier this event is for.
       
      string channel_id = 1;
      Specified by:
      getChannelId in interface ChannelPresenceEventOrBuilder
      Returns:
      The channelId.
    • getChannelIdBytes

      public com.google.protobuf.ByteString getChannelIdBytes()
       The channel identifier this event is for.
       
      string channel_id = 1;
      Specified by:
      getChannelIdBytes in interface ChannelPresenceEventOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

      public ChannelPresenceEvent.Builder setChannelId(String value)
       The channel identifier this event is for.
       
      string channel_id = 1;
      Parameters:
      value - The channelId to set.
      Returns:
      This builder for chaining.
    • clearChannelId

      public ChannelPresenceEvent.Builder clearChannelId()
       The channel identifier this event is for.
       
      string channel_id = 1;
      Returns:
      This builder for chaining.
    • setChannelIdBytes

      public ChannelPresenceEvent.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       The channel identifier this event is for.
       
      string channel_id = 1;
      Parameters:
      value - The bytes for channelId to set.
      Returns:
      This builder for chaining.
    • getJoinsList

      public List<UserPresence> getJoinsList()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
      Specified by:
      getJoinsList in interface ChannelPresenceEventOrBuilder
    • getJoinsCount

      public int getJoinsCount()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
      Specified by:
      getJoinsCount in interface ChannelPresenceEventOrBuilder
    • getJoins

      public UserPresence getJoins(int index)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
      Specified by:
      getJoins in interface ChannelPresenceEventOrBuilder
    • setJoins

      public ChannelPresenceEvent.Builder setJoins(int index, UserPresence value)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • setJoins

      public ChannelPresenceEvent.Builder setJoins(int index, UserPresence.Builder builderForValue)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addJoins

      public ChannelPresenceEvent.Builder addJoins(UserPresence value)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addJoins

      public ChannelPresenceEvent.Builder addJoins(int index, UserPresence value)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addJoins

      public ChannelPresenceEvent.Builder addJoins(UserPresence.Builder builderForValue)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addJoins

      public ChannelPresenceEvent.Builder addJoins(int index, UserPresence.Builder builderForValue)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addAllJoins

      public ChannelPresenceEvent.Builder addAllJoins(Iterable<? extends UserPresence> values)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • clearJoins

      public ChannelPresenceEvent.Builder clearJoins()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • removeJoins

      public ChannelPresenceEvent.Builder removeJoins(int index)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • getJoinsBuilder

      public UserPresence.Builder getJoinsBuilder(int index)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • getJoinsOrBuilder

      public UserPresenceOrBuilder getJoinsOrBuilder(int index)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
      Specified by:
      getJoinsOrBuilder in interface ChannelPresenceEventOrBuilder
    • getJoinsOrBuilderList

      public List<? extends UserPresenceOrBuilder> getJoinsOrBuilderList()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
      Specified by:
      getJoinsOrBuilderList in interface ChannelPresenceEventOrBuilder
    • addJoinsBuilder

      public UserPresence.Builder addJoinsBuilder()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • addJoinsBuilder

      public UserPresence.Builder addJoinsBuilder(int index)
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • getJoinsBuilderList

      public List<UserPresence.Builder> getJoinsBuilderList()
       Presences joining the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence joins = 2;
    • getLeavesList

      public List<UserPresence> getLeavesList()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
      Specified by:
      getLeavesList in interface ChannelPresenceEventOrBuilder
    • getLeavesCount

      public int getLeavesCount()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
      Specified by:
      getLeavesCount in interface ChannelPresenceEventOrBuilder
    • getLeaves

      public UserPresence getLeaves(int index)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
      Specified by:
      getLeaves in interface ChannelPresenceEventOrBuilder
    • setLeaves

      public ChannelPresenceEvent.Builder setLeaves(int index, UserPresence value)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • setLeaves

      public ChannelPresenceEvent.Builder setLeaves(int index, UserPresence.Builder builderForValue)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addLeaves

      public ChannelPresenceEvent.Builder addLeaves(UserPresence value)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addLeaves

      public ChannelPresenceEvent.Builder addLeaves(int index, UserPresence value)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addLeaves

      public ChannelPresenceEvent.Builder addLeaves(UserPresence.Builder builderForValue)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addLeaves

      public ChannelPresenceEvent.Builder addLeaves(int index, UserPresence.Builder builderForValue)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addAllLeaves

      public ChannelPresenceEvent.Builder addAllLeaves(Iterable<? extends UserPresence> values)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • clearLeaves

      public ChannelPresenceEvent.Builder clearLeaves()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • removeLeaves

      public ChannelPresenceEvent.Builder removeLeaves(int index)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • getLeavesBuilder

      public UserPresence.Builder getLeavesBuilder(int index)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • getLeavesOrBuilder

      public UserPresenceOrBuilder getLeavesOrBuilder(int index)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
      Specified by:
      getLeavesOrBuilder in interface ChannelPresenceEventOrBuilder
    • getLeavesOrBuilderList

      public List<? extends UserPresenceOrBuilder> getLeavesOrBuilderList()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
      Specified by:
      getLeavesOrBuilderList in interface ChannelPresenceEventOrBuilder
    • addLeavesBuilder

      public UserPresence.Builder addLeavesBuilder()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • addLeavesBuilder

      public UserPresence.Builder addLeavesBuilder(int index)
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • getLeavesBuilderList

      public List<UserPresence.Builder> getLeavesBuilderList()
       Presences leaving the channel as part of this event, if any.
       
      repeated .nakama.realtime.UserPresence leaves = 3;
    • getRoomName

      public String getRoomName()
       The name of the chat room, or an empty string if this message was not sent through a chat room.
       
      string room_name = 4;
      Specified by:
      getRoomName in interface ChannelPresenceEventOrBuilder
      Returns:
      The roomName.
    • getRoomNameBytes

      public com.google.protobuf.ByteString getRoomNameBytes()
       The name of the chat room, or an empty string if this message was not sent through a chat room.
       
      string room_name = 4;
      Specified by:
      getRoomNameBytes in interface ChannelPresenceEventOrBuilder
      Returns:
      The bytes for roomName.
    • setRoomName

      public ChannelPresenceEvent.Builder setRoomName(String value)
       The name of the chat room, or an empty string if this message was not sent through a chat room.
       
      string room_name = 4;
      Parameters:
      value - The roomName to set.
      Returns:
      This builder for chaining.
    • clearRoomName

      public ChannelPresenceEvent.Builder clearRoomName()
       The name of the chat room, or an empty string if this message was not sent through a chat room.
       
      string room_name = 4;
      Returns:
      This builder for chaining.
    • setRoomNameBytes

      public ChannelPresenceEvent.Builder setRoomNameBytes(com.google.protobuf.ByteString value)
       The name of the chat room, or an empty string if this message was not sent through a chat room.
       
      string room_name = 4;
      Parameters:
      value - The bytes for roomName to set.
      Returns:
      This builder for chaining.
    • getGroupId

      public String getGroupId()
       The ID of the group, or an empty string if this message was not sent through a group channel.
       
      string group_id = 5;
      Specified by:
      getGroupId in interface ChannelPresenceEventOrBuilder
      Returns:
      The groupId.
    • getGroupIdBytes

      public com.google.protobuf.ByteString getGroupIdBytes()
       The ID of the group, or an empty string if this message was not sent through a group channel.
       
      string group_id = 5;
      Specified by:
      getGroupIdBytes in interface ChannelPresenceEventOrBuilder
      Returns:
      The bytes for groupId.
    • setGroupId

      public ChannelPresenceEvent.Builder setGroupId(String value)
       The ID of the group, or an empty string if this message was not sent through a group channel.
       
      string group_id = 5;
      Parameters:
      value - The groupId to set.
      Returns:
      This builder for chaining.
    • clearGroupId

      public ChannelPresenceEvent.Builder clearGroupId()
       The ID of the group, or an empty string if this message was not sent through a group channel.
       
      string group_id = 5;
      Returns:
      This builder for chaining.
    • setGroupIdBytes

      public ChannelPresenceEvent.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
       The ID of the group, or an empty string if this message was not sent through a group channel.
       
      string group_id = 5;
      Parameters:
      value - The bytes for groupId to set.
      Returns:
      This builder for chaining.
    • getUserIdOne

      public String getUserIdOne()
       The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_one = 6;
      Specified by:
      getUserIdOne in interface ChannelPresenceEventOrBuilder
      Returns:
      The userIdOne.
    • getUserIdOneBytes

      public com.google.protobuf.ByteString getUserIdOneBytes()
       The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_one = 6;
      Specified by:
      getUserIdOneBytes in interface ChannelPresenceEventOrBuilder
      Returns:
      The bytes for userIdOne.
    • setUserIdOne

      public ChannelPresenceEvent.Builder setUserIdOne(String value)
       The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_one = 6;
      Parameters:
      value - The userIdOne to set.
      Returns:
      This builder for chaining.
    • clearUserIdOne

      public ChannelPresenceEvent.Builder clearUserIdOne()
       The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_one = 6;
      Returns:
      This builder for chaining.
    • setUserIdOneBytes

      public ChannelPresenceEvent.Builder setUserIdOneBytes(com.google.protobuf.ByteString value)
       The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_one = 6;
      Parameters:
      value - The bytes for userIdOne to set.
      Returns:
      This builder for chaining.
    • getUserIdTwo

      public String getUserIdTwo()
       The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_two = 7;
      Specified by:
      getUserIdTwo in interface ChannelPresenceEventOrBuilder
      Returns:
      The userIdTwo.
    • getUserIdTwoBytes

      public com.google.protobuf.ByteString getUserIdTwoBytes()
       The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_two = 7;
      Specified by:
      getUserIdTwoBytes in interface ChannelPresenceEventOrBuilder
      Returns:
      The bytes for userIdTwo.
    • setUserIdTwo

      public ChannelPresenceEvent.Builder setUserIdTwo(String value)
       The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_two = 7;
      Parameters:
      value - The userIdTwo to set.
      Returns:
      This builder for chaining.
    • clearUserIdTwo

      public ChannelPresenceEvent.Builder clearUserIdTwo()
       The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_two = 7;
      Returns:
      This builder for chaining.
    • setUserIdTwoBytes

      public ChannelPresenceEvent.Builder setUserIdTwoBytes(com.google.protobuf.ByteString value)
       The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
       
      string user_id_two = 7;
      Parameters:
      value - The bytes for userIdTwo to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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