public abstract class Message extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Builder |
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableListMultimap<String,com.google.protobuf.ByteString> |
attributes()
A multimap of attributes for this message.
|
static Message.Builder |
builder()
Get a new builder for a message.
|
abstract com.google.protobuf.ByteString |
data()
The data payload for this message.
|
abstract Optional<com.google.protobuf.Timestamp> |
eventTime()
The user-provided event time for this message.
|
static Message |
fromProto(PubSubMessage proto)
Construct a message from a proto.
|
abstract com.google.protobuf.ByteString |
key()
The key for this message.
|
abstract Message.Builder |
toBuilder()
Convert an existing message to a builder.
|
PubSubMessage |
toProto()
Convert this to a message proto.
|
public abstract com.google.protobuf.ByteString key()
public abstract com.google.protobuf.ByteString data()
public abstract com.google.common.collect.ImmutableListMultimap<String,com.google.protobuf.ByteString> attributes()
public abstract Optional<com.google.protobuf.Timestamp> eventTime()
public static Message.Builder builder()
public abstract Message.Builder toBuilder()
public PubSubMessage toProto()
public static Message fromProto(PubSubMessage proto)
Copyright © 2020 Google LLC. All rights reserved.