Class HttpJsonContextsStub (4.47.0)

public class HttpJsonContextsStub extends ContextsStub

REST stub implementation for the Contexts service API.

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

Inheritance

java.lang.Object > ContextsStub > HttpJsonContextsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonContextsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonContextsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonContextsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonContextsStub
Exceptions
TypeDescription
IOException

create(ContextsStubSettings settings)

public static final HttpJsonContextsStub create(ContextsStubSettings settings)
Parameter
NameDescription
settingsContextsStubSettings
Returns
TypeDescription
HttpJsonContextsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonContextsStub(ContextsStubSettings settings, ClientContext clientContext)

protected HttpJsonContextsStub(ContextsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonContextsStub, 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
NameDescription
settingsContextsStubSettings
clientContextClientContext

HttpJsonContextsStub(ContextsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonContextsStub(ContextsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonContextsStub, 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
NameDescription
settingsContextsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createContextCallable()

public UnaryCallable<CreateContextRequest,Context> createContextCallable()
Returns
TypeDescription
UnaryCallable<CreateContextRequest,Context>
Overrides

deleteAllContextsCallable()

public UnaryCallable<DeleteAllContextsRequest,Empty> deleteAllContextsCallable()
Returns
TypeDescription
UnaryCallable<DeleteAllContextsRequest,Empty>
Overrides

deleteContextCallable()

public UnaryCallable<DeleteContextRequest,Empty> deleteContextCallable()
Returns
TypeDescription
UnaryCallable<DeleteContextRequest,Empty>
Overrides

getContextCallable()

public UnaryCallable<GetContextRequest,Context> getContextCallable()
Returns
TypeDescription
UnaryCallable<GetContextRequest,Context>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listContextsCallable()

public UnaryCallable<ListContextsRequest,ListContextsResponse> listContextsCallable()
Returns
TypeDescription
UnaryCallable<ListContextsRequest,ListContextsResponse>
Overrides

listContextsPagedCallable()

public UnaryCallable<ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListContextsRequest,ListContextsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ContextsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateContextCallable()

public UnaryCallable<UpdateContextRequest,Context> updateContextCallable()
Returns
TypeDescription
UnaryCallable<UpdateContextRequest,Context>
Overrides