Package com.google.cloud.pubsublite
Class LocationPath
- java.lang.Object
-
- com.google.cloud.pubsublite.LocationPath
-
- All Implemented Interfaces:
Serializable
public abstract class LocationPath extends Object implements Serializable
A string wrapper representing a project and location.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocationPath.Builder
-
Constructor Summary
Constructors Constructor Description LocationPath()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CloudRegionOrZonelocation()static LocationPath.BuildernewBuilder()Create a new LocationPath builder.static LocationPathparse(String path)Parse a location path.abstract ProjectIdOrNumberproject()ProjectPathprojectPath()abstract LocationPath.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
project
public abstract ProjectIdOrNumber project()
-
location
public abstract CloudRegionOrZone location()
-
projectPath
public ProjectPath projectPath()
-
newBuilder
public static LocationPath.Builder newBuilder()
Create a new LocationPath builder.
-
toBuilder
public abstract LocationPath.Builder toBuilder()
-
parse
public static LocationPath parse(String path) throws com.google.api.gax.rpc.ApiException
Parse a location path. Should be structured like:projects/<project number>/locations/<cloud region or zone>
- Throws:
com.google.api.gax.rpc.ApiException
-
-