use of com.google.cloud.pubsub.v1.SubscriptionAdminSettings in project flink by apache.
the class PubsubHelper method getSubscriptionAdminClient.
public SubscriptionAdminClient getSubscriptionAdminClient() throws IOException {
if (subscriptionAdminClient == null) {
SubscriptionAdminSettings subscriptionAdminSettings = SubscriptionAdminSettings.newBuilder().setTransportChannelProvider(channelProvider).setCredentialsProvider(EmulatorCredentialsProvider.create()).build();
subscriptionAdminClient = SubscriptionAdminClient.create(subscriptionAdminSettings);
}
return subscriptionAdminClient;
}
Aggregations