Search in sources :

Example 1 with AssetServiceStubSettings

use of com.google.cloud.asset.v1.stub.AssetServiceStubSettings in project gapic-generator-java by googleapis.

the class SyncBatchGetAssetsHistory method syncBatchGetAssetsHistory.

public static void syncBatchGetAssetsHistory() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    AssetServiceStubSettings.Builder assetServiceSettingsBuilder = AssetServiceStubSettings.newBuilder();
    assetServiceSettingsBuilder.batchGetAssetsHistorySettings().setRetrySettings(assetServiceSettingsBuilder.batchGetAssetsHistorySettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
}
Also used : AssetServiceStubSettings(com.google.cloud.asset.v1.stub.AssetServiceStubSettings)

Aggregations

AssetServiceStubSettings (com.google.cloud.asset.v1.stub.AssetServiceStubSettings)1