Interface Runnable.ScriptOrBuilder (0.55.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()

The path to a script file that is accessible from the host VM(s).

Unless the script file supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line as the first line of the file. For example, to execute the script using bash, include #!/bin/bash as the first line of the file. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3 as the first line of the file.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

public abstract ByteString getPathBytes()

The path to a script file that is accessible from the host VM(s).

Unless the script file supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line as the first line of the file. For example, to execute the script using bash, include #!/bin/bash as the first line of the file. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3 as the first line of the file.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getText()

public abstract String getText()

The text for a script.

Unless the script text supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line at the beginning of the text. For example, to execute the script using bash, include #!/bin/bash\n at the beginning of the text. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3\n at the beginning of the text.

string text = 2;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

The text for a script.

Unless the script text supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line at the beginning of the text. For example, to execute the script using bash, include #!/bin/bash\n at the beginning of the text. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3\n at the beginning of the text.

string text = 2;

Returns
Type Description
ByteString

The bytes for text.

hasPath()

public abstract boolean hasPath()

The path to a script file that is accessible from the host VM(s).

Unless the script file supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line as the first line of the file. For example, to execute the script using bash, include #!/bin/bash as the first line of the file. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3 as the first line of the file.

string path = 1;

Returns
Type Description
boolean

Whether the path field is set.

hasText()

public abstract boolean hasText()

The text for a script.

Unless the script text supports the default #!/bin/sh shell interpreter, you must specify an interpreter by including a shebang line at the beginning of the text. For example, to execute the script using bash, include #!/bin/bash\n at the beginning of the text. Alternatively, to execute the script using Python3, include #!/usr/bin/env python3\n at the beginning of the text.

string text = 2;

Returns
Type Description
boolean

Whether the text field is set.