Package com.google.cloud.notification
Class NotificationInfo
- java.lang.Object
-
- com.google.cloud.notification.NotificationInfo
-
- All Implemented Interfaces:
Serializable
public class NotificationInfo extends Object implements Serializable
Google Storage Notification metadata;- See Also:
- Concepts and Terminology, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotificationInfo.Builder
static class
NotificationInfo.PayloadFormat
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Map<String,String>
getCustomAttributes()
Returns the list of additional attributes to attach to each Cloud PubSub message published for\ this notification subscription.String
getEtag()
Returns HTTP 1.1 Entity tag for the notification.List<String>
getEventTypes()
Returns the list of event types that this notification will apply to.String
getGeneratedId()
Returns the service-generated id for the notification.String
getObjectNamePrefix()
Returns the object name prefix for which this notification configuration applies.NotificationInfo.PayloadFormat
getPayloadFormat()
Returns the desired content of the Payload.String
getSelfLink()
Returns the canonical URI of this topic as a string.com.google.pubsub.v1.ProjectTopicName
getTopic()
Returns the Cloud PubSub topic to which this subscription publishes.int
hashCode()
static NotificationInfo.Builder
newBuilder(com.google.pubsub.v1.ProjectTopicName topic)
Returns aNotificationInfo
builder where the topic's name is set to the provided name.static NotificationInfo
of(com.google.pubsub.v1.ProjectTopicName topic)
Creates aNotificationInfo
object for the provided topic name.NotificationInfo.Builder
toBuilder()
Returns a builder for the current notification.String
toString()
-
-
-
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.
-
getPayloadFormat
public NotificationInfo.PayloadFormat getPayloadFormat()
Returns the desired content of the Payload.
-
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
-
getEventTypes
public List<String> 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:
- Cross-Origin Resource Sharing (CORS)
-
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
-
toBuilder
public NotificationInfo.Builder toBuilder()
Returns a builder for the current notification.
-
of
public static NotificationInfo of(com.google.pubsub.v1.ProjectTopicName topic)
Creates aNotificationInfo
object for the provided topic name.
-
newBuilder
public static NotificationInfo.Builder newBuilder(com.google.pubsub.v1.ProjectTopicName topic)
Returns aNotificationInfo
builder where the topic's name is set to the provided name.
-
-