Class NotificationInfo

    • Method Detail

      • getGeneratedId

        public String getGeneratedId()
        Returns the service-generated id for the notification.
      • getTopic

        public com.google.pubsub.v1.ProjectTopicName getTopic()
        Returns the Cloud PubSub topic to which this subscription publishes.
      • getSelfLink

        public String getSelfLink()
        Returns the canonical URI of this topic as a string.
      • getObjectNamePrefix

        public String getObjectNamePrefix()
        Returns the object name prefix for which this notification configuration applies.
      • getEtag

        public String getEtag()
        Returns HTTP 1.1 Entity tag for the notification.
        See Also:
        Entity Tags
      • getCustomAttributes

        public Map<String,​String> getCustomAttributes()
        Returns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.
        See Also:
        About Access Control Lists
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • of

        public static NotificationInfo of​(com.google.pubsub.v1.ProjectTopicName topic)
        Creates a NotificationInfo object for the provided topic name.
      • newBuilder

        public static NotificationInfo.Builder newBuilder​(com.google.pubsub.v1.ProjectTopicName topic)
        Returns a NotificationInfo builder where the topic's name is set to the provided name.