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 protected
HttpJsonApiKeysStub(ApiKeysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonApiKeysStub, using the given settings.protected
HttpJsonApiKeysStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonApiKeysStub
create(ApiKeysStubSettings settings)
static HttpJsonApiKeysStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonApiKeysStub
create(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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
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
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:
getHttpJsonOperationsStub
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
-
-