Class ChannelJoin.Builder

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

public static final class ChannelJoin.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelJoin.Builder> implements ChannelJoinOrBuilder
 Join operation for a realtime chat channel.
 
Protobuf type nakama.realtime.ChannelJoin
  • 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<ChannelJoin.Builder>
    • clear

      public ChannelJoin.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<ChannelJoin.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<ChannelJoin.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public ChannelJoin.Builder mergeFrom(ChannelJoin other)
    • isInitialized

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

      public ChannelJoin.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<ChannelJoin.Builder>
      Throws:
      IOException
    • getTarget

      public String getTarget()
       The user ID to DM with, group ID to chat with, or room channel name to join.
       
      string target = 1;
      Specified by:
      getTarget in interface ChannelJoinOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       The user ID to DM with, group ID to chat with, or room channel name to join.
       
      string target = 1;
      Specified by:
      getTargetBytes in interface ChannelJoinOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public ChannelJoin.Builder setTarget(String value)
       The user ID to DM with, group ID to chat with, or room channel name to join.
       
      string target = 1;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public ChannelJoin.Builder clearTarget()
       The user ID to DM with, group ID to chat with, or room channel name to join.
       
      string target = 1;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public ChannelJoin.Builder setTargetBytes(com.google.protobuf.ByteString value)
       The user ID to DM with, group ID to chat with, or room channel name to join.
       
      string target = 1;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • getType

      public int getType()
       The type of the chat channel.
       
      int32 type = 2;
      Specified by:
      getType in interface ChannelJoinOrBuilder
      Returns:
      The type.
    • setType

      public ChannelJoin.Builder setType(int value)
       The type of the chat channel.
       
      int32 type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ChannelJoin.Builder clearType()
       The type of the chat channel.
       
      int32 type = 2;
      Returns:
      This builder for chaining.
    • hasPersistence

      public boolean hasPersistence()
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
      Specified by:
      hasPersistence in interface ChannelJoinOrBuilder
      Returns:
      Whether the persistence field is set.
    • getPersistence

      public BoolValue getPersistence()
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
      Specified by:
      getPersistence in interface ChannelJoinOrBuilder
      Returns:
      The persistence.
    • setPersistence

      public ChannelJoin.Builder setPersistence(BoolValue value)
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
    • setPersistence

      public ChannelJoin.Builder setPersistence(BoolValue.Builder builderForValue)
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
    • mergePersistence

      public ChannelJoin.Builder mergePersistence(BoolValue value)
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
    • clearPersistence

      public ChannelJoin.Builder clearPersistence()
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
    • getPersistenceBuilder

      public BoolValue.Builder getPersistenceBuilder()
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
    • getPersistenceOrBuilder

      public BoolValueOrBuilder getPersistenceOrBuilder()
       Whether messages sent on this channel should be persistent.
       
      .google.protobuf.BoolValue persistence = 3;
      Specified by:
      getPersistenceOrBuilder in interface ChannelJoinOrBuilder
    • hasHidden

      public boolean hasHidden()
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
      Specified by:
      hasHidden in interface ChannelJoinOrBuilder
      Returns:
      Whether the hidden field is set.
    • getHidden

      public BoolValue getHidden()
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
      Specified by:
      getHidden in interface ChannelJoinOrBuilder
      Returns:
      The hidden.
    • setHidden

      public ChannelJoin.Builder setHidden(BoolValue value)
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
    • setHidden

      public ChannelJoin.Builder setHidden(BoolValue.Builder builderForValue)
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
    • mergeHidden

      public ChannelJoin.Builder mergeHidden(BoolValue value)
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
    • clearHidden

      public ChannelJoin.Builder clearHidden()
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
    • getHiddenBuilder

      public BoolValue.Builder getHiddenBuilder()
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
    • getHiddenOrBuilder

      public BoolValueOrBuilder getHiddenOrBuilder()
       Whether the user should appear in the channel's presence list and events.
       
      .google.protobuf.BoolValue hidden = 4;
      Specified by:
      getHiddenOrBuilder in interface ChannelJoinOrBuilder
    • setUnknownFields

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

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