Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>(also known as
shebang line)) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash should be the first line of the file. To execute the
script usingPython3, #!/usr/bin/env python3 should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh.
Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>(also known as
shebang line)) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash should be the first line of the file. To execute the
script usingPython3, #!/usr/bin/env python3 should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh.
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n should be added. To execute the script usingPython3,
#!/usr/bin/env python3\n should be added.) Otherwise, the script will
by default be excuted by /bin/sh.
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n should be added. To execute the script usingPython3,
#!/usr/bin/env python3\n should be added.) Otherwise, the script will
by default be excuted by /bin/sh.
Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>(also known as
shebang line)) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash should be the first line of the file. To execute the
script usingPython3, #!/usr/bin/env python3 should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh.
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n should be added. To execute the script usingPython3,
#!/usr/bin/env python3\n should be added.) Otherwise, the script will
by default be excuted by /bin/sh.
[[["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 Runnable.ScriptOrBuilder (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.Runnable.ScriptOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.Runnable.ScriptOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.Runnable.ScriptOrBuilder) \n\n public static interface Runnable.ScriptOrBuilder 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### getCommandCase()\n\n public abstract Runnable.Script.CommandCase getCommandCase()\n\n### getPath()\n\n public abstract String getPath()\n\nScript file path on the host VM.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e`(also known as\n[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the\nfirst line of the file.(For example, to execute the script using bash,\n`#!/bin/bash` should be the first line of the file. To execute the\nscript using`Python3`, `#!/usr/bin/env python3` should be the first\nline of the file.) Otherwise, the file will by default be excuted by\n`/bin/sh`.\n\n`string path = 1;`\n\n### getPathBytes()\n\n public abstract ByteString getPathBytes()\n\nScript file path on the host VM.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e`(also known as\n[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the\nfirst line of the file.(For example, to execute the script using bash,\n`#!/bin/bash` should be the first line of the file. To execute the\nscript using`Python3`, `#!/usr/bin/env python3` should be the first\nline of the file.) Otherwise, the file will by default be excuted by\n`/bin/sh`.\n\n`string path = 1;`\n\n### getText()\n\n public abstract String getText()\n\nShell script text.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e\\n` at the\nbeginning of the text.(For example, to execute the script using bash,\n`#!/bin/bash\\n` should be added. To execute the script using`Python3`,\n`#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will\nby default be excuted by `/bin/sh`.\n\n`string text = 2;`\n\n### getTextBytes()\n\n public abstract ByteString getTextBytes()\n\nShell script text.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e\\n` at the\nbeginning of the text.(For example, to execute the script using bash,\n`#!/bin/bash\\n` should be added. To execute the script using`Python3`,\n`#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will\nby default be excuted by `/bin/sh`.\n\n`string text = 2;`\n\n### hasPath()\n\n public abstract boolean hasPath()\n\nScript file path on the host VM.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e`(also known as\n[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the\nfirst line of the file.(For example, to execute the script using bash,\n`#!/bin/bash` should be the first line of the file. To execute the\nscript using`Python3`, `#!/usr/bin/env python3` should be the first\nline of the file.) Otherwise, the file will by default be excuted by\n`/bin/sh`.\n\n`string path = 1;`\n\n### hasText()\n\n public abstract boolean hasText()\n\nShell script text.\nTo specify an interpreter, please add a `#!\u003cinterpreter\u003e\\n` at the\nbeginning of the text.(For example, to execute the script using bash,\n`#!/bin/bash\\n` should be added. To execute the script using`Python3`,\n`#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will\nby default be excuted by `/bin/sh`.\n\n`string text = 2;`"]]