# Class ApiKeysStub (0.89.0)

0.89.0 (latest) 0.86.0 0.85.0 0.83.0 0.81.0 0.80.0 0.79.0 0.78.0 0.76.0 0.74.0 0.73.0 0.72.0 0.71.0 0.70.0 0.68.0 0.66.0 0.65.0 0.62.0 0.61.0 0.60.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.49.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2

    public abstract class ApiKeysStub implements BackgroundResource

Base stub class for the ApiKeys service API.

This class is for advanced usage and reflects the underlying API directly.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> ApiKeysStub

## Implements

[BackgroundResource](https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.core.BackgroundResource.html)

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### ApiKeysStub()

    public ApiKeysStub()

## Methods

### close()

    public abstract void close()

### createKeyCallable()

    public UnaryCallable<CreateKeyRequest,Operation> createKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.CreateKeyRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createKeyOperationCallable()

    public OperationCallable<CreateKeyRequest,Key,Empty> createKeyOperationCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.CreateKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.Key,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### deleteKeyCallable()

    public UnaryCallable<DeleteKeyRequest,Operation> deleteKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.DeleteKeyRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteKeyOperationCallable()

    public OperationCallable<DeleteKeyRequest,Key,Empty> deleteKeyOperationCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.DeleteKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.Key,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getHttpJsonOperationsStub()

    public OperationsStub getHttpJsonOperationsStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.httpjson.longrunning.stub.OperationsStub.html` |   |

### getKeyCallable()

    public UnaryCallable<GetKeyRequest,Key> getKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.GetKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.Key>` |   |

### getKeyStringCallable()

    public UnaryCallable<GetKeyStringRequest,GetKeyStringResponse> getKeyStringCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.GetKeyStringRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.GetKeyStringResponse>` |   |

### getOperationsStub()

    public OperationsStub getOperationsStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.stub.OperationsStub.html` |   |

### listKeysCallable()

    public UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.ListKeysRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.ListKeysResponse>` |   |

### listKeysPagedCallable()

    public UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse> listKeysPagedCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.ListKeysRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.ApiKeysClient.ListKeysPagedResponse>` |   |

### lookupKeyCallable()

    public UnaryCallable<LookupKeyRequest,LookupKeyResponse> lookupKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.LookupKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.LookupKeyResponse>` |   |

### undeleteKeyCallable()

    public UnaryCallable<UndeleteKeyRequest,Operation> undeleteKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.UndeleteKeyRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### undeleteKeyOperationCallable()

    public OperationCallable<UndeleteKeyRequest,Key,Empty> undeleteKeyOperationCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.UndeleteKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.Key,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### updateKeyCallable()

    public UnaryCallable<UpdateKeyRequest,Operation> updateKeyCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.UpdateKeyRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateKeyOperationCallable()

    public OperationCallable<UpdateKeyRequest,Key,Empty> updateKeyOperationCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.UpdateKeyRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/com.google.api.apikeys.v2.Key,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |