Class GrpcApiKeysStub (0.42.0)

public class GrpcApiKeysStub extends ApiKeysStub

gRPC stub implementation for the ApiKeys service API.

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

Inheritance

java.lang.Object > ApiKeysStub > GrpcApiKeysStub

Static Methods

create(ApiKeysStubSettings settings)

public static final GrpcApiKeysStub create(ApiKeysStubSettings settings)
Parameter
Name Description
settings ApiKeysStubSettings
Returns
Type Description
GrpcApiKeysStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

public static final GrpcApiKeysStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcApiKeysStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

Constructors

GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext)

protected GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcApiKeysStub, 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 ApiKeysStubSettings
clientContext ClientContext

GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcApiKeysStub, 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 ApiKeysStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

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

createKeyCallable()

public UnaryCallable<CreateKeyRequest,Operation> createKeyCallable()
Returns
Type Description
UnaryCallable<CreateKeyRequest,Operation>
Overrides

createKeyOperationCallable()

public OperationCallable<CreateKeyRequest,Key,Empty> createKeyOperationCallable()
Returns
Type Description
OperationCallable<CreateKeyRequest,Key,Empty>
Overrides

deleteKeyCallable()

public UnaryCallable<DeleteKeyRequest,Operation> deleteKeyCallable()
Returns
Type Description
UnaryCallable<DeleteKeyRequest,Operation>
Overrides

deleteKeyOperationCallable()

public OperationCallable<DeleteKeyRequest,Key,Empty> deleteKeyOperationCallable()
Returns
Type Description
OperationCallable<DeleteKeyRequest,Key,Empty>
Overrides

getKeyCallable()

public UnaryCallable<GetKeyRequest,Key> getKeyCallable()
Returns
Type Description
UnaryCallable<GetKeyRequest,Key>
Overrides

getKeyStringCallable()

public UnaryCallable<GetKeyStringRequest,GetKeyStringResponse> getKeyStringCallable()
Returns
Type Description
UnaryCallable<GetKeyStringRequest,GetKeyStringResponse>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listKeysCallable()

public UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()
Returns
Type Description
UnaryCallable<ListKeysRequest,ListKeysResponse>
Overrides

listKeysPagedCallable()

public UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse> listKeysPagedCallable()
Returns
Type Description
UnaryCallable<ListKeysRequest,ListKeysPagedResponse>
Overrides

lookupKeyCallable()

public UnaryCallable<LookupKeyRequest,LookupKeyResponse> lookupKeyCallable()
Returns
Type Description
UnaryCallable<LookupKeyRequest,LookupKeyResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

undeleteKeyCallable()

public UnaryCallable<UndeleteKeyRequest,Operation> undeleteKeyCallable()
Returns
Type Description
UnaryCallable<UndeleteKeyRequest,Operation>
Overrides

undeleteKeyOperationCallable()

public OperationCallable<UndeleteKeyRequest,Key,Empty> undeleteKeyOperationCallable()
Returns
Type Description
OperationCallable<UndeleteKeyRequest,Key,Empty>
Overrides

updateKeyCallable()

public UnaryCallable<UpdateKeyRequest,Operation> updateKeyCallable()
Returns
Type Description
UnaryCallable<UpdateKeyRequest,Operation>
Overrides

updateKeyOperationCallable()

public OperationCallable<UpdateKeyRequest,Key,Empty> updateKeyOperationCallable()
Returns
Type Description
OperationCallable<UpdateKeyRequest,Key,Empty>
Overrides