Package com.google.cloud.apihub.v1.stub
Class HttpJsonApiHubStub
java.lang.Object
com.google.cloud.apihub.v1.stub.ApiHubStub
com.google.cloud.apihub.v1.stub.HttpJsonApiHubStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the ApiHub service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonApiHubStub, using the given settings.protectedHttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonApiHubStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonApiHubStubcreate(ClientContext clientContext) static final HttpJsonApiHubStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonApiHubStubcreate(ApiHubStubSettings settings) UnaryCallable<DeleteApiRequest,com.google.protobuf.Empty> UnaryCallable<DeleteApiOperationRequest,com.google.protobuf.Empty> UnaryCallable<DeleteAttributeRequest,com.google.protobuf.Empty> UnaryCallable<DeleteDeploymentRequest,com.google.protobuf.Empty> UnaryCallable<DeleteExternalApiRequest,com.google.protobuf.Empty> UnaryCallable<DeleteSpecRequest,com.google.protobuf.Empty> UnaryCallable<DeleteVersionRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonApiHubStub
protected HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonApiHubStub, 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
-
HttpJsonApiHubStub
protected HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonApiHubStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonApiHubStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createApiCallable
- Overrides:
createApiCallablein classApiHubStub
-
getApiCallable
- Overrides:
getApiCallablein classApiHubStub
-
listApisCallable
- Overrides:
listApisCallablein classApiHubStub
-
listApisPagedCallable
- Overrides:
listApisPagedCallablein classApiHubStub
-
updateApiCallable
- Overrides:
updateApiCallablein classApiHubStub
-
deleteApiCallable
- Overrides:
deleteApiCallablein classApiHubStub
-
createVersionCallable
- Overrides:
createVersionCallablein classApiHubStub
-
getVersionCallable
- Overrides:
getVersionCallablein classApiHubStub
-
listVersionsCallable
- Overrides:
listVersionsCallablein classApiHubStub
-
listVersionsPagedCallable
public UnaryCallable<ListVersionsRequest,ApiHubClient.ListVersionsPagedResponse> listVersionsPagedCallable()- Overrides:
listVersionsPagedCallablein classApiHubStub
-
updateVersionCallable
- Overrides:
updateVersionCallablein classApiHubStub
-
deleteVersionCallable
- Overrides:
deleteVersionCallablein classApiHubStub
-
createSpecCallable
- Overrides:
createSpecCallablein classApiHubStub
-
getSpecCallable
- Overrides:
getSpecCallablein classApiHubStub
-
getSpecContentsCallable
- Overrides:
getSpecContentsCallablein classApiHubStub
-
listSpecsCallable
- Overrides:
listSpecsCallablein classApiHubStub
-
listSpecsPagedCallable
- Overrides:
listSpecsPagedCallablein classApiHubStub
-
updateSpecCallable
- Overrides:
updateSpecCallablein classApiHubStub
-
deleteSpecCallable
- Overrides:
deleteSpecCallablein classApiHubStub
-
createApiOperationCallable
- Overrides:
createApiOperationCallablein classApiHubStub
-
getApiOperationCallable
- Overrides:
getApiOperationCallablein classApiHubStub
-
listApiOperationsCallable
public UnaryCallable<ListApiOperationsRequest,ListApiOperationsResponse> listApiOperationsCallable()- Overrides:
listApiOperationsCallablein classApiHubStub
-
listApiOperationsPagedCallable
public UnaryCallable<ListApiOperationsRequest,ApiHubClient.ListApiOperationsPagedResponse> listApiOperationsPagedCallable()- Overrides:
listApiOperationsPagedCallablein classApiHubStub
-
updateApiOperationCallable
- Overrides:
updateApiOperationCallablein classApiHubStub
-
deleteApiOperationCallable
public UnaryCallable<DeleteApiOperationRequest,com.google.protobuf.Empty> deleteApiOperationCallable()- Overrides:
deleteApiOperationCallablein classApiHubStub
-
getDefinitionCallable
- Overrides:
getDefinitionCallablein classApiHubStub
-
createDeploymentCallable
- Overrides:
createDeploymentCallablein classApiHubStub
-
getDeploymentCallable
- Overrides:
getDeploymentCallablein classApiHubStub
-
listDeploymentsCallable
- Overrides:
listDeploymentsCallablein classApiHubStub
-
listDeploymentsPagedCallable
public UnaryCallable<ListDeploymentsRequest,ApiHubClient.ListDeploymentsPagedResponse> listDeploymentsPagedCallable()- Overrides:
listDeploymentsPagedCallablein classApiHubStub
-
updateDeploymentCallable
- Overrides:
updateDeploymentCallablein classApiHubStub
-
deleteDeploymentCallable
- Overrides:
deleteDeploymentCallablein classApiHubStub
-
createAttributeCallable
- Overrides:
createAttributeCallablein classApiHubStub
-
getAttributeCallable
- Overrides:
getAttributeCallablein classApiHubStub
-
updateAttributeCallable
- Overrides:
updateAttributeCallablein classApiHubStub
-
deleteAttributeCallable
- Overrides:
deleteAttributeCallablein classApiHubStub
-
listAttributesCallable
- Overrides:
listAttributesCallablein classApiHubStub
-
listAttributesPagedCallable
public UnaryCallable<ListAttributesRequest,ApiHubClient.ListAttributesPagedResponse> listAttributesPagedCallable()- Overrides:
listAttributesPagedCallablein classApiHubStub
-
searchResourcesCallable
- Overrides:
searchResourcesCallablein classApiHubStub
-
searchResourcesPagedCallable
public UnaryCallable<SearchResourcesRequest,ApiHubClient.SearchResourcesPagedResponse> searchResourcesPagedCallable()- Overrides:
searchResourcesPagedCallablein classApiHubStub
-
createExternalApiCallable
- Overrides:
createExternalApiCallablein classApiHubStub
-
getExternalApiCallable
- Overrides:
getExternalApiCallablein classApiHubStub
-
updateExternalApiCallable
- Overrides:
updateExternalApiCallablein classApiHubStub
-
deleteExternalApiCallable
public UnaryCallable<DeleteExternalApiRequest,com.google.protobuf.Empty> deleteExternalApiCallable()- Overrides:
deleteExternalApiCallablein classApiHubStub
-
listExternalApisCallable
- Overrides:
listExternalApisCallablein classApiHubStub
-
listExternalApisPagedCallable
public UnaryCallable<ListExternalApisRequest,ApiHubClient.ListExternalApisPagedResponse> listExternalApisPagedCallable()- Overrides:
listExternalApisPagedCallablein classApiHubStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classApiHubStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,ApiHubClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classApiHubStub
-
getLocationCallable
- Overrides:
getLocationCallablein classApiHubStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classApiHubStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-