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

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

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






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












com.google.api.services.pubsub.model

Class PullRequest

    • Constructor Detail

      • PullRequest

        public PullRequest()
    • Method Detail

      • getMaxMessages

        public Integer getMaxMessages()
        Required. The maximum number of messages to return for this request. Must be a positive integer. The Pub/Sub system may return fewer than the number specified.
        Returns:
        value or null for none
      • setMaxMessages

        public PullRequest setMaxMessages(Integer maxMessages)
        Required. The maximum number of messages to return for this request. Must be a positive integer. The Pub/Sub system may return fewer than the number specified.
        Parameters:
        maxMessages - maxMessages or null for none
      • getReturnImmediately

        public Boolean getReturnImmediately()
        Optional. If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. Warning: setting this field to `true` is discouraged because it adversely impacts the performance of `Pull` operations. We recommend that users do not set this field.
        Returns:
        value or null for none
      • setReturnImmediately

        public PullRequest setReturnImmediately(Boolean returnImmediately)
        Optional. If this field set to true, the system will respond immediately even if it there are no messages available to return in the `Pull` response. Otherwise, the system may wait (for a bounded amount of time) until at least one message is available, rather than returning no messages. Warning: setting this field to `true` is discouraged because it adversely impacts the performance of `Pull` operations. We recommend that users do not set this field.
        Parameters:
        returnImmediately - returnImmediately or null for none
      • set

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

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