Interface PubSubMessageOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    PubSubMessage, PubSubMessage.Builder

    public interface PubSubMessageOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getKey

        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). If the key is empty, the message is
         routed to an arbitrary partition.
         
        bytes key = 1;
        Returns:
        The key.
      • getData

        com.google.protobuf.ByteString getData()
         The payload of the message.
         
        bytes data = 2;
        Returns:
        The data.
      • getAttributesCount

        int getAttributesCount()
         Optional attributes that can be used for message metadata/headers.
         
        map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
      • containsAttributes

        boolean containsAttributes​(String key)
         Optional attributes that can be used for message metadata/headers.
         
        map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
      • getAttributesMap

        Map<String,​AttributeValues> getAttributesMap()
         Optional attributes that can be used for message metadata/headers.
         
        map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
      • getAttributesOrDefault

        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;
      • getAttributesOrThrow

        AttributeValues getAttributesOrThrow​(String key)
         Optional attributes that can be used for message metadata/headers.
         
        map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3;
      • hasEventTime

        boolean hasEventTime()
         An optional, user-specified event time.
         
        .google.protobuf.Timestamp event_time = 4;
        Returns:
        Whether the eventTime field is set.
      • getEventTime

        com.google.protobuf.Timestamp getEventTime()
         An optional, user-specified event time.
         
        .google.protobuf.Timestamp event_time = 4;
        Returns:
        The eventTime.
      • getEventTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
         An optional, user-specified event time.
         
        .google.protobuf.Timestamp event_time = 4;