Class GrpcIamCredentialsStub (2.24.0)

public class GrpcIamCredentialsStub extends IamCredentialsStub

gRPC stub implementation for the IAMCredentials service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > IamCredentialsStub > GrpcIamCredentialsStub

Static Methods

create(ClientContext clientContext)

public static final GrpcIamCredentialsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcIamCredentialsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcIamCredentialsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcIamCredentialsStub
Exceptions
TypeDescription
IOException

create(IamCredentialsStubSettings settings)

public static final GrpcIamCredentialsStub create(IamCredentialsStubSettings settings)
Parameter
NameDescription
settingsIamCredentialsStubSettings
Returns
TypeDescription
GrpcIamCredentialsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext)

protected GrpcIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcIamCredentialsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsIamCredentialsStubSettings
clientContextClientContext

GrpcIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcIamCredentialsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsIamCredentialsStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

generateAccessTokenCallable()

public UnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenCallable()
Returns
TypeDescription
UnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse>
Overrides

generateIdTokenCallable()

public UnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse> generateIdTokenCallable()
Returns
TypeDescription
UnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

signBlobCallable()

public UnaryCallable<SignBlobRequest,SignBlobResponse> signBlobCallable()
Returns
TypeDescription
UnaryCallable<SignBlobRequest,SignBlobResponse>
Overrides

signJwtCallable()

public UnaryCallable<SignJwtRequest,SignJwtResponse> signJwtCallable()
Returns
TypeDescription
UnaryCallable<SignJwtRequest,SignJwtResponse>
Overrides