public sealed class ServiceConnectionMap.Types.ConsumerPscConfig : IMessage<ServiceConnectionMap.Types.ConsumerPscConfig>, IEquatable<ServiceConnectionMap.Types.ConsumerPscConfig>, IDeepCloneable<ServiceConnectionMap.Types.ConsumerPscConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionMap.Types.ConsumerPscConfig.
Allow the producer to specify which consumers can connect to it.
public string ConsumerInstanceProject { get; set; }
Required. The project ID or project number of the consumer project. This
project is the one that the consumer uses to interact with the producer
instance. From the perspective of a consumer who's created a producer
instance, this is the project of the producer instance. Format:
'projects/<project_id_or_number>' Eg. 'projects/consumer-project' or
'projects/1234'
The resource path of the consumer network where PSC connections are
allowed to be created in. Note, this network does not need be in the
ConsumerPscConfig.project in the case of SharedVPC.
Example:
projects/{projectNumOrId}/global/networks/{networkId}.
public MapField<string, string> ServiceAttachmentIpAddressMap { get; }
Output only. A map to store mapping between customer vip and target
service attachment. Only service attachment with producer specified ip
addresses are stored here.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Network Connectivity v1 API - Class ServiceConnectionMap.Types.ConsumerPscConfig (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig) \n\n public sealed class ServiceConnectionMap.Types.ConsumerPscConfig : IMessage\u003cServiceConnectionMap.Types.ConsumerPscConfig\u003e, IEquatable\u003cServiceConnectionMap.Types.ConsumerPscConfig\u003e, IDeepCloneable\u003cServiceConnectionMap.Types.ConsumerPscConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionMap.Types.ConsumerPscConfig.\n\nAllow the producer to specify which consumers can connect to it. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceConnectionMap.Types.ConsumerPscConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceConnectionMap](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types)[ConsumerPscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceConnectionMap](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types)[ConsumerPscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceConnectionMap](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types)[ConsumerPscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.NetworkConnectivity.V1](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkConnectivity.V1.dll\n\nConstructors\n------------\n\n### ConsumerPscConfig()\n\n public ConsumerPscConfig()\n\n### ConsumerPscConfig(ConsumerPscConfig)\n\n public ConsumerPscConfig(ServiceConnectionMap.Types.ConsumerPscConfig other)\n\nProperties\n----------\n\n### ConsumerInstanceProject\n\n public string ConsumerInstanceProject { get; set; }\n\nRequired. The project ID or project number of the consumer project. This\nproject is the one that the consumer uses to interact with the producer\ninstance. From the perspective of a consumer who's created a producer\ninstance, this is the project of the producer instance. Format:\n'projects/\\\u003cproject_id_or_number\\\u003e' Eg. 'projects/consumer-project' or\n'projects/1234'\n\n### ConsumerInstanceProjectAsProjectName\n\n public ProjectName ConsumerInstanceProjectAsProjectName { get; set; }\n\n[ProjectName](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ProjectName)-typed view over the [ConsumerInstanceProject](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig#Google_Cloud_NetworkConnectivity_V1_ServiceConnectionMap_Types_ConsumerPscConfig_ConsumerInstanceProject) resource name\nproperty.\n\n### DisableGlobalAccess\n\n public bool DisableGlobalAccess { get; set; }\n\nThis is used in PSC consumer ForwardingRule to control whether the PSC\nendpoint can be accessed from another region.\n\n### HasIpVersion\n\n public bool HasIpVersion { get; }\n\nGets whether the \"ip_version\" field is set\n\n### IpVersion\n\n public IPVersion IpVersion { get; set; }\n\nThe requested IP version for the PSC connection.\n\n### Network\n\n public string Network { get; set; }\n\nThe resource path of the consumer network where PSC connections are\nallowed to be created in. Note, this network does not need be in the\nConsumerPscConfig.project in the case of SharedVPC.\nExample:\nprojects/{projectNumOrId}/global/networks/{networkId}.\n\n### NetworkAsNetworkName\n\n public NetworkName NetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.NetworkName)-typed view over the [Network](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionMap.Types.ConsumerPscConfig#Google_Cloud_NetworkConnectivity_V1_ServiceConnectionMap_Types_ConsumerPscConfig_Network) resource name property.\n\n### ProducerInstanceId\n\n [Obsolete]\n public string ProducerInstanceId { get; set; }\n\nImmutable. Deprecated. Use producer_instance_metadata instead.\nAn immutable identifier for the producer instance.\n\n### ProducerInstanceMetadata\n\n public MapField\u003cstring, string\u003e ProducerInstanceMetadata { get; }\n\nImmutable. An immutable map for the producer instance metadata.\n\n### Project\n\n public string Project { get; set; }\n\nThe consumer project where PSC connections are allowed to be created in.\n\n### ServiceAttachmentIpAddressMap\n\n public MapField\u003cstring, string\u003e ServiceAttachmentIpAddressMap { get; }\n\nOutput only. A map to store mapping between customer vip and target\nservice attachment. Only service attachment with producer specified ip\naddresses are stored here.\n\n### State\n\n public ServiceConnectionMap.Types.ConsumerPscConfig.Types.State State { get; set; }\n\nOutput only. Overall state of PSC Connections management for this\nconsumer psc config."]]