Relative path of the file under the mount path where the secret value for
this version will be fetched and made available. For example, setting the
mount_path as '/etc/secrets' and path as secret_foo would mount the
secret value file at /etc/secrets/secret_foo.
Relative path of the file under the mount path where the secret value for
this version will be fetched and made available. For example, setting the
mount_path as '/etc/secrets' and path as secret_foo would mount the
secret value file at /etc/secrets/secret_foo.
Version of the secret (version number or the string 'latest'). It is
preferable to use latest version with secret volumes as secret value
changes are reflected immediately.
Version of the secret (version number or the string 'latest'). It is
preferable to use latest version with secret volumes as secret value
changes are reflected immediately.
[[["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 SecretVolume.SecretVersionOrBuilder (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.functions.v2.SecretVolume.SecretVersionOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder) \n\n public static interface SecretVolume.SecretVersionOrBuilder 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### getPath()\n\n public abstract String getPath()\n\nRelative path of the file under the mount path where the secret value for\nthis version will be fetched and made available. For example, setting the\nmount_path as '/etc/secrets' and path as `secret_foo` would mount the\nsecret value file at `/etc/secrets/secret_foo`.\n\n`string path = 2;`\n\n### getPathBytes()\n\n public abstract ByteString getPathBytes()\n\nRelative path of the file under the mount path where the secret value for\nthis version will be fetched and made available. For example, setting the\nmount_path as '/etc/secrets' and path as `secret_foo` would mount the\nsecret value file at `/etc/secrets/secret_foo`.\n\n`string path = 2;`\n\n### getVersion()\n\n public abstract String getVersion()\n\nVersion of the secret (version number or the string 'latest'). It is\npreferable to use `latest` version with secret volumes as secret value\nchanges are reflected immediately.\n\n`string version = 1;`\n\n### getVersionBytes()\n\n public abstract ByteString getVersionBytes()\n\nVersion of the secret (version number or the string 'latest'). It is\npreferable to use `latest` version with secret volumes as secret value\nchanges are reflected immediately.\n\n`string version = 1;`"]]