Interface OSPolicy.Resource.ExecResource.ExecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
OSPolicy.Resource.ExecResource.Exec, OSPolicy.Resource.ExecResource.Exec.Builder
Enclosing class:
OSPolicy.Resource.ExecResource

public static interface OSPolicy.Resource.ExecResource.ExecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasFile

      boolean hasFile()
       A remote or local file.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;
      Returns:
      Whether the file field is set.
    • getFile

       A remote or local file.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;
      Returns:
      The file.
    • getFileOrBuilder

       A remote or local file.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;
    • hasScript

      boolean hasScript()
       An inline script.
       The size of the script is limited to 1024 characters.
       
      string script = 2;
      Returns:
      Whether the script field is set.
    • getScript

      String getScript()
       An inline script.
       The size of the script is limited to 1024 characters.
       
      string script = 2;
      Returns:
      The script.
    • getScriptBytes

      com.google.protobuf.ByteString getScriptBytes()
       An inline script.
       The size of the script is limited to 1024 characters.
       
      string script = 2;
      Returns:
      The bytes for script.
    • getArgsList

      List<String> getArgsList()
       Optional arguments to pass to the source during execution.
       
      repeated string args = 3;
      Returns:
      A list containing the args.
    • getArgsCount

      int getArgsCount()
       Optional arguments to pass to the source during execution.
       
      repeated string args = 3;
      Returns:
      The count of args.
    • getArgs

      String getArgs(int index)
       Optional arguments to pass to the source during execution.
       
      repeated string args = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The args at the given index.
    • getArgsBytes

      com.google.protobuf.ByteString getArgsBytes(int index)
       Optional arguments to pass to the source during execution.
       
      repeated string args = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • getInterpreterValue

      int getInterpreterValue()
       Required. The script interpreter to use.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for interpreter.
    • getInterpreter

       Required. The script interpreter to use.
       
      .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The interpreter.
    • getOutputFilePath

      String getOutputFilePath()
       Only recorded for enforce Exec.
       Path to an output file (that is created by this Exec) whose
       content will be recorded in OSPolicyResourceCompliance after a
       successful run. Absence or failure to read this file will result in
       this ExecResource being non-compliant. Output file size is limited to
       100K bytes.
       
      string output_file_path = 5;
      Returns:
      The outputFilePath.
    • getOutputFilePathBytes

      com.google.protobuf.ByteString getOutputFilePathBytes()
       Only recorded for enforce Exec.
       Path to an output file (that is created by this Exec) whose
       content will be recorded in OSPolicyResourceCompliance after a
       successful run. Absence or failure to read this file will result in
       this ExecResource being non-compliant. Output file size is limited to
       100K bytes.
       
      string output_file_path = 5;
      Returns:
      The bytes for outputFilePath.
    • getSourceCase