Class GrpcAccessApprovalStub (2.47.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcAccessApprovalStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAccessApprovalStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcAccessApprovalStub
Exceptions
Type Description
IOException

create(AccessApprovalStubSettings settings)

public static final GrpcAccessApprovalStub create(AccessApprovalStubSettings settings)
Parameter
Name Description
settings AccessApprovalStubSettings
Returns
Type Description
GrpcAccessApprovalStub
Exceptions
Type Description
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
Name Description
settings AccessApprovalStubSettings
clientContext ClientContext

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
Name Description
settings AccessApprovalStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

approveApprovalRequestCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteAccessApprovalSettingsCallable()

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

dismissApprovalRequestCallable()

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

getAccessApprovalServiceAccountCallable()

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

getAccessApprovalSettingsCallable()

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

getApprovalRequestCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

invalidateApprovalRequestCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listApprovalRequestsCallable()

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

listApprovalRequestsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccessApprovalSettingsCallable()

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