public interface PubSubMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttributes(String key)
Optional attributes that can be used for message metadata/headers.
|
Map<String,AttributeValues> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Optional attributes that can be used for message metadata/headers.
|
Map<String,AttributeValues> |
getAttributesMap()
Optional attributes that can be used for message metadata/headers.
|
AttributeValues |
getAttributesOrDefault(String key,
AttributeValues defaultValue)
Optional attributes that can be used for message metadata/headers.
|
AttributeValues |
getAttributesOrThrow(String key)
Optional attributes that can be used for message metadata/headers.
|
com.google.protobuf.ByteString |
getData()
The payload of the message.
|
com.google.protobuf.Timestamp |
getEventTime()
An optional, user-specified event time.
|
com.google.protobuf.TimestampOrBuilder |
getEventTimeOrBuilder()
An optional, user-specified event time.
|
com.google.protobuf.ByteString |
getKey()
The key used for routing messages to partitions or for compaction (e.g.,
keep the last N messages per key).
|
boolean |
hasEventTime()
An optional, user-specified event time.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofcom.google.protobuf.ByteString getKey()
The key used for routing messages to partitions or for compaction (e.g., keep the last N messages per key). If the key is empty, the message is routed to an arbitrary partition.
bytes key = 1;com.google.protobuf.ByteString getData()
The payload of the message.
bytes data = 2;int getAttributesCount()
Optional attributes that can be used for message metadata/headers.
map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;boolean containsAttributes(String key)
Optional attributes that can be used for message metadata/headers.
map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;@Deprecated Map<String,AttributeValues> getAttributes()
getAttributesMap() instead.Map<String,AttributeValues> getAttributesMap()
Optional attributes that can be used for message metadata/headers.
map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;AttributeValues getAttributesOrDefault(String key, AttributeValues defaultValue)
Optional attributes that can be used for message metadata/headers.
map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;AttributeValues getAttributesOrThrow(String key)
Optional attributes that can be used for message metadata/headers.
map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;boolean hasEventTime()
An optional, user-specified event time.
.google.protobuf.Timestamp event_time = 4;com.google.protobuf.Timestamp getEventTime()
An optional, user-specified event time.
.google.protobuf.Timestamp event_time = 4;com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
An optional, user-specified event time.
.google.protobuf.Timestamp event_time = 4;Copyright © 2023 Google LLC. All rights reserved.