/*
 * Copyright 2016 Spotify AB.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */


package com.spotify.scio.bigtable;

import com.google.cloud.bigtable.config.BigtableOptions;
import com.google.cloud.bigtable.grpc.BigtableSession;
import com.google.cloud.bigtable.grpc.io.ChannelPool;
import com.google.cloud.bigtable.grpc.io.CredentialInterceptorCache;
import com.google.cloud.bigtable.grpc.io.HeaderInterceptor;
import com.google.common.collect.ImmutableList;
import java.io.IOException;
import java.util.List;

public class ChannelPoolCreator {
  public static final BigtableOptions options = new BigtableOptions.Builder().build();
  public static List<HeaderInterceptor> interceptors;

  static {
    try {
      interceptors = ImmutableList.of(CredentialInterceptorCache.getInstance()
              .getCredentialsInterceptor(options.getCredentialOptions(), options.getRetryOptions()));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

  public static ChannelPool createPool(final String host) throws IOException {
    return new ChannelPool(interceptors, () -> BigtableSession.createNettyChannel(host, options));
  }
}
@@ -888,96 +888,71 @@
 le.c
-loud.bigtable.grpc.io.HeaderInterceptor;%0Aimport com.google.common.collect.ImmutableList;
+ommon.collect.ImmutableList;%0Aimport io.grpc.ClientInterceptor;%0A
 %0Aimp
@@ -1141,19 +1141,14 @@
 tic 
-List%3CHeader
+Client
 Inte
@@ -1154,17 +1154,16 @@
 erceptor
-%3E
  interce
@@ -1166,17 +1166,16 @@
 erceptor
-s
 ;%0A%0A  sta
@@ -1211,29 +1211,11 @@
 ptor
-s
  = 
-ImmutableList.of(
 Cred
@@ -1350,17 +1350,16 @@
 tions())
-)
 ;%0A    %7D 
@@ -1528,22 +1528,8 @@
 ool(
-interceptors, 
 () -
@@ -1578,17 +1578,41 @@
  options
-)
+, interceptor),%0A        1
 );%0A  %7D%0A%7D

Fix compile errors in bigtable project. (#640)