Class ArtifactRegistryGrpc.ArtifactRegistryFutureStub (1.45.0)

public static final class ArtifactRegistryGrpc.ArtifactRegistryFutureStub extends AbstractFutureStub<ArtifactRegistryGrpc.ArtifactRegistryFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service ArtifactRegistry.

The Artifact Registry API service. Artifact Registry is an artifact management system for storing artifacts from different package management systems. The resources managed by this API are:

  • Repositories, which group packages and their data.
  • Packages, which group versions and their tags.
  • Versions, which are specific forms of a package.
  • Tags, which represent alternative names for versions.
  • Files, which contain content and are optionally associated with a Package or Version.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ArtifactRegistryGrpc.ArtifactRegistryFutureStub

Methods

batchDeleteVersions(BatchDeleteVersionsRequest request)

public ListenableFuture<Operation> batchDeleteVersions(BatchDeleteVersionsRequest request)

Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.

Parameter
Name Description
request BatchDeleteVersionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

build(Channel channel, CallOptions callOptions)

protected ArtifactRegistryGrpc.ArtifactRegistryFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ArtifactRegistryGrpc.ArtifactRegistryFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createRepository(CreateRepositoryRequest request)

public ListenableFuture<Operation> createRepository(CreateRepositoryRequest request)

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

Parameter
Name Description
request CreateRepositoryRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createTag(CreateTagRequest request)

public ListenableFuture<Tag> createTag(CreateTagRequest request)

Creates a tag.

Parameter
Name Description
request CreateTagRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Tag>

deletePackage(DeletePackageRequest request)

public ListenableFuture<Operation> deletePackage(DeletePackageRequest request)

Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.

Parameter
Name Description
request DeletePackageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteRepository(DeleteRepositoryRequest request)

public ListenableFuture<Operation> deleteRepository(DeleteRepositoryRequest request)

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

Parameter
Name Description
request DeleteRepositoryRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteTag(DeleteTagRequest request)

public ListenableFuture<Empty> deleteTag(DeleteTagRequest request)

Deletes a tag.

Parameter
Name Description
request DeleteTagRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteVersion(DeleteVersionRequest request)

public ListenableFuture<Operation> deleteVersion(DeleteVersionRequest request)

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

Parameter
Name Description
request DeleteVersionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getDockerImage(GetDockerImageRequest request)

public ListenableFuture<DockerImage> getDockerImage(GetDockerImageRequest request)

Gets a docker image.

Parameter
Name Description
request GetDockerImageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DockerImage>

getFile(GetFileRequest request)

public ListenableFuture<File> getFile(GetFileRequest request)

Gets a file.

Parameter
Name Description
request GetFileRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<File>

getIamPolicy(GetIamPolicyRequest request)

public ListenableFuture<Policy> getIamPolicy(GetIamPolicyRequest request)

Gets the IAM policy for a given resource.

Parameter
Name Description
request com.google.iam.v1.GetIamPolicyRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>

getMavenArtifact(GetMavenArtifactRequest request)

public ListenableFuture<MavenArtifact> getMavenArtifact(GetMavenArtifactRequest request)

Gets a maven artifact.

Parameter
Name Description
request GetMavenArtifactRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<MavenArtifact>

getNpmPackage(GetNpmPackageRequest request)

public ListenableFuture<NpmPackage> getNpmPackage(GetNpmPackageRequest request)

Gets a npm package.

Parameter
Name Description
request GetNpmPackageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<NpmPackage>

getPackage(GetPackageRequest request)

public ListenableFuture<Package> getPackage(GetPackageRequest request)

Gets a package.

Parameter
Name Description
request GetPackageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Package>

getProjectSettings(GetProjectSettingsRequest request)

public ListenableFuture<ProjectSettings> getProjectSettings(GetProjectSettingsRequest request)

Retrieves the Settings for the Project.

Parameter
Name Description
request GetProjectSettingsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ProjectSettings>

getPythonPackage(GetPythonPackageRequest request)

public ListenableFuture<PythonPackage> getPythonPackage(GetPythonPackageRequest request)

Gets a python package.

Parameter
Name Description
request GetPythonPackageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PythonPackage>

getRepository(GetRepositoryRequest request)

public ListenableFuture<Repository> getRepository(GetRepositoryRequest request)

Gets a repository.

Parameter
Name Description
request GetRepositoryRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Repository>

getTag(GetTagRequest request)

public ListenableFuture<Tag> getTag(GetTagRequest request)

Gets a tag.

Parameter
Name Description
request GetTagRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Tag>

getVPCSCConfig(GetVPCSCConfigRequest request)

public ListenableFuture<VPCSCConfig> getVPCSCConfig(GetVPCSCConfigRequest request)

Retrieves the VPCSC Config for the Project.

Parameter
Name Description
request GetVPCSCConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<VPCSCConfig>

getVersion(GetVersionRequest request)

public ListenableFuture<Version> getVersion(GetVersionRequest request)

Gets a version

Parameter
Name Description
request GetVersionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Version>

importAptArtifacts(ImportAptArtifactsRequest request)

public ListenableFuture<Operation> importAptArtifacts(ImportAptArtifactsRequest request)

Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

Parameter
Name Description
request ImportAptArtifactsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

importYumArtifacts(ImportYumArtifactsRequest request)

public ListenableFuture<Operation> importYumArtifacts(ImportYumArtifactsRequest request)

Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

Parameter
Name Description
request ImportYumArtifactsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

listDockerImages(ListDockerImagesRequest request)

public ListenableFuture<ListDockerImagesResponse> listDockerImages(ListDockerImagesRequest request)

Lists docker images.

Parameter
Name Description
request ListDockerImagesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDockerImagesResponse>

listFiles(ListFilesRequest request)

public ListenableFuture<ListFilesResponse> listFiles(ListFilesRequest request)

Lists files.

Parameter
Name Description
request ListFilesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListFilesResponse>

listMavenArtifacts(ListMavenArtifactsRequest request)

public ListenableFuture<ListMavenArtifactsResponse> listMavenArtifacts(ListMavenArtifactsRequest request)

Lists maven artifacts.

Parameter
Name Description
request ListMavenArtifactsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListMavenArtifactsResponse>

listNpmPackages(ListNpmPackagesRequest request)

public ListenableFuture<ListNpmPackagesResponse> listNpmPackages(ListNpmPackagesRequest request)

Lists npm packages.

Parameter
Name Description
request ListNpmPackagesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListNpmPackagesResponse>

listPackages(ListPackagesRequest request)

public ListenableFuture<ListPackagesResponse> listPackages(ListPackagesRequest request)

Lists packages.

Parameter
Name Description
request ListPackagesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPackagesResponse>

listPythonPackages(ListPythonPackagesRequest request)

public ListenableFuture<ListPythonPackagesResponse> listPythonPackages(ListPythonPackagesRequest request)

Lists python packages.

Parameter
Name Description
request ListPythonPackagesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPythonPackagesResponse>

listRepositories(ListRepositoriesRequest request)

public ListenableFuture<ListRepositoriesResponse> listRepositories(ListRepositoriesRequest request)

Lists repositories.

Parameter
Name Description
request ListRepositoriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListRepositoriesResponse>

listTags(ListTagsRequest request)

public ListenableFuture<ListTagsResponse> listTags(ListTagsRequest request)

Lists tags.

Parameter
Name Description
request ListTagsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListTagsResponse>

listVersions(ListVersionsRequest request)

public ListenableFuture<ListVersionsResponse> listVersions(ListVersionsRequest request)

Lists versions.

Parameter
Name Description
request ListVersionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListVersionsResponse>

setIamPolicy(SetIamPolicyRequest request)

public ListenableFuture<Policy> setIamPolicy(SetIamPolicyRequest request)

Updates the IAM policy for a given resource.

Parameter
Name Description
request com.google.iam.v1.SetIamPolicyRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request)

public ListenableFuture<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request)

Tests if the caller has a list of permissions on a resource.

Parameter
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse>

updateProjectSettings(UpdateProjectSettingsRequest request)

public ListenableFuture<ProjectSettings> updateProjectSettings(UpdateProjectSettingsRequest request)

Updates the Settings for the Project.

Parameter
Name Description
request UpdateProjectSettingsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ProjectSettings>

updateRepository(UpdateRepositoryRequest request)

public ListenableFuture<Repository> updateRepository(UpdateRepositoryRequest request)

Updates a repository.

Parameter
Name Description
request UpdateRepositoryRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Repository>

updateTag(UpdateTagRequest request)

public ListenableFuture<Tag> updateTag(UpdateTagRequest request)

Updates a tag.

Parameter
Name Description
request UpdateTagRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Tag>

updateVPCSCConfig(UpdateVPCSCConfigRequest request)

public ListenableFuture<VPCSCConfig> updateVPCSCConfig(UpdateVPCSCConfigRequest request)

Updates the VPCSC Config for the Project.

Parameter
Name Description
request UpdateVPCSCConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<VPCSCConfig>