@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcAlertPolicyServiceStub extends AlertPolicyServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings.
|
protected |
GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcAlertPolicyServiceStub |
create(AlertPolicyServiceStubSettings settings) |
static GrpcAlertPolicyServiceStub |
create(ClientContext clientContext) |
static GrpcAlertPolicyServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
UnaryCallable<com.google.monitoring.v3.CreateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> |
createAlertPolicyCallable() |
UnaryCallable<com.google.monitoring.v3.DeleteAlertPolicyRequest,Empty> |
deleteAlertPolicyCallable() |
UnaryCallable<com.google.monitoring.v3.GetAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> |
getAlertPolicyCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,com.google.monitoring.v3.ListAlertPoliciesResponse> |
listAlertPoliciesCallable() |
UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> |
listAlertPoliciesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.monitoring.v3.UpdateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> |
updateAlertPolicyCallable() |
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException
IOExceptionprotected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcAlertPolicyServiceStub create(ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()
listAlertPoliciesPagedCallable in class AlertPolicyServiceStubpublic UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,com.google.monitoring.v3.ListAlertPoliciesResponse> listAlertPoliciesCallable()
listAlertPoliciesCallable in class AlertPolicyServiceStubpublic UnaryCallable<com.google.monitoring.v3.GetAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> getAlertPolicyCallable()
getAlertPolicyCallable in class AlertPolicyServiceStubpublic UnaryCallable<com.google.monitoring.v3.CreateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> createAlertPolicyCallable()
createAlertPolicyCallable in class AlertPolicyServiceStubpublic UnaryCallable<com.google.monitoring.v3.DeleteAlertPolicyRequest,Empty> deleteAlertPolicyCallable()
deleteAlertPolicyCallable in class AlertPolicyServiceStubpublic UnaryCallable<com.google.monitoring.v3.UpdateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> updateAlertPolicyCallable()
updateAlertPolicyCallable in class AlertPolicyServiceStubpublic final void close()
close in interface AutoCloseableclose in class AlertPolicyServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.