Class HttpJsonRegistryStub
- java.lang.Object
-
- com.google.cloud.apigeeregistry.v1.stub.RegistryStub
-
- com.google.cloud.apigeeregistry.v1.stub.HttpJsonRegistryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonRegistryStub(RegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonRegistryStub, using the given settings.protectedHttpJsonRegistryStub(RegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonRegistryStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonRegistryStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonRegistryStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonRegistryStubcreate(RegistryStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateApiRequest,Api>createApiCallable()com.google.api.gax.rpc.UnaryCallable<CreateApiDeploymentRequest,ApiDeployment>createApiDeploymentCallable()com.google.api.gax.rpc.UnaryCallable<CreateApiSpecRequest,ApiSpec>createApiSpecCallable()com.google.api.gax.rpc.UnaryCallable<CreateApiVersionRequest,ApiVersion>createApiVersionCallable()com.google.api.gax.rpc.UnaryCallable<CreateArtifactRequest,Artifact>createArtifactCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiRequest,com.google.protobuf.Empty>deleteApiCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRequest,com.google.protobuf.Empty>deleteApiDeploymentCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment>deleteApiDeploymentRevisionCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRequest,com.google.protobuf.Empty>deleteApiSpecCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec>deleteApiSpecRevisionCallable()com.google.api.gax.rpc.UnaryCallable<DeleteApiVersionRequest,com.google.protobuf.Empty>deleteApiVersionCallable()com.google.api.gax.rpc.UnaryCallable<DeleteArtifactRequest,com.google.protobuf.Empty>deleteArtifactCallable()com.google.api.gax.rpc.UnaryCallable<GetApiRequest,Api>getApiCallable()com.google.api.gax.rpc.UnaryCallable<GetApiDeploymentRequest,ApiDeployment>getApiDeploymentCallable()com.google.api.gax.rpc.UnaryCallable<GetApiSpecRequest,ApiSpec>getApiSpecCallable()com.google.api.gax.rpc.UnaryCallable<GetApiSpecContentsRequest,com.google.api.HttpBody>getApiSpecContentsCallable()com.google.api.gax.rpc.UnaryCallable<GetApiVersionRequest,ApiVersion>getApiVersionCallable()com.google.api.gax.rpc.UnaryCallable<GetArtifactRequest,Artifact>getArtifactCallable()com.google.api.gax.rpc.UnaryCallable<GetArtifactContentsRequest,com.google.api.HttpBody>getArtifactContentsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse>listApiDeploymentRevisionsCallable()com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,RegistryClient.ListApiDeploymentRevisionsPagedResponse>listApiDeploymentRevisionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse>listApiDeploymentsCallable()com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,RegistryClient.ListApiDeploymentsPagedResponse>listApiDeploymentsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListApisRequest,ListApisResponse>listApisCallable()com.google.api.gax.rpc.UnaryCallable<ListApisRequest,RegistryClient.ListApisPagedResponse>listApisPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse>listApiSpecRevisionsCallable()com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,RegistryClient.ListApiSpecRevisionsPagedResponse>listApiSpecRevisionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse>listApiSpecsCallable()com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,RegistryClient.ListApiSpecsPagedResponse>listApiSpecsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse>listApiVersionsCallable()com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,RegistryClient.ListApiVersionsPagedResponse>listApiVersionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,ListArtifactsResponse>listArtifactsCallable()com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,RegistryClient.ListArtifactsPagedResponse>listArtifactsPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistryClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ReplaceArtifactRequest,Artifact>replaceArtifactCallable()com.google.api.gax.rpc.UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment>rollbackApiDeploymentCallable()com.google.api.gax.rpc.UnaryCallable<RollbackApiSpecRequest,ApiSpec>rollbackApiSpecCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment>tagApiDeploymentRevisionCallable()com.google.api.gax.rpc.UnaryCallable<TagApiSpecRevisionRequest,ApiSpec>tagApiSpecRevisionCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateApiRequest,Api>updateApiCallable()com.google.api.gax.rpc.UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment>updateApiDeploymentCallable()com.google.api.gax.rpc.UnaryCallable<UpdateApiSpecRequest,ApiSpec>updateApiSpecCallable()com.google.api.gax.rpc.UnaryCallable<UpdateApiVersionRequest,ApiVersion>updateApiVersionCallable()
-
-
-
Constructor Detail
-
HttpJsonRegistryStub
protected HttpJsonRegistryStub(RegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonRegistryStub
protected HttpJsonRegistryStub(RegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonRegistryStub create(RegistryStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
listApisCallable
public com.google.api.gax.rpc.UnaryCallable<ListApisRequest,ListApisResponse> listApisCallable()
- Overrides:
listApisCallablein classRegistryStub
-
listApisPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApisRequest,RegistryClient.ListApisPagedResponse> listApisPagedCallable()
- Overrides:
listApisPagedCallablein classRegistryStub
-
getApiCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiRequest,Api> getApiCallable()
- Overrides:
getApiCallablein classRegistryStub
-
createApiCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiRequest,Api> createApiCallable()
- Overrides:
createApiCallablein classRegistryStub
-
updateApiCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiRequest,Api> updateApiCallable()
- Overrides:
updateApiCallablein classRegistryStub
-
deleteApiCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiRequest,com.google.protobuf.Empty> deleteApiCallable()
- Overrides:
deleteApiCallablein classRegistryStub
-
listApiVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse> listApiVersionsCallable()
- Overrides:
listApiVersionsCallablein classRegistryStub
-
listApiVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsPagedCallable()
- Overrides:
listApiVersionsPagedCallablein classRegistryStub
-
getApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiVersionRequest,ApiVersion> getApiVersionCallable()
- Overrides:
getApiVersionCallablein classRegistryStub
-
createApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiVersionRequest,ApiVersion> createApiVersionCallable()
- Overrides:
createApiVersionCallablein classRegistryStub
-
updateApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiVersionRequest,ApiVersion> updateApiVersionCallable()
- Overrides:
updateApiVersionCallablein classRegistryStub
-
deleteApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiVersionRequest,com.google.protobuf.Empty> deleteApiVersionCallable()
- Overrides:
deleteApiVersionCallablein classRegistryStub
-
listApiSpecsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse> listApiSpecsCallable()
- Overrides:
listApiSpecsCallablein classRegistryStub
-
listApiSpecsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsPagedCallable()
- Overrides:
listApiSpecsPagedCallablein classRegistryStub
-
getApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiSpecRequest,ApiSpec> getApiSpecCallable()
- Overrides:
getApiSpecCallablein classRegistryStub
-
getApiSpecContentsCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiSpecContentsRequest,com.google.api.HttpBody> getApiSpecContentsCallable()
- Overrides:
getApiSpecContentsCallablein classRegistryStub
-
createApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiSpecRequest,ApiSpec> createApiSpecCallable()
- Overrides:
createApiSpecCallablein classRegistryStub
-
updateApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiSpecRequest,ApiSpec> updateApiSpecCallable()
- Overrides:
updateApiSpecCallablein classRegistryStub
-
deleteApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRequest,com.google.protobuf.Empty> deleteApiSpecCallable()
- Overrides:
deleteApiSpecCallablein classRegistryStub
-
tagApiSpecRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionCallable()
- Overrides:
tagApiSpecRevisionCallablein classRegistryStub
-
listApiSpecRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse> listApiSpecRevisionsCallable()
- Overrides:
listApiSpecRevisionsCallablein classRegistryStub
-
listApiSpecRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsPagedCallable()
- Overrides:
listApiSpecRevisionsPagedCallablein classRegistryStub
-
rollbackApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecCallable()
- Overrides:
rollbackApiSpecCallablein classRegistryStub
-
deleteApiSpecRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionCallable()
- Overrides:
deleteApiSpecRevisionCallablein classRegistryStub
-
listApiDeploymentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse> listApiDeploymentsCallable()
- Overrides:
listApiDeploymentsCallablein classRegistryStub
-
listApiDeploymentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsPagedCallable()
- Overrides:
listApiDeploymentsPagedCallablein classRegistryStub
-
getApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentCallable()
- Overrides:
getApiDeploymentCallablein classRegistryStub
-
createApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentCallable()
- Overrides:
createApiDeploymentCallablein classRegistryStub
-
updateApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentCallable()
- Overrides:
updateApiDeploymentCallablein classRegistryStub
-
deleteApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRequest,com.google.protobuf.Empty> deleteApiDeploymentCallable()
- Overrides:
deleteApiDeploymentCallablein classRegistryStub
-
tagApiDeploymentRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionCallable()
- Overrides:
tagApiDeploymentRevisionCallablein classRegistryStub
-
listApiDeploymentRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse> listApiDeploymentRevisionsCallable()
- Overrides:
listApiDeploymentRevisionsCallablein classRegistryStub
-
listApiDeploymentRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsPagedCallable()
- Overrides:
listApiDeploymentRevisionsPagedCallablein classRegistryStub
-
rollbackApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentCallable()
- Overrides:
rollbackApiDeploymentCallablein classRegistryStub
-
deleteApiDeploymentRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionCallable()
- Overrides:
deleteApiDeploymentRevisionCallablein classRegistryStub
-
listArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,ListArtifactsResponse> listArtifactsCallable()
- Overrides:
listArtifactsCallablein classRegistryStub
-
listArtifactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,RegistryClient.ListArtifactsPagedResponse> listArtifactsPagedCallable()
- Overrides:
listArtifactsPagedCallablein classRegistryStub
-
getArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<GetArtifactRequest,Artifact> getArtifactCallable()
- Overrides:
getArtifactCallablein classRegistryStub
-
getArtifactContentsCallable
public com.google.api.gax.rpc.UnaryCallable<GetArtifactContentsRequest,com.google.api.HttpBody> getArtifactContentsCallable()
- Overrides:
getArtifactContentsCallablein classRegistryStub
-
createArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<CreateArtifactRequest,Artifact> createArtifactCallable()
- Overrides:
createArtifactCallablein classRegistryStub
-
replaceArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<ReplaceArtifactRequest,Artifact> replaceArtifactCallable()
- Overrides:
replaceArtifactCallablein classRegistryStub
-
deleteArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteArtifactRequest,com.google.protobuf.Empty> deleteArtifactCallable()
- Overrides:
deleteArtifactCallablein classRegistryStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classRegistryStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classRegistryStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classRegistryStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classRegistryStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classRegistryStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classRegistryStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRegistryStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-