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:
  • Constructor Details

    • LocationPath

      public LocationPath()
  • Method Details

    • project

      public abstract ProjectIdOrNumber project()
    • location

      public abstract CloudRegionOrZone location()
    • projectPath

      public ProjectPath projectPath()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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