public class NotificationInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NotificationInfo.Builder |
static class |
NotificationInfo.PayloadFormat |
Modifier and Type | Method and 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.
|
ProjectTopicName |
getTopic()
Returns the Cloud PubSub topic to which this subscription publishes.
|
int |
hashCode() |
static NotificationInfo.Builder |
newBuilder(ProjectTopicName topic)
Returns a
NotificationInfo builder where the topic's name is set to the provided name. |
static NotificationInfo |
of(ProjectTopicName topic)
Creates a
NotificationInfo object for the provided topic name. |
NotificationInfo.Builder |
toBuilder()
Returns a builder for the current notification.
|
String |
toString() |
public String getGeneratedId()
public ProjectTopicName getTopic()
public String getSelfLink()
public NotificationInfo.PayloadFormat getPayloadFormat()
public String getObjectNamePrefix()
public String getEtag()
public List<String> getEventTypes()
public Map<String,String> getCustomAttributes()
public NotificationInfo.Builder toBuilder()
public static NotificationInfo of(ProjectTopicName topic)
NotificationInfo
object for the provided topic name.public static NotificationInfo.Builder newBuilder(ProjectTopicName topic)
NotificationInfo
builder where the topic's name is set to the provided name.Copyright © 2019 Google LLC. All rights reserved.