The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
The URL of an existing subnetwork resource in the network.
You can specify the subnetwork as a full or partial URL.
For example, the following are all valid URLs:
[[["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,["# Interface AllocationPolicy.NetworkInterfaceOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder) \n\n public static interface AllocationPolicy.NetworkInterfaceOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getNetwork()\n\n public abstract String getNetwork()\n\nThe URL of an existing network resource.\nYou can specify the network as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}\n- projects/{project}/global/networks/{network}\n- global/networks/{network}\n\n`string network = 1;`\n\n### getNetworkBytes()\n\n public abstract ByteString getNetworkBytes()\n\nThe URL of an existing network resource.\nYou can specify the network as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}\n- projects/{project}/global/networks/{network}\n- global/networks/{network}\n\n`string network = 1;`\n\n### getNoExternalIpAddress()\n\n public abstract boolean getNoExternalIpAddress()\n\nDefault is false (with an external IP address). Required if\nno external public IP address is attached to the VM. If no external\npublic IP address, additional configuration is required to allow the VM\nto access Google Services. See\n\u003chttps://cloud.google.com/vpc/docs/configure-private-google-access\u003e and\n\u003chttps://cloud.google.com/nat/docs/gce-example#create-nat\u003e for more\ninformation.\n\n`bool no_external_ip_address = 3;`\n\n### getSubnetwork()\n\n public abstract String getSubnetwork()\n\nThe URL of an existing subnetwork resource in the network.\nYou can specify the subnetwork as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- regions/{region}/subnetworks/{subnetwork}\n\n`string subnetwork = 2;`\n\n### getSubnetworkBytes()\n\n public abstract ByteString getSubnetworkBytes()\n\nThe URL of an existing subnetwork resource in the network.\nYou can specify the subnetwork as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- regions/{region}/subnetworks/{subnetwork}\n\n`string subnetwork = 2;`"]]