Class EncryptionKeys
- java.lang.Object
-
- org.apache.pulsar.common.api.proto.EncryptionKeys
-
public final class EncryptionKeys extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EncryptionKeys()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionKeysaddAllMetadatas(java.lang.Iterable<KeyValue> metadatas)KeyValueaddMetadata()EncryptionKeysclear()EncryptionKeysclearKey()EncryptionKeysclearMetadata()EncryptionKeysclearValue()EncryptionKeyscopyFrom(EncryptionKeys _other)java.lang.StringgetKey()KeyValuegetMetadataAt(int idx)intgetMetadatasCount()java.util.List<KeyValue>getMetadatasList()intgetSerializedSize()byte[]getValue()intgetValueSize()io.netty.buffer.ByteBufgetValueSlice()booleanhasKey()booleanhasValue()voidparseFrom(byte[] a)voidparseFrom(io.netty.buffer.ByteBuf _buffer, int _size)EncryptionKeyssetKey(java.lang.String key)EncryptionKeyssetValue(byte[] value)EncryptionKeyssetValue(io.netty.buffer.ByteBuf value)byte[]toByteArray()intwriteTo(io.netty.buffer.ByteBuf _b)
-
-
-
Method Detail
-
hasKey
public boolean hasKey()
-
getKey
public java.lang.String getKey()
-
setKey
public EncryptionKeys setKey(java.lang.String key)
-
clearKey
public EncryptionKeys clearKey()
-
hasValue
public boolean hasValue()
-
getValueSize
public int getValueSize()
-
getValue
public byte[] getValue()
-
getValueSlice
public io.netty.buffer.ByteBuf getValueSlice()
-
setValue
public EncryptionKeys setValue(byte[] value)
-
setValue
public EncryptionKeys setValue(io.netty.buffer.ByteBuf value)
-
clearValue
public EncryptionKeys clearValue()
-
getMetadatasCount
public int getMetadatasCount()
-
getMetadataAt
public KeyValue getMetadataAt(int idx)
-
getMetadatasList
public java.util.List<KeyValue> getMetadatasList()
-
addMetadata
public KeyValue addMetadata()
-
addAllMetadatas
public EncryptionKeys addAllMetadatas(java.lang.Iterable<KeyValue> metadatas)
-
clearMetadata
public EncryptionKeys clearMetadata()
-
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
public EncryptionKeys clear()
-
copyFrom
public EncryptionKeys copyFrom(EncryptionKeys _other)
-
toByteArray
public byte[] toByteArray()
-
parseFrom
public void parseFrom(byte[] a)
-
-