Class GrpcServiceMonitoringServiceStub
- java.lang.Object
-
- com.google.cloud.monitoring.v3.stub.ServiceMonitoringServiceStub
-
- com.google.cloud.monitoring.v3.stub.GrpcServiceMonitoringServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.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
Constructors Modifier Constructor Description protectedGrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcServiceMonitoringServiceStub, using the given settings.protectedGrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcServiceMonitoringServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcServiceMonitoringServiceStub
protected GrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcServiceMonitoringServiceStub create(ServiceMonitoringServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcServiceMonitoringServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcServiceMonitoringServiceStub 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()
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,Service> createServiceCallable()
- Overrides:
createServiceCallablein classServiceMonitoringServiceStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallablein classServiceMonitoringServiceStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallablein classServiceMonitoringServiceStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceMonitoringServiceClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallablein classServiceMonitoringServiceStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,Service> updateServiceCallable()
- Overrides:
updateServiceCallablein classServiceMonitoringServiceStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> deleteServiceCallable()
- Overrides:
deleteServiceCallablein classServiceMonitoringServiceStub
-
createServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceLevelObjectiveRequest,ServiceLevelObjective> createServiceLevelObjectiveCallable()
- Overrides:
createServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
getServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceLevelObjectiveRequest,ServiceLevelObjective> getServiceLevelObjectiveCallable()
- Overrides:
getServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
listServiceLevelObjectivesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceLevelObjectivesRequest,ListServiceLevelObjectivesResponse> listServiceLevelObjectivesCallable()
- Overrides:
listServiceLevelObjectivesCallablein classServiceMonitoringServiceStub
-
listServiceLevelObjectivesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceLevelObjectivesRequest,ServiceMonitoringServiceClient.ListServiceLevelObjectivesPagedResponse> listServiceLevelObjectivesPagedCallable()
- Overrides:
listServiceLevelObjectivesPagedCallablein classServiceMonitoringServiceStub
-
updateServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceLevelObjectiveRequest,ServiceLevelObjective> updateServiceLevelObjectiveCallable()
- Overrides:
updateServiceLevelObjectiveCallablein classServiceMonitoringServiceStub
-
deleteServiceLevelObjectiveCallable
public com.google.api.gax.rpc.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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-