public static final class SinkInfo.Destination.TopicDestination extends SinkInfo.Destination
SinkInfo.Destination.BucketDestination, SinkInfo.Destination.DatasetDestination, SinkInfo.Destination.TopicDestination, SinkInfo.Destination.Type| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static SinkInfo.Destination.TopicDestination |
of(String topic)
Creates a
DatasetDestination object given the name of the topic to be used as
sink destination. |
static SinkInfo.Destination.TopicDestination |
of(String project,
String topic)
Creates a
TopicDestination object given the name of the project and topic to be
used as sink destination. |
String |
project()
Returns the name of the project where the Google Cloud Pub/Sub topic resides.
|
String |
topic()
Returns the name of the Google Cloud Pub/Sub topic this destination represents.
|
String |
toString() |
typepublic String project()
null, the default project is used.public String topic()
public static SinkInfo.Destination.TopicDestination of(String project, String topic)
TopicDestination object given the name of the project and topic to be
used as sink destination.public static SinkInfo.Destination.TopicDestination of(String topic)
DatasetDestination object given the name of the topic to be used as
sink destination. Topic is assumed to reside in the default project.Copyright © 2016 Google. All rights reserved.