public class PubsubMessage
extends java.lang.Object
Constructor and Description |
---|
PubsubMessage(byte[] payload,
java.util.Map<java.lang.String,java.lang.String> attributes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String attribute)
Returns the given attribute value.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributeMap()
Returns the full map of attributes.
|
byte[] |
getPayload()
Returns the main PubSub message.
|
public PubsubMessage(byte[] payload, java.util.Map<java.lang.String,java.lang.String> attributes)
public byte[] getPayload()
@Nullable public java.lang.String getAttribute(java.lang.String attribute)
public java.util.Map<java.lang.String,java.lang.String> getAttributeMap()