Class TopicPath

public abstract class TopicPath implements Serializable

A string wrapper representing a topic. Should be structured like:

projects/<project number>/locations/<cloud zone>/topics/<id>

Inheritance

java.lang.Object > TopicPath

Implements

Serializable

Constructors

TopicPath()

public TopicPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
TypeDescription
CloudRegionOrZone

locationPath()

public LocationPath locationPath()
Returns
TypeDescription
LocationPath

name()

public abstract TopicName name()
Returns
TypeDescription
TopicName

newBuilder()

public static TopicPath.Builder newBuilder()

Create a new TopicPath builder.

Returns
TypeDescription
TopicPath.Builder

parse(String path)

public static TopicPath parse(String path)
Parameter
NameDescription
pathString
Returns
TypeDescription
TopicPath
Exceptions
TypeDescription
ApiException

project()

public abstract ProjectIdOrNumber project()
Returns
TypeDescription
ProjectIdOrNumber

toBuilder()

public abstract TopicPath.Builder toBuilder()
Returns
TypeDescription
TopicPath.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides