public static class PubsubIO.PubsubTopic
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asPath()
Returns the string representation of this topic as a path used in the Cloud Pub/Sub API.
|
java.lang.String |
asV1Beta1Path()
Deprecated.
the v1beta1 API for Cloud Pub/Sub is deprecated.
|
java.lang.String |
asV1Beta2Path()
Deprecated.
the v1beta2 API for Cloud Pub/Sub is deprecated.
|
java.util.List<java.lang.String> |
dataCatalogSegments() |
boolean |
equals(java.lang.Object o) |
static PubsubIO.PubsubTopic |
fromPath(java.lang.String path)
Creates a class representing a Cloud Pub/Sub topic from the specified topic path.
|
int |
hashCode() |
java.lang.String |
toString() |
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static PubsubIO.PubsubTopic fromPath(java.lang.String path)
Cloud Pub/Sub topic names should be of the form /topics/<project>/<topic>
, where
<project>
is the name of the publishing project. The <topic>
component must
comply with the following requirements:
@Deprecated public java.lang.String asV1Beta1Path()
@Deprecated public java.lang.String asV1Beta2Path()
public java.lang.String asPath()
public java.util.List<java.lang.String> dataCatalogSegments()
public java.lang.String toString()
toString
in class java.lang.Object