Interface LintingServiceGrpc.AsyncService (0.2.0)

public static interface LintingServiceGrpc.AsyncService

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

Methods

getStyleGuide(GetStyleGuideRequest request, StreamObserver<StyleGuide> responseObserver)

public default 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 default 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 default 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 default 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>