Class WebhooksGrpc.WebhooksFutureStub (0.43.0)

public static final class WebhooksGrpc.WebhooksFutureStub extends AbstractFutureStub<WebhooksGrpc.WebhooksFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Webhooks.

Service for managing Webhooks.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > WebhooksGrpc.WebhooksFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected WebhooksGrpc.WebhooksFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
WebhooksGrpc.WebhooksFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createWebhook(CreateWebhookRequest request)

public ListenableFuture<Webhook> createWebhook(CreateWebhookRequest request)

Creates a webhook in the specified agent.

Parameter
Name Description
request CreateWebhookRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Webhook>

deleteWebhook(DeleteWebhookRequest request)

public ListenableFuture<Empty> deleteWebhook(DeleteWebhookRequest request)

Deletes the specified webhook.

Parameter
Name Description
request DeleteWebhookRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getWebhook(GetWebhookRequest request)

public ListenableFuture<Webhook> getWebhook(GetWebhookRequest request)

Retrieves the specified webhook.

Parameter
Name Description
request GetWebhookRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Webhook>

listWebhooks(ListWebhooksRequest request)

public ListenableFuture<ListWebhooksResponse> listWebhooks(ListWebhooksRequest request)

Returns the list of all webhooks in the specified agent.

Parameter
Name Description
request ListWebhooksRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListWebhooksResponse>

updateWebhook(UpdateWebhookRequest request)

public ListenableFuture<Webhook> updateWebhook(UpdateWebhookRequest request)

Updates the specified webhook.

Parameter
Name Description
request UpdateWebhookRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Webhook>