Package com.google.cloud.logging
Class SinkInfo.Destination.TopicDestination
java.lang.Object
com.google.cloud.logging.SinkInfo.Destination
com.google.cloud.logging.SinkInfo.Destination.TopicDestination
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SinkInfo.Destination
Class for specifying a Google Cloud BigQuery dataset as destination for the sink.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.logging.SinkInfo.Destination
SinkInfo.Destination.BucketDestination, SinkInfo.Destination.DatasetDestination, SinkInfo.Destination.LoggingBucketDestination, SinkInfo.Destination.TopicDestination, SinkInfo.Destination.Type -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the project where the Google Cloud Pub/Sub topic resides.getTopic()Returns the name of the Google Cloud Pub/Sub topic this destination represents.inthashCode()Creates aDatasetDestinationobject given the name of the topic to be used as sink destination.Creates aTopicDestinationobject given the name of the project and topic to be used as sink destination.toString()Methods inherited from class com.google.cloud.logging.SinkInfo.Destination
getType
-
Method Details
-
getProject
Returns the name of the project where the Google Cloud Pub/Sub topic resides. Ifnull, the default project is used. -
getTopic
Returns the name of the Google Cloud Pub/Sub topic this destination represents. -
equals
-
hashCode
public int hashCode() -
toString
-
of
Creates aTopicDestinationobject given the name of the project and topic to be used as sink destination. -
of
Creates aDatasetDestinationobject given the name of the topic to be used as sink destination. Topic is assumed to reside in the default project.
-