public sealed class VpcAccess.Types.NetworkInterface : IMessage<VpcAccess.Types.NetworkInterface>, IEquatable<VpcAccess.Types.NetworkInterface>, IDeepCloneable<VpcAccess.Types.NetworkInterface>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class VpcAccess.Types.NetworkInterface.
Optional. The VPC network that the Cloud Run resource will be able to
send traffic to. At least one of network or subnetwork must be specified.
If both network and subnetwork are specified, the given VPC subnetwork
must belong to the given VPC network. If network is not specified, it
will be looked up from the subnetwork.
Optional. The VPC subnetwork that the Cloud Run resource will get IPs
from. At least one of network or subnetwork must be specified. If both
network and subnetwork are specified, the given VPC subnetwork must
belong to the given VPC network. If subnetwork is not specified, the
subnetwork with the same name with the network will be used.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eVpcAccess.Types.NetworkInterface\u003c/code\u003e class within the Google Cloud Run Admin v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class is used to configure direct VPC egress settings for Cloud Run resources, allowing them to communicate with a specified VPC network or subnetwork.\u003c/p\u003e\n"],["\u003cp\u003eIt's part of the \u003ccode\u003eGoogle.Cloud.Run.V2\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.Run.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the class's constructors (\u003ccode\u003eNetworkInterface()\u003c/code\u003e and \u003ccode\u003eNetworkInterface(NetworkInterface)\u003c/code\u003e) as well as its properties such as \u003ccode\u003eNetwork\u003c/code\u003e, \u003ccode\u003eSubnetwork\u003c/code\u003e, and \u003ccode\u003eTags\u003c/code\u003e, with descriptions and property values.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the documentation are provided, with the latest version being 2.13.0, offering different versions depending on the users needs.\u003c/p\u003e\n"]]],[],null,["# Cloud Run Admin v2 API - Class VpcAccess.Types.NetworkInterface (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.15.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.14.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.13.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.12.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.11.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.10.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.9.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.8.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.7.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.6.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.5.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.4.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.3.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.2.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.1.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.0.0/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Run.V2/1.0.0-beta02/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface) \n\n public sealed class VpcAccess.Types.NetworkInterface : IMessage\u003cVpcAccess.Types.NetworkInterface\u003e, IEquatable\u003cVpcAccess.Types.NetworkInterface\u003e, IDeepCloneable\u003cVpcAccess.Types.NetworkInterface\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Run Admin v2 API class VpcAccess.Types.NetworkInterface.\n\nDirect VPC egress settings. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VpcAccess.Types.NetworkInterface \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VpcAccess](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess)[Types](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VpcAccess](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess)[Types](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VpcAccess](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess)[Types](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VpcAccess.Types.NetworkInterface), [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.Run.V2](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Run.V2.dll\n\nConstructors\n------------\n\n### NetworkInterface()\n\n public NetworkInterface()\n\n### NetworkInterface(NetworkInterface)\n\n public NetworkInterface(VpcAccess.Types.NetworkInterface other)\n\nProperties\n----------\n\n### Network\n\n public string Network { get; set; }\n\nOptional. The VPC network that the Cloud Run resource will be able to\nsend traffic to. At least one of network or subnetwork must be specified.\nIf both network and subnetwork are specified, the given VPC subnetwork\nmust belong to the given VPC network. If network is not specified, it\nwill be looked up from the subnetwork.\n\n### Subnetwork\n\n public string Subnetwork { get; set; }\n\nOptional. The VPC subnetwork that the Cloud Run resource will get IPs\nfrom. At least one of network or subnetwork must be specified. If both\nnetwork and subnetwork are specified, the given VPC subnetwork must\nbelong to the given VPC network. If subnetwork is not specified, the\nsubnetwork with the same name with the network will be used.\n\n### Tags\n\n public RepeatedField\u003cstring\u003e Tags { get; }\n\nOptional. Network tags applied to this Cloud Run resource."]]