Class HttpJsonArtifactRegistryStub
- java.lang.Object
-
- com.google.devtools.artifactregistry.v1beta2.stub.ArtifactRegistryStub
-
- com.google.devtools.artifactregistry.v1beta2.stub.HttpJsonArtifactRegistryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub
REST stub implementation for the ArtifactRegistry service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonArtifactRegistryStub, using the given settings.protected
HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonArtifactRegistryStub, 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 HttpJsonArtifactRegistryStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonArtifactRegistryStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonArtifactRegistryStub
create(ArtifactRegistryStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateRepositoryRequest,com.google.longrunning.Operation>
createRepositoryCallable()
com.google.api.gax.rpc.OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata>
createRepositoryOperationCallable()
com.google.api.gax.rpc.UnaryCallable<CreateTagRequest,Tag>
createTagCallable()
com.google.api.gax.rpc.UnaryCallable<DeletePackageRequest,com.google.longrunning.Operation>
deletePackageCallable()
com.google.api.gax.rpc.OperationCallable<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata>
deletePackageOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteRepositoryRequest,com.google.longrunning.Operation>
deleteRepositoryCallable()
com.google.api.gax.rpc.OperationCallable<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata>
deleteRepositoryOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteTagRequest,com.google.protobuf.Empty>
deleteTagCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation>
deleteVersionCallable()
com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata>
deleteVersionOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetFileRequest,File>
getFileCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
com.google.api.gax.rpc.UnaryCallable<GetPackageRequest,Package>
getPackageCallable()
com.google.api.gax.rpc.UnaryCallable<GetProjectSettingsRequest,ProjectSettings>
getProjectSettingsCallable()
com.google.api.gax.rpc.UnaryCallable<GetRepositoryRequest,Repository>
getRepositoryCallable()
com.google.api.gax.rpc.UnaryCallable<GetTagRequest,Tag>
getTagCallable()
com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version>
getVersionCallable()
com.google.api.gax.rpc.UnaryCallable<ImportAptArtifactsRequest,com.google.longrunning.Operation>
importAptArtifactsCallable()
com.google.api.gax.rpc.OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata>
importAptArtifactsOperationCallable()
com.google.api.gax.rpc.UnaryCallable<ImportYumArtifactsRequest,com.google.longrunning.Operation>
importYumArtifactsCallable()
com.google.api.gax.rpc.OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata>
importYumArtifactsOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ListFilesResponse>
listFilesCallable()
com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse>
listFilesPagedCallable()
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,ArtifactRegistryClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ListPackagesResponse>
listPackagesCallable()
com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse>
listPackagesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse>
listRepositoriesCallable()
com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse>
listRepositoriesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ListTagsResponse>
listTagsCallable()
com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse>
listTagsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse>
listVersionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse>
listVersionsPagedCallable()
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<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings>
updateProjectSettingsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateRepositoryRequest,Repository>
updateRepositoryCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateTagRequest,Tag>
updateTagCallable()
-
Methods inherited from class com.google.devtools.artifactregistry.v1beta2.stub.ArtifactRegistryStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonArtifactRegistryStub
protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonArtifactRegistryStub, 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
-
HttpJsonArtifactRegistryStub
protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonArtifactRegistryStub, 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 HttpJsonArtifactRegistryStub create(ArtifactRegistryStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonArtifactRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonArtifactRegistryStub 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()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classArtifactRegistryStub
-
importAptArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportAptArtifactsRequest,com.google.longrunning.Operation> importAptArtifactsCallable()
- Overrides:
importAptArtifactsCallable
in classArtifactRegistryStub
-
importAptArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationCallable()
- Overrides:
importAptArtifactsOperationCallable
in classArtifactRegistryStub
-
importYumArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportYumArtifactsRequest,com.google.longrunning.Operation> importYumArtifactsCallable()
- Overrides:
importYumArtifactsCallable
in classArtifactRegistryStub
-
importYumArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationCallable()
- Overrides:
importYumArtifactsOperationCallable
in classArtifactRegistryStub
-
listRepositoriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse> listRepositoriesCallable()
- Overrides:
listRepositoriesCallable
in classArtifactRegistryStub
-
listRepositoriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesPagedCallable()
- Overrides:
listRepositoriesPagedCallable
in classArtifactRegistryStub
-
getRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<GetRepositoryRequest,Repository> getRepositoryCallable()
- Overrides:
getRepositoryCallable
in classArtifactRegistryStub
-
createRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRepositoryRequest,com.google.longrunning.Operation> createRepositoryCallable()
- Overrides:
createRepositoryCallable
in classArtifactRegistryStub
-
createRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata> createRepositoryOperationCallable()
- Overrides:
createRepositoryOperationCallable
in classArtifactRegistryStub
-
updateRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRepositoryRequest,Repository> updateRepositoryCallable()
- Overrides:
updateRepositoryCallable
in classArtifactRegistryStub
-
deleteRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRepositoryRequest,com.google.longrunning.Operation> deleteRepositoryCallable()
- Overrides:
deleteRepositoryCallable
in classArtifactRegistryStub
-
deleteRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata> deleteRepositoryOperationCallable()
- Overrides:
deleteRepositoryOperationCallable
in classArtifactRegistryStub
-
listPackagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ListPackagesResponse> listPackagesCallable()
- Overrides:
listPackagesCallable
in classArtifactRegistryStub
-
listPackagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesPagedCallable()
- Overrides:
listPackagesPagedCallable
in classArtifactRegistryStub
-
getPackageCallable
public com.google.api.gax.rpc.UnaryCallable<GetPackageRequest,Package> getPackageCallable()
- Overrides:
getPackageCallable
in classArtifactRegistryStub
-
deletePackageCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePackageRequest,com.google.longrunning.Operation> deletePackageCallable()
- Overrides:
deletePackageCallable
in classArtifactRegistryStub
-
deletePackageOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata> deletePackageOperationCallable()
- Overrides:
deletePackageOperationCallable
in classArtifactRegistryStub
-
listVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
- Overrides:
listVersionsCallable
in classArtifactRegistryStub
-
listVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsPagedCallable()
- Overrides:
listVersionsPagedCallable
in classArtifactRegistryStub
-
getVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version> getVersionCallable()
- Overrides:
getVersionCallable
in classArtifactRegistryStub
-
deleteVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation> deleteVersionCallable()
- Overrides:
deleteVersionCallable
in classArtifactRegistryStub
-
deleteVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata> deleteVersionOperationCallable()
- Overrides:
deleteVersionOperationCallable
in classArtifactRegistryStub
-
listFilesCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ListFilesResponse> listFilesCallable()
- Overrides:
listFilesCallable
in classArtifactRegistryStub
-
listFilesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse> listFilesPagedCallable()
- Overrides:
listFilesPagedCallable
in classArtifactRegistryStub
-
getFileCallable
public com.google.api.gax.rpc.UnaryCallable<GetFileRequest,File> getFileCallable()
- Overrides:
getFileCallable
in classArtifactRegistryStub
-
listTagsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ListTagsResponse> listTagsCallable()
- Overrides:
listTagsCallable
in classArtifactRegistryStub
-
listTagsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse> listTagsPagedCallable()
- Overrides:
listTagsPagedCallable
in classArtifactRegistryStub
-
getTagCallable
public com.google.api.gax.rpc.UnaryCallable<GetTagRequest,Tag> getTagCallable()
- Overrides:
getTagCallable
in classArtifactRegistryStub
-
createTagCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTagRequest,Tag> createTagCallable()
- Overrides:
createTagCallable
in classArtifactRegistryStub
-
updateTagCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateTagRequest,Tag> updateTagCallable()
- Overrides:
updateTagCallable
in classArtifactRegistryStub
-
deleteTagCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTagRequest,com.google.protobuf.Empty> deleteTagCallable()
- Overrides:
deleteTagCallable
in classArtifactRegistryStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classArtifactRegistryStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classArtifactRegistryStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classArtifactRegistryStub
-
getProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectSettingsRequest,ProjectSettings> getProjectSettingsCallable()
- Overrides:
getProjectSettingsCallable
in classArtifactRegistryStub
-
updateProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings> updateProjectSettingsCallable()
- Overrides:
updateProjectSettingsCallable
in classArtifactRegistryStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classArtifactRegistryStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ArtifactRegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classArtifactRegistryStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classArtifactRegistryStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classArtifactRegistryStub
-
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
-
-