Class LocationPath (1.14.7)

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
Type Description
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
Name Description
path String
Returns
Type Description
LocationPath
Exceptions
Type Description
ApiException

Constructors

LocationPath()

public LocationPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
Type Description
CloudRegionOrZone

project()

public abstract ProjectIdOrNumber project()
Returns
Type Description
ProjectIdOrNumber

projectPath()

public ProjectPath projectPath()
Returns
Type Description
ProjectPath

toBuilder()

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

toString()

public String toString()
Returns
Type Description
String
Overrides