Search in sources :

Example 1 with LibraryServiceStubSettings

use of com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings in project gapic-generator-java by googleapis.

the class SyncCreateShelf method syncCreateShelf.

public static void syncCreateShelf() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    LibraryServiceStubSettings.Builder libraryServiceSettingsBuilder = LibraryServiceStubSettings.newBuilder();
    libraryServiceSettingsBuilder.createShelfSettings().setRetrySettings(libraryServiceSettingsBuilder.createShelfSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    LibraryServiceStubSettings libraryServiceSettings = libraryServiceSettingsBuilder.build();
}
Also used : LibraryServiceStubSettings(com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings)

Aggregations

LibraryServiceStubSettings (com.google.cloud.example.library.v1.stub.LibraryServiceStubSettings)1