Class GrpcAlertPolicyServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.AlertPolicyServiceStub
com.google.cloud.monitoring.v3.stub.GrpcAlertPolicyServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcAlertPolicyServiceStub
extends AlertPolicyServiceStub
gRPC stub implementation for the AlertPolicyService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings.protectedGrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcAlertPolicyServiceStubcreate(ClientContext clientContext) static final GrpcAlertPolicyServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcAlertPolicyServiceStubcreate(AlertPolicyServiceStubSettings settings) UnaryCallable<DeleteAlertPolicyRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcAlertPolicyServiceStub
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcAlertPolicyServiceStub, 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
-
GrpcAlertPolicyServiceStub
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcAlertPolicyServiceStub, 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 GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listAlertPoliciesCallable
public UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesResponse> listAlertPoliciesCallable()- Overrides:
listAlertPoliciesCallablein classAlertPolicyServiceStub
-
listAlertPoliciesPagedCallable
public UnaryCallable<ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()- Overrides:
listAlertPoliciesPagedCallablein classAlertPolicyServiceStub
-
getAlertPolicyCallable
- Overrides:
getAlertPolicyCallablein classAlertPolicyServiceStub
-
createAlertPolicyCallable
- Overrides:
createAlertPolicyCallablein classAlertPolicyServiceStub
-
deleteAlertPolicyCallable
public UnaryCallable<DeleteAlertPolicyRequest,com.google.protobuf.Empty> deleteAlertPolicyCallable()- Overrides:
deleteAlertPolicyCallablein classAlertPolicyServiceStub
-
updateAlertPolicyCallable
- Overrides:
updateAlertPolicyCallablein classAlertPolicyServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAlertPolicyServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-