Class IamCredentialsSettings.Builder (2.1.0)

public static class IamCredentialsSettings.Builder extends ClientSettings.Builder<IamCredentialsSettings,IamCredentialsSettings.Builder>

Builder for IamCredentialsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > IamCredentialsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(IamCredentialsSettings settings)

protected Builder(IamCredentialsSettings settings)
Parameter
NameDescription
settingsIamCredentialsSettings

Builder(IamCredentialsStubSettings.Builder stubSettings)

protected Builder(IamCredentialsStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsIamCredentialsStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public IamCredentialsSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
IamCredentialsSettings.Builder

build()

public IamCredentialsSettings build()
Returns
TypeDescription
IamCredentialsSettings
Overrides Exceptions
TypeDescription
IOException

generateAccessTokenSettings()

public UnaryCallSettings.Builder<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()

Returns the builder for the settings used for calls to generateAccessToken.

Returns
TypeDescription
Builder<GenerateAccessTokenRequest,GenerateAccessTokenResponse>

generateIdTokenSettings()

public UnaryCallSettings.Builder<GenerateIdTokenRequest,GenerateIdTokenResponse> generateIdTokenSettings()

Returns the builder for the settings used for calls to generateIdToken.

Returns
TypeDescription
Builder<GenerateIdTokenRequest,GenerateIdTokenResponse>

getStubSettingsBuilder()

public IamCredentialsStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
IamCredentialsStubSettings.Builder

signBlobSettings()

public UnaryCallSettings.Builder<SignBlobRequest,SignBlobResponse> signBlobSettings()

Returns the builder for the settings used for calls to signBlob.

Returns
TypeDescription
Builder<SignBlobRequest,SignBlobResponse>

signJwtSettings()

public UnaryCallSettings.Builder<SignJwtRequest,SignJwtResponse> signJwtSettings()

Returns the builder for the settings used for calls to signJwt.

Returns
TypeDescription
Builder<SignJwtRequest,SignJwtResponse>