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

public static final class SinkInfo.Destination.TopicDestination extends SinkInfo.Destination
Class for specifying a Google Cloud BigQuery dataset as destination for the sink.
See Also:
  • Method Details

    • getProject

      public String getProject()
      Returns the name of the project where the Google Cloud Pub/Sub topic resides. If null, the default project is used.
    • getTopic

      public String getTopic()
      Returns the name of the Google Cloud Pub/Sub topic this destination represents.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public 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.
    • of

      Creates a DatasetDestination object given the name of the topic to be used as sink destination. Topic is assumed to reside in the default project.