2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class CheckResponse.Types.ConsumerInfo : IMessage<CheckResponse.Types.ConsumerInfo>, IEquatable<CheckResponse.Types.ConsumerInfo>, IDeepCloneable<CheckResponse.Types.ConsumerInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Control v1 API class CheckResponse.Types.ConsumerInfo.

`ConsumerInfo` provides information about the consumer.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CheckResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.md.txt)[ConsumerInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.ConsumerInfo.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CheckResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.md.txt)[ConsumerInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.ConsumerInfo.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CheckResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.md.txt)[ConsumerInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.CheckResponse.Types.ConsumerInfo.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.ServiceControl.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.md.txt)

## Assembly

Google.Cloud.ServiceControl.V1.dll

## Constructors

### ConsumerInfo()

    public ConsumerInfo()

### ConsumerInfo(ConsumerInfo)

    public ConsumerInfo(CheckResponse.Types.ConsumerInfo other)

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

## Properties

### ConsumerNumber

    public long ConsumerNumber { get; set; }

The consumer identity number, can be Google cloud project number, folder
number or organization number e.g. 1234567890. A value of 0 indicates no
consumer number is found.

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

### ProjectNumber

    public long ProjectNumber { get; set; }

The Google cloud project number, e.g. 1234567890. A value of 0 indicates
no project number is found.

NOTE: This field is deprecated after we support flexible consumer
id. New code should not depend on this field anymore.

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

### Type

    public CheckResponse.Types.ConsumerInfo.Types.ConsumerType Type { get; set; }

The type of the consumer which should have been defined in
[Google Resource Manager](https://cloud.google.com/resource-manager/).

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