Class LintingServiceGrpc.LintingServiceFutureStub (0.2.0)

public static final class LintingServiceGrpc.LintingServiceFutureStub extends AbstractFutureStub<LintingServiceGrpc.LintingServiceFutureStub>

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

This service provides all methods related to the 1p Linter.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > LintingServiceGrpc.LintingServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

getStyleGuide(GetStyleGuideRequest request)

public ListenableFuture<StyleGuide> getStyleGuide(GetStyleGuideRequest request)

Get the style guide being used for linting.

Parameter
Name Description
request GetStyleGuideRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<StyleGuide>

getStyleGuideContents(GetStyleGuideContentsRequest request)

public ListenableFuture<StyleGuideContents> getStyleGuideContents(GetStyleGuideContentsRequest request)

Get the contents of the style guide.

Parameter
Name Description
request GetStyleGuideContentsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<StyleGuideContents>

lintSpec(LintSpecRequest request)

public ListenableFuture<Empty> lintSpec(LintSpecRequest request)

Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.

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

updateStyleGuide(UpdateStyleGuideRequest request)

public ListenableFuture<StyleGuide> updateStyleGuide(UpdateStyleGuideRequest request)

Update the styleGuide to be used for liniting in by API hub.

Parameter
Name Description
request UpdateStyleGuideRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<StyleGuide>