Search in sources :

Example 1 with BigQueryReadSettings

use of com.google.cloud.bigquery.storage.v1beta2.BigQueryReadSettings in project java-bigquerystorage by googleapis.

the class ReadRowsRetryTest method setUp.

@Before
public void setUp() throws IOException {
    service = new TestBigQueryStorageService();
    serverRule.getServiceRegistry().addService(service);
    BigQueryReadSettings settings = BigQueryReadSettings.newBuilder().setCredentialsProvider(NoCredentialsProvider.create()).setTransportChannelProvider(FixedTransportChannelProvider.create(GrpcTransportChannel.create(serverRule.getChannel()))).build();
    client = BigQueryReadClient.create(settings);
}
Also used : BigQueryReadSettings(com.google.cloud.bigquery.storage.v1.BigQueryReadSettings) Before(org.junit.Before)

Example 2 with BigQueryReadSettings

use of com.google.cloud.bigquery.storage.v1beta2.BigQueryReadSettings in project java-bigquerystorage by googleapis.

the class ReadRowsRetryTest method setUp.

@Before
public void setUp() throws IOException {
    service = new TestBigQueryStorageService();
    serverRule.getServiceRegistry().addService(service);
    BigQueryReadSettings settings = BigQueryReadSettings.newBuilder().setCredentialsProvider(NoCredentialsProvider.create()).setTransportChannelProvider(FixedTransportChannelProvider.create(GrpcTransportChannel.create(serverRule.getChannel()))).build();
    client = BigQueryReadClient.create(settings);
}
Also used : BigQueryReadSettings(com.google.cloud.bigquery.storage.v1beta2.BigQueryReadSettings) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 BigQueryReadSettings (com.google.cloud.bigquery.storage.v1.BigQueryReadSettings)1 BigQueryReadSettings (com.google.cloud.bigquery.storage.v1beta2.BigQueryReadSettings)1