Class ProjectPath

java.lang.Object
com.google.cloud.pubsublite.ProjectPath
All Implemented Interfaces:
Serializable

public abstract class ProjectPath extends Object implements Serializable
A string wrapper representing a project.
See Also:
  • Constructor Details

    • ProjectPath

      public ProjectPath()
  • Method Details

    • project

      public abstract ProjectIdOrNumber project()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newBuilder

      public static ProjectPath.Builder newBuilder()
      Create a new ProjectPath builder.
    • toBuilder

      public abstract ProjectPath.Builder toBuilder()
    • parse

      public static ProjectPath parse(String path) throws com.google.api.gax.rpc.ApiException
      Parse a project path. Should be structured like:

      projects/<project number>

      Throws:
      com.google.api.gax.rpc.ApiException