Class GrpcCloudQuotasStub (0.21.0)

public class GrpcCloudQuotasStub extends CloudQuotasStub

gRPC stub implementation for the CloudQuotas service API.

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

Inheritance

java.lang.Object > CloudQuotasStub > GrpcCloudQuotasStub

Static Methods

create(CloudQuotasStubSettings settings)

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

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

Constructors

GrpcCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext)

protected GrpcCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext)

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

GrpcCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCloudQuotasStub(CloudQuotasStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCloudQuotasStub, 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 GrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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