Class GrpcServiceUsageStub
java.lang.Object
com.google.api.serviceusage.v1.stub.ServiceUsageStub
com.google.api.serviceusage.v1.stub.GrpcServiceUsageStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ServiceUsage service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcServiceUsageStub(ServiceUsageStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcServiceUsageStub, using the given settings.protectedGrpcServiceUsageStub(ServiceUsageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcServiceUsageStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcServiceUsageStubcreate(ClientContext clientContext) static final GrpcServiceUsageStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcServiceUsageStubcreate(ServiceUsageStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.api.serviceusage.v1.stub.ServiceUsageStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcServiceUsageStub
protected GrpcServiceUsageStub(ServiceUsageStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcServiceUsageStub, 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.- Throws:
IOException
-
GrpcServiceUsageStub
protected GrpcServiceUsageStub(ServiceUsageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcServiceUsageStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcServiceUsageStub create(ServiceUsageStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcServiceUsageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classServiceUsageStub
-
enableServiceCallable
- Overrides:
enableServiceCallablein classServiceUsageStub
-
enableServiceOperationCallable
public OperationCallable<EnableServiceRequest,EnableServiceResponse, enableServiceOperationCallable()OperationMetadata> - Overrides:
enableServiceOperationCallablein classServiceUsageStub
-
disableServiceCallable
- Overrides:
disableServiceCallablein classServiceUsageStub
-
disableServiceOperationCallable
public OperationCallable<DisableServiceRequest,DisableServiceResponse, disableServiceOperationCallable()OperationMetadata> - Overrides:
disableServiceOperationCallablein classServiceUsageStub
-
getServiceCallable
- Overrides:
getServiceCallablein classServiceUsageStub
-
listServicesCallable
- Overrides:
listServicesCallablein classServiceUsageStub
-
listServicesPagedCallable
public UnaryCallable<ListServicesRequest,ServiceUsageClient.ListServicesPagedResponse> listServicesPagedCallable()- Overrides:
listServicesPagedCallablein classServiceUsageStub
-
batchEnableServicesCallable
- Overrides:
batchEnableServicesCallablein classServiceUsageStub
-
batchEnableServicesOperationCallable
public OperationCallable<BatchEnableServicesRequest,BatchEnableServicesResponse, batchEnableServicesOperationCallable()OperationMetadata> - Overrides:
batchEnableServicesOperationCallablein classServiceUsageStub
-
batchGetServicesCallable
- Overrides:
batchGetServicesCallablein classServiceUsageStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classServiceUsageStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-