Search in sources :

Example 1 with BaseBigtableDataSettings

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);
}
Also used : BaseBigtableDataSettings(com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings) BaseBigtableDataClient(com.google.cloud.bigtable.data.v2.BaseBigtableDataClient)

Example 2 with 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();
}
Also used : BaseBigtableDataSettings(com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings)

Example 3 with 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.
    BigtableStubSettings.Builder baseBigtableDataSettingsBuilder = BigtableStubSettings.newBuilder();
    baseBigtableDataSettingsBuilder.mutateRowSettings().setRetrySettings(baseBigtableDataSettingsBuilder.mutateRowSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    BigtableStubSettings baseBigtableDataSettings = baseBigtableDataSettingsBuilder.build();
}
Also used : BigtableStubSettings(com.google.cloud.bigtable.data.v2.stub.BigtableStubSettings)

Example 4 with BaseBigtableDataSettings

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);
}
Also used : BaseBigtableDataSettings(com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings) BaseBigtableDataClient(com.google.cloud.bigtable.data.v2.BaseBigtableDataClient)

Aggregations

BaseBigtableDataSettings (com.google.cloud.bigtable.data.v2.BaseBigtableDataSettings)3 BaseBigtableDataClient (com.google.cloud.bigtable.data.v2.BaseBigtableDataClient)2 BigtableStubSettings (com.google.cloud.bigtable.data.v2.stub.BigtableStubSettings)1