Search in sources :

Example 1 with AssetServiceSettings

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);
}
Also used : AssetServiceClient(com.google.cloud.asset.v1.AssetServiceClient) AssetServiceSettings(com.google.cloud.asset.v1.AssetServiceSettings)

Example 2 with 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);
}
Also used : AssetServiceClient(com.google.cloud.asset.v1.AssetServiceClient) AssetServiceSettings(com.google.cloud.asset.v1.AssetServiceSettings)

Example 3 with 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();
}
Also used : AssetServiceSettings(com.google.cloud.asset.v1.AssetServiceSettings)

Example 4 with 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.
    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

AssetServiceSettings (com.google.cloud.asset.v1.AssetServiceSettings)3 AssetServiceClient (com.google.cloud.asset.v1.AssetServiceClient)2 AssetServiceStubSettings (com.google.cloud.asset.v1.stub.AssetServiceStubSettings)1