Source:
<code><START> private BigtableDataSettings.Builder buildBigtableDataSettings() throws IOException { <END> BigtableDataSettings.Builder dataBuilder = BigtableDataSettings.newBuilder() .setProjectId(getProjectId()) .setInstanceId(getInstanceId()); String appProfileId = configuration.get(APP_PROFILE_ID_KEY); if (!isNullOrEmpty(appProfileId)) { dataBuilder.setAppProfileId(appProfileId); } EnhancedBigtableStubSettings.Builder stubSettings = dataBuilder.stubSettings(); buildEndpoints(stubSettings, BIGTABLE_HOST_KEY); buildHeaderProvider(stubSettings); buildCredentialProvider(stubSettings); String shortRpcTimeoutStr = configuration.get(BIGTABLE_RPC_TIMEOUT_MS_KEY); if (!isNullOrEmpty(shortRpcTimeoutStr)) { Duration shortRpcTimeout = ofMillis(Long.parseLong(shortRpcTimeoutStr)); stubSettings.checkAndMutateRowSettings().setSimpleTimeoutNoRetries(shortRpcTimeout); stubSettings.readModifyWriteRowSettings().setSimpleTimeoutNoRetries(shortRpcTimeout); } buildBulkMutationsSettings(stubSettings); buildBulkReadRowsSettings(stubSettings); buildReadRowsSettings(stubSettings); stubSettings .readRowSettings() .setRetryableCodes(buildRetryCodes(stubSettings.readRowSettings().getRetryableCodes())) .setRetrySettings( buildIdempotentRetrySettings(stubSettings.readRowSettings().getRetrySettings())); stubSettings .mutateRowSettings() .setRetryableCodes(buildRetryCodes(stubSettings.mutateRowSettings().getRetryableCodes())) .setRetrySettings( buildIdempotentRetrySettings(stubSettings.mutateRowSettings().getRetrySettings())); stubSettings .sampleRowKeysSettings() .setRetryableCodes( buildRetryCodes(stubSettings.sampleRowKeysSettings().getRetryableCodes())) .setRetrySettings( buildIdempotentRetrySettings(stubSettings.sampleRowKeysSettings().getRetrySettings())); buildEmulatorSettings(stubSettings); return dataBuilder; }</code><technical_language>Please return BigtableDataSettings, returning a Builder implies settings arent finalized</technical_language>

Target:
private BigtableDataSettings buildBigtableDataSettings() throws IOException { BigtableDataSettings.Builder dataBuilder = BigtableDataSettings.newBuilder() .setProjectId(getProjectId()) .setInstanceId(getInstanceId()); String appProfileId = configuration.get(APP_PROFILE_ID_KEY); if (!isNullOrEmpty(appProfileId)) { dataBuilder.setAppProfileId(appProfileId); } if (Boolean.parseBoolean(configuration.get(ALLOW_NO_TIMESTAMP_RETRIES_KEY))) { throw new UnsupportedOperationException("Retries without Timestamp is not supported."); } EnhancedBigtableStubSettings.Builder stubSettings = dataBuilder.stubSettings(); configureConnection(stubSettings, BIGTABLE_HOST_KEY); configureHeaderProvider(stubSettings); configureCredentialProvider(stubSettings); configureEmulatorSettings(stubSettings); configureBulkMutationSettings(stubSettings); configureBulkReadRowsSettings(stubSettings); configureMutateRowSettings(stubSettings); configureReadRowsSettings(stubSettings); configureNonIdempotentCallSettings(stubSettings.checkAndMutateRowSettings()); configureNonIdempotentCallSettings(stubSettings.readModifyWriteRowSettings()); configureIdempotentCallSettings(stubSettings.readRowSettings()); configureIdempotentCallSettings(stubSettings.sampleRowKeysSettings()); return dataBuilder.build(); }