Interface NotificationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Notification, Notification.Builder

public interface NotificationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Category code for this notification.
    Content of the notification in JSON.
    com.google.protobuf.ByteString
    Content of the notification in JSON.
    The UNIX time when the notification was created.
    The UNIX time when the notification was created.
    ID of the Notification.
    com.google.protobuf.ByteString
    ID of the Notification.
    boolean
    True if this notification was persisted to the database.
    ID of the sender, if a user.
    com.google.protobuf.ByteString
    ID of the sender, if a user.
    Subject of the notification.
    com.google.protobuf.ByteString
    Subject of the notification.
    boolean
    The UNIX time when the notification was created.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getId

      String getId()
       ID of the Notification.
       
      string id = 1;
      Returns:
      The id.
    • getIdBytes

      com.google.protobuf.ByteString getIdBytes()
       ID of the Notification.
       
      string id = 1;
      Returns:
      The bytes for id.
    • getSubject

      String getSubject()
       Subject of the notification.
       
      string subject = 2;
      Returns:
      The subject.
    • getSubjectBytes

      com.google.protobuf.ByteString getSubjectBytes()
       Subject of the notification.
       
      string subject = 2;
      Returns:
      The bytes for subject.
    • getContent

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

      com.google.protobuf.ByteString getContentBytes()
       Content of the notification in JSON.
       
      string content = 3;
      Returns:
      The bytes for content.
    • getCode

      int getCode()
       Category code for this notification.
       
      int32 code = 4;
      Returns:
      The code.
    • getSenderId

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

      com.google.protobuf.ByteString getSenderIdBytes()
       ID of the sender, if a user. Otherwise 'null'.
       
      string sender_id = 5;
      Returns:
      The bytes for senderId.
    • hasCreateTime

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

      Timestamp getCreateTime()
       The UNIX time when the notification was created.
       
      .google.protobuf.Timestamp create_time = 6;
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

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

      boolean getPersistent()
       True if this notification was persisted to the database.
       
      bool persistent = 7;
      Returns:
      The persistent.