Class GrpcServiceMonitoringServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStub
com.google.cloud.monitoring.v3.stub.GrpcServiceMonitoringServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcServiceMonitoringServiceStub
extends ServiceMonitoringServiceStub
gRPC stub implementation for the ServiceMonitoringService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcServiceMonitoringServiceStub, using the given settings.protectedGrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcServiceMonitoringServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcServiceMonitoringServiceStubcreate(ClientContext clientContext) static final GrpcServiceMonitoringServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcServiceMonitoringServiceStubcreate(ServiceMonitoringServiceStubSettings settings) UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> UnaryCallable<DeleteServiceLevelObjectiveRequest,com.google.protobuf.Empty> booleanbooleanUnaryCallable<ListServiceLevelObjectivesRequest,ServiceMonitoringServiceClient.ListServiceLevelObjectivesPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcServiceMonitoringServiceStub
protected GrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcServiceMonitoringServiceStub, 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
-
GrpcServiceMonitoringServiceStub
protected GrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcServiceMonitoringServiceStub, 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 GrpcServiceMonitoringServiceStub create(ServiceMonitoringServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcServiceMonitoringServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcServiceMonitoringServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createServiceCallable
- Overrides:
createServiceCallablein classServiceMonitoringServiceStub
-
getServiceCallable
- Overrides:
getServiceCallablein classServiceMonitoringServiceStub
-
listServicesCallable
- Overrides:
listServicesCallablein classServiceMonitoringServiceStub
-
listServicesPagedCallable
public UnaryCallable<ListServicesRequest,ServiceMonitoringServiceClient.ListServicesPagedResponse> listServicesPagedCallable()- Overrides:
listServicesPagedCallablein classServiceMonitoringServiceStub
-
updateServiceCallable
- Overrides:
updateServiceCallablein classServiceMonitoringServiceStub
-
deleteServiceCallable
- Overrides:
deleteServiceCallablein classServiceMonitoringServiceStub
-
createServiceLevelObjectiveCallable
public UnaryCallable<CreateServiceLevelObjectiveRequest,ServiceLevelObjective> createServiceLevelObjectiveCallable()- Overrides:
createServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
getServiceLevelObjectiveCallable
public UnaryCallable<GetServiceLevelObjectiveRequest,ServiceLevelObjective> getServiceLevelObjectiveCallable()- Overrides:
getServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
listServiceLevelObjectivesCallable
public UnaryCallable<ListServiceLevelObjectivesRequest,ListServiceLevelObjectivesResponse> listServiceLevelObjectivesCallable()- Overrides:
listServiceLevelObjectivesCallablein classServiceMonitoringServiceStub
-
listServiceLevelObjectivesPagedCallable
public UnaryCallable<ListServiceLevelObjectivesRequest,ServiceMonitoringServiceClient.ListServiceLevelObjectivesPagedResponse> listServiceLevelObjectivesPagedCallable()- Overrides:
listServiceLevelObjectivesPagedCallablein classServiceMonitoringServiceStub
-
updateServiceLevelObjectiveCallable
public UnaryCallable<UpdateServiceLevelObjectiveRequest,ServiceLevelObjective> updateServiceLevelObjectiveCallable()- Overrides:
updateServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
deleteServiceLevelObjectiveCallable
public UnaryCallable<DeleteServiceLevelObjectiveRequest,com.google.protobuf.Empty> deleteServiceLevelObjectiveCallable()- Overrides:
deleteServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classServiceMonitoringServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-