public interface PubSubMessageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsAttributes(String key)
public abstract boolean containsAttributes(String key)Optional attributes that can be used for message metadata/headers.
 map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
| Name | Description | 
| key | String | 
      
| Type | Description | 
| boolean | 
getAttributes()
public abstract Map<String,AttributeValues> getAttributes()Use #getAttributesMap() instead.
| Type | Description | 
| Map<String,AttributeValues> | 
getAttributesCount()
public abstract int getAttributesCount()Optional attributes that can be used for message metadata/headers.
 map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
| Type | Description | 
| int | 
getAttributesMap()
public abstract Map<String,AttributeValues> getAttributesMap()Optional attributes that can be used for message metadata/headers.
 map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
| Type | Description | 
| Map<String,AttributeValues> | 
getAttributesOrDefault(String key, AttributeValues defaultValue)
public abstract 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;
| Name | Description | 
| key | String | 
      
| defaultValue | AttributeValues | 
      
| Type | Description | 
| AttributeValues | 
getAttributesOrThrow(String key)
public abstract AttributeValues getAttributesOrThrow(String key)Optional attributes that can be used for message metadata/headers.
 map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
| Name | Description | 
| key | String | 
      
| Type | Description | 
| AttributeValues | 
getData()
public abstract ByteString getData()The payload of the message.
 bytes data = 2;
| Type | Description | 
| ByteString | The data.  | 
      
getEventTime()
public abstract Timestamp getEventTime()An optional, user-specified event time.
 .google.protobuf.Timestamp event_time = 4;
| Type | Description | 
| Timestamp | The eventTime.  | 
      
getEventTimeOrBuilder()
public abstract TimestampOrBuilder getEventTimeOrBuilder()An optional, user-specified event time.
 .google.protobuf.Timestamp event_time = 4;
| Type | Description | 
| TimestampOrBuilder | 
getKey()
public abstract 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;
| Type | Description | 
| ByteString | The key.  | 
      
hasEventTime()
public abstract boolean hasEventTime()An optional, user-specified event time.
 .google.protobuf.Timestamp event_time = 4;
| Type | Description | 
| boolean | Whether the eventTime field is set.  |