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) |
String |
getProject()
Returns the name of the project where the Google Cloud Pub/Sub topic resides.
|
String |
getTopic()
Returns the name of the Google Cloud Pub/Sub topic this destination represents.
|
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 |
toString() |
getType
public String getProject()
null
, the default project is used.public String getTopic()
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 © 2019 Google LLC. All rights reserved.