public sealed class NetworkInterface : IMessage<NetworkInterface>, IEquatable<NetworkInterface>, IDeepCloneable<NetworkInterface>, IBufferMessage, IMessage
Reference documentation and code samples for the Notebooks v2 API class NetworkInterface.
The definition of a network interface resource attached to a VM.
[[["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."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eNetworkInterface\u003c/code\u003e class within the Google Cloud Notebooks v2 API, outlining its structure and functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Cloud.Notebooks.V2\u003c/code\u003e namespace, defines a network interface resource attached to a virtual machine (VM).\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eNetwork\u003c/code\u003e, \u003ccode\u003eNicType\u003c/code\u003e, and \u003ccode\u003eSubnet\u003c/code\u003e, which allow configuration of the VM's network connection, including specifying the VPC, vNIC type, and subnet.\u003c/p\u003e\n"],["\u003cp\u003eThe network interface can be created with a default constructor or through the use of another NetworkInterface as a parameter for the constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Notebooks v2 API - Class NetworkInterface (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.NetworkInterface)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.NetworkInterface)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.NetworkInterface) \n\n public sealed class NetworkInterface : IMessage\u003cNetworkInterface\u003e, IEquatable\u003cNetworkInterface\u003e, IDeepCloneable\u003cNetworkInterface\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Notebooks v2 API class NetworkInterface.\n\nThe definition of a network interface resource attached to a VM. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e NetworkInterface \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.NetworkInterface), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.NetworkInterface), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.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.Notebooks.V2](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V2.dll\n\nConstructors\n------------\n\n### NetworkInterface()\n\n public NetworkInterface()\n\n### NetworkInterface(NetworkInterface)\n\n public NetworkInterface(NetworkInterface other)\n\nProperties\n----------\n\n### Network\n\n public string Network { get; set; }\n\nOptional. The name of the VPC that this VM instance is in.\nFormat:\n`projects/{project_id}/global/networks/{network_id}`\n\n### NicType\n\n public NetworkInterface.Types.NicType NicType { get; set; }\n\nOptional. The type of vNIC to be used on this interface. This may be gVNIC\nor VirtioNet.\n\n### Subnet\n\n public string Subnet { get; set; }\n\nOptional. The name of the subnet that this VM instance is in.\nFormat:\n`projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`"]]