All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.pubsub.model.ReceivedMessage.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240730-2.0.0
Show newest version






ReceivedMessage (Cloud Pub/Sub API v1-rev20240918-2.0.0)












com.google.api.services.pubsub.model

Class ReceivedMessage

    • Constructor Detail

      • ReceivedMessage

        public ReceivedMessage()
    • Method Detail

      • getAckId

        public String getAckId()
        Optional. This ID can be used to acknowledge the received message.
        Returns:
        value or null for none
      • setAckId

        public ReceivedMessage setAckId(String ackId)
        Optional. This ID can be used to acknowledge the received message.
        Parameters:
        ackId - ackId or null for none
      • getDeliveryAttempt

        public Integer getDeliveryAttempt()
        Optional. The approximate number of times that Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.
        Returns:
        value or null for none
      • setDeliveryAttempt

        public ReceivedMessage setDeliveryAttempt(Integer deliveryAttempt)
        Optional. The approximate number of times that Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.
        Parameters:
        deliveryAttempt - deliveryAttempt or null for none
      • getMessage

        public PubsubMessage getMessage()
        Optional. The message.
        Returns:
        value or null for none
      • setMessage

        public ReceivedMessage setMessage(PubsubMessage message)
        Optional. The message.
        Parameters:
        message - message or null for none
      • clone

        public ReceivedMessage clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy