@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,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings.
|
protected |
GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAlertPolicyServiceStub, using the given settings.
|
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcAlertPolicyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()
listAlertPoliciesPagedCallable
in class AlertPolicyServiceStub
public com.google.api.gax.rpc.UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesResponse> listAlertPoliciesCallable()
listAlertPoliciesCallable
in class AlertPolicyServiceStub
public com.google.api.gax.rpc.UnaryCallable<GetAlertPolicyRequest,AlertPolicy> getAlertPolicyCallable()
getAlertPolicyCallable
in class AlertPolicyServiceStub
public com.google.api.gax.rpc.UnaryCallable<CreateAlertPolicyRequest,AlertPolicy> createAlertPolicyCallable()
createAlertPolicyCallable
in class AlertPolicyServiceStub
public com.google.api.gax.rpc.UnaryCallable<DeleteAlertPolicyRequest,Empty> deleteAlertPolicyCallable()
deleteAlertPolicyCallable
in class AlertPolicyServiceStub
public com.google.api.gax.rpc.UnaryCallable<UpdateAlertPolicyRequest,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.