Package com.google.cloud.pubsublite
Class ProjectNumber
- java.lang.Object
-
- com.google.cloud.pubsublite.ProjectNumber
-
- All Implemented Interfaces:
Serializable
public abstract class ProjectNumber extends Object implements Serializable
A wrapper class for the project number.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectNumber()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ProjectNumber
of(long value)
Construct a ProjectNumber from its long value.String
toString()
abstract long
value()
The long value of this project number.
-
-
-
Method Detail
-
value
public abstract long value()
The long value of this project number.
-
of
public static ProjectNumber of(long value) throws com.google.api.gax.rpc.ApiException
Construct a ProjectNumber from its long value.- Throws:
com.google.api.gax.rpc.ApiException
-
-