Package com.google.api.apikeys.v2.stub
Class HttpJsonApiKeysStub
- java.lang.Object
-
- com.google.api.apikeys.v2.stub.ApiKeysStub
-
- com.google.api.apikeys.v2.stub.HttpJsonApiKeysStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonApiKeysStub extends ApiKeysStub
REST 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 protectedHttpJsonApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonApiKeysStub, using the given settings.protectedHttpJsonApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonApiKeysStub, 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 HttpJsonApiKeysStubcreate(ApiKeysStubSettings settings)static HttpJsonApiKeysStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonApiKeysStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory 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.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetKeyRequest,Key>getKeyCallable()com.google.api.gax.rpc.UnaryCallable<GetKeyStringRequest,GetKeyStringResponse>getKeyStringCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonApiKeysStub
protected HttpJsonApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonApiKeysStub, 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
-
HttpJsonApiKeysStub
protected HttpJsonApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonApiKeysStub, 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 HttpJsonApiKeysStub create(ApiKeysStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonApiKeysStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonApiKeysStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin 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
-
-