Class NotificationInfo (0.167.0-beta)

public class NotificationInfo implements Serializable

Google Storage Notification metadata; See Also: Concepts and Terminology

Inheritance

Object > NotificationInfo

Implements

Serializable

Static Methods

newBuilder(ProjectTopicName topic)

public static NotificationInfo.Builder newBuilder(ProjectTopicName topic)

Returns a NotificationInfo builder where the topic's name is set to the provided name.

Parameter
Name Description
topic com.google.pubsub.v1.ProjectTopicName
Returns
Type Description
NotificationInfo.Builder

of(ProjectTopicName topic)

public static NotificationInfo of(ProjectTopicName topic)

Creates a NotificationInfo object for the provided topic name.

Parameter
Name Description
topic com.google.pubsub.v1.ProjectTopicName
Returns
Type Description
NotificationInfo

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

Returns
Type Description
Map<String,String>

getEtag()

public String getEtag()

Returns HTTP 1.1 Entity tag for the notification. See Also: Entity Tags

Returns
Type Description
String

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)

Returns
Type Description
List<String>

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for the notification.

Returns
Type Description
String

getObjectNamePrefix()

public String getObjectNamePrefix()

Returns the object name prefix for which this notification configuration applies.

Returns
Type Description
String

getPayloadFormat()

public NotificationInfo.PayloadFormat getPayloadFormat()

Returns the desired content of the Payload.

Returns
Type Description
NotificationInfo.PayloadFormat
public String getSelfLink()

Returns the canonical URI of this topic as a string.

Returns
Type Description
String

getTopic()

public ProjectTopicName getTopic()

Returns the Cloud PubSub topic to which this subscription publishes.

Returns
Type Description
com.google.pubsub.v1.ProjectTopicName

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public NotificationInfo.Builder toBuilder()

Returns a builder for the current notification.

Returns
Type Description
NotificationInfo.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides