    public sealed class InternalServerConfig.Types.AllowedConsumer : IMessage<InternalServerConfig.Types.AllowedConsumer>, IEquatable<InternalServerConfig.Types.AllowedConsumer>, IDeepCloneable<InternalServerConfig.Types.AllowedConsumer>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud FTP v1 API class InternalServerConfig.Types.AllowedConsumer.

A consumer project or network that is permitted to connect to the server
via PSC.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InternalServerConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types)[AllowedConsumer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InternalServerConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types)[AllowedConsumer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InternalServerConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types)[AllowedConsumer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Ftp.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1)

## Assembly

Google.Cloud.Ftp.V1.dll

## Constructors

### AllowedConsumer()

    public AllowedConsumer()

### AllowedConsumer(AllowedConsumer)

    public AllowedConsumer(InternalServerConfig.Types.AllowedConsumer other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer` |

## Properties

### ConnectionLimit

    public long ConnectionLimit { get; set; }

Required. The connection limit for the consumer.
Value must be greater than 0.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### ConsumerTypeCase

    public InternalServerConfig.Types.AllowedConsumer.ConsumerTypeOneofCase ConsumerTypeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer.ConsumerTypeOneofCase` |   |

### HasProject

    public bool HasProject { get; }

Gets whether the "project" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Project

    public string Project { get; set; }

The project ID or number of the consumer project.
Must be in the format: `projects/{project}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ProjectAsProjectName

    public ProjectName ProjectAsProjectName { get; set; }

[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Project](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ftp.V1/latest/Google.Cloud.Ftp.V1.InternalServerConfig.Types.AllowedConsumer#Google_Cloud_Ftp_V1_InternalServerConfig_Types_AllowedConsumer_Project) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` |   |