use of com.google.cloud.pubsub.v1.TopicAdminSettings in project flink by apache.
the class PubsubHelper method getTopicAdminClient.
public TopicAdminClient getTopicAdminClient() throws IOException {
if (topicClient == null) {
TopicAdminSettings topicAdminSettings = TopicAdminSettings.newBuilder().setTransportChannelProvider(channelProvider).setCredentialsProvider(EmulatorCredentialsProvider.create()).build();
topicClient = TopicAdminClient.create(topicAdminSettings);
}
return topicClient;
}
Aggregations