Class GrpcAlertPolicyServiceStub (3.4.5)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAlertPolicyServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAlertPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcAlertPolicyServiceStub
Exceptions
TypeDescription
IOException

create(AlertPolicyServiceStubSettings settings)

public static final GrpcAlertPolicyServiceStub create(AlertPolicyServiceStubSettings settings)
Parameter
NameDescription
settingsAlertPolicyServiceStubSettings
Returns
TypeDescription
GrpcAlertPolicyServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsAlertPolicyServiceStubSettings
clientContextClientContext

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
NameDescription
settingsAlertPolicyServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createAlertPolicyCallable()

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

deleteAlertPolicyCallable()

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

getAlertPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAlertPoliciesCallable()

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

listAlertPoliciesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAlertPolicyCallable()

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