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.
Static Methods
create(ClientContext clientContext)
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(AlertPolicyServiceStubSettings settings)
public static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings)
Constructors
GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext)
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext)
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.
GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcAlertPolicyServiceStub(AlertPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
createAlertPolicyCallable()
public UnaryCallable<CreateAlertPolicyRequest,AlertPolicy> createAlertPolicyCallable()
Overrides
deleteAlertPolicyCallable()
public UnaryCallable<DeleteAlertPolicyRequest,Empty> deleteAlertPolicyCallable()
Overrides
getAlertPolicyCallable()
public UnaryCallable<GetAlertPolicyRequest,AlertPolicy> getAlertPolicyCallable()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listAlertPoliciesCallable()
public UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesResponse> listAlertPoliciesCallable()
Overrides
listAlertPoliciesPagedCallable()
public UnaryCallable<ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateAlertPolicyCallable()
public UnaryCallable<UpdateAlertPolicyRequest,AlertPolicy> updateAlertPolicyCallable()
Overrides