Class GrpcAlertPolicyServiceStub (3.46.0)

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.

Inheritance

java.lang.Object > AlertPolicyServiceStub > GrpcAlertPolicyServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcAlertPolicyServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcAlertPolicyServiceStub
Exceptions
Type Description
IOException

create(AlertPolicyServiceStubSettings settings)

public static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings)
Parameter
Name Description
settings AlertPolicyServiceStubSettings
Returns
Type Description
GrpcAlertPolicyServiceStub
Exceptions
Type Description
IOException

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
Name Description
settings AlertPolicyServiceStubSettings
clientContext ClientContext

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
Name Description
settings AlertPolicyServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createAlertPolicyCallable()

public UnaryCallable<CreateAlertPolicyRequest,AlertPolicy> createAlertPolicyCallable()
Returns
Type Description
UnaryCallable<CreateAlertPolicyRequest,AlertPolicy>
Overrides

deleteAlertPolicyCallable()

public UnaryCallable<DeleteAlertPolicyRequest,Empty> deleteAlertPolicyCallable()
Returns
Type Description
UnaryCallable<DeleteAlertPolicyRequest,Empty>
Overrides

getAlertPolicyCallable()

public UnaryCallable<GetAlertPolicyRequest,AlertPolicy> getAlertPolicyCallable()
Returns
Type Description
UnaryCallable<GetAlertPolicyRequest,AlertPolicy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAlertPoliciesCallable()

public UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesResponse> listAlertPoliciesCallable()
Returns
Type Description
UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesResponse>
Overrides

listAlertPoliciesPagedCallable()

public UnaryCallable<ListAlertPoliciesRequest,AlertPolicyServiceClient.ListAlertPoliciesPagedResponse> listAlertPoliciesPagedCallable()
Returns
Type Description
UnaryCallable<ListAlertPoliciesRequest,ListAlertPoliciesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAlertPolicyCallable()

public UnaryCallable<UpdateAlertPolicyRequest,AlertPolicy> updateAlertPolicyCallable()
Returns
Type Description
UnaryCallable<UpdateAlertPolicyRequest,AlertPolicy>
Overrides