PubsubIO.PubsubSubscription (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.io

Class PubsubIO.PubsubSubscription

    • Method Detail

      • fromPath

        public static PubsubIO.PubsubSubscription fromPath(String path)
        Creates a class representing a Pub/Sub subscription from the specified subscription path.

        Cloud Pub/Sub subscription names should be of the form projects/<project>/subscriptions/<subscription>, where <project> is the name of the project the subscription belongs to. The <subscription> component must comply with the following requirements:

        • Can only contain lowercase letters, numbers, dashes ('-'), underscores ('_') and periods ('.').
        • Must be between 3 and 255 characters.
        • Must begin with a letter.
        • Must end with a letter or a number.
        • Cannot begin with 'goog' prefix.
      • asV1Beta1Path

        @Deprecated
        public String asV1Beta1Path()
        Deprecated. the v1beta1 API for Cloud Pub/Sub is deprecated.
        Returns the string representation of this subscription as a path used in the Cloud Pub/Sub v1beta1 API.
      • asV1Beta2Path

        @Deprecated
        public String asV1Beta2Path()
        Deprecated. the v1beta2 API for Cloud Pub/Sub is deprecated.
        Returns the string representation of this subscription as a path used in the Cloud Pub/Sub v1beta2 API.
      • asPath

        public String asPath()
        Returns the string representation of this subscription as a path used in the Cloud Pub/Sub API.


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Dataflow
Need help? Visit our support page.