Class NotificationInfo (0.141.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
NameDescription
topiccom.google.pubsub.v1.ProjectTopicName
Returns
TypeDescription
NotificationInfo.Builder

of(ProjectTopicName topic)

public static NotificationInfo of(ProjectTopicName topic)

Creates a NotificationInfo object for the provided topic name.

Parameter
NameDescription
topiccom.google.pubsub.v1.ProjectTopicName
Returns
TypeDescription
NotificationInfo

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
Map<String,String>

getEtag()

public String getEtag()

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

Returns
TypeDescription
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
TypeDescription
List<String>

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for the notification.

Returns
TypeDescription
String

getObjectNamePrefix()

public String getObjectNamePrefix()

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

Returns
TypeDescription
String

getPayloadFormat()

public NotificationInfo.PayloadFormat getPayloadFormat()

Returns the desired content of the Payload.

Returns
TypeDescription
NotificationInfo.PayloadFormat
public String getSelfLink()

Returns the canonical URI of this topic as a string.

Returns
TypeDescription
String

getTopic()

public ProjectTopicName getTopic()

Returns the Cloud PubSub topic to which this subscription publishes.

Returns
TypeDescription
com.google.pubsub.v1.ProjectTopicName

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public NotificationInfo.Builder toBuilder()

Returns a builder for the current notification.

Returns
TypeDescription
NotificationInfo.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides