Class PubsubIO.PubsubTopic
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubIO.PubsubTopic
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PubsubIO
public static class PubsubIO.PubsubTopic extends java.lang.Object implements java.io.SerializableClass representing a Cloud Pub/Sub Topic.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringasPath()Returns the string representation of this topic as a path used in the Cloud Pub/Sub API.java.lang.StringasV1Beta1Path()Deprecated.the v1beta1 API for Cloud Pub/Sub is deprecated.java.lang.StringasV1Beta2Path()Deprecated.the v1beta2 API for Cloud Pub/Sub is deprecated.java.util.List<java.lang.String>dataCatalogSegments()booleanequals(java.lang.Object o)static PubsubIO.PubsubTopicfromPath(java.lang.String path)Creates a class representing a Cloud Pub/Sub topic from the specified topic path.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
fromPath
public static PubsubIO.PubsubTopic fromPath(java.lang.String path)
Creates a class representing a Cloud Pub/Sub topic from the specified topic 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:- Can only contain lowercase letters, numbers, dashes ('-'), underscores ('_') and periods ('.').
- Must be between 3 and 255 characters.
- Must begin with a letter.
- Must end with a letter or a number.
- Cannot begin with 'goog' prefix.
-
asV1Beta1Path
@Deprecated public java.lang.String asV1Beta1Path()
Deprecated.the v1beta1 API for Cloud Pub/Sub is deprecated.Returns the string representation of this topic as a path used in the Cloud Pub/Sub v1beta1 API.
-
asV1Beta2Path
@Deprecated public java.lang.String asV1Beta2Path()
Deprecated.the v1beta2 API for Cloud Pub/Sub is deprecated.Returns the string representation of this topic as a path used in the Cloud Pub/Sub v1beta2 API.
-
asPath
public java.lang.String asPath()
Returns the string representation of this topic as a path used in the Cloud Pub/Sub API.
-
dataCatalogSegments
public java.util.List<java.lang.String> dataCatalogSegments()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-