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.
|
com.google.pubsub.v1.TopicName |
getTopic()
Returns the Cloud PubSub topic to which this subscription publishes.
|
int |
hashCode() |
static NotificationInfo.Builder |
newBuilder(com.google.pubsub.v1.TopicName topic)
Returns a
NotificationInfo builder where the topic's name is set to the provided name. |
static NotificationInfo |
of(com.google.pubsub.v1.TopicName 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 com.google.pubsub.v1.TopicName 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(com.google.pubsub.v1.TopicName topic)
NotificationInfo object for the provided topic name.public static NotificationInfo.Builder newBuilder(com.google.pubsub.v1.TopicName topic)
NotificationInfo builder where the topic's name is set to the provided name.Copyright © 2018 Google. All rights reserved.