Class GrpcServiceUsageStub
- java.lang.Object
-
- com.google.api.serviceusage.v1.stub.ServiceUsageStub
-
- com.google.api.serviceusage.v1.stub.GrpcServiceUsageStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcServiceUsageStub extends ServiceUsageStub
gRPC stub implementation for the ServiceUsage service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcServiceUsageStub, using the given settings.protectedGrpcServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcServiceUsageStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<BatchEnableServicesRequest,com.google.longrunning.Operation>batchEnableServicesCallable()com.google.api.gax.rpc.OperationCallable<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata>batchEnableServicesOperationCallable()com.google.api.gax.rpc.UnaryCallable<BatchGetServicesRequest,BatchGetServicesResponse>batchGetServicesCallable()voidclose()static GrpcServiceUsageStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcServiceUsageStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcServiceUsageStubcreate(ServiceUsageStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DisableServiceRequest,com.google.longrunning.Operation>disableServiceCallable()com.google.api.gax.rpc.OperationCallable<DisableServiceRequest,DisableServiceResponse,OperationMetadata>disableServiceOperationCallable()com.google.api.gax.rpc.UnaryCallable<EnableServiceRequest,com.google.longrunning.Operation>enableServiceCallable()com.google.api.gax.rpc.OperationCallable<EnableServiceRequest,EnableServiceResponse,OperationMetadata>enableServiceOperationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>getServiceCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse>listServicesCallable()com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceUsageClient.ListServicesPagedResponse>listServicesPagedCallable()voidshutdown()voidshutdownNow()-
Methods inherited from class com.google.api.serviceusage.v1.stub.ServiceUsageStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcServiceUsageStub
protected GrpcServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcServiceUsageStub create(ServiceUsageStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcServiceUsageStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcServiceUsageStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classServiceUsageStub
-
enableServiceCallable
public com.google.api.gax.rpc.UnaryCallable<EnableServiceRequest,com.google.longrunning.Operation> enableServiceCallable()
- Overrides:
enableServiceCallablein classServiceUsageStub
-
enableServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableServiceRequest,EnableServiceResponse,OperationMetadata> enableServiceOperationCallable()
- Overrides:
enableServiceOperationCallablein classServiceUsageStub
-
disableServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DisableServiceRequest,com.google.longrunning.Operation> disableServiceCallable()
- Overrides:
disableServiceCallablein classServiceUsageStub
-
disableServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableServiceRequest,DisableServiceResponse,OperationMetadata> disableServiceOperationCallable()
- Overrides:
disableServiceOperationCallablein classServiceUsageStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallablein classServiceUsageStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallablein classServiceUsageStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceUsageClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallablein classServiceUsageStub
-
batchEnableServicesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchEnableServicesRequest,com.google.longrunning.Operation> batchEnableServicesCallable()
- Overrides:
batchEnableServicesCallablein classServiceUsageStub
-
batchEnableServicesOperationCallable
public com.google.api.gax.rpc.OperationCallable<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata> batchEnableServicesOperationCallable()
- Overrides:
batchEnableServicesOperationCallablein classServiceUsageStub
-
batchGetServicesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchGetServicesRequest,BatchGetServicesResponse> 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-