Class MessageFormats.PersistentMessage

java.lang.Object
org.apache.pekko.protobufv3.internal.AbstractMessageLite
org.apache.pekko.protobufv3.internal.AbstractMessage
org.apache.pekko.protobufv3.internal.GeneratedMessage
org.apache.pekko.persistence.serialization.MessageFormats.PersistentMessage
All Implemented Interfaces:
Serializable, MessageFormats.PersistentMessageOrBuilder, org.apache.pekko.protobufv3.internal.Message, org.apache.pekko.protobufv3.internal.MessageLite, org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder, org.apache.pekko.protobufv3.internal.MessageOrBuilder
Enclosing class:
MessageFormats

public static final class MessageFormats.PersistentMessage extends org.apache.pekko.protobufv3.internal.GeneratedMessage implements MessageFormats.PersistentMessageOrBuilder
Protobuf type PersistentMessage
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class org.apache.pekko.protobufv3.internal.GeneratedMessage
    • hasPayload

      public boolean hasPayload()
      optional .PersistentPayload payload = 1;
      Specified by:
      hasPayload in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the payload field is set.
    • getPayload

      public MessageFormats.PersistentPayload getPayload()
      optional .PersistentPayload payload = 1;
      Specified by:
      getPayload in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The payload.
    • getPayloadOrBuilder

      public MessageFormats.PersistentPayloadOrBuilder getPayloadOrBuilder()
      optional .PersistentPayload payload = 1;
      Specified by:
      getPayloadOrBuilder in interface MessageFormats.PersistentMessageOrBuilder
    • hasSequenceNr

      public boolean hasSequenceNr()
      optional int64 sequenceNr = 2;
      Specified by:
      hasSequenceNr in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the sequenceNr field is set.
    • getSequenceNr

      public long getSequenceNr()
      optional int64 sequenceNr = 2;
      Specified by:
      getSequenceNr in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The sequenceNr.
    • hasPersistenceId

      public boolean hasPersistenceId()
      optional string persistenceId = 3;
      Specified by:
      hasPersistenceId in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the persistenceId field is set.
    • getPersistenceId

      public String getPersistenceId()
      optional string persistenceId = 3;
      Specified by:
      getPersistenceId in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The persistenceId.
    • getPersistenceIdBytes

      public org.apache.pekko.protobufv3.internal.ByteString getPersistenceIdBytes()
      optional string persistenceId = 3;
      Specified by:
      getPersistenceIdBytes in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The bytes for persistenceId.
    • hasDeleted

      public boolean hasDeleted()
       not used in new records from Akka 2.4
       
      optional bool deleted = 4;
      Specified by:
      hasDeleted in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the deleted field is set.
    • getDeleted

      public boolean getDeleted()
       not used in new records from Akka 2.4
       
      optional bool deleted = 4;
      Specified by:
      getDeleted in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The deleted.
    • hasSender

      public boolean hasSender()
       optional int32 redeliveries = 6; // Removed in Akka 2.4
       repeated string confirms = 7; // Removed in Akka 2.4
       optional bool confirmable = 8;  // Removed in Akka 2.4
       optional DeliveredMessage confirmMessage = 9; // Removed in Akka 2.4
       optional string confirmTarget = 10; // Removed in Akka 2.4
       
      optional string sender = 11;
      Specified by:
      hasSender in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the sender field is set.
    • getSender

      public String getSender()
       optional int32 redeliveries = 6; // Removed in Akka 2.4
       repeated string confirms = 7; // Removed in Akka 2.4
       optional bool confirmable = 8;  // Removed in Akka 2.4
       optional DeliveredMessage confirmMessage = 9; // Removed in Akka 2.4
       optional string confirmTarget = 10; // Removed in Akka 2.4
       
      optional string sender = 11;
      Specified by:
      getSender in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The sender.
    • getSenderBytes

      public org.apache.pekko.protobufv3.internal.ByteString getSenderBytes()
       optional int32 redeliveries = 6; // Removed in Akka 2.4
       repeated string confirms = 7; // Removed in Akka 2.4
       optional bool confirmable = 8;  // Removed in Akka 2.4
       optional DeliveredMessage confirmMessage = 9; // Removed in Akka 2.4
       optional string confirmTarget = 10; // Removed in Akka 2.4
       
      optional string sender = 11;
      Specified by:
      getSenderBytes in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The bytes for sender.
    • hasManifest

      public boolean hasManifest()
      optional string manifest = 12;
      Specified by:
      hasManifest in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the manifest field is set.
    • getManifest

      public String getManifest()
      optional string manifest = 12;
      Specified by:
      getManifest in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The manifest.
    • getManifestBytes

      public org.apache.pekko.protobufv3.internal.ByteString getManifestBytes()
      optional string manifest = 12;
      Specified by:
      getManifestBytes in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The bytes for manifest.
    • hasWriterUuid

      public boolean hasWriterUuid()
      optional string writerUuid = 13;
      Specified by:
      hasWriterUuid in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the writerUuid field is set.
    • getWriterUuid

      public String getWriterUuid()
      optional string writerUuid = 13;
      Specified by:
      getWriterUuid in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The writerUuid.
    • getWriterUuidBytes

      public org.apache.pekko.protobufv3.internal.ByteString getWriterUuidBytes()
      optional string writerUuid = 13;
      Specified by:
      getWriterUuidBytes in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The bytes for writerUuid.
    • hasTimestamp

      public boolean hasTimestamp()
      optional sint64 timestamp = 14;
      Specified by:
      hasTimestamp in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public long getTimestamp()
      optional sint64 timestamp = 14;
      Specified by:
      getTimestamp in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The timestamp.
    • hasMetadata

      public boolean hasMetadata()
      optional .PersistentPayload metadata = 15;
      Specified by:
      hasMetadata in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public MessageFormats.PersistentPayload getMetadata()
      optional .PersistentPayload metadata = 15;
      Specified by:
      getMetadata in interface MessageFormats.PersistentMessageOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public MessageFormats.PersistentPayloadOrBuilder getMetadataOrBuilder()
      optional .PersistentPayload metadata = 15;
      Specified by:
      getMetadataOrBuilder in interface MessageFormats.PersistentMessageOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
      Overrides:
      isInitialized in class org.apache.pekko.protobufv3.internal.GeneratedMessage
    • writeTo

      public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface org.apache.pekko.protobufv3.internal.MessageLite
      Overrides:
      writeTo in class org.apache.pekko.protobufv3.internal.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface org.apache.pekko.protobufv3.internal.MessageLite
      Overrides:
      getSerializedSize in class org.apache.pekko.protobufv3.internal.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.apache.pekko.protobufv3.internal.Message
      Overrides:
      equals in class org.apache.pekko.protobufv3.internal.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.apache.pekko.protobufv3.internal.Message
      Overrides:
      hashCode in class org.apache.pekko.protobufv3.internal.AbstractMessage
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(ByteBuffer data) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(ByteBuffer data, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(org.apache.pekko.protobufv3.internal.ByteString data) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(org.apache.pekko.protobufv3.internal.ByteString data, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(byte[] data) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(byte[] data, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
      Throws:
      org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(InputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MessageFormats.PersistentMessage parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MessageFormats.PersistentMessage parseDelimitedFrom(InputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MessageFormats.PersistentMessage parseFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MessageFormats.PersistentMessage.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface org.apache.pekko.protobufv3.internal.Message
      Specified by:
      newBuilderForType in interface org.apache.pekko.protobufv3.internal.MessageLite
    • newBuilder

      public static MessageFormats.PersistentMessage.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface org.apache.pekko.protobufv3.internal.Message
      Specified by:
      toBuilder in interface org.apache.pekko.protobufv3.internal.MessageLite
    • newBuilderForType

      protected MessageFormats.PersistentMessage.Builder newBuilderForType(org.apache.pekko.protobufv3.internal.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class org.apache.pekko.protobufv3.internal.AbstractMessage
    • getDefaultInstance

      public static MessageFormats.PersistentMessage getDefaultInstance()
    • parser

      public static org.apache.pekko.protobufv3.internal.Parser<MessageFormats.PersistentMessage> parser()
    • getParserForType

      public org.apache.pekko.protobufv3.internal.Parser<MessageFormats.PersistentMessage> getParserForType()
      Specified by:
      getParserForType in interface org.apache.pekko.protobufv3.internal.Message
      Specified by:
      getParserForType in interface org.apache.pekko.protobufv3.internal.MessageLite
      Overrides:
      getParserForType in class org.apache.pekko.protobufv3.internal.GeneratedMessage
    • getDefaultInstanceForType

      public MessageFormats.PersistentMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface org.apache.pekko.protobufv3.internal.MessageOrBuilder