Package com.google.cloud.pubsublite
Class SubscriptionPath
- java.lang.Object
-
- com.google.cloud.pubsublite.SubscriptionPath
-
- All Implemented Interfaces:
Serializable
public abstract class SubscriptionPath extends Object implements Serializable
A string wrapper representing a subscription. Should be structured like:projects/<project number>/locations/<cloud region or zone>/subscriptions/<id>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscriptionPath.Builder
-
Constructor Summary
Constructors Constructor Description SubscriptionPath()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CloudRegionOrZone
location()
LocationPath
locationPath()
abstract SubscriptionName
name()
static SubscriptionPath.Builder
newBuilder()
Create a new SubscriptionPath builder.static SubscriptionPath
parse(String path)
abstract ProjectIdOrNumber
project()
abstract SubscriptionPath.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
project
public abstract ProjectIdOrNumber project()
-
location
public abstract CloudRegionOrZone location()
-
name
public abstract SubscriptionName name()
-
locationPath
public LocationPath locationPath()
-
newBuilder
public static SubscriptionPath.Builder newBuilder()
Create a new SubscriptionPath builder.
-
toBuilder
public abstract SubscriptionPath.Builder toBuilder()
-
parse
public static SubscriptionPath parse(String path) throws com.google.api.gax.rpc.ApiException
- Throws:
com.google.api.gax.rpc.ApiException
-
-