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