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 protected
GrpcServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcServiceUsageStub, using the given settings.protected
GrpcServiceUsageStub(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 boolean
awaitTermination(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()
void
close()
static GrpcServiceUsageStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcServiceUsageStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcServiceUsageStub
create(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.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>
getServiceCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse>
listServicesCallable()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceUsageClient.ListServicesPagedResponse>
listServicesPagedCallable()
void
shutdown()
void
shutdownNow()
-
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:
getOperationsStub
in classServiceUsageStub
-
enableServiceCallable
public com.google.api.gax.rpc.UnaryCallable<EnableServiceRequest,com.google.longrunning.Operation> enableServiceCallable()
- Overrides:
enableServiceCallable
in classServiceUsageStub
-
enableServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableServiceRequest,EnableServiceResponse,OperationMetadata> enableServiceOperationCallable()
- Overrides:
enableServiceOperationCallable
in classServiceUsageStub
-
disableServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DisableServiceRequest,com.google.longrunning.Operation> disableServiceCallable()
- Overrides:
disableServiceCallable
in classServiceUsageStub
-
disableServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableServiceRequest,DisableServiceResponse,OperationMetadata> disableServiceOperationCallable()
- Overrides:
disableServiceOperationCallable
in classServiceUsageStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallable
in classServiceUsageStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallable
in classServiceUsageStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceUsageClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallable
in classServiceUsageStub
-
batchEnableServicesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchEnableServicesRequest,com.google.longrunning.Operation> batchEnableServicesCallable()
- Overrides:
batchEnableServicesCallable
in classServiceUsageStub
-
batchEnableServicesOperationCallable
public com.google.api.gax.rpc.OperationCallable<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata> batchEnableServicesOperationCallable()
- Overrides:
batchEnableServicesOperationCallable
in classServiceUsageStub
-
batchGetServicesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchGetServicesRequest,BatchGetServicesResponse> batchGetServicesCallable()
- Overrides:
batchGetServicesCallable
in classServiceUsageStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-