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

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudQuotasStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudQuotasStub
Exceptions
TypeDescription
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
NameDescription
settingsCloudQuotasStubSettings
clientContextClientContext

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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