Interface RunnableOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Runnable, Runnable.Builder

    public interface RunnableOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasContainer

        boolean hasContainer()
         Container runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Container container = 1;
        Returns:
        Whether the container field is set.
      • getContainer

        Runnable.Container getContainer()
         Container runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Container container = 1;
        Returns:
        The container.
      • getContainerOrBuilder

        Runnable.ContainerOrBuilder getContainerOrBuilder()
         Container runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Container container = 1;
      • hasScript

        boolean hasScript()
         Script runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Script script = 2;
        Returns:
        Whether the script field is set.
      • getScript

        Runnable.Script getScript()
         Script runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Script script = 2;
        Returns:
        The script.
      • getScriptOrBuilder

        Runnable.ScriptOrBuilder getScriptOrBuilder()
         Script runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Script script = 2;
      • hasBarrier

        boolean hasBarrier()
         Barrier runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
        Returns:
        Whether the barrier field is set.
      • getBarrier

        Runnable.Barrier getBarrier()
         Barrier runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
        Returns:
        The barrier.
      • getBarrierOrBuilder

        Runnable.BarrierOrBuilder getBarrierOrBuilder()
         Barrier runnable.
         
        .google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
      • getDisplayName

        String getDisplayName()
         Optional. DisplayName is an optional field that can be provided by the
         caller. If provided, it will be used in logs and other outputs to identify
         the script, making it easier for users to understand the logs. If not
         provided the index of the runnable will be used for outputs.
         
        string display_name = 10 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The displayName.
      • getDisplayNameBytes

        com.google.protobuf.ByteString getDisplayNameBytes()
         Optional. DisplayName is an optional field that can be provided by the
         caller. If provided, it will be used in logs and other outputs to identify
         the script, making it easier for users to understand the logs. If not
         provided the index of the runnable will be used for outputs.
         
        string display_name = 10 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The bytes for displayName.
      • getIgnoreExitStatus

        boolean getIgnoreExitStatus()
         Normally, a non-zero exit status causes the Task to fail. This flag allows
         execution of other Runnables to continue instead.
         
        bool ignore_exit_status = 3;
        Returns:
        The ignoreExitStatus.
      • getBackground

        boolean getBackground()
         This flag allows a Runnable to continue running in the background while the
         Task executes subsequent Runnables. This is useful to provide services to
         other Runnables (or to provide debugging support tools like SSH servers).
         
        bool background = 4;
        Returns:
        The background.
      • getAlwaysRun

        boolean getAlwaysRun()
         By default, after a Runnable fails, no further Runnable are executed. This
         flag indicates that this Runnable must be run even if the Task has already
         failed. This is useful for Runnables that copy output files off of the VM
         or for debugging.
        
         The always_run flag does not override the Task's overall max_run_duration.
         If the max_run_duration has expired then no further Runnables will execute,
         not even always_run Runnables.
         
        bool always_run = 5;
        Returns:
        The alwaysRun.
      • hasEnvironment

        boolean hasEnvironment()
         Environment variables for this Runnable (overrides variables set for the
         whole Task or TaskGroup).
         
        .google.cloud.batch.v1alpha.Environment environment = 7;
        Returns:
        Whether the environment field is set.
      • getEnvironment

        Environment getEnvironment()
         Environment variables for this Runnable (overrides variables set for the
         whole Task or TaskGroup).
         
        .google.cloud.batch.v1alpha.Environment environment = 7;
        Returns:
        The environment.
      • getEnvironmentOrBuilder

        EnvironmentOrBuilder getEnvironmentOrBuilder()
         Environment variables for this Runnable (overrides variables set for the
         whole Task or TaskGroup).
         
        .google.cloud.batch.v1alpha.Environment environment = 7;
      • hasTimeout

        boolean hasTimeout()
         Timeout for this Runnable.
         
        .google.protobuf.Duration timeout = 8;
        Returns:
        Whether the timeout field is set.
      • getTimeout

        com.google.protobuf.Duration getTimeout()
         Timeout for this Runnable.
         
        .google.protobuf.Duration timeout = 8;
        Returns:
        The timeout.
      • getTimeoutOrBuilder

        com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         Timeout for this Runnable.
         
        .google.protobuf.Duration timeout = 8;
      • getLabelsCount

        int getLabelsCount()
         Labels for this Runnable.
         
        map<string, string> labels = 9;
      • containsLabels

        boolean containsLabels​(String key)
         Labels for this Runnable.
         
        map<string, string> labels = 9;
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Labels for this Runnable.
         
        map<string, string> labels = 9;
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Labels for this Runnable.
         
        map<string, string> labels = 9;
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Labels for this Runnable.
         
        map<string, string> labels = 9;