Package com.google.cloud.apihub.v1.stub
Class HttpJsonLintingServiceStub
java.lang.Object
com.google.cloud.apihub.v1.stub.LintingServiceStub
com.google.cloud.apihub.v1.stub.HttpJsonLintingServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonLintingServiceStub
extends LintingServiceStub
REST stub implementation for the LintingService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonLintingServiceStub(LintingServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonLintingServiceStub, using the given settings.protectedHttpJsonLintingServiceStub(LintingServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonLintingServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonLintingServiceStubcreate(ClientContext clientContext) static final HttpJsonLintingServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonLintingServiceStubcreate(LintingServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<LintSpecRequest,com.google.protobuf.Empty> voidshutdown()void
-
Constructor Details
-
HttpJsonLintingServiceStub
protected HttpJsonLintingServiceStub(LintingServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonLintingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonLintingServiceStub
protected HttpJsonLintingServiceStub(LintingServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonLintingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonLintingServiceStub create(LintingServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonLintingServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonLintingServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getStyleGuideCallable
- Overrides:
getStyleGuideCallablein classLintingServiceStub
-
updateStyleGuideCallable
- Overrides:
updateStyleGuideCallablein classLintingServiceStub
-
getStyleGuideContentsCallable
public UnaryCallable<GetStyleGuideContentsRequest,StyleGuideContents> getStyleGuideContentsCallable()- Overrides:
getStyleGuideContentsCallablein classLintingServiceStub
-
lintSpecCallable
- Overrides:
lintSpecCallablein classLintingServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classLintingServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,LintingServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classLintingServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classLintingServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLintingServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-