[[["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."],[],[],null,["# Google Cloud Notebooks V2 Client - Class NetworkInterface (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-notebooks/latest/V2.NetworkInterface)\n- [1.0.4](/php/docs/reference/cloud-notebooks/1.0.4/V2.NetworkInterface)\n- [0.7.5](/php/docs/reference/cloud-notebooks/0.7.5/V2.NetworkInterface)\n- [0.6.2](/php/docs/reference/cloud-notebooks/0.6.2/V2.NetworkInterface)\n- [0.5.0](/php/docs/reference/cloud-notebooks/0.5.0/V2.NetworkInterface)\n- [0.4.1](/php/docs/reference/cloud-notebooks/0.4.1/V2.NetworkInterface)\n- [0.3.6](/php/docs/reference/cloud-notebooks/0.3.6/V2.NetworkInterface) \nReference documentation and code samples for the Google Cloud Notebooks V2 Client class NetworkInterface.\n\nThe definition of a network interface resource attached to a VM.\n\nGenerated from protobuf message `google.cloud.notebooks.v2.NetworkInterface`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Notebooks \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNetwork\n\nOptional. The name of the VPC that this VM instance is in.\n\nFormat:\n`projects/{project_id}/global/networks/{network_id}`\n\n### setNetwork\n\nOptional. The name of the VPC that this VM instance is in.\n\nFormat:\n`projects/{project_id}/global/networks/{network_id}`\n\n### getSubnet\n\nOptional. The name of the subnet that this VM instance is in.\n\nFormat:\n`projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`\n\n### setSubnet\n\nOptional. The name of the subnet that this VM instance is in.\n\nFormat:\n`projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`\n\n### getNicType\n\nOptional. The type of vNIC to be used on this interface. This may be gVNIC\nor VirtioNet.\n\n### setNicType\n\nOptional. The type of vNIC to be used on this interface. This may be gVNIC\nor VirtioNet."]]