2.15.0 (latest) 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

    public sealed class RemoteRepositoryConfig.Types.NpmRepository : IMessage<RemoteRepositoryConfig.Types.NpmRepository>, IEquatable<RemoteRepositoryConfig.Types.NpmRepository>, IDeepCloneable<RemoteRepositoryConfig.Types.NpmRepository>, IBufferMessage, IMessage

Reference documentation and code samples for the Artifact Registry v1 API class RemoteRepositoryConfig.Types.NpmRepository.

Configuration for a Npm remote repository.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RemoteRepositoryConfig.Types.NpmRepository

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[RemoteRepositoryConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.md.txt)[NpmRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.NpmRepository.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RemoteRepositoryConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.md.txt)[NpmRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.NpmRepository.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[RemoteRepositoryConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.md.txt)[NpmRepository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RemoteRepositoryConfig.Types.NpmRepository.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ArtifactRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.md.txt)

## Assembly

Google.Cloud.ArtifactRegistry.V1.dll

## Constructors

### NpmRepository()

    public NpmRepository()

### NpmRepository(NpmRepository)

    public NpmRepository(RemoteRepositoryConfig.Types.NpmRepository other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RemoteRepositoryConfigTypesNpmRepository` |

## Properties

### CustomRepository

    public RemoteRepositoryConfig.Types.NpmRepository.Types.CustomRepository CustomRepository { get; set; }

Customer-specified remote repository.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RemoteRepositoryConfigTypesNpmRepositoryTypesCustomRepository` |   |

### HasPublicRepository

    public bool HasPublicRepository { get; }

Gets whether the "public_repository" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### PublicRepository

    public RemoteRepositoryConfig.Types.NpmRepository.Types.PublicRepository PublicRepository { get; set; }

One of the publicly available Npm repositories supported by Artifact
Registry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RemoteRepositoryConfigTypesNpmRepositoryTypesPublicRepository` |   |

### UpstreamCase

    public RemoteRepositoryConfig.Types.NpmRepository.UpstreamOneofCase UpstreamCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RemoteRepositoryConfigTypesNpmRepositoryUpstreamOneofCase` |   |