Class GrpcApiHubStub (0.1.0)

public class GrpcApiHubStub extends ApiHubStub

gRPC stub implementation for the ApiHub service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ApiHubStub > GrpcApiHubStub

Static Methods

create(ClientContext clientContext)

public static final GrpcApiHubStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcApiHubStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcApiHubStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcApiHubStub
Exceptions
Type Description
IOException

create(ApiHubStubSettings settings)

public static final GrpcApiHubStub create(ApiHubStubSettings settings)
Parameter
Name Description
settings ApiHubStubSettings
Returns
Type Description
GrpcApiHubStub
Exceptions
Type Description
IOException

Constructors

GrpcApiHubStub(ApiHubStubSettings settings, ClientContext clientContext)

protected GrpcApiHubStub(ApiHubStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcApiHubStub, 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

GrpcApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcApiHubStub, 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 GrpcStubCallableFactory

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()
Overrides

createApiCallable()

public UnaryCallable<CreateApiRequest,Api> createApiCallable()
Returns
Type Description
UnaryCallable<CreateApiRequest,Api>
Overrides

createAttributeCallable()

public UnaryCallable<CreateAttributeRequest,Attribute> createAttributeCallable()
Returns
Type Description
UnaryCallable<CreateAttributeRequest,Attribute>
Overrides

createDeploymentCallable()

public UnaryCallable<CreateDeploymentRequest,Deployment> createDeploymentCallable()
Returns
Type Description
UnaryCallable<CreateDeploymentRequest,Deployment>
Overrides

createExternalApiCallable()

public UnaryCallable<CreateExternalApiRequest,ExternalApi> createExternalApiCallable()
Returns
Type Description
UnaryCallable<CreateExternalApiRequest,ExternalApi>
Overrides

createSpecCallable()

public UnaryCallable<CreateSpecRequest,Spec> createSpecCallable()
Returns
Type Description
UnaryCallable<CreateSpecRequest,Spec>
Overrides

createVersionCallable()

public UnaryCallable<CreateVersionRequest,Version> createVersionCallable()
Returns
Type Description
UnaryCallable<CreateVersionRequest,Version>
Overrides

deleteApiCallable()

public UnaryCallable<DeleteApiRequest,Empty> deleteApiCallable()
Returns
Type Description
UnaryCallable<DeleteApiRequest,Empty>
Overrides

deleteAttributeCallable()

public UnaryCallable<DeleteAttributeRequest,Empty> deleteAttributeCallable()
Returns
Type Description
UnaryCallable<DeleteAttributeRequest,Empty>
Overrides

deleteDeploymentCallable()

public UnaryCallable<DeleteDeploymentRequest,Empty> deleteDeploymentCallable()
Returns
Type Description
UnaryCallable<DeleteDeploymentRequest,Empty>
Overrides

deleteExternalApiCallable()

public UnaryCallable<DeleteExternalApiRequest,Empty> deleteExternalApiCallable()
Returns
Type Description
UnaryCallable<DeleteExternalApiRequest,Empty>
Overrides

deleteSpecCallable()

public UnaryCallable<DeleteSpecRequest,Empty> deleteSpecCallable()
Returns
Type Description
UnaryCallable<DeleteSpecRequest,Empty>
Overrides

deleteVersionCallable()

public UnaryCallable<DeleteVersionRequest,Empty> deleteVersionCallable()
Returns
Type Description
UnaryCallable<DeleteVersionRequest,Empty>
Overrides

getApiCallable()

public UnaryCallable<GetApiRequest,Api> getApiCallable()
Returns
Type Description
UnaryCallable<GetApiRequest,Api>
Overrides

getApiOperationCallable()

public UnaryCallable<GetApiOperationRequest,ApiOperation> getApiOperationCallable()
Returns
Type Description
UnaryCallable<GetApiOperationRequest,ApiOperation>
Overrides

getAttributeCallable()

public UnaryCallable<GetAttributeRequest,Attribute> getAttributeCallable()
Returns
Type Description
UnaryCallable<GetAttributeRequest,Attribute>
Overrides

getDefinitionCallable()

public UnaryCallable<GetDefinitionRequest,Definition> getDefinitionCallable()
Returns
Type Description
UnaryCallable<GetDefinitionRequest,Definition>
Overrides

getDeploymentCallable()

public UnaryCallable<GetDeploymentRequest,Deployment> getDeploymentCallable()
Returns
Type Description
UnaryCallable<GetDeploymentRequest,Deployment>
Overrides

getExternalApiCallable()

public UnaryCallable<GetExternalApiRequest,ExternalApi> getExternalApiCallable()
Returns
Type Description
UnaryCallable<GetExternalApiRequest,ExternalApi>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSpecCallable()

public UnaryCallable<GetSpecRequest,Spec> getSpecCallable()
Returns
Type Description
UnaryCallable<GetSpecRequest,Spec>
Overrides

getSpecContentsCallable()

public UnaryCallable<GetSpecContentsRequest,SpecContents> getSpecContentsCallable()
Returns
Type Description
UnaryCallable<GetSpecContentsRequest,SpecContents>
Overrides

getVersionCallable()

public UnaryCallable<GetVersionRequest,Version> getVersionCallable()
Returns
Type Description
UnaryCallable<GetVersionRequest,Version>
Overrides

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>
Overrides

listApiOperationsPagedCallable()

public UnaryCallable<ListApiOperationsRequest,ApiHubClient.ListApiOperationsPagedResponse> listApiOperationsPagedCallable()
Returns
Type Description
UnaryCallable<ListApiOperationsRequest,ListApiOperationsPagedResponse>
Overrides

listApisCallable()

public UnaryCallable<ListApisRequest,ListApisResponse> listApisCallable()
Returns
Type Description
UnaryCallable<ListApisRequest,ListApisResponse>
Overrides

listApisPagedCallable()

public UnaryCallable<ListApisRequest,ApiHubClient.ListApisPagedResponse> listApisPagedCallable()
Returns
Type Description
UnaryCallable<ListApisRequest,ListApisPagedResponse>
Overrides

listAttributesCallable()

public UnaryCallable<ListAttributesRequest,ListAttributesResponse> listAttributesCallable()
Returns
Type Description
UnaryCallable<ListAttributesRequest,ListAttributesResponse>
Overrides

listAttributesPagedCallable()

public UnaryCallable<ListAttributesRequest,ApiHubClient.ListAttributesPagedResponse> listAttributesPagedCallable()
Returns
Type Description
UnaryCallable<ListAttributesRequest,ListAttributesPagedResponse>
Overrides

listDeploymentsCallable()

public UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> listDeploymentsCallable()
Returns
Type Description
UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse>
Overrides

listDeploymentsPagedCallable()

public UnaryCallable<ListDeploymentsRequest,ApiHubClient.ListDeploymentsPagedResponse> listDeploymentsPagedCallable()
Returns
Type Description
UnaryCallable<ListDeploymentsRequest,ListDeploymentsPagedResponse>
Overrides

listExternalApisCallable()

public UnaryCallable<ListExternalApisRequest,ListExternalApisResponse> listExternalApisCallable()
Returns
Type Description
UnaryCallable<ListExternalApisRequest,ListExternalApisResponse>
Overrides

listExternalApisPagedCallable()

public UnaryCallable<ListExternalApisRequest,ApiHubClient.ListExternalApisPagedResponse> listExternalApisPagedCallable()
Returns
Type Description
UnaryCallable<ListExternalApisRequest,ListExternalApisPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ApiHubClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listSpecsCallable()

public UnaryCallable<ListSpecsRequest,ListSpecsResponse> listSpecsCallable()
Returns
Type Description
UnaryCallable<ListSpecsRequest,ListSpecsResponse>
Overrides

listSpecsPagedCallable()

public UnaryCallable<ListSpecsRequest,ApiHubClient.ListSpecsPagedResponse> listSpecsPagedCallable()
Returns
Type Description
UnaryCallable<ListSpecsRequest,ListSpecsPagedResponse>
Overrides

listVersionsCallable()

public UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
Returns
Type Description
UnaryCallable<ListVersionsRequest,ListVersionsResponse>
Overrides

listVersionsPagedCallable()

public UnaryCallable<ListVersionsRequest,ApiHubClient.ListVersionsPagedResponse> listVersionsPagedCallable()
Returns
Type Description
UnaryCallable<ListVersionsRequest,ListVersionsPagedResponse>
Overrides

searchResourcesCallable()

public UnaryCallable<SearchResourcesRequest,SearchResourcesResponse> searchResourcesCallable()
Returns
Type Description
UnaryCallable<SearchResourcesRequest,SearchResourcesResponse>
Overrides

searchResourcesPagedCallable()

public UnaryCallable<SearchResourcesRequest,ApiHubClient.SearchResourcesPagedResponse> searchResourcesPagedCallable()
Returns
Type Description
UnaryCallable<SearchResourcesRequest,SearchResourcesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateApiCallable()

public UnaryCallable<UpdateApiRequest,Api> updateApiCallable()
Returns
Type Description
UnaryCallable<UpdateApiRequest,Api>
Overrides

updateAttributeCallable()

public UnaryCallable<UpdateAttributeRequest,Attribute> updateAttributeCallable()
Returns
Type Description
UnaryCallable<UpdateAttributeRequest,Attribute>
Overrides

updateDeploymentCallable()

public UnaryCallable<UpdateDeploymentRequest,Deployment> updateDeploymentCallable()
Returns
Type Description
UnaryCallable<UpdateDeploymentRequest,Deployment>
Overrides

updateExternalApiCallable()

public UnaryCallable<UpdateExternalApiRequest,ExternalApi> updateExternalApiCallable()
Returns
Type Description
UnaryCallable<UpdateExternalApiRequest,ExternalApi>
Overrides

updateSpecCallable()

public UnaryCallable<UpdateSpecRequest,Spec> updateSpecCallable()
Returns
Type Description
UnaryCallable<UpdateSpecRequest,Spec>
Overrides

updateVersionCallable()

public UnaryCallable<UpdateVersionRequest,Version> updateVersionCallable()
Returns
Type Description
UnaryCallable<UpdateVersionRequest,Version>
Overrides