Search in sources :

Example 1 with StorageStubSettings

use of com.google.storage.v2.stub.StorageStubSettings in project gapic-generator-java by googleapis.

the class SyncDeleteBucket method syncDeleteBucket.

public static void syncDeleteBucket() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    StorageStubSettings.Builder storageSettingsBuilder = StorageStubSettings.newBuilder();
    storageSettingsBuilder.deleteBucketSettings().setRetrySettings(storageSettingsBuilder.deleteBucketSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    StorageStubSettings storageSettings = storageSettingsBuilder.build();
}
Also used : StorageStubSettings(com.google.storage.v2.stub.StorageStubSettings)

Aggregations

StorageStubSettings (com.google.storage.v2.stub.StorageStubSettings)1