Class TopicPath (1.13.0)

public abstract class TopicPath implements Serializable

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

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

Inheritance

java.lang.Object > TopicPath

Implements

Serializable

Static Methods

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

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

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