Class LintingServiceGrpc.LintingServiceBlockingStub (0.1.0)

public static final class LintingServiceGrpc.LintingServiceBlockingStub extends AbstractBlockingStub<LintingServiceGrpc.LintingServiceBlockingStub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > LintingServiceGrpc.LintingServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

getStyleGuide(GetStyleGuideRequest request)

public StyleGuide getStyleGuide(GetStyleGuideRequest request)

Get the style guide being used for linting.

Parameter
Name Description
request GetStyleGuideRequest
Returns
Type Description
StyleGuide

getStyleGuideContents(GetStyleGuideContentsRequest request)

public StyleGuideContents getStyleGuideContents(GetStyleGuideContentsRequest request)

Get the contents of the style guide.

Parameter
Name Description
request GetStyleGuideContentsRequest
Returns
Type Description
StyleGuideContents

lintSpec(LintSpecRequest request)

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

updateStyleGuide(UpdateStyleGuideRequest request)

public StyleGuide updateStyleGuide(UpdateStyleGuideRequest request)

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

Parameter
Name Description
request UpdateStyleGuideRequest
Returns
Type Description
StyleGuide