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 classSubscriptionPath.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 CloudRegionOrZonelocation()LocationPathlocationPath()abstract SubscriptionNamename()static SubscriptionPath.BuildernewBuilder()Create a new SubscriptionPath builder.static SubscriptionPathparse(String path)abstract ProjectIdOrNumberproject()abstract SubscriptionPath.BuildertoBuilder()StringtoString()
-
-
-
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
-
-