Class HttpJsonMaintenanceStub
java.lang.Object
com.google.cloud.maintenance.api.v1beta.stub.MaintenanceStub
com.google.cloud.maintenance.api.v1beta.stub.HttpJsonMaintenanceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonMaintenanceStub
extends MaintenanceStub
REST stub implementation for the Maintenance service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonMaintenanceStub, using the given settings.protectedHttpJsonMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonMaintenanceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonMaintenanceStubcreate(ClientContext clientContext) static final HttpJsonMaintenanceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonMaintenanceStubcreate(MaintenanceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<ListResourceMaintenancesRequest,MaintenanceClient.ListResourceMaintenancesPagedResponse> voidshutdown()void
-
Constructor Details
-
HttpJsonMaintenanceStub
protected HttpJsonMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonMaintenanceStub, 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
-
HttpJsonMaintenanceStub
protected HttpJsonMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonMaintenanceStub, 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 HttpJsonMaintenanceStub create(MaintenanceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonMaintenanceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
summarizeMaintenancesCallable
public UnaryCallable<SummarizeMaintenancesRequest,SummarizeMaintenancesResponse> summarizeMaintenancesCallable()- Overrides:
summarizeMaintenancesCallablein classMaintenanceStub
-
summarizeMaintenancesPagedCallable
public UnaryCallable<SummarizeMaintenancesRequest,MaintenanceClient.SummarizeMaintenancesPagedResponse> summarizeMaintenancesPagedCallable()- Overrides:
summarizeMaintenancesPagedCallablein classMaintenanceStub
-
listResourceMaintenancesCallable
public UnaryCallable<ListResourceMaintenancesRequest,ListResourceMaintenancesResponse> listResourceMaintenancesCallable()- Overrides:
listResourceMaintenancesCallablein classMaintenanceStub
-
listResourceMaintenancesPagedCallable
public UnaryCallable<ListResourceMaintenancesRequest,MaintenanceClient.ListResourceMaintenancesPagedResponse> listResourceMaintenancesPagedCallable()- Overrides:
listResourceMaintenancesPagedCallablein classMaintenanceStub
-
getResourceMaintenanceCallable
public UnaryCallable<GetResourceMaintenanceRequest,ResourceMaintenance> getResourceMaintenanceCallable()- Overrides:
getResourceMaintenanceCallablein classMaintenanceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classMaintenanceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,MaintenanceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classMaintenanceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classMaintenanceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classMaintenanceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-