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:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcApiKeysStub, using the given settings.protectedGrpcApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcApiKeysStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcApiKeysStubcreate(ApiKeysStubSettings settings)static GrpcApiKeysStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcApiKeysStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)com.google.api.gax.rpc.UnaryCallable<CreateKeyRequest,com.google.longrunning.Operation>createKeyCallable()com.google.api.gax.rpc.OperationCallable<CreateKeyRequest,Key,com.google.protobuf.Empty>createKeyOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteKeyRequest,com.google.longrunning.Operation>deleteKeyCallable()com.google.api.gax.rpc.OperationCallable<DeleteKeyRequest,Key,com.google.protobuf.Empty>deleteKeyOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetKeyRequest,Key>getKeyCallable()com.google.api.gax.rpc.UnaryCallable<GetKeyStringRequest,GetKeyStringResponse>getKeyStringCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ListKeysResponse>listKeysCallable()com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse>listKeysPagedCallable()com.google.api.gax.rpc.UnaryCallable<LookupKeyRequest,LookupKeyResponse>lookupKeyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UndeleteKeyRequest,com.google.longrunning.Operation>undeleteKeyCallable()com.google.api.gax.rpc.OperationCallable<UndeleteKeyRequest,Key,com.google.protobuf.Empty>undeleteKeyOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpdateKeyRequest,com.google.longrunning.Operation>updateKeyCallable()com.google.api.gax.rpc.OperationCallable<UpdateKeyRequest,Key,com.google.protobuf.Empty>updateKeyOperationCallable()-
Methods inherited from class com.google.api.apikeys.v2.stub.ApiKeysStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcApiKeysStub
protected GrpcApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcApiKeysStub create(ApiKeysStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcApiKeysStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcApiKeysStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classApiKeysStub
-
createKeyCallable
public com.google.api.gax.rpc.UnaryCallable<CreateKeyRequest,com.google.longrunning.Operation> createKeyCallable()
- Overrides:
createKeyCallablein classApiKeysStub
-
createKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateKeyRequest,Key,com.google.protobuf.Empty> createKeyOperationCallable()
- Overrides:
createKeyOperationCallablein classApiKeysStub
-
listKeysCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()
- Overrides:
listKeysCallablein classApiKeysStub
-
listKeysPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse> listKeysPagedCallable()
- Overrides:
listKeysPagedCallablein classApiKeysStub
-
getKeyCallable
public com.google.api.gax.rpc.UnaryCallable<GetKeyRequest,Key> getKeyCallable()
- Overrides:
getKeyCallablein classApiKeysStub
-
getKeyStringCallable
public com.google.api.gax.rpc.UnaryCallable<GetKeyStringRequest,GetKeyStringResponse> getKeyStringCallable()
- Overrides:
getKeyStringCallablein classApiKeysStub
-
updateKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateKeyRequest,com.google.longrunning.Operation> updateKeyCallable()
- Overrides:
updateKeyCallablein classApiKeysStub
-
updateKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateKeyRequest,Key,com.google.protobuf.Empty> updateKeyOperationCallable()
- Overrides:
updateKeyOperationCallablein classApiKeysStub
-
deleteKeyCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteKeyRequest,com.google.longrunning.Operation> deleteKeyCallable()
- Overrides:
deleteKeyCallablein classApiKeysStub
-
deleteKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteKeyRequest,Key,com.google.protobuf.Empty> deleteKeyOperationCallable()
- Overrides:
deleteKeyOperationCallablein classApiKeysStub
-
undeleteKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UndeleteKeyRequest,com.google.longrunning.Operation> undeleteKeyCallable()
- Overrides:
undeleteKeyCallablein classApiKeysStub
-
undeleteKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<UndeleteKeyRequest,Key,com.google.protobuf.Empty> undeleteKeyOperationCallable()
- Overrides:
undeleteKeyOperationCallablein classApiKeysStub
-
lookupKeyCallable
public com.google.api.gax.rpc.UnaryCallable<LookupKeyRequest,LookupKeyResponse> 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-