Class Notification.Builder

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

public static final class Notification.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder> implements NotificationOrBuilder
 A notification in the server.
 
Protobuf type nakama.api.Notification
  • 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<Notification.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Notification.Builder mergeFrom(Notification other)
    • isInitialized

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

      public Notification.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<Notification.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       ID of the Notification.
       
      string id = 1;
      Specified by:
      getId in interface NotificationOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       ID of the Notification.
       
      string id = 1;
      Specified by:
      getIdBytes in interface NotificationOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Notification.Builder setId(String value)
       ID of the Notification.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Notification.Builder clearId()
       ID of the Notification.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Notification.Builder setIdBytes(com.google.protobuf.ByteString value)
       ID of the Notification.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getSubject

      public String getSubject()
       Subject of the notification.
       
      string subject = 2;
      Specified by:
      getSubject in interface NotificationOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       Subject of the notification.
       
      string subject = 2;
      Specified by:
      getSubjectBytes in interface NotificationOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public Notification.Builder setSubject(String value)
       Subject of the notification.
       
      string subject = 2;
      Parameters:
      value - The subject to set.
      Returns:
      This builder for chaining.
    • clearSubject

      public Notification.Builder clearSubject()
       Subject of the notification.
       
      string subject = 2;
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public Notification.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       Subject of the notification.
       
      string subject = 2;
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getContent

      public String getContent()
       Content of the notification in JSON.
       
      string content = 3;
      Specified by:
      getContent in interface NotificationOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       Content of the notification in JSON.
       
      string content = 3;
      Specified by:
      getContentBytes in interface NotificationOrBuilder
      Returns:
      The bytes for content.
    • setContent

      public Notification.Builder setContent(String value)
       Content of the notification in JSON.
       
      string content = 3;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public Notification.Builder clearContent()
       Content of the notification in JSON.
       
      string content = 3;
      Returns:
      This builder for chaining.
    • setContentBytes

      public Notification.Builder setContentBytes(com.google.protobuf.ByteString value)
       Content of the notification in JSON.
       
      string content = 3;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getCode

      public int getCode()
       Category code for this notification.
       
      int32 code = 4;
      Specified by:
      getCode in interface NotificationOrBuilder
      Returns:
      The code.
    • setCode

      public Notification.Builder setCode(int value)
       Category code for this notification.
       
      int32 code = 4;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public Notification.Builder clearCode()
       Category code for this notification.
       
      int32 code = 4;
      Returns:
      This builder for chaining.
    • getSenderId

      public String getSenderId()
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Specified by:
      getSenderId in interface NotificationOrBuilder
      Returns:
      The senderId.
    • getSenderIdBytes

      public com.google.protobuf.ByteString getSenderIdBytes()
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Specified by:
      getSenderIdBytes in interface NotificationOrBuilder
      Returns:
      The bytes for senderId.
    • setSenderId

      public Notification.Builder setSenderId(String value)
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Parameters:
      value - The senderId to set.
      Returns:
      This builder for chaining.
    • clearSenderId

      public Notification.Builder clearSenderId()
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Returns:
      This builder for chaining.
    • setSenderIdBytes

      public Notification.Builder setSenderIdBytes(com.google.protobuf.ByteString value)
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Parameters:
      value - The bytes for senderId to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      hasCreateTime in interface NotificationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public Timestamp getCreateTime()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      getCreateTime in interface NotificationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Notification.Builder setCreateTime(Timestamp value)
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
    • setCreateTime

      public Notification.Builder setCreateTime(Timestamp.Builder builderForValue)
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
    • mergeCreateTime

      public Notification.Builder mergeCreateTime(Timestamp value)
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
    • clearCreateTime

      public Notification.Builder clearCreateTime()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
    • getCreateTimeBuilder

      public Timestamp.Builder getCreateTimeBuilder()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
    • getCreateTimeOrBuilder

      public TimestampOrBuilder getCreateTimeOrBuilder()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
      Specified by:
      getCreateTimeOrBuilder in interface NotificationOrBuilder
    • getPersistent

      public boolean getPersistent()
       True if this notification was persisted to the database.
       
      bool persistent = 7;
      Specified by:
      getPersistent in interface NotificationOrBuilder
      Returns:
      The persistent.
    • setPersistent

      public Notification.Builder setPersistent(boolean value)
       True if this notification was persisted to the database.
       
      bool persistent = 7;
      Parameters:
      value - The persistent to set.
      Returns:
      This builder for chaining.
    • clearPersistent

      public Notification.Builder clearPersistent()
       True if this notification was persisted to the database.
       
      bool persistent = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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