private Channel newChannel() throws IOException {
  checkState(publisherChannel != null,"PubsubGrpcClient has been closed");
  ClientAuthInterceptor interceptor=new ClientAuthInterceptor(credentials,Executors.newSingleThreadExecutor());
  return ClientInterceptors.intercept(publisherChannel,interceptor);
}

private Channel newChannel ( ) throws IOException { checkState ( publisherChannel != null , "PubsubGrpcClient has been closed" ) ; ClientAuthInterceptor interceptor = new ClientAuthInterceptor ( credentials , Executors . newSingleThreadExecutor ( ) ) ; return ClientInterceptors . intercept ( publisherChannel , interceptor ) ; }
return channel with interceptor for returning credentials .
