Name of the volume to mount.
Volume names must be unique per build step and must be valid names for
Docker volumes. Each named volume must be used by at least two build steps.
Name of the volume to mount.
Volume names must be unique per build step and must be valid names for
Docker volumes. Each named volume must be used by at least two build steps.
Path at which to mount the volume.
Paths must be absolute and cannot conflict with other volume paths on the
same build step or with certain reserved volume paths.
Path at which to mount the volume.
Paths must be absolute and cannot conflict with other volume paths on the
same build step or with certain reserved volume paths.
[[["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 VolumeOrBuilder (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.cloudbuild.v1.VolumeOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.cloudbuild.v1.VolumeOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.cloudbuild.v1.VolumeOrBuilder) \n\n public interface VolumeOrBuilder 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### getName()\n\n public abstract String getName()\n\nName of the volume to mount.\nVolume names must be unique per build step and must be valid names for\nDocker volumes. Each named volume must be used by at least two build steps.\n\n`string name = 1;`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nName of the volume to mount.\nVolume names must be unique per build step and must be valid names for\nDocker volumes. Each named volume must be used by at least two build steps.\n\n`string name = 1;`\n\n### getPath()\n\n public abstract String getPath()\n\nPath at which to mount the volume.\nPaths must be absolute and cannot conflict with other volume paths on the\nsame build step or with certain reserved volume paths.\n\n`string path = 2;`\n\n### getPathBytes()\n\n public abstract ByteString getPathBytes()\n\nPath at which to mount the volume.\nPaths must be absolute and cannot conflict with other volume paths on the\nsame build step or with certain reserved volume paths.\n\n`string path = 2;`"]]