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 class
TopicPath.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 CloudRegionOrZone
location()
LocationPath
locationPath()
abstract TopicName
name()
static TopicPath.Builder
newBuilder()
Create a new TopicPath builder.static TopicPath
parse(String path)
abstract ProjectIdOrNumber
project()
abstract TopicPath.Builder
toBuilder()
String
toString()
-
-
-
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()
-
-