Package com.google.cloud.pubsublite
Class TopicPath
- java.lang.Object
-
- com.google.cloud.pubsublite.TopicPath
-
- All Implemented Interfaces:
Serializable
public abstract class TopicPath extends Object implements Serializable
A string wrapper representing a topic. Should be structured like:projects/<project number>/locations/<cloud region or zone>/topics/<id>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTopicPath.Builder
-
Constructor Summary
Constructors Constructor Description TopicPath()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CloudRegionOrZonelocation()LocationPathlocationPath()abstract TopicNamename()static TopicPath.BuildernewBuilder()Create a new TopicPath builder.static TopicPathparse(String path)abstract ProjectIdOrNumberproject()abstract TopicPath.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
project
public abstract ProjectIdOrNumber project()
-
location
public abstract CloudRegionOrZone location()
-
name
public abstract TopicName name()
-
locationPath
public LocationPath locationPath()
-
newBuilder
public static TopicPath.Builder newBuilder()
Create a new TopicPath builder.
-
toBuilder
public abstract TopicPath.Builder toBuilder()
-
-