Class MessageMetadata
java.lang.Object
org.apache.pulsar.common.api.proto.MessageMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllEncryptionKeys(Iterable<EncryptionKeys> encryptionKeys) addAllProperties(Iterable<KeyValue> properties) addAllReplicateTos(Iterable<String> replicateTos) voidaddReplicateTo(String replicateTo) clear()copyFrom(MessageMetadata _other) intlonggetEncryptionKeyAt(int idx) intbyte[]intio.netty.buffer.ByteBuflonglongintintintbyte[]intio.netty.buffer.ByteBufintgetPropertyAt(int idx) longgetReplicateToAt(int idx) intbyte[]intio.netty.buffer.ByteBuflongintintlonglongintgetUuid()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasUuid()booleanbooleanbooleanvoidparseFrom(byte[] a) voidparseFrom(io.netty.buffer.ByteBuf _buffer, int _size) setChunkId(int chunkId) setCompression(CompressionType compression) setDeliverAtTime(long deliverAtTime) setEncryptionAlgo(String encryptionAlgo) setEncryptionParam(byte[] encryptionParam) setEncryptionParam(io.netty.buffer.ByteBuf encryptionParam) setEventTime(long eventTime) setHighestSequenceId(long highestSequenceId) setMarkerType(int markerType) setNullPartitionKey(boolean nullPartitionKey) setNullValue(boolean nullValue) setNumChunksFromMsg(int numChunksFromMsg) setNumMessagesInBatch(int numMessagesInBatch) setOrderingKey(byte[] orderingKey) setOrderingKey(io.netty.buffer.ByteBuf orderingKey) setPartitionKey(String partitionKey) setPartitionKeyB64Encoded(boolean partitionKeyB64Encoded) setProducerName(String producerName) setPublishTime(long publishTime) setReplicatedFrom(String replicatedFrom) setSchemaVersion(byte[] schemaVersion) setSchemaVersion(io.netty.buffer.ByteBuf schemaVersion) setSequenceId(long sequenceId) setTotalChunkMsgSize(int totalChunkMsgSize) setTxnidLeastBits(long txnidLeastBits) setTxnidMostBits(long txnidMostBits) setUncompressedSize(int uncompressedSize) byte[]intwriteTo(io.netty.buffer.ByteBuf _b)
-
Constructor Details
-
MessageMetadata
public MessageMetadata()
-
-
Method Details
-
hasProducerName
public boolean hasProducerName() -
getProducerName
-
setProducerName
-
clearProducerName
-
hasSequenceId
public boolean hasSequenceId() -
getSequenceId
public long getSequenceId() -
setSequenceId
-
clearSequenceId
-
hasPublishTime
public boolean hasPublishTime() -
getPublishTime
public long getPublishTime() -
setPublishTime
-
clearPublishTime
-
getPropertiesCount
public int getPropertiesCount() -
getPropertyAt
-
getPropertiesList
-
addProperty
-
addAllProperties
-
clearProperties
-
hasReplicatedFrom
public boolean hasReplicatedFrom() -
getReplicatedFrom
-
setReplicatedFrom
-
clearReplicatedFrom
-
hasPartitionKey
public boolean hasPartitionKey() -
getPartitionKey
-
setPartitionKey
-
clearPartitionKey
-
getReplicateTosCount
public int getReplicateTosCount() -
getReplicateToAt
-
getReplicateTosList
-
addReplicateTo
-
addAllReplicateTos
-
clearReplicateTo
-
hasCompression
public boolean hasCompression() -
getCompression
-
setCompression
-
clearCompression
-
hasUncompressedSize
public boolean hasUncompressedSize() -
getUncompressedSize
public int getUncompressedSize() -
setUncompressedSize
-
clearUncompressedSize
-
hasNumMessagesInBatch
public boolean hasNumMessagesInBatch() -
getNumMessagesInBatch
public int getNumMessagesInBatch() -
setNumMessagesInBatch
-
clearNumMessagesInBatch
-
hasEventTime
public boolean hasEventTime() -
getEventTime
public long getEventTime() -
setEventTime
-
clearEventTime
-
getEncryptionKeysCount
public int getEncryptionKeysCount() -
getEncryptionKeyAt
-
getEncryptionKeysList
-
addEncryptionKey
-
addAllEncryptionKeys
-
clearEncryptionKeys
-
hasEncryptionAlgo
public boolean hasEncryptionAlgo() -
getEncryptionAlgo
-
setEncryptionAlgo
-
clearEncryptionAlgo
-
hasEncryptionParam
public boolean hasEncryptionParam() -
getEncryptionParamSize
public int getEncryptionParamSize() -
getEncryptionParam
public byte[] getEncryptionParam() -
getEncryptionParamSlice
public io.netty.buffer.ByteBuf getEncryptionParamSlice() -
setEncryptionParam
-
setEncryptionParam
-
clearEncryptionParam
-
hasSchemaVersion
public boolean hasSchemaVersion() -
getSchemaVersionSize
public int getSchemaVersionSize() -
getSchemaVersion
public byte[] getSchemaVersion() -
getSchemaVersionSlice
public io.netty.buffer.ByteBuf getSchemaVersionSlice() -
setSchemaVersion
-
setSchemaVersion
-
clearSchemaVersion
-
hasPartitionKeyB64Encoded
public boolean hasPartitionKeyB64Encoded() -
isPartitionKeyB64Encoded
public boolean isPartitionKeyB64Encoded() -
setPartitionKeyB64Encoded
-
clearPartitionKeyB64Encoded
-
hasOrderingKey
public boolean hasOrderingKey() -
getOrderingKeySize
public int getOrderingKeySize() -
getOrderingKey
public byte[] getOrderingKey() -
getOrderingKeySlice
public io.netty.buffer.ByteBuf getOrderingKeySlice() -
setOrderingKey
-
setOrderingKey
-
clearOrderingKey
-
hasDeliverAtTime
public boolean hasDeliverAtTime() -
getDeliverAtTime
public long getDeliverAtTime() -
setDeliverAtTime
-
clearDeliverAtTime
-
hasMarkerType
public boolean hasMarkerType() -
getMarkerType
public int getMarkerType() -
setMarkerType
-
clearMarkerType
-
hasTxnidLeastBits
public boolean hasTxnidLeastBits() -
getTxnidLeastBits
public long getTxnidLeastBits() -
setTxnidLeastBits
-
clearTxnidLeastBits
-
hasTxnidMostBits
public boolean hasTxnidMostBits() -
getTxnidMostBits
public long getTxnidMostBits() -
setTxnidMostBits
-
clearTxnidMostBits
-
hasHighestSequenceId
public boolean hasHighestSequenceId() -
getHighestSequenceId
public long getHighestSequenceId() -
setHighestSequenceId
-
clearHighestSequenceId
-
hasNullValue
public boolean hasNullValue() -
isNullValue
public boolean isNullValue() -
setNullValue
-
clearNullValue
-
hasUuid
public boolean hasUuid() -
getUuid
-
setUuid
-
clearUuid
-
hasNumChunksFromMsg
public boolean hasNumChunksFromMsg() -
getNumChunksFromMsg
public int getNumChunksFromMsg() -
setNumChunksFromMsg
-
clearNumChunksFromMsg
-
hasTotalChunkMsgSize
public boolean hasTotalChunkMsgSize() -
getTotalChunkMsgSize
public int getTotalChunkMsgSize() -
setTotalChunkMsgSize
-
clearTotalChunkMsgSize
-
hasChunkId
public boolean hasChunkId() -
getChunkId
public int getChunkId() -
setChunkId
-
clearChunkId
-
hasNullPartitionKey
public boolean hasNullPartitionKey() -
isNullPartitionKey
public boolean isNullPartitionKey() -
setNullPartitionKey
-
clearNullPartitionKey
-
writeTo
public int writeTo(io.netty.buffer.ByteBuf _b) -
getSerializedSize
public int getSerializedSize() -
parseFrom
public void parseFrom(io.netty.buffer.ByteBuf _buffer, int _size) -
clear
-
copyFrom
-
toByteArray
public byte[] toByteArray() -
parseFrom
public void parseFrom(byte[] a)
-