use of com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings in project gapic-generator-java by googleapis.
the class SyncCreateSetEndpoint method syncCreateSetEndpoint.
public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
BaseBigtableDataSettings baseBigtableDataSettings = BaseBigtableDataSettings.newBuilder().setEndpoint(myEndpoint).build();
BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create(baseBigtableDataSettings);
}
use of com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings in project gapic-generator-java by googleapis.
the class SyncMutateRow method syncMutateRow.
public static void syncMutateRow() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder = BaseBigtableDataSettings.newBuilder();
baseBigtableDataSettingsBuilder.mutateRowSettings().setRetrySettings(baseBigtableDataSettingsBuilder.mutateRowSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
BaseBigtableDataSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
}
use of com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings in project gapic-generator-java by googleapis.
the class SyncMutateRow method syncMutateRow.
public static void syncMutateRow() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
BigtableStubSettings.Builder baseBigtableDataSettingsBuilder = BigtableStubSettings.newBuilder();
baseBigtableDataSettingsBuilder.mutateRowSettings().setRetrySettings(baseBigtableDataSettingsBuilder.mutateRowSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
}
use of com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings in project gapic-generator-java by googleapis.
the class SyncCreateSetCredentialsProvider method syncCreateSetCredentialsProvider.
public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
BaseBigtableDataSettings baseBigtableDataSettings = BaseBigtableDataSettings.newBuilder().setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)).build();
BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create(baseBigtableDataSettings);
}
Aggregations