# Class ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub (1.90.0)

1.90.0 (latest) 1.87.0 1.86.0 1.84.0 1.82.0 1.81.0 1.80.0 1.79.0 1.77.0 1.75.0 1.74.0 1.73.0 1.72.0 1.71.0 1.69.0 1.67.0 1.66.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.9 1.1.1 0.5.0 0.4.0

    public static final class ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub extends AbstractBlockingStub<ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub>

A stub to allow clients to do synchronous 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](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> io.grpc.stub.AbstractStub \> io.grpc.stub.AbstractBlockingStub \> ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub

## Inherited Members

io.grpc.stub.AbstractBlockingStub.\<T\>newStub(io.grpc.stub.AbstractStub.StubFactory\<T\>,io.grpc.Channel) io.grpc.stub.AbstractBlockingStub.\<T\>newStub(io.grpc.stub.AbstractStub.StubFactory\<T\>,io.grpc.Channel,io.grpc.CallOptions) io.grpc.stub.AbstractStub.\<T\>withOption(io.grpc.CallOptions.Key\<T\>,T) io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) io.grpc.stub.AbstractStub.getCallOptions() io.grpc.stub.AbstractStub.getChannel() io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials) io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel) io.grpc.stub.AbstractStub.withCompression(java.lang.String) io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline) io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration) io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit) io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor) io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...) io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int) io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int) io.grpc.stub.AbstractStub.withOnReadyThreshold(int) io.grpc.stub.AbstractStub.withWaitForReady() [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Methods

### build(Channel channel, CallOptions callOptions)

    protected ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub build(Channel channel, CallOptions callOptions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |
| `callOptions` | `io.grpc.CallOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ArtifactRegistryGrpc.ArtifactRegistryBlockingV2Stub` |   |

**Overrides** io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

### createRepository(CreateRepositoryRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.CreateRepositoryRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### createTag(CreateTagRequest request)

    public Tag createTag(CreateTagRequest request)

Creates a tag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.CreateTagRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Tag` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### deletePackage(DeletePackageRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.DeletePackageRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### deleteRepository(DeleteRepositoryRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.DeleteRepositoryRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### deleteTag(DeleteTagRequest request)

    public Empty deleteTag(DeleteTagRequest request)

Deletes a tag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.DeleteTagRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### deleteVersion(DeleteVersionRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.DeleteVersionRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getFile(GetFileRequest request)

    public File getFile(GetFileRequest request)

Gets a file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetFileRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.File` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getIamPolicy(GetIamPolicyRequest request)

    public 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.iam.v1.Policy` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getPackage(GetPackageRequest request)

    public Package getPackage(GetPackageRequest request)

Gets a package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetPackageRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Package` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getProjectSettings(GetProjectSettingsRequest request)

    public ProjectSettings getProjectSettings(GetProjectSettingsRequest request)

Retrieves the Settings for the Project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ProjectSettings` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getRepository(GetRepositoryRequest request)

    public Repository getRepository(GetRepositoryRequest request)

Gets a repository.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetRepositoryRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Repository` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getTag(GetTagRequest request)

    public Tag getTag(GetTagRequest request)

Gets a tag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetTagRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Tag` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### getVersion(GetVersionRequest request)

    public Version getVersion(GetVersionRequest request)

Gets a version

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.GetVersionRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Version` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### importAptArtifacts(ImportAptArtifactsRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### importYumArtifacts(ImportYumArtifactsRequest request)

    public 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### listFiles(ListFilesRequest request)

    public ListFilesResponse listFiles(ListFilesRequest request)

Lists files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListFilesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListFilesResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### listPackages(ListPackagesRequest request)

    public ListPackagesResponse listPackages(ListPackagesRequest request)

Lists packages.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListPackagesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListPackagesResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### listRepositories(ListRepositoriesRequest request)

    public ListRepositoriesResponse listRepositories(ListRepositoriesRequest request)

Lists repositories.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### listTags(ListTagsRequest request)

    public ListTagsResponse listTags(ListTagsRequest request)

Lists tags.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListTagsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListTagsResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### listVersions(ListVersionsRequest request)

    public ListVersionsResponse listVersions(ListVersionsRequest request)

Lists versions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListVersionsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ListVersionsResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### setIamPolicy(SetIamPolicyRequest request)

    public 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.iam.v1.Policy` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### testIamPermissions(TestIamPermissionsRequest request)

    public 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.iam.v1.TestIamPermissionsResponse` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### updateProjectSettings(UpdateProjectSettingsRequest request)

    public ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest request)

Updates the Settings for the Project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.ProjectSettings` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### updateRepository(UpdateRepositoryRequest request)

    public Repository updateRepository(UpdateRepositoryRequest request)

Updates a repository.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.UpdateRepositoryRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Repository` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |

### updateTag(UpdateTagRequest request)

    public Tag updateTag(UpdateTagRequest request)

Updates a tag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.UpdateTagRequest` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/com.google.devtools.artifactregistry.v1beta2.Tag` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.StatusException` |   |