Interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GuestPolicies.SoftwareRecipe.Step.RunScript, GuestPolicies.SoftwareRecipe.Step.RunScript.Builder
Enclosing class:
GuestPolicies.SoftwareRecipe.Step

public static interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return codes that indicate that the software installed or updated successfully.
    int
    Return codes that indicate that the software installed or updated successfully.
    Return codes that indicate that the software installed or updated successfully.
    The script interpreter to use to run the script.
    int
    The script interpreter to use to run the script.
    Required.
    com.google.protobuf.ByteString
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getScript

      String getScript()
       Required. The shell script to be executed.
       
      string script = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The script.
    • getScriptBytes

      com.google.protobuf.ByteString getScriptBytes()
       Required. The shell script to be executed.
       
      string script = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for script.
    • getAllowedExitCodesList

      List<Integer> getAllowedExitCodesList()
       Return codes that indicate that the software installed or updated
       successfully. Behaviour defaults to [0]
       
      repeated int32 allowed_exit_codes = 2;
      Returns:
      A list containing the allowedExitCodes.
    • getAllowedExitCodesCount

      int getAllowedExitCodesCount()
       Return codes that indicate that the software installed or updated
       successfully. Behaviour defaults to [0]
       
      repeated int32 allowed_exit_codes = 2;
      Returns:
      The count of allowedExitCodes.
    • getAllowedExitCodes

      int getAllowedExitCodes(int index)
       Return codes that indicate that the software installed or updated
       successfully. Behaviour defaults to [0]
       
      repeated int32 allowed_exit_codes = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedExitCodes at the given index.
    • getInterpreterValue

      int getInterpreterValue()
       The script interpreter to use to run the script. If no interpreter is
       specified the script is executed directly, which likely
       only succeed for scripts with
       [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
       
      .google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;
      Returns:
      The enum numeric value on the wire for interpreter.
    • getInterpreter

       The script interpreter to use to run the script. If no interpreter is
       specified the script is executed directly, which likely
       only succeed for scripts with
       [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
       
      .google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;
      Returns:
      The interpreter.