Package io.micronaut.gcp.pubsub.support
Class PubSubSubscriptionUtils
java.lang.Object
io.micronaut.gcp.pubsub.support.PubSubSubscriptionUtils
Various utility methods for dealing with Pub/Sub subscriptions.
 Original source at : https://github.com/spring-cloud/spring-cloud-gcp/blob/master/spring-cloud-gcp-pubsub/src/main/java/org/springframework/cloud/gcp/pubsub/support/PubSubSubscriptionUtils.java
- Since:
 - 2.0.0
 - Author:
 - Mike Eltsufin, Vinicius Carvalho
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.pubsub.v1.ProjectSubscriptionNametoProjectSubscriptionName(@NonNull String subscription, @Nullable String projectId) Create aProjectSubscriptionNamebased on a subscription name within a project or the fully-qualified subscription name. 
- 
Method Details
- 
toProjectSubscriptionName
public static com.google.pubsub.v1.ProjectSubscriptionName toProjectSubscriptionName(@NonNull @NonNull String subscription, @Nullable @Nullable String projectId) Create aProjectSubscriptionNamebased on a subscription name within a project or the fully-qualified subscription name. If the specified subscription is in theprojects/<project_name>/subscriptions/<subscription_name>format, then theprojectIdis ignored}- Parameters:
 subscription- the subscription name in the project or the fully-qualified project nameprojectId- the project ID to use if the subscription is not a fully-qualified name- Returns:
 - the Pub/Sub object representing the subscription name
 
 
 -