Class HttpJsonConfigStub (0.1.0)

public class HttpJsonConfigStub extends ConfigStub

REST stub implementation for the Config service API.

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

Inheritance

java.lang.Object > ConfigStub > HttpJsonConfigStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ConfigStubSettings settings)

public static final HttpJsonConfigStub create(ConfigStubSettings settings)
Parameter
Name Description
settings ConfigStubSettings
Returns
Type Description
HttpJsonConfigStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext)

protected HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonConfigStub, 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 ConfigStubSettings
clientContext ClientContext

HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConfigStub(ConfigStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonConfigStub, 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 ConfigStubSettings
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

createCloudControlCallable()

public UnaryCallable<CreateCloudControlRequest,CloudControl> createCloudControlCallable()
Returns
Type Description
UnaryCallable<CreateCloudControlRequest,CloudControl>
Overrides

createFrameworkCallable()

public UnaryCallable<CreateFrameworkRequest,Framework> createFrameworkCallable()
Returns
Type Description
UnaryCallable<CreateFrameworkRequest,Framework>
Overrides

deleteCloudControlCallable()

public UnaryCallable<DeleteCloudControlRequest,Empty> deleteCloudControlCallable()
Returns
Type Description
UnaryCallable<DeleteCloudControlRequest,Empty>
Overrides

deleteFrameworkCallable()

public UnaryCallable<DeleteFrameworkRequest,Empty> deleteFrameworkCallable()
Returns
Type Description
UnaryCallable<DeleteFrameworkRequest,Empty>
Overrides

getCloudControlCallable()

public UnaryCallable<GetCloudControlRequest,CloudControl> getCloudControlCallable()
Returns
Type Description
UnaryCallable<GetCloudControlRequest,CloudControl>
Overrides

getFrameworkCallable()

public UnaryCallable<GetFrameworkRequest,Framework> getFrameworkCallable()
Returns
Type Description
UnaryCallable<GetFrameworkRequest,Framework>
Overrides

getLocationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCloudControlsCallable()

public UnaryCallable<ListCloudControlsRequest,ListCloudControlsResponse> listCloudControlsCallable()
Returns
Type Description
UnaryCallable<ListCloudControlsRequest,ListCloudControlsResponse>
Overrides

listCloudControlsPagedCallable()

public UnaryCallable<ListCloudControlsRequest,ConfigClient.ListCloudControlsPagedResponse> listCloudControlsPagedCallable()
Returns
Type Description
UnaryCallable<ListCloudControlsRequest,ListCloudControlsPagedResponse>
Overrides

listFrameworksCallable()

public UnaryCallable<ListFrameworksRequest,ListFrameworksResponse> listFrameworksCallable()
Returns
Type Description
UnaryCallable<ListFrameworksRequest,ListFrameworksResponse>
Overrides

listFrameworksPagedCallable()

public UnaryCallable<ListFrameworksRequest,ConfigClient.ListFrameworksPagedResponse> listFrameworksPagedCallable()
Returns
Type Description
UnaryCallable<ListFrameworksRequest,ListFrameworksPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ConfigClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCloudControlCallable()

public UnaryCallable<UpdateCloudControlRequest,CloudControl> updateCloudControlCallable()
Returns
Type Description
UnaryCallable<UpdateCloudControlRequest,CloudControl>
Overrides

updateFrameworkCallable()

public UnaryCallable<UpdateFrameworkRequest,Framework> updateFrameworkCallable()
Returns
Type Description
UnaryCallable<UpdateFrameworkRequest,Framework>
Overrides