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