Package com.google.api.apikeys.v2.stub
Class GrpcApiKeysStub
java.lang.Object
com.google.api.apikeys.v2.stub.ApiKeysStub
com.google.api.apikeys.v2.stub.GrpcApiKeysStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ApiKeys service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcApiKeysStub, using the given settings.protectedGrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcApiKeysStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcApiKeysStubcreate(ApiKeysStubSettings settings) static final GrpcApiKeysStubcreate(ClientContext clientContext) static final GrpcApiKeysStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) OperationCallable<CreateKeyRequest,Key, com.google.protobuf.Empty> OperationCallable<DeleteKeyRequest,Key, com.google.protobuf.Empty> booleanbooleanvoidshutdown()voidOperationCallable<UndeleteKeyRequest,Key, com.google.protobuf.Empty> OperationCallable<UpdateKeyRequest,Key, com.google.protobuf.Empty> Methods inherited from class com.google.api.apikeys.v2.stub.ApiKeysStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcApiKeysStub
protected GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcApiKeysStub
protected GrpcApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcApiKeysStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classApiKeysStub
-
createKeyCallable
- Overrides:
createKeyCallablein classApiKeysStub
-
createKeyOperationCallable
public OperationCallable<CreateKeyRequest,Key, createKeyOperationCallable()com.google.protobuf.Empty> - Overrides:
createKeyOperationCallablein classApiKeysStub
-
listKeysCallable
- Overrides:
listKeysCallablein classApiKeysStub
-
listKeysPagedCallable
- Overrides:
listKeysPagedCallablein classApiKeysStub
-
getKeyCallable
- Overrides:
getKeyCallablein classApiKeysStub
-
getKeyStringCallable
- Overrides:
getKeyStringCallablein classApiKeysStub
-
updateKeyCallable
- Overrides:
updateKeyCallablein classApiKeysStub
-
updateKeyOperationCallable
public OperationCallable<UpdateKeyRequest,Key, updateKeyOperationCallable()com.google.protobuf.Empty> - Overrides:
updateKeyOperationCallablein classApiKeysStub
-
deleteKeyCallable
- Overrides:
deleteKeyCallablein classApiKeysStub
-
deleteKeyOperationCallable
public OperationCallable<DeleteKeyRequest,Key, deleteKeyOperationCallable()com.google.protobuf.Empty> - Overrides:
deleteKeyOperationCallablein classApiKeysStub
-
undeleteKeyCallable
- Overrides:
undeleteKeyCallablein classApiKeysStub
-
undeleteKeyOperationCallable
public OperationCallable<UndeleteKeyRequest,Key, undeleteKeyOperationCallable()com.google.protobuf.Empty> - Overrides:
undeleteKeyOperationCallablein classApiKeysStub
-
lookupKeyCallable
- Overrides:
lookupKeyCallablein classApiKeysStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classApiKeysStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-