Class SnoozeServiceGrpc (3.54.0)

public final class SnoozeServiceGrpc

The SnoozeService API is used to temporarily prevent an alert policy from generating alerts. A Snooze is a description of the criteria under which one or more alert policies should not fire alerts for the specified duration.

Inheritance

java.lang.Object > SnoozeServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(SnoozeServiceGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(SnoozeServiceGrpc.AsyncService service)
Parameter
Name Description
service SnoozeServiceGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getCreateSnoozeMethod()

public static MethodDescriptor<CreateSnoozeRequest,Snooze> getCreateSnoozeMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CreateSnoozeRequest,Snooze>

getGetSnoozeMethod()

public static MethodDescriptor<GetSnoozeRequest,Snooze> getGetSnoozeMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetSnoozeRequest,Snooze>

getListSnoozesMethod()

public static MethodDescriptor<ListSnoozesRequest,ListSnoozesResponse> getListSnoozesMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListSnoozesRequest,ListSnoozesResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

getUpdateSnoozeMethod()

public static MethodDescriptor<UpdateSnoozeRequest,Snooze> getUpdateSnoozeMethod()
Returns
Type Description
io.grpc.MethodDescriptor<UpdateSnoozeRequest,Snooze>

newBlockingStub(Channel channel)

public static SnoozeServiceGrpc.SnoozeServiceBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SnoozeServiceGrpc.SnoozeServiceBlockingStub

newFutureStub(Channel channel)

public static SnoozeServiceGrpc.SnoozeServiceFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SnoozeServiceGrpc.SnoozeServiceFutureStub

newStub(Channel channel)

public static SnoozeServiceGrpc.SnoozeServiceStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
SnoozeServiceGrpc.SnoozeServiceStub