Class GrpcAccessApprovalStub (2.15.0)

public class GrpcAccessApprovalStub extends AccessApprovalStub

gRPC stub implementation for the AccessApproval service API.

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

Inheritance

java.lang.Object > AccessApprovalStub > GrpcAccessApprovalStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AccessApprovalStubSettings settings)

public static final GrpcAccessApprovalStub create(AccessApprovalStubSettings settings)
Parameter
NameDescription
settingsAccessApprovalStubSettings
Returns
TypeDescription
GrpcAccessApprovalStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext)

protected GrpcAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAccessApprovalStub, 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
settingsAccessApprovalStubSettings
clientContextClientContext

GrpcAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcAccessApprovalStub, 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
settingsAccessApprovalStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

approveApprovalRequestCallable()

public UnaryCallable<ApproveApprovalRequestMessage,ApprovalRequest> approveApprovalRequestCallable()
Returns
TypeDescription
UnaryCallable<ApproveApprovalRequestMessage,ApprovalRequest>
Overrides

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

deleteAccessApprovalSettingsCallable()

public UnaryCallable<DeleteAccessApprovalSettingsMessage,Empty> deleteAccessApprovalSettingsCallable()
Returns
TypeDescription
UnaryCallable<DeleteAccessApprovalSettingsMessage,Empty>
Overrides

dismissApprovalRequestCallable()

public UnaryCallable<DismissApprovalRequestMessage,ApprovalRequest> dismissApprovalRequestCallable()
Returns
TypeDescription
UnaryCallable<DismissApprovalRequestMessage,ApprovalRequest>
Overrides

getAccessApprovalServiceAccountCallable()

public UnaryCallable<GetAccessApprovalServiceAccountMessage,AccessApprovalServiceAccount> getAccessApprovalServiceAccountCallable()
Returns
TypeDescription
UnaryCallable<GetAccessApprovalServiceAccountMessage,AccessApprovalServiceAccount>
Overrides

getAccessApprovalSettingsCallable()

public UnaryCallable<GetAccessApprovalSettingsMessage,AccessApprovalSettings> getAccessApprovalSettingsCallable()
Returns
TypeDescription
UnaryCallable<GetAccessApprovalSettingsMessage,AccessApprovalSettings>
Overrides

getApprovalRequestCallable()

public UnaryCallable<GetApprovalRequestMessage,ApprovalRequest> getApprovalRequestCallable()
Returns
TypeDescription
UnaryCallable<GetApprovalRequestMessage,ApprovalRequest>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

invalidateApprovalRequestCallable()

public UnaryCallable<InvalidateApprovalRequestMessage,ApprovalRequest> invalidateApprovalRequestCallable()
Returns
TypeDescription
UnaryCallable<InvalidateApprovalRequestMessage,ApprovalRequest>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApprovalRequestsCallable()

public UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsResponse> listApprovalRequestsCallable()
Returns
TypeDescription
UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsResponse>
Overrides

listApprovalRequestsPagedCallable()

public UnaryCallable<ListApprovalRequestsMessage,AccessApprovalAdminClient.ListApprovalRequestsPagedResponse> listApprovalRequestsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccessApprovalSettingsCallable()

public UnaryCallable<UpdateAccessApprovalSettingsMessage,AccessApprovalSettings> updateAccessApprovalSettingsCallable()
Returns
TypeDescription
UnaryCallable<UpdateAccessApprovalSettingsMessage,AccessApprovalSettings>
Overrides