Class HttpJsonCloudQuotasStub (0.1.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
NameDescription
settingsCloudQuotasStubSettings
Returns
TypeDescription
HttpJsonCloudQuotasStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsCloudQuotasStubSettings
clientContextClientContext

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
NameDescription
settingsCloudQuotasStubSettings
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

createQuotaPreferenceCallable()

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

getQuotaInfoCallable()

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

getQuotaPreferenceCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listQuotaInfosCallable()

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

listQuotaInfosPagedCallable()

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

listQuotaPreferencesCallable()

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

listQuotaPreferencesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateQuotaPreferenceCallable()

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