Class LintingServiceGrpc.LintingServiceStub (0.2.0)

public static final class LintingServiceGrpc.LintingServiceStub extends AbstractAsyncStub<LintingServiceGrpc.LintingServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > LintingServiceGrpc.LintingServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

getStyleGuide(GetStyleGuideRequest request, StreamObserver<StyleGuide> responseObserver)

public void getStyleGuide(GetStyleGuideRequest request, StreamObserver<StyleGuide> responseObserver)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest
responseObserver io.grpc.stub.StreamObserver<StyleGuide>

getStyleGuideContents(GetStyleGuideContentsRequest request, StreamObserver<StyleGuideContents> responseObserver)

public void getStyleGuideContents(GetStyleGuideContentsRequest request, StreamObserver<StyleGuideContents> responseObserver)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest
responseObserver io.grpc.stub.StreamObserver<StyleGuideContents>

lintSpec(LintSpecRequest request, StreamObserver<Empty> responseObserver)

public void lintSpec(LintSpecRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
Name Description
request LintSpecRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

updateStyleGuide(UpdateStyleGuideRequest request, StreamObserver<StyleGuide> responseObserver)

public void updateStyleGuide(UpdateStyleGuideRequest request, StreamObserver<StyleGuide> responseObserver)

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

Parameters
Name Description
request UpdateStyleGuideRequest
responseObserver io.grpc.stub.StreamObserver<StyleGuide>