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 protected
HttpJsonRegistryStub(RegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRegistryStub, using the given settings.protected
HttpJsonRegistryStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonRegistryStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonRegistryStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonRegistryStub
create(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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
listApisCallable
in classRegistryStub
-
listApisPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApisRequest,RegistryClient.ListApisPagedResponse> listApisPagedCallable()
- Overrides:
listApisPagedCallable
in classRegistryStub
-
getApiCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiRequest,Api> getApiCallable()
- Overrides:
getApiCallable
in classRegistryStub
-
createApiCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiRequest,Api> createApiCallable()
- Overrides:
createApiCallable
in classRegistryStub
-
updateApiCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiRequest,Api> updateApiCallable()
- Overrides:
updateApiCallable
in classRegistryStub
-
deleteApiCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiRequest,com.google.protobuf.Empty> deleteApiCallable()
- Overrides:
deleteApiCallable
in classRegistryStub
-
listApiVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse> listApiVersionsCallable()
- Overrides:
listApiVersionsCallable
in classRegistryStub
-
listApiVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiVersionsRequest,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsPagedCallable()
- Overrides:
listApiVersionsPagedCallable
in classRegistryStub
-
getApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiVersionRequest,ApiVersion> getApiVersionCallable()
- Overrides:
getApiVersionCallable
in classRegistryStub
-
createApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiVersionRequest,ApiVersion> createApiVersionCallable()
- Overrides:
createApiVersionCallable
in classRegistryStub
-
updateApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiVersionRequest,ApiVersion> updateApiVersionCallable()
- Overrides:
updateApiVersionCallable
in classRegistryStub
-
deleteApiVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiVersionRequest,com.google.protobuf.Empty> deleteApiVersionCallable()
- Overrides:
deleteApiVersionCallable
in classRegistryStub
-
listApiSpecsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse> listApiSpecsCallable()
- Overrides:
listApiSpecsCallable
in classRegistryStub
-
listApiSpecsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecsRequest,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsPagedCallable()
- Overrides:
listApiSpecsPagedCallable
in classRegistryStub
-
getApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiSpecRequest,ApiSpec> getApiSpecCallable()
- Overrides:
getApiSpecCallable
in classRegistryStub
-
getApiSpecContentsCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiSpecContentsRequest,com.google.api.HttpBody> getApiSpecContentsCallable()
- Overrides:
getApiSpecContentsCallable
in classRegistryStub
-
createApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiSpecRequest,ApiSpec> createApiSpecCallable()
- Overrides:
createApiSpecCallable
in classRegistryStub
-
updateApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiSpecRequest,ApiSpec> updateApiSpecCallable()
- Overrides:
updateApiSpecCallable
in classRegistryStub
-
deleteApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRequest,com.google.protobuf.Empty> deleteApiSpecCallable()
- Overrides:
deleteApiSpecCallable
in classRegistryStub
-
tagApiSpecRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionCallable()
- Overrides:
tagApiSpecRevisionCallable
in classRegistryStub
-
listApiSpecRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse> listApiSpecRevisionsCallable()
- Overrides:
listApiSpecRevisionsCallable
in classRegistryStub
-
listApiSpecRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiSpecRevisionsRequest,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsPagedCallable()
- Overrides:
listApiSpecRevisionsPagedCallable
in classRegistryStub
-
rollbackApiSpecCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecCallable()
- Overrides:
rollbackApiSpecCallable
in classRegistryStub
-
deleteApiSpecRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionCallable()
- Overrides:
deleteApiSpecRevisionCallable
in classRegistryStub
-
listApiDeploymentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse> listApiDeploymentsCallable()
- Overrides:
listApiDeploymentsCallable
in classRegistryStub
-
listApiDeploymentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentsRequest,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsPagedCallable()
- Overrides:
listApiDeploymentsPagedCallable
in classRegistryStub
-
getApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentCallable()
- Overrides:
getApiDeploymentCallable
in classRegistryStub
-
createApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentCallable()
- Overrides:
createApiDeploymentCallable
in classRegistryStub
-
updateApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentCallable()
- Overrides:
updateApiDeploymentCallable
in classRegistryStub
-
deleteApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRequest,com.google.protobuf.Empty> deleteApiDeploymentCallable()
- Overrides:
deleteApiDeploymentCallable
in classRegistryStub
-
tagApiDeploymentRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionCallable()
- Overrides:
tagApiDeploymentRevisionCallable
in classRegistryStub
-
listApiDeploymentRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse> listApiDeploymentRevisionsCallable()
- Overrides:
listApiDeploymentRevisionsCallable
in classRegistryStub
-
listApiDeploymentRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListApiDeploymentRevisionsRequest,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsPagedCallable()
- Overrides:
listApiDeploymentRevisionsPagedCallable
in classRegistryStub
-
rollbackApiDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentCallable()
- Overrides:
rollbackApiDeploymentCallable
in classRegistryStub
-
deleteApiDeploymentRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionCallable()
- Overrides:
deleteApiDeploymentRevisionCallable
in classRegistryStub
-
listArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,ListArtifactsResponse> listArtifactsCallable()
- Overrides:
listArtifactsCallable
in classRegistryStub
-
listArtifactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListArtifactsRequest,RegistryClient.ListArtifactsPagedResponse> listArtifactsPagedCallable()
- Overrides:
listArtifactsPagedCallable
in classRegistryStub
-
getArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<GetArtifactRequest,Artifact> getArtifactCallable()
- Overrides:
getArtifactCallable
in classRegistryStub
-
getArtifactContentsCallable
public com.google.api.gax.rpc.UnaryCallable<GetArtifactContentsRequest,com.google.api.HttpBody> getArtifactContentsCallable()
- Overrides:
getArtifactContentsCallable
in classRegistryStub
-
createArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<CreateArtifactRequest,Artifact> createArtifactCallable()
- Overrides:
createArtifactCallable
in classRegistryStub
-
replaceArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<ReplaceArtifactRequest,Artifact> replaceArtifactCallable()
- Overrides:
replaceArtifactCallable
in classRegistryStub
-
deleteArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteArtifactRequest,com.google.protobuf.Empty> deleteArtifactCallable()
- Overrides:
deleteArtifactCallable
in classRegistryStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classRegistryStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classRegistryStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classRegistryStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classRegistryStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classRegistryStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classRegistryStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-