pubsub.subscriber_message ========================= .. py:module:: pubsub.subscriber_message Classes ------- .. autoapisummary:: pubsub.subscriber_message.SubscriberMessage Functions --------- .. autoapisummary:: pubsub.subscriber_message.parse_publish_time Module Contents --------------- .. py:function:: parse_publish_time(publish_time) .. py:class:: SubscriberMessage(ack_id, message_id, publish_time, data, attributes, delivery_attempt = None) .. py:attribute:: ack_id .. py:attribute:: message_id .. py:attribute:: publish_time .. py:attribute:: data .. py:attribute:: attributes .. py:attribute:: delivery_attempt :value: None .. py:attribute:: force_ack_nack :type: bool | None :value: None .. py:method:: from_repr(received_message) :staticmethod: .. py:method:: to_repr() .. py:method:: ack() Forcibly mark a message as acked. By default, we only ack a message if the callback returns without raising an exception. If this method has been called on the Message, we will instead ack it regardless of exception status. .. py:method:: nack() Forcibly mark a message as nacked. By default, we only nack a message if the callback raises an exception. If this method has been called on the Message, we will instead nack it regardless of exception status, ie. including if it completes successfully.