Class HttpJsonApiKeysStub (0.50.0)

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.

Inheritance

java.lang.Object > ApiKeysStub > HttpJsonApiKeysStub

Static Methods

create(ApiKeysStubSettings settings)

public static final HttpJsonApiKeysStub create(ApiKeysStubSettings settings)
Parameter
Name Description
settings ApiKeysStubSettings
Returns
Type Description
HttpJsonApiKeysStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

public static final HttpJsonApiKeysStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonApiKeysStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonApiKeysStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonApiKeysStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext)

protected HttpJsonApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext)

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.

Parameters
Name Description
settings ApiKeysStubSettings
clientContext ClientContext

HttpJsonApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonApiKeysStub(ApiKeysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
Name Description
settings ApiKeysStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createKeyCallable()

public UnaryCallable<CreateKeyRequest,Operation> createKeyCallable()
Returns
Type Description
UnaryCallable<CreateKeyRequest,Operation>
Overrides

createKeyOperationCallable()

public OperationCallable<CreateKeyRequest,Key,Empty> createKeyOperationCallable()
Returns
Type Description
OperationCallable<CreateKeyRequest,Key,Empty>
Overrides

deleteKeyCallable()

public UnaryCallable<DeleteKeyRequest,Operation> deleteKeyCallable()
Returns
Type Description
UnaryCallable<DeleteKeyRequest,Operation>
Overrides

deleteKeyOperationCallable()

public OperationCallable<DeleteKeyRequest,Key,Empty> deleteKeyOperationCallable()
Returns
Type Description
OperationCallable<DeleteKeyRequest,Key,Empty>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getKeyCallable()

public UnaryCallable<GetKeyRequest,Key> getKeyCallable()
Returns
Type Description
UnaryCallable<GetKeyRequest,Key>
Overrides

getKeyStringCallable()

public UnaryCallable<GetKeyStringRequest,GetKeyStringResponse> getKeyStringCallable()
Returns
Type Description
UnaryCallable<GetKeyStringRequest,GetKeyStringResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listKeysCallable()

public UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()
Returns
Type Description
UnaryCallable<ListKeysRequest,ListKeysResponse>
Overrides

listKeysPagedCallable()

public UnaryCallable<ListKeysRequest,ApiKeysClient.ListKeysPagedResponse> listKeysPagedCallable()
Returns
Type Description
UnaryCallable<ListKeysRequest,ListKeysPagedResponse>
Overrides

lookupKeyCallable()

public UnaryCallable<LookupKeyRequest,LookupKeyResponse> lookupKeyCallable()
Returns
Type Description
UnaryCallable<LookupKeyRequest,LookupKeyResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

undeleteKeyCallable()

public UnaryCallable<UndeleteKeyRequest,Operation> undeleteKeyCallable()
Returns
Type Description
UnaryCallable<UndeleteKeyRequest,Operation>
Overrides

undeleteKeyOperationCallable()

public OperationCallable<UndeleteKeyRequest,Key,Empty> undeleteKeyOperationCallable()
Returns
Type Description
OperationCallable<UndeleteKeyRequest,Key,Empty>
Overrides

updateKeyCallable()

public UnaryCallable<UpdateKeyRequest,Operation> updateKeyCallable()
Returns
Type Description
UnaryCallable<UpdateKeyRequest,Operation>
Overrides

updateKeyOperationCallable()

public OperationCallable<UpdateKeyRequest,Key,Empty> updateKeyOperationCallable()
Returns
Type Description
OperationCallable<UpdateKeyRequest,Key,Empty>
Overrides