Class TopicPath (1.13.8)

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
Type Description
TopicPath.Builder

parse(String path)

public static TopicPath parse(String path)
Parameter
Name Description
path String
Returns
Type Description
TopicPath
Exceptions
Type Description
ApiException

Constructors

TopicPath()

public TopicPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
Type Description
CloudRegionOrZone

locationPath()

public LocationPath locationPath()
Returns
Type Description
LocationPath

name()

public abstract TopicName name()
Returns
Type Description
TopicName

project()

public abstract ProjectIdOrNumber project()
Returns
Type Description
ProjectIdOrNumber

toBuilder()

public abstract TopicPath.Builder toBuilder()
Returns
Type Description
TopicPath.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides