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 protected
GrpcServiceMonitoringServiceStub(ServiceMonitoringServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcServiceMonitoringServiceStub, using the given settings.protected
GrpcServiceMonitoringServiceStub(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:
createServiceCallable
in classServiceMonitoringServiceStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallable
in classServiceMonitoringServiceStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallable
in classServiceMonitoringServiceStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServiceMonitoringServiceClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallable
in classServiceMonitoringServiceStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,Service> updateServiceCallable()
- Overrides:
updateServiceCallable
in classServiceMonitoringServiceStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> deleteServiceCallable()
- Overrides:
deleteServiceCallable
in classServiceMonitoringServiceStub
-
createServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceLevelObjectiveRequest,ServiceLevelObjective> createServiceLevelObjectiveCallable()
- Overrides:
createServiceLevelObjectiveCallable
in classServiceMonitoringServiceStub
-
getServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceLevelObjectiveRequest,ServiceLevelObjective> getServiceLevelObjectiveCallable()
- Overrides:
getServiceLevelObjectiveCallable
in classServiceMonitoringServiceStub
-
listServiceLevelObjectivesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceLevelObjectivesRequest,ListServiceLevelObjectivesResponse> listServiceLevelObjectivesCallable()
- Overrides:
listServiceLevelObjectivesCallable
in classServiceMonitoringServiceStub
-
listServiceLevelObjectivesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServiceLevelObjectivesRequest,ServiceMonitoringServiceClient.ListServiceLevelObjectivesPagedResponse> listServiceLevelObjectivesPagedCallable()
- Overrides:
listServiceLevelObjectivesPagedCallable
in classServiceMonitoringServiceStub
-
updateServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceLevelObjectiveRequest,ServiceLevelObjective> updateServiceLevelObjectiveCallable()
- Overrides:
updateServiceLevelObjectiveCallable
in classServiceMonitoringServiceStub
-
deleteServiceLevelObjectiveCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceLevelObjectiveRequest,com.google.protobuf.Empty> deleteServiceLevelObjectiveCallable()
- Overrides:
deleteServiceLevelObjectiveCallable
in classServiceMonitoringServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-