Class ExamplesGrpc.ExamplesFutureStub (0.59.0)

public static final class ExamplesGrpc.ExamplesFutureStub extends AbstractFutureStub<ExamplesGrpc.ExamplesFutureStub>

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

Service for managing Examples.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ExamplesGrpc.ExamplesFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createExample(CreateExampleRequest request)

public ListenableFuture<Example> createExample(CreateExampleRequest request)

Creates an example in the specified playbook.

Parameter
Name Description
request CreateExampleRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Example>

deleteExample(DeleteExampleRequest request)

public ListenableFuture<Empty> deleteExample(DeleteExampleRequest request)

Deletes the specified example.

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

getExample(GetExampleRequest request)

public ListenableFuture<Example> getExample(GetExampleRequest request)

Retrieves the specified example.

Parameter
Name Description
request GetExampleRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Example>

listExamples(ListExamplesRequest request)

public ListenableFuture<ListExamplesResponse> listExamples(ListExamplesRequest request)

Returns a list of examples in the specified playbook.

Parameter
Name Description
request ListExamplesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListExamplesResponse>

updateExample(UpdateExampleRequest request)

public ListenableFuture<Example> updateExample(UpdateExampleRequest request)

Update the specified example.

Parameter
Name Description
request UpdateExampleRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Example>