Optional. Specifies the disk name. If not specified, the default is to use
the name of the instance. If the disk with the instance name exists already
in the given zone/region, a new name will be automatically generated.
Optional. Specifies the disk name. If not specified, the default is to use
the name of the instance. If the disk with the instance name exists already
in the given zone/region, a new name will be automatically generated.
Optional. Specifies the size of the disk in base-2 GB. If not specified,
the disk will be the same size as the image (usually 10GB). If specified,
the size must be equal to or larger than 10GB. Default 100 GB.
[[["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 LocalDiskInitializeParamsOrBuilder (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.notebooks.v1.LocalDiskInitializeParamsOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder) \n\n public interface LocalDiskInitializeParamsOrBuilder 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### containsLabels(String key)\n\n public abstract boolean containsLabels(String key)\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks.\n\n`map\u003cstring, string\u003e labels = 5;`\n\n### getDescription()\n\n public abstract String getDescription()\n\nOptional. Provide this property when creating the disk.\n\n`string description = 1;`\n\n### getDescriptionBytes()\n\n public abstract ByteString getDescriptionBytes()\n\nOptional. Provide this property when creating the disk.\n\n`string description = 1;`\n\n### getDiskName()\n\n public abstract String getDiskName()\n\nOptional. Specifies the disk name. If not specified, the default is to use\nthe name of the instance. If the disk with the instance name exists already\nin the given zone/region, a new name will be automatically generated.\n\n`string disk_name = 2;`\n\n### getDiskNameBytes()\n\n public abstract ByteString getDiskNameBytes()\n\nOptional. Specifies the disk name. If not specified, the default is to use\nthe name of the instance. If the disk with the instance name exists already\nin the given zone/region, a new name will be automatically generated.\n\n`string disk_name = 2;`\n\n### getDiskSizeGb()\n\n public abstract long getDiskSizeGb()\n\nOptional. Specifies the size of the disk in base-2 GB. If not specified,\nthe disk will be the same size as the image (usually 10GB). If specified,\nthe size must be equal to or larger than 10GB. Default 100 GB.\n\n`int64 disk_size_gb = 3;`\n\n### getLabels()\n\n public abstract Map\u003cString,String\u003e getLabels()\n\nUse [#getLabelsMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder#com_google_events_cloud_notebooks_v1_LocalDiskInitializeParamsOrBuilder_getLabelsMap__) instead.\n\n### getLabelsCount()\n\n public abstract int getLabelsCount()\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks.\n\n`map\u003cstring, string\u003e labels = 5;`\n\n### getLabelsMap()\n\n public abstract Map\u003cString,String\u003e getLabelsMap()\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks.\n\n`map\u003cstring, string\u003e labels = 5;`\n\n### getLabelsOrDefault(String key, String defaultValue)\n\n public abstract String getLabelsOrDefault(String key, String defaultValue)\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks.\n\n`map\u003cstring, string\u003e labels = 5;`\n\n### getLabelsOrThrow(String key)\n\n public abstract String getLabelsOrThrow(String key)\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks.\n\n`map\u003cstring, string\u003e labels = 5;`"]]