Package com.google.cloud.notification
Class NotificationInfo
java.lang.Object
com.google.cloud.notification.NotificationInfo
- All Implemented Interfaces:
Serializable
Google Storage Notification metadata;
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.getEtag()Returns HTTP 1.1 Entity tag for the notification.Returns the list of event types that this notification will apply to.Returns the service-generated id for the notification.Returns the object name prefix for which this notification configuration applies.Returns the desired content of the Payload.Returns the canonical URI of this topic as a string.com.google.pubsub.v1.ProjectTopicNamegetTopic()Returns the Cloud PubSub topic to which this subscription publishes.inthashCode()static NotificationInfo.BuildernewBuilder(com.google.pubsub.v1.ProjectTopicName topic) Returns aNotificationInfobuilder where the topic's name is set to the provided name.static NotificationInfoof(com.google.pubsub.v1.ProjectTopicName topic) Creates aNotificationInfoobject for the provided topic name.Returns a builder for the current notification.toString()
-
Method Details
-
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
Returns the canonical URI of this topic as a string. -
getPayloadFormat
Returns the desired content of the Payload. -
getObjectNamePrefix
Returns the object name prefix for which this notification configuration applies. -
getEtag
Returns HTTP 1.1 Entity tag for the notification.- See Also:
-
getEventTypes
Returns the list of event types that this notification will apply to. If empty, notifications will be sent on all event types.- See Also:
-
getCustomAttributes
Returns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.- See Also:
-
toBuilder
Returns a builder for the current notification. -
hashCode
public int hashCode() -
equals
-
toString
-
of
Creates aNotificationInfoobject for the provided topic name. -
newBuilder
Returns aNotificationInfobuilder where the topic's name is set to the provided name.
-