Device name that the guest operating system will see.
It is used by Runnable.volumes field to mount disks. So please specify
the device_name if you want Batch to help mount the disk, and it should
match the device_name field in volumes.
Device name that the guest operating system will see.
It is used by Runnable.volumes field to mount disks. So please specify
the device_name if you want Batch to help mount the disk, and it should
match the device_name field in volumes.
[[["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.AttachedDiskOrBuilder (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.AttachedDiskOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder) \n\n public static interface AllocationPolicy.AttachedDiskOrBuilder 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### getAttachedCase()\n\n public abstract AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()\n\n### getDeviceName()\n\n public abstract String getDeviceName()\n\nDevice name that the guest operating system will see.\nIt is used by Runnable.volumes field to mount disks. So please specify\nthe device_name if you want Batch to help mount the disk, and it should\nmatch the device_name field in volumes.\n\n`string device_name = 3;`\n\n### getDeviceNameBytes()\n\n public abstract ByteString getDeviceNameBytes()\n\nDevice name that the guest operating system will see.\nIt is used by Runnable.volumes field to mount disks. So please specify\nthe device_name if you want Batch to help mount the disk, and it should\nmatch the device_name field in volumes.\n\n`string device_name = 3;`\n\n### getExistingDisk()\n\n public abstract String getExistingDisk()\n\nName of an existing PD.\n\n`string existing_disk = 2;`\n\n### getExistingDiskBytes()\n\n public abstract ByteString getExistingDiskBytes()\n\nName of an existing PD.\n\n`string existing_disk = 2;`\n\n### getNewDisk()\n\n public abstract AllocationPolicy.Disk getNewDisk()\n\n`.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;`\n\n### getNewDiskOrBuilder()\n\n public abstract AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()\n\n`.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;`\n\n### hasExistingDisk()\n\n public abstract boolean hasExistingDisk()\n\nName of an existing PD.\n\n`string existing_disk = 2;`\n\n### hasNewDisk()\n\n public abstract boolean hasNewDisk()\n\n`.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;`"]]