Class GrpcMaintenanceStub
java.lang.Object
com.google.cloud.maintenance.api.v1beta.stub.MaintenanceStub
com.google.cloud.maintenance.api.v1beta.stub.GrpcMaintenanceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcMaintenanceStub
extends MaintenanceStub
gRPC stub implementation for the Maintenance service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcMaintenanceStub, using the given settings.protectedGrpcMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcMaintenanceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcMaintenanceStubcreate(ClientContext clientContext) static final GrpcMaintenanceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcMaintenanceStubcreate(MaintenanceStubSettings settings) booleanbooleanUnaryCallable<ListResourceMaintenancesRequest,MaintenanceClient.ListResourceMaintenancesPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcMaintenanceStub
protected GrpcMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcMaintenanceStub, 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
-
GrpcMaintenanceStub
protected GrpcMaintenanceStub(MaintenanceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcMaintenanceStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcMaintenanceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
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
-