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

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

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






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












com.google.api.services.pubsub.model

Class SeekRequest

    • Constructor Detail

      • SeekRequest

        public SeekRequest()
    • Method Detail

      • getSnapshot

        public String getSnapshot()
        Optional. The snapshot to seek to. The snapshot's topic must be the same as that of the provided subscription. Format is `projects/{project}/snapshots/{snap}`.
        Returns:
        value or null for none
      • setSnapshot

        public SeekRequest setSnapshot(String snapshot)
        Optional. The snapshot to seek to. The snapshot's topic must be the same as that of the provided subscription. Format is `projects/{project}/snapshots/{snap}`.
        Parameters:
        snapshot - snapshot or null for none
      • getTime

        public String getTime()
        Optional. The time to seek to. Messages retained in the subscription that were published before this time are marked as acknowledged, and messages retained in the subscription that were published after this time are marked as unacknowledged. Note that this operation affects only those messages retained in the subscription (configured by the combination of `message_retention_duration` and `retain_acked_messages`). For example, if `time` corresponds to a point before the message retention window (or to a point before the system's notion of the subscription creation time), only retained messages will be marked as unacknowledged, and already-expunged messages will not be restored.
        Returns:
        value or null for none
      • setTime

        public SeekRequest setTime(String time)
        Optional. The time to seek to. Messages retained in the subscription that were published before this time are marked as acknowledged, and messages retained in the subscription that were published after this time are marked as unacknowledged. Note that this operation affects only those messages retained in the subscription (configured by the combination of `message_retention_duration` and `retain_acked_messages`). For example, if `time` corresponds to a point before the message retention window (or to a point before the system's notion of the subscription creation time), only retained messages will be marked as unacknowledged, and already-expunged messages will not be restored.
        Parameters:
        time - time or null for none
      • set

        public SeekRequest set(String fieldName,
                               Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public SeekRequest 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