@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
IOException
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()
listAlertPoliciesPagedCallable
in class AlertPolicyServiceStub
public UnaryCallable<com.google.monitoring.v3.ListAlertPoliciesRequest,com.google.monitoring.v3.ListAlertPoliciesResponse> listAlertPoliciesCallable()
listAlertPoliciesCallable
in class AlertPolicyServiceStub
public UnaryCallable<com.google.monitoring.v3.GetAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> getAlertPolicyCallable()
getAlertPolicyCallable
in class AlertPolicyServiceStub
public UnaryCallable<com.google.monitoring.v3.CreateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> createAlertPolicyCallable()
createAlertPolicyCallable
in class AlertPolicyServiceStub
public UnaryCallable<com.google.monitoring.v3.DeleteAlertPolicyRequest,Empty> deleteAlertPolicyCallable()
deleteAlertPolicyCallable
in class AlertPolicyServiceStub
public UnaryCallable<com.google.monitoring.v3.UpdateAlertPolicyRequest,com.google.monitoring.v3.AlertPolicy> updateAlertPolicyCallable()
updateAlertPolicyCallable
in class AlertPolicyServiceStub
public final void close()
close
in interface AutoCloseable
close
in class AlertPolicyServiceStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.