Package com.google.cloud.pubsublite
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectPath.Builder
-
Constructor Summary
Constructors Constructor Description ProjectPath()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ProjectPath.Builder
newBuilder()
Create a new ProjectPath builder.static ProjectPath
parse(String path)
Parse a project path.abstract ProjectIdOrNumber
project()
abstract ProjectPath.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
project
public abstract ProjectIdOrNumber project()
-
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
-
-