Class LocationPath (1.5.5)

public abstract class LocationPath implements Serializable

A string wrapper representing a project and location.

Inheritance

java.lang.Object > LocationPath

Implements

Serializable

Static Methods

newBuilder()

public static LocationPath.Builder newBuilder()

Create a new LocationPath builder.

Returns
TypeDescription
LocationPath.Builder

parse(String path)

public static LocationPath parse(String path)

Parse a location path. Should be structured like:

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

Parameter
NameDescription
pathString
Returns
TypeDescription
LocationPath
Exceptions
TypeDescription
ApiException

Constructors

LocationPath()

public LocationPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
TypeDescription
CloudRegionOrZone

project()

public abstract ProjectIdOrNumber project()
Returns
TypeDescription
ProjectIdOrNumber

projectPath()

public ProjectPath projectPath()
Returns
TypeDescription
ProjectPath

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides