Class HttpJsonServiceUsageStub
- java.lang.Object
-
- com.google.api.serviceusage.v1.stub.ServiceUsageStub
-
- com.google.api.serviceusage.v1.stub.HttpJsonServiceUsageStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonServiceUsageStub extends ServiceUsageStub
REST 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
HttpJsonServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonServiceUsageStub, using the given settings.protected
HttpJsonServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonServiceUsageStub, 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 HttpJsonServiceUsageStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonServiceUsageStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonServiceUsageStub
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.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonServiceUsageStub
protected HttpJsonServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonServiceUsageStub, 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
-
HttpJsonServiceUsageStub
protected HttpJsonServiceUsageStub(ServiceUsageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonServiceUsageStub, 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 HttpJsonServiceUsageStub create(ServiceUsageStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServiceUsageStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServiceUsageStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
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
-
-