Required. Properties of the new folder being created.
The bucket and name of the folder are specified in the parent and folder_id
fields, respectively. Populating those fields in folder will result in an
error.
Required. The full name of a folder, including all its parent folders.
Folders use single '/' characters as a delimiter.
The folder_id must end with a slash.
For example, the folder_id of "books/biographies/" would create a new
"biographies/" folder under the "books/" folder.
Required. The full name of a folder, including all its parent folders.
Folders use single '/' characters as a delimiter.
The folder_id must end with a slash.
For example, the folder_id of "books/biographies/" would create a new
"biographies/" folder under the "books/" folder.
Required. Properties of the new folder being created.
The bucket and name of the folder are specified in the parent and folder_id
fields, respectively. Populating those fields in folder will result in an
error.
Required. Properties of the new folder being created.
The bucket and name of the folder are specified in the parent and folder_id
fields, respectively. Populating those fields in folder will result in an
error.
[[["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-16 UTC."],[],[],null,["# Interface CreateFolderRequestOrBuilder (2.55.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.55.0 (latest)](/java/docs/reference/google-cloud-storage/latest/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.54.0](/java/docs/reference/google-cloud-storage/2.54.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.53.3](/java/docs/reference/google-cloud-storage/2.53.3/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.52.3](/java/docs/reference/google-cloud-storage/2.52.3/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.50.0](/java/docs/reference/google-cloud-storage/2.50.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.49.0](/java/docs/reference/google-cloud-storage/2.49.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.48.2](/java/docs/reference/google-cloud-storage/2.48.2/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.47.0](/java/docs/reference/google-cloud-storage/2.47.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.46.0](/java/docs/reference/google-cloud-storage/2.46.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.45.0](/java/docs/reference/google-cloud-storage/2.45.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.44.1](/java/docs/reference/google-cloud-storage/2.44.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.43.2](/java/docs/reference/google-cloud-storage/2.43.2/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.42.0](/java/docs/reference/google-cloud-storage/2.42.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.41.0](/java/docs/reference/google-cloud-storage/2.41.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.40.1](/java/docs/reference/google-cloud-storage/2.40.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.39.0](/java/docs/reference/google-cloud-storage/2.39.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.38.0](/java/docs/reference/google-cloud-storage/2.38.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.37.0](/java/docs/reference/google-cloud-storage/2.37.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.36.1](/java/docs/reference/google-cloud-storage/2.36.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.34.0](/java/docs/reference/google-cloud-storage/2.34.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.33.0](/java/docs/reference/google-cloud-storage/2.33.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.32.1](/java/docs/reference/google-cloud-storage/2.32.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.30.1](/java/docs/reference/google-cloud-storage/2.30.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-storage/2.29.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.28.0](/java/docs/reference/google-cloud-storage/2.28.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-storage/2.27.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.24.0](/java/docs/reference/google-cloud-storage/2.24.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-storage/2.23.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.22.6](/java/docs/reference/google-cloud-storage/2.22.6/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.21.0](/java/docs/reference/google-cloud-storage/2.21.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-storage/2.20.2/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.19.0](/java/docs/reference/google-cloud-storage/2.19.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.18.0](/java/docs/reference/google-cloud-storage/2.18.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.17.2](/java/docs/reference/google-cloud-storage/2.17.2/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.16.0](/java/docs/reference/google-cloud-storage/2.16.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.15.1](/java/docs/reference/google-cloud-storage/2.15.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.14.0](/java/docs/reference/google-cloud-storage/2.14.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.13.1](/java/docs/reference/google-cloud-storage/2.13.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.12.0](/java/docs/reference/google-cloud-storage/2.12.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.11.3](/java/docs/reference/google-cloud-storage/2.11.3/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.10.0](/java/docs/reference/google-cloud-storage/2.10.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.9.3](/java/docs/reference/google-cloud-storage/2.9.3/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.8.1](/java/docs/reference/google-cloud-storage/2.8.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.7.1](/java/docs/reference/google-cloud-storage/2.7.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.6.1](/java/docs/reference/google-cloud-storage/2.6.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.5.1](/java/docs/reference/google-cloud-storage/2.5.1/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.4.5](/java/docs/reference/google-cloud-storage/2.4.5/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.3.0](/java/docs/reference/google-cloud-storage/2.3.0/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.2.3](/java/docs/reference/google-cloud-storage/2.2.3/com.google.storage.control.v2.CreateFolderRequestOrBuilder)\n- [2.1.10](/java/docs/reference/google-cloud-storage/2.1.10/com.google.storage.control.v2.CreateFolderRequestOrBuilder) \n\n public interface CreateFolderRequestOrBuilder 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### getFolder()\n\n public abstract Folder getFolder()\n\nRequired. Properties of the new folder being created.\nThe bucket and name of the folder are specified in the parent and folder_id\nfields, respectively. Populating those fields in `folder` will result in an\nerror.\n\n`.google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getFolderId()\n\n public abstract String getFolderId()\n\nRequired. The full name of a folder, including all its parent folders.\nFolders use single '/' characters as a delimiter.\nThe folder_id must end with a slash.\nFor example, the folder_id of \"books/biographies/\" would create a new\n\"biographies/\" folder under the \"books/\" folder.\n\n`string folder_id = 3 [(.google.api.field_behavior) = REQUIRED];`\n\n### getFolderIdBytes()\n\n public abstract ByteString getFolderIdBytes()\n\nRequired. The full name of a folder, including all its parent folders.\nFolders use single '/' characters as a delimiter.\nThe folder_id must end with a slash.\nFor example, the folder_id of \"books/biographies/\" would create a new\n\"biographies/\" folder under the \"books/\" folder.\n\n`string folder_id = 3 [(.google.api.field_behavior) = REQUIRED];`\n\n### getFolderOrBuilder()\n\n public abstract FolderOrBuilder getFolderOrBuilder()\n\nRequired. Properties of the new folder being created.\nThe bucket and name of the folder are specified in the parent and folder_id\nfields, respectively. Populating those fields in `folder` will result in an\nerror.\n\n`.google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getParent()\n\n public abstract String getParent()\n\nRequired. Name of the bucket in which the folder will reside. The bucket\nmust be a hierarchical namespace enabled bucket.\n\n`\nstring parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getParentBytes()\n\n public abstract ByteString getParentBytes()\n\nRequired. Name of the bucket in which the folder will reside. The bucket\nmust be a hierarchical namespace enabled bucket.\n\n`\nstring parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getRecursive()\n\n public abstract boolean getRecursive()\n\nOptional. If true, parent folder doesn't have to be present and all missing\nancestor folders will be created atomically.\n\n`bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getRequestId()\n\n public abstract String getRequestId()\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted.\n\n`\nstring request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }\n`\n\n### getRequestIdBytes()\n\n public abstract ByteString getRequestIdBytes()\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted.\n\n`\nstring request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }\n`\n\n### hasFolder()\n\n public abstract boolean hasFolder()\n\nRequired. Properties of the new folder being created.\nThe bucket and name of the folder are specified in the parent and folder_id\nfields, respectively. Populating those fields in `folder` will result in an\nerror.\n\n`.google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED];\n`"]]