public class HttpJsonApiHubStub extends ApiHubStub
REST stub implementation for the ApiHub service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonApiHubStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonApiHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonApiHubStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonApiHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ApiHubStubSettings settings)
public static final HttpJsonApiHubStub create(ApiHubStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
ApiHubStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonApiHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext)
protected HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext)
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.
Parameters | |
---|---|
Name | Description |
settings |
ApiHubStubSettings |
clientContext |
ClientContext |
HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
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.
Parameters | |
---|---|
Name | Description |
settings |
ApiHubStubSettings |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createApiCallable()
public UnaryCallable<CreateApiRequest,Api> createApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateApiRequest,Api> |
createAttributeCallable()
public UnaryCallable<CreateAttributeRequest,Attribute> createAttributeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateAttributeRequest,Attribute> |
createDeploymentCallable()
public UnaryCallable<CreateDeploymentRequest,Deployment> createDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateDeploymentRequest,Deployment> |
createExternalApiCallable()
public UnaryCallable<CreateExternalApiRequest,ExternalApi> createExternalApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateExternalApiRequest,ExternalApi> |
createSpecCallable()
public UnaryCallable<CreateSpecRequest,Spec> createSpecCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSpecRequest,Spec> |
createVersionCallable()
public UnaryCallable<CreateVersionRequest,Version> createVersionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateVersionRequest,Version> |
deleteApiCallable()
public UnaryCallable<DeleteApiRequest,Empty> deleteApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteApiRequest,Empty> |
deleteAttributeCallable()
public UnaryCallable<DeleteAttributeRequest,Empty> deleteAttributeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteAttributeRequest,Empty> |
deleteDeploymentCallable()
public UnaryCallable<DeleteDeploymentRequest,Empty> deleteDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteDeploymentRequest,Empty> |
deleteExternalApiCallable()
public UnaryCallable<DeleteExternalApiRequest,Empty> deleteExternalApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteExternalApiRequest,Empty> |
deleteSpecCallable()
public UnaryCallable<DeleteSpecRequest,Empty> deleteSpecCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSpecRequest,Empty> |
deleteVersionCallable()
public UnaryCallable<DeleteVersionRequest,Empty> deleteVersionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteVersionRequest,Empty> |
getApiCallable()
public UnaryCallable<GetApiRequest,Api> getApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetApiRequest,Api> |
getApiOperationCallable()
public UnaryCallable<GetApiOperationRequest,ApiOperation> getApiOperationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetApiOperationRequest,ApiOperation> |
getAttributeCallable()
public UnaryCallable<GetAttributeRequest,Attribute> getAttributeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetAttributeRequest,Attribute> |
getDefinitionCallable()
public UnaryCallable<GetDefinitionRequest,Definition> getDefinitionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDefinitionRequest,Definition> |
getDeploymentCallable()
public UnaryCallable<GetDeploymentRequest,Deployment> getDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDeploymentRequest,Deployment> |
getExternalApiCallable()
public UnaryCallable<GetExternalApiRequest,ExternalApi> getExternalApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetExternalApiRequest,ExternalApi> |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getSpecCallable()
public UnaryCallable<GetSpecRequest,Spec> getSpecCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSpecRequest,Spec> |
getSpecContentsCallable()
public UnaryCallable<GetSpecContentsRequest,SpecContents> getSpecContentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSpecContentsRequest,SpecContents> |
getVersionCallable()
public UnaryCallable<GetVersionRequest,Version> getVersionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetVersionRequest,Version> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listApiOperationsCallable()
public UnaryCallable<ListApiOperationsRequest,ListApiOperationsResponse> listApiOperationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApiOperationsRequest,ListApiOperationsResponse> |
listApiOperationsPagedCallable()
public UnaryCallable<ListApiOperationsRequest,ApiHubClient.ListApiOperationsPagedResponse> listApiOperationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApiOperationsRequest,ListApiOperationsPagedResponse> |
listApisCallable()
public UnaryCallable<ListApisRequest,ListApisResponse> listApisCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApisRequest,ListApisResponse> |
listApisPagedCallable()
public UnaryCallable<ListApisRequest,ApiHubClient.ListApisPagedResponse> listApisPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApisRequest,ListApisPagedResponse> |
listAttributesCallable()
public UnaryCallable<ListAttributesRequest,ListAttributesResponse> listAttributesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAttributesRequest,ListAttributesResponse> |
listAttributesPagedCallable()
public UnaryCallable<ListAttributesRequest,ApiHubClient.ListAttributesPagedResponse> listAttributesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAttributesRequest,ListAttributesPagedResponse> |
listDeploymentsCallable()
public UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> listDeploymentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> |
listDeploymentsPagedCallable()
public UnaryCallable<ListDeploymentsRequest,ApiHubClient.ListDeploymentsPagedResponse> listDeploymentsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDeploymentsRequest,ListDeploymentsPagedResponse> |
listExternalApisCallable()
public UnaryCallable<ListExternalApisRequest,ListExternalApisResponse> listExternalApisCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListExternalApisRequest,ListExternalApisResponse> |
listExternalApisPagedCallable()
public UnaryCallable<ListExternalApisRequest,ApiHubClient.ListExternalApisPagedResponse> listExternalApisPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListExternalApisRequest,ListExternalApisPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,ApiHubClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
listSpecsCallable()
public UnaryCallable<ListSpecsRequest,ListSpecsResponse> listSpecsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpecsRequest,ListSpecsResponse> |
listSpecsPagedCallable()
public UnaryCallable<ListSpecsRequest,ApiHubClient.ListSpecsPagedResponse> listSpecsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSpecsRequest,ListSpecsPagedResponse> |
listVersionsCallable()
public UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListVersionsRequest,ListVersionsResponse> |
listVersionsPagedCallable()
public UnaryCallable<ListVersionsRequest,ApiHubClient.ListVersionsPagedResponse> listVersionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListVersionsRequest,ListVersionsPagedResponse> |
searchResourcesCallable()
public UnaryCallable<SearchResourcesRequest,SearchResourcesResponse> searchResourcesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchResourcesRequest,SearchResourcesResponse> |
searchResourcesPagedCallable()
public UnaryCallable<SearchResourcesRequest,ApiHubClient.SearchResourcesPagedResponse> searchResourcesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchResourcesRequest,SearchResourcesPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateApiCallable()
public UnaryCallable<UpdateApiRequest,Api> updateApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateApiRequest,Api> |
updateAttributeCallable()
public UnaryCallable<UpdateAttributeRequest,Attribute> updateAttributeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateAttributeRequest,Attribute> |
updateDeploymentCallable()
public UnaryCallable<UpdateDeploymentRequest,Deployment> updateDeploymentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDeploymentRequest,Deployment> |
updateExternalApiCallable()
public UnaryCallable<UpdateExternalApiRequest,ExternalApi> updateExternalApiCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateExternalApiRequest,ExternalApi> |
updateSpecCallable()
public UnaryCallable<UpdateSpecRequest,Spec> updateSpecCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSpecRequest,Spec> |
updateVersionCallable()
public UnaryCallable<UpdateVersionRequest,Version> updateVersionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateVersionRequest,Version> |