public abstract class MessageA user message.
Static Methods
builder()
public static Message.Builder builder()Get a new builder for a message.
| Type | Description | 
Message.Builder | 
        
fromProto(PubSubMessage proto)
public static Message fromProto(PubSubMessage proto)Construct a message from a proto.
| Name | Description | 
proto | 
        PubSubMessage | 
      
| Type | Description | 
Message | 
        
Constructors
Message()
public Message()Methods
attributes()
public abstract ImmutableListMultimap<String,ByteString> attributes()A multimap of attributes for this message.
| Type | Description | 
com.google.common.collect.ImmutableListMultimap<String,ByteString> | 
        
data()
public abstract ByteString data()The data payload for this message.
| Type | Description | 
ByteString | 
        
eventTime()
public abstract Optional<Timestamp> eventTime()The user-provided event time for this message.
| Type | Description | 
Optional<Timestamp> | 
        
key()
public abstract ByteString key()The key for this message. All messages with the same key are routed to the same partition.
| Type | Description | 
ByteString | 
        
toBuilder()
public abstract Message.Builder toBuilder()Convert an existing message to a builder.
| Type | Description | 
Message.Builder | 
        
toProto()
public PubSubMessage toProto()Convert this to a message proto.
| Type | Description | 
PubSubMessage |