use of com.google.cloud.asset.v1.AssetServiceSettings 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.
AssetServiceSettings assetServiceSettings = AssetServiceSettings.newBuilder().setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)).build();
AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
}
use of com.google.cloud.asset.v1.AssetServiceSettings 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.
AssetServiceSettings assetServiceSettings = AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings);
}
use of com.google.cloud.asset.v1.AssetServiceSettings 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.
AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
assetServiceSettingsBuilder.batchGetAssetsHistorySettings().setRetrySettings(assetServiceSettingsBuilder.batchGetAssetsHistorySettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build();
}
use of com.google.cloud.asset.v1.AssetServiceSettings 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();
}
Aggregations