Interface Runnable.ScriptOrBuilder (0.15.0)

public static interface Runnable.ScriptOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCommandCase()

public abstract Runnable.Script.CommandCase getCommandCase()
Returns
Type Description
Runnable.Script.CommandCase

getPath()

public abstract String getPath()

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.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

public abstract ByteString getPathBytes()

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.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getText()

public abstract String getText()

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.

string text = 2;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

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.

string text = 2;

Returns
Type Description
ByteString

The bytes for text.

hasPath()

public abstract boolean hasPath()

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.

string path = 1;

Returns
Type Description
boolean

Whether the path field is set.

hasText()

public abstract boolean hasText()

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.

string text = 2;

Returns
Type Description
boolean

Whether the text field is set.