Class HttpJsonRegistryStub (0.11.0)

public class HttpJsonRegistryStub extends RegistryStub

REST stub implementation for the Registry service API.

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

Inheritance

java.lang.Object > RegistryStub > HttpJsonRegistryStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRegistryStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonRegistryStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRegistryStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonRegistryStub
Exceptions
TypeDescription
IOException

create(RegistryStubSettings settings)

public static final HttpJsonRegistryStub create(RegistryStubSettings settings)
Parameter
NameDescription
settingsRegistryStubSettings
Returns
TypeDescription
HttpJsonRegistryStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRegistryStub(RegistryStubSettings settings, ClientContext clientContext)

protected HttpJsonRegistryStub(RegistryStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegistryStub, 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
NameDescription
settingsRegistryStubSettings
clientContextClientContext

HttpJsonRegistryStub(RegistryStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegistryStub(RegistryStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegistryStub, 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
NameDescription
settingsRegistryStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createApiCallable()

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

createApiDeploymentCallable()

public UnaryCallable<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentCallable()
Returns
TypeDescription
UnaryCallable<CreateApiDeploymentRequest,ApiDeployment>
Overrides

createApiSpecCallable()

public UnaryCallable<CreateApiSpecRequest,ApiSpec> createApiSpecCallable()
Returns
TypeDescription
UnaryCallable<CreateApiSpecRequest,ApiSpec>
Overrides

createApiVersionCallable()

public UnaryCallable<CreateApiVersionRequest,ApiVersion> createApiVersionCallable()
Returns
TypeDescription
UnaryCallable<CreateApiVersionRequest,ApiVersion>
Overrides

createArtifactCallable()

public UnaryCallable<CreateArtifactRequest,Artifact> createArtifactCallable()
Returns
TypeDescription
UnaryCallable<CreateArtifactRequest,Artifact>
Overrides

deleteApiCallable()

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

deleteApiDeploymentCallable()

public UnaryCallable<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentCallable()
Returns
TypeDescription
UnaryCallable<DeleteApiDeploymentRequest,Empty>
Overrides

deleteApiDeploymentRevisionCallable()

public UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionCallable()
Returns
TypeDescription
UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment>
Overrides

deleteApiSpecCallable()

public UnaryCallable<DeleteApiSpecRequest,Empty> deleteApiSpecCallable()
Returns
TypeDescription
UnaryCallable<DeleteApiSpecRequest,Empty>
Overrides

deleteApiSpecRevisionCallable()

public UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionCallable()
Returns
TypeDescription
UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec>
Overrides

deleteApiVersionCallable()

public UnaryCallable<DeleteApiVersionRequest,Empty> deleteApiVersionCallable()
Returns
TypeDescription
UnaryCallable<DeleteApiVersionRequest,Empty>
Overrides

deleteArtifactCallable()

public UnaryCallable<DeleteArtifactRequest,Empty> deleteArtifactCallable()
Returns
TypeDescription
UnaryCallable<DeleteArtifactRequest,Empty>
Overrides

getApiCallable()

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

getApiDeploymentCallable()

public UnaryCallable<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentCallable()
Returns
TypeDescription
UnaryCallable<GetApiDeploymentRequest,ApiDeployment>
Overrides

getApiSpecCallable()

public UnaryCallable<GetApiSpecRequest,ApiSpec> getApiSpecCallable()
Returns
TypeDescription
UnaryCallable<GetApiSpecRequest,ApiSpec>
Overrides

getApiSpecContentsCallable()

public UnaryCallable<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsCallable()
Returns
TypeDescription
UnaryCallable<GetApiSpecContentsRequest,com.google.api.HttpBody>
Overrides

getApiVersionCallable()

public UnaryCallable<GetApiVersionRequest,ApiVersion> getApiVersionCallable()
Returns
TypeDescription
UnaryCallable<GetApiVersionRequest,ApiVersion>
Overrides

getArtifactCallable()

public UnaryCallable<GetArtifactRequest,Artifact> getArtifactCallable()
Returns
TypeDescription
UnaryCallable<GetArtifactRequest,Artifact>
Overrides

getArtifactContentsCallable()

public UnaryCallable<GetArtifactContentsRequest,HttpBody> getArtifactContentsCallable()
Returns
TypeDescription
UnaryCallable<GetArtifactContentsRequest,com.google.api.HttpBody>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApiDeploymentRevisionsCallable()

public UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse> listApiDeploymentRevisionsCallable()
Returns
TypeDescription
UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse>
Overrides

listApiDeploymentRevisionsPagedCallable()

public UnaryCallable<ListApiDeploymentRevisionsRequest,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsPagedResponse>
Overrides

listApiDeploymentsCallable()

public UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse> listApiDeploymentsCallable()
Returns
TypeDescription
UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse>
Overrides

listApiDeploymentsPagedCallable()

public UnaryCallable<ListApiDeploymentsRequest,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsPagedResponse>
Overrides

listApiSpecRevisionsCallable()

public UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse> listApiSpecRevisionsCallable()
Returns
TypeDescription
UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse>
Overrides

listApiSpecRevisionsPagedCallable()

public UnaryCallable<ListApiSpecRevisionsRequest,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsPagedResponse>
Overrides

listApiSpecsCallable()

public UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse> listApiSpecsCallable()
Returns
TypeDescription
UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse>
Overrides

listApiSpecsPagedCallable()

public UnaryCallable<ListApiSpecsRequest,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApiSpecsRequest,ListApiSpecsPagedResponse>
Overrides

listApiVersionsCallable()

public UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse> listApiVersionsCallable()
Returns
TypeDescription
UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse>
Overrides

listApiVersionsPagedCallable()

public UnaryCallable<ListApiVersionsRequest,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApiVersionsRequest,ListApiVersionsPagedResponse>
Overrides

listApisCallable()

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

listApisPagedCallable()

public UnaryCallable<ListApisRequest,RegistryClient.ListApisPagedResponse> listApisPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApisRequest,ListApisPagedResponse>
Overrides

listArtifactsCallable()

public UnaryCallable<ListArtifactsRequest,ListArtifactsResponse> listArtifactsCallable()
Returns
TypeDescription
UnaryCallable<ListArtifactsRequest,ListArtifactsResponse>
Overrides

listArtifactsPagedCallable()

public UnaryCallable<ListArtifactsRequest,RegistryClient.ListArtifactsPagedResponse> listArtifactsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListArtifactsRequest,ListArtifactsPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,RegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

replaceArtifactCallable()

public UnaryCallable<ReplaceArtifactRequest,Artifact> replaceArtifactCallable()
Returns
TypeDescription
UnaryCallable<ReplaceArtifactRequest,Artifact>
Overrides

rollbackApiDeploymentCallable()

public UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentCallable()
Returns
TypeDescription
UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment>
Overrides

rollbackApiSpecCallable()

public UnaryCallable<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecCallable()
Returns
TypeDescription
UnaryCallable<RollbackApiSpecRequest,ApiSpec>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

tagApiDeploymentRevisionCallable()

public UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionCallable()
Returns
TypeDescription
UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment>
Overrides

tagApiSpecRevisionCallable()

public UnaryCallable<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionCallable()
Returns
TypeDescription
UnaryCallable<TagApiSpecRevisionRequest,ApiSpec>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateApiCallable()

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

updateApiDeploymentCallable()

public UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentCallable()
Returns
TypeDescription
UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment>
Overrides

updateApiSpecCallable()

public UnaryCallable<UpdateApiSpecRequest,ApiSpec> updateApiSpecCallable()
Returns
TypeDescription
UnaryCallable<UpdateApiSpecRequest,ApiSpec>
Overrides

updateApiVersionCallable()

public UnaryCallable<UpdateApiVersionRequest,ApiVersion> updateApiVersionCallable()
Returns
TypeDescription
UnaryCallable<UpdateApiVersionRequest,ApiVersion>
Overrides