Class HttpJsonCloudQuotasStub (0.19.0)

public class HttpJsonCloudQuotasStub extends CloudQuotasStub

REST stub implementation for the CloudQuotas service API.

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

Inheritance

java.lang.Object > CloudQuotasStub > HttpJsonCloudQuotasStub

Static Methods

create(CloudQuotasStubSettings settings)

public static final HttpJsonCloudQuotasStub create(CloudQuotasStubSettings settings)
Parameter
Name Description
settings CloudQuotasStubSettings
Returns
Type Description
HttpJsonCloudQuotasStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

getMethodDescriptors()

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

Constructors

HttpJsonCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext)

protected HttpJsonCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCloudQuotasStub, 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 CloudQuotasStubSettings
clientContext ClientContext

HttpJsonCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCloudQuotasStub, 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 CloudQuotasStubSettings
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

createQuotaPreferenceCallable()

public UnaryCallable<CreateQuotaPreferenceRequest,QuotaPreference> createQuotaPreferenceCallable()
Returns
Type Description
UnaryCallable<CreateQuotaPreferenceRequest,QuotaPreference>
Overrides

getQuotaInfoCallable()

public UnaryCallable<GetQuotaInfoRequest,QuotaInfo> getQuotaInfoCallable()
Returns
Type Description
UnaryCallable<GetQuotaInfoRequest,QuotaInfo>
Overrides

getQuotaPreferenceCallable()

public UnaryCallable<GetQuotaPreferenceRequest,QuotaPreference> getQuotaPreferenceCallable()
Returns
Type Description
UnaryCallable<GetQuotaPreferenceRequest,QuotaPreference>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listQuotaInfosCallable()

public UnaryCallable<ListQuotaInfosRequest,ListQuotaInfosResponse> listQuotaInfosCallable()
Returns
Type Description
UnaryCallable<ListQuotaInfosRequest,ListQuotaInfosResponse>
Overrides

listQuotaInfosPagedCallable()

public UnaryCallable<ListQuotaInfosRequest,CloudQuotasClient.ListQuotaInfosPagedResponse> listQuotaInfosPagedCallable()
Returns
Type Description
UnaryCallable<ListQuotaInfosRequest,ListQuotaInfosPagedResponse>
Overrides

listQuotaPreferencesCallable()

public UnaryCallable<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse> listQuotaPreferencesCallable()
Returns
Type Description
UnaryCallable<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse>
Overrides

listQuotaPreferencesPagedCallable()

public UnaryCallable<ListQuotaPreferencesRequest,CloudQuotasClient.ListQuotaPreferencesPagedResponse> listQuotaPreferencesPagedCallable()
Returns
Type Description
UnaryCallable<ListQuotaPreferencesRequest,ListQuotaPreferencesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateQuotaPreferenceCallable()

public UnaryCallable<UpdateQuotaPreferenceRequest,QuotaPreference> updateQuotaPreferenceCallable()
Returns
Type Description
UnaryCallable<UpdateQuotaPreferenceRequest,QuotaPreference>
Overrides