Class ArtifactRegistryGrpc.ArtifactRegistryStub (1.53.0)

public static final class ArtifactRegistryGrpc.ArtifactRegistryStub extends AbstractAsyncStub<ArtifactRegistryGrpc.ArtifactRegistryStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > ArtifactRegistryGrpc.ArtifactRegistryStub

Methods

batchDeleteVersions(BatchDeleteVersionsRequest request, StreamObserver<Operation> responseObserver)

public void batchDeleteVersions(BatchDeleteVersionsRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
Name Description
request BatchDeleteVersionsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

build(Channel channel, CallOptions callOptions)

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

createAttachment(CreateAttachmentRequest request, StreamObserver<Operation> responseObserver)

public void createAttachment(CreateAttachmentRequest request, StreamObserver<Operation> responseObserver)

Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.

Parameters
Name Description
request CreateAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

public void createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
Name Description
request CreateRepositoryRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createRule(CreateRuleRequest request, StreamObserver<Rule> responseObserver)

public void createRule(CreateRuleRequest request, StreamObserver<Rule> responseObserver)

Creates a rule.

Parameters
Name Description
request CreateRuleRequest
responseObserver io.grpc.stub.StreamObserver<Rule>

createTag(CreateTagRequest request, StreamObserver<Tag> responseObserver)

public void createTag(CreateTagRequest request, StreamObserver<Tag> responseObserver)

Creates a tag.

Parameters
Name Description
request CreateTagRequest
responseObserver io.grpc.stub.StreamObserver<Tag>

deleteAttachment(DeleteAttachmentRequest request, StreamObserver<Operation> responseObserver)

public void deleteAttachment(DeleteAttachmentRequest request, StreamObserver<Operation> responseObserver)

Deletes an attachment. The returned Operation will finish once the attachments has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

Parameters
Name Description
request DeleteAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteFile(DeleteFileRequest request, StreamObserver<Operation> responseObserver)

public void deleteFile(DeleteFileRequest request, StreamObserver<Operation> responseObserver)

Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.

Parameters
Name Description
request DeleteFileRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deletePackage(DeletePackageRequest request, StreamObserver<Operation> responseObserver)

public void deletePackage(DeletePackageRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
Name Description
request DeletePackageRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

public void deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request DeleteRepositoryRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteRule(DeleteRuleRequest request, StreamObserver<Empty> responseObserver)

public void deleteRule(DeleteRuleRequest request, StreamObserver<Empty> responseObserver)

Deletes a rule.

Parameters
Name Description
request DeleteRuleRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteTag(DeleteTagRequest request, StreamObserver<Empty> responseObserver)

public void deleteTag(DeleteTagRequest request, StreamObserver<Empty> responseObserver)

Deletes a tag.

Parameters
Name Description
request DeleteTagRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteVersion(DeleteVersionRequest request, StreamObserver<Operation> responseObserver)

public void deleteVersion(DeleteVersionRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
Name Description
request DeleteVersionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getAttachment(GetAttachmentRequest request, StreamObserver<Attachment> responseObserver)

public void getAttachment(GetAttachmentRequest request, StreamObserver<Attachment> responseObserver)

Gets an attachment.

Parameters
Name Description
request GetAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<Attachment>

getDockerImage(GetDockerImageRequest request, StreamObserver<DockerImage> responseObserver)

public void getDockerImage(GetDockerImageRequest request, StreamObserver<DockerImage> responseObserver)

Gets a docker image.

Parameters
Name Description
request GetDockerImageRequest
responseObserver io.grpc.stub.StreamObserver<DockerImage>

getFile(GetFileRequest request, StreamObserver<File> responseObserver)

public void getFile(GetFileRequest request, StreamObserver<File> responseObserver)

Gets a file.

Parameters
Name Description
request GetFileRequest
responseObserver io.grpc.stub.StreamObserver<File>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Gets the IAM policy for a given resource.

Parameters
Name Description
request com.google.iam.v1.GetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getMavenArtifact(GetMavenArtifactRequest request, StreamObserver<MavenArtifact> responseObserver)

public void getMavenArtifact(GetMavenArtifactRequest request, StreamObserver<MavenArtifact> responseObserver)

Gets a maven artifact.

Parameters
Name Description
request GetMavenArtifactRequest
responseObserver io.grpc.stub.StreamObserver<MavenArtifact>

getNpmPackage(GetNpmPackageRequest request, StreamObserver<NpmPackage> responseObserver)

public void getNpmPackage(GetNpmPackageRequest request, StreamObserver<NpmPackage> responseObserver)

Gets a npm package.

Parameters
Name Description
request GetNpmPackageRequest
responseObserver io.grpc.stub.StreamObserver<NpmPackage>

getPackage(GetPackageRequest request, StreamObserver<Package> responseObserver)

public void getPackage(GetPackageRequest request, StreamObserver<Package> responseObserver)

Gets a package.

Parameters
Name Description
request GetPackageRequest
responseObserver io.grpc.stub.StreamObserver<Package>

getProjectSettings(GetProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

public void getProjectSettings(GetProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

Retrieves the Settings for the Project.

Parameters
Name Description
request GetProjectSettingsRequest
responseObserver io.grpc.stub.StreamObserver<ProjectSettings>

getPythonPackage(GetPythonPackageRequest request, StreamObserver<PythonPackage> responseObserver)

public void getPythonPackage(GetPythonPackageRequest request, StreamObserver<PythonPackage> responseObserver)

Gets a python package.

Parameters
Name Description
request GetPythonPackageRequest
responseObserver io.grpc.stub.StreamObserver<PythonPackage>

getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

public void getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

Gets a repository.

Parameters
Name Description
request GetRepositoryRequest
responseObserver io.grpc.stub.StreamObserver<Repository>

getRule(GetRuleRequest request, StreamObserver<Rule> responseObserver)

public void getRule(GetRuleRequest request, StreamObserver<Rule> responseObserver)

Gets a rule.

Parameters
Name Description
request GetRuleRequest
responseObserver io.grpc.stub.StreamObserver<Rule>

getTag(GetTagRequest request, StreamObserver<Tag> responseObserver)

public void getTag(GetTagRequest request, StreamObserver<Tag> responseObserver)

Gets a tag.

Parameters
Name Description
request GetTagRequest
responseObserver io.grpc.stub.StreamObserver<Tag>

getVPCSCConfig(GetVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

public void getVPCSCConfig(GetVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

Retrieves the VPCSC Config for the Project.

Parameters
Name Description
request GetVPCSCConfigRequest
responseObserver io.grpc.stub.StreamObserver<VPCSCConfig>

getVersion(GetVersionRequest request, StreamObserver<Version> responseObserver)

public void getVersion(GetVersionRequest request, StreamObserver<Version> responseObserver)

Gets a version

Parameters
Name Description
request GetVersionRequest
responseObserver io.grpc.stub.StreamObserver<Version>

importAptArtifacts(ImportAptArtifactsRequest request, StreamObserver<Operation> responseObserver)

public void importAptArtifacts(ImportAptArtifactsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request ImportAptArtifactsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

importYumArtifacts(ImportYumArtifactsRequest request, StreamObserver<Operation> responseObserver)

public void importYumArtifacts(ImportYumArtifactsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request ImportYumArtifactsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

listAttachments(ListAttachmentsRequest request, StreamObserver<ListAttachmentsResponse> responseObserver)

public void listAttachments(ListAttachmentsRequest request, StreamObserver<ListAttachmentsResponse> responseObserver)

Lists attachments.

Parameters
Name Description
request ListAttachmentsRequest
responseObserver io.grpc.stub.StreamObserver<ListAttachmentsResponse>

listDockerImages(ListDockerImagesRequest request, StreamObserver<ListDockerImagesResponse> responseObserver)

public void listDockerImages(ListDockerImagesRequest request, StreamObserver<ListDockerImagesResponse> responseObserver)

Lists docker images.

Parameters
Name Description
request ListDockerImagesRequest
responseObserver io.grpc.stub.StreamObserver<ListDockerImagesResponse>

listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

public void listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

Lists files.

Parameters
Name Description
request ListFilesRequest
responseObserver io.grpc.stub.StreamObserver<ListFilesResponse>

listMavenArtifacts(ListMavenArtifactsRequest request, StreamObserver<ListMavenArtifactsResponse> responseObserver)

public void listMavenArtifacts(ListMavenArtifactsRequest request, StreamObserver<ListMavenArtifactsResponse> responseObserver)

Lists maven artifacts.

Parameters
Name Description
request ListMavenArtifactsRequest
responseObserver io.grpc.stub.StreamObserver<ListMavenArtifactsResponse>

listNpmPackages(ListNpmPackagesRequest request, StreamObserver<ListNpmPackagesResponse> responseObserver)

public void listNpmPackages(ListNpmPackagesRequest request, StreamObserver<ListNpmPackagesResponse> responseObserver)

Lists npm packages.

Parameters
Name Description
request ListNpmPackagesRequest
responseObserver io.grpc.stub.StreamObserver<ListNpmPackagesResponse>

listPackages(ListPackagesRequest request, StreamObserver<ListPackagesResponse> responseObserver)

public void listPackages(ListPackagesRequest request, StreamObserver<ListPackagesResponse> responseObserver)

Lists packages.

Parameters
Name Description
request ListPackagesRequest
responseObserver io.grpc.stub.StreamObserver<ListPackagesResponse>

listPythonPackages(ListPythonPackagesRequest request, StreamObserver<ListPythonPackagesResponse> responseObserver)

public void listPythonPackages(ListPythonPackagesRequest request, StreamObserver<ListPythonPackagesResponse> responseObserver)

Lists python packages.

Parameters
Name Description
request ListPythonPackagesRequest
responseObserver io.grpc.stub.StreamObserver<ListPythonPackagesResponse>

listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

public void listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

Lists repositories.

Parameters
Name Description
request ListRepositoriesRequest
responseObserver io.grpc.stub.StreamObserver<ListRepositoriesResponse>

listRules(ListRulesRequest request, StreamObserver<ListRulesResponse> responseObserver)

public void listRules(ListRulesRequest request, StreamObserver<ListRulesResponse> responseObserver)

Lists rules.

Parameters
Name Description
request ListRulesRequest
responseObserver io.grpc.stub.StreamObserver<ListRulesResponse>

listTags(ListTagsRequest request, StreamObserver<ListTagsResponse> responseObserver)

public void listTags(ListTagsRequest request, StreamObserver<ListTagsResponse> responseObserver)

Lists tags.

Parameters
Name Description
request ListTagsRequest
responseObserver io.grpc.stub.StreamObserver<ListTagsResponse>

listVersions(ListVersionsRequest request, StreamObserver<ListVersionsResponse> responseObserver)

public void listVersions(ListVersionsRequest request, StreamObserver<ListVersionsResponse> responseObserver)

Lists versions.

Parameters
Name Description
request ListVersionsRequest
responseObserver io.grpc.stub.StreamObserver<ListVersionsResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Updates the IAM policy for a given resource.

Parameters
Name Description
request com.google.iam.v1.SetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

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

Parameters
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updateFile(UpdateFileRequest request, StreamObserver<File> responseObserver)

public void updateFile(UpdateFileRequest request, StreamObserver<File> responseObserver)

Updates a file.

Parameters
Name Description
request UpdateFileRequest
responseObserver io.grpc.stub.StreamObserver<File>

updatePackage(UpdatePackageRequest request, StreamObserver<Package> responseObserver)

public void updatePackage(UpdatePackageRequest request, StreamObserver<Package> responseObserver)

Updates a package.

Parameters
Name Description
request UpdatePackageRequest
responseObserver io.grpc.stub.StreamObserver<Package>

updateProjectSettings(UpdateProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

public void updateProjectSettings(UpdateProjectSettingsRequest request, StreamObserver<ProjectSettings> responseObserver)

Updates the Settings for the Project.

Parameters
Name Description
request UpdateProjectSettingsRequest
responseObserver io.grpc.stub.StreamObserver<ProjectSettings>

updateRepository(UpdateRepositoryRequest request, StreamObserver<Repository> responseObserver)

public void updateRepository(UpdateRepositoryRequest request, StreamObserver<Repository> responseObserver)

Updates a repository.

Parameters
Name Description
request UpdateRepositoryRequest
responseObserver io.grpc.stub.StreamObserver<Repository>

updateRule(UpdateRuleRequest request, StreamObserver<Rule> responseObserver)

public void updateRule(UpdateRuleRequest request, StreamObserver<Rule> responseObserver)

Updates a rule.

Parameters
Name Description
request UpdateRuleRequest
responseObserver io.grpc.stub.StreamObserver<Rule>

updateTag(UpdateTagRequest request, StreamObserver<Tag> responseObserver)

public void updateTag(UpdateTagRequest request, StreamObserver<Tag> responseObserver)

Updates a tag.

Parameters
Name Description
request UpdateTagRequest
responseObserver io.grpc.stub.StreamObserver<Tag>

updateVPCSCConfig(UpdateVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

public void updateVPCSCConfig(UpdateVPCSCConfigRequest request, StreamObserver<VPCSCConfig> responseObserver)

Updates the VPCSC Config for the Project.

Parameters
Name Description
request UpdateVPCSCConfigRequest
responseObserver io.grpc.stub.StreamObserver<VPCSCConfig>

updateVersion(UpdateVersionRequest request, StreamObserver<Version> responseObserver)

public void updateVersion(UpdateVersionRequest request, StreamObserver<Version> responseObserver)

Updates a version.

Parameters
Name Description
request UpdateVersionRequest
responseObserver io.grpc.stub.StreamObserver<Version>