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 protected
GrpcApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcApiKeysStub, using the given settings.protected
GrpcApiKeysStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcApiKeysStub
create(ApiKeysStubSettings settings)
static GrpcApiKeysStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcApiKeysStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classApiKeysStub
-
createKeyCallable
public com.google.api.gax.rpc.UnaryCallable<CreateKeyRequest,com.google.longrunning.Operation> createKeyCallable()
- Overrides:
createKeyCallable
in classApiKeysStub
-
createKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateKeyRequest,Key,com.google.protobuf.Empty> createKeyOperationCallable()
- Overrides:
createKeyOperationCallable
in classApiKeysStub
-
listKeysCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()
- Overrides:
listKeysCallable
in classApiKeysStub
-
listKeysPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse> listKeysPagedCallable()
- Overrides:
listKeysPagedCallable
in classApiKeysStub
-
getKeyCallable
public com.google.api.gax.rpc.UnaryCallable<GetKeyRequest,Key> getKeyCallable()
- Overrides:
getKeyCallable
in classApiKeysStub
-
getKeyStringCallable
public com.google.api.gax.rpc.UnaryCallable<GetKeyStringRequest,GetKeyStringResponse> getKeyStringCallable()
- Overrides:
getKeyStringCallable
in classApiKeysStub
-
updateKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateKeyRequest,com.google.longrunning.Operation> updateKeyCallable()
- Overrides:
updateKeyCallable
in classApiKeysStub
-
updateKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateKeyRequest,Key,com.google.protobuf.Empty> updateKeyOperationCallable()
- Overrides:
updateKeyOperationCallable
in classApiKeysStub
-
deleteKeyCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteKeyRequest,com.google.longrunning.Operation> deleteKeyCallable()
- Overrides:
deleteKeyCallable
in classApiKeysStub
-
deleteKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteKeyRequest,Key,com.google.protobuf.Empty> deleteKeyOperationCallable()
- Overrides:
deleteKeyOperationCallable
in classApiKeysStub
-
undeleteKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UndeleteKeyRequest,com.google.longrunning.Operation> undeleteKeyCallable()
- Overrides:
undeleteKeyCallable
in classApiKeysStub
-
undeleteKeyOperationCallable
public com.google.api.gax.rpc.OperationCallable<UndeleteKeyRequest,Key,com.google.protobuf.Empty> undeleteKeyOperationCallable()
- Overrides:
undeleteKeyOperationCallable
in classApiKeysStub
-
lookupKeyCallable
public com.google.api.gax.rpc.UnaryCallable<LookupKeyRequest,LookupKeyResponse> lookupKeyCallable()
- Overrides:
lookupKeyCallable
in classApiKeysStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-