Search in sources :

Example 1 with IamCredentialsStubSettings

use of com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings in project gapic-generator-java by googleapis.

the class SyncGenerateAccessToken method syncGenerateAccessToken.

public static void syncGenerateAccessToken() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    IamCredentialsStubSettings.Builder iamCredentialsSettingsBuilder = IamCredentialsStubSettings.newBuilder();
    iamCredentialsSettingsBuilder.generateAccessTokenSettings().setRetrySettings(iamCredentialsSettingsBuilder.generateAccessTokenSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    IamCredentialsStubSettings iamCredentialsSettings = iamCredentialsSettingsBuilder.build();
}
Also used : IamCredentialsStubSettings(com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings)

Aggregations

IamCredentialsStubSettings (com.google.cloud.iam.credentials.v1.stub.IamCredentialsStubSettings)1