Class TaskSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
com.google.cloud.batch.v1alpha.TaskSpec.Builder
All Implemented Interfaces:
TaskSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TaskSpec

public static final class TaskSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder> implements TaskSpecOrBuilder
 Spec of a task
 
Protobuf type google.cloud.batch.v1alpha.TaskSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • clear

      public TaskSpec.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • getDefaultInstanceForType

      public TaskSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TaskSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TaskSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TaskSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskSpec.Builder>
    • mergeFrom

      public TaskSpec.Builder mergeFrom(TaskSpec other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
    • mergeFrom

      public TaskSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskSpec.Builder>
      Throws:
      IOException
    • getRunnablesList

      public List<Runnable> getRunnablesList()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
      Specified by:
      getRunnablesList in interface TaskSpecOrBuilder
    • getRunnablesCount

      public int getRunnablesCount()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
      Specified by:
      getRunnablesCount in interface TaskSpecOrBuilder
    • getRunnables

      public Runnable getRunnables(int index)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
      Specified by:
      getRunnables in interface TaskSpecOrBuilder
    • setRunnables

      public TaskSpec.Builder setRunnables(int index, Runnable value)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • setRunnables

      public TaskSpec.Builder setRunnables(int index, Runnable.Builder builderForValue)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addRunnables

      public TaskSpec.Builder addRunnables(Runnable value)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addRunnables

      public TaskSpec.Builder addRunnables(int index, Runnable value)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addRunnables

      public TaskSpec.Builder addRunnables(Runnable.Builder builderForValue)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addRunnables

      public TaskSpec.Builder addRunnables(int index, Runnable.Builder builderForValue)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addAllRunnables

      public TaskSpec.Builder addAllRunnables(Iterable<? extends Runnable> values)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • clearRunnables

      public TaskSpec.Builder clearRunnables()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • removeRunnables

      public TaskSpec.Builder removeRunnables(int index)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • getRunnablesBuilder

      public Runnable.Builder getRunnablesBuilder(int index)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • getRunnablesOrBuilder

      public RunnableOrBuilder getRunnablesOrBuilder(int index)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
      Specified by:
      getRunnablesOrBuilder in interface TaskSpecOrBuilder
    • getRunnablesOrBuilderList

      public List<? extends RunnableOrBuilder> getRunnablesOrBuilderList()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
      Specified by:
      getRunnablesOrBuilderList in interface TaskSpecOrBuilder
    • addRunnablesBuilder

      public Runnable.Builder addRunnablesBuilder()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • addRunnablesBuilder

      public Runnable.Builder addRunnablesBuilder(int index)
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • getRunnablesBuilderList

      public List<Runnable.Builder> getRunnablesBuilderList()
       Required. The sequence of one or more runnables (executable scripts,
       executable containers, and/or barriers) for each task in this task group to
       run. Each task runs this list of runnables in order. For a task to succeed,
       all of its script and container runnables each must meet at least one of
       the following conditions:
      
       + The runnable exited with a zero status.
       + The runnable didn't finish, but you enabled its `background` subfield.
       + The runnable exited with a non-zero status, but you enabled its
       `ignore_exit_status` subfield.
       
      repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
    • hasComputeResource

      public boolean hasComputeResource()
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
      Specified by:
      hasComputeResource in interface TaskSpecOrBuilder
      Returns:
      Whether the computeResource field is set.
    • getComputeResource

      public ComputeResource getComputeResource()
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
      Specified by:
      getComputeResource in interface TaskSpecOrBuilder
      Returns:
      The computeResource.
    • setComputeResource

      public TaskSpec.Builder setComputeResource(ComputeResource value)
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
    • setComputeResource

      public TaskSpec.Builder setComputeResource(ComputeResource.Builder builderForValue)
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
    • mergeComputeResource

      public TaskSpec.Builder mergeComputeResource(ComputeResource value)
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
    • clearComputeResource

      public TaskSpec.Builder clearComputeResource()
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
    • getComputeResourceBuilder

      public ComputeResource.Builder getComputeResourceBuilder()
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
    • getComputeResourceOrBuilder

      public ComputeResourceOrBuilder getComputeResourceOrBuilder()
       ComputeResource requirements.
       
      .google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
      Specified by:
      getComputeResourceOrBuilder in interface TaskSpecOrBuilder
    • hasMaxRunDuration

      public boolean hasMaxRunDuration()
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
      Specified by:
      hasMaxRunDuration in interface TaskSpecOrBuilder
      Returns:
      Whether the maxRunDuration field is set.
    • getMaxRunDuration

      public com.google.protobuf.Duration getMaxRunDuration()
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
      Specified by:
      getMaxRunDuration in interface TaskSpecOrBuilder
      Returns:
      The maxRunDuration.
    • setMaxRunDuration

      public TaskSpec.Builder setMaxRunDuration(com.google.protobuf.Duration value)
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
    • setMaxRunDuration

      public TaskSpec.Builder setMaxRunDuration(com.google.protobuf.Duration.Builder builderForValue)
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
    • mergeMaxRunDuration

      public TaskSpec.Builder mergeMaxRunDuration(com.google.protobuf.Duration value)
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
    • clearMaxRunDuration

      public TaskSpec.Builder clearMaxRunDuration()
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
    • getMaxRunDurationBuilder

      public com.google.protobuf.Duration.Builder getMaxRunDurationBuilder()
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
    • getMaxRunDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getMaxRunDurationOrBuilder()
       Maximum duration the task should run before being automatically retried
       (if enabled) or automatically failed. Format the value of this field
       as a time limit in seconds followed by `s`&mdash;for example, `3600s`
       for 1 hour. The field accepts any value between 0 and the maximum listed
       for the `Duration` field type at
       https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
       the actual maximum run time for a job will be limited to the maximum run
       time for a job listed at
       https://cloud.google.com/batch/quotas#max-job-duration.
       
      .google.protobuf.Duration max_run_duration = 4;
      Specified by:
      getMaxRunDurationOrBuilder in interface TaskSpecOrBuilder
    • getMaxRetryCount

      public int getMaxRetryCount()
       Maximum number of retries on failures.
       The default, 0, which means never retry.
       The valid value range is [0, 10].
       
      int32 max_retry_count = 5;
      Specified by:
      getMaxRetryCount in interface TaskSpecOrBuilder
      Returns:
      The maxRetryCount.
    • setMaxRetryCount

      public TaskSpec.Builder setMaxRetryCount(int value)
       Maximum number of retries on failures.
       The default, 0, which means never retry.
       The valid value range is [0, 10].
       
      int32 max_retry_count = 5;
      Parameters:
      value - The maxRetryCount to set.
      Returns:
      This builder for chaining.
    • clearMaxRetryCount

      public TaskSpec.Builder clearMaxRetryCount()
       Maximum number of retries on failures.
       The default, 0, which means never retry.
       The valid value range is [0, 10].
       
      int32 max_retry_count = 5;
      Returns:
      This builder for chaining.
    • getLifecyclePoliciesList

      public List<LifecyclePolicy> getLifecyclePoliciesList()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
      Specified by:
      getLifecyclePoliciesList in interface TaskSpecOrBuilder
    • getLifecyclePoliciesCount

      public int getLifecyclePoliciesCount()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
      Specified by:
      getLifecyclePoliciesCount in interface TaskSpecOrBuilder
    • getLifecyclePolicies

      public LifecyclePolicy getLifecyclePolicies(int index)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
      Specified by:
      getLifecyclePolicies in interface TaskSpecOrBuilder
    • setLifecyclePolicies

      public TaskSpec.Builder setLifecyclePolicies(int index, LifecyclePolicy value)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • setLifecyclePolicies

      public TaskSpec.Builder setLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addLifecyclePolicies

      public TaskSpec.Builder addLifecyclePolicies(LifecyclePolicy value)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addLifecyclePolicies

      public TaskSpec.Builder addLifecyclePolicies(int index, LifecyclePolicy value)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addLifecyclePolicies

      public TaskSpec.Builder addLifecyclePolicies(LifecyclePolicy.Builder builderForValue)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addLifecyclePolicies

      public TaskSpec.Builder addLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addAllLifecyclePolicies

      public TaskSpec.Builder addAllLifecyclePolicies(Iterable<? extends LifecyclePolicy> values)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • clearLifecyclePolicies

      public TaskSpec.Builder clearLifecyclePolicies()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • removeLifecyclePolicies

      public TaskSpec.Builder removeLifecyclePolicies(int index)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • getLifecyclePoliciesBuilder

      public LifecyclePolicy.Builder getLifecyclePoliciesBuilder(int index)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • getLifecyclePoliciesOrBuilder

      public LifecyclePolicyOrBuilder getLifecyclePoliciesOrBuilder(int index)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
      Specified by:
      getLifecyclePoliciesOrBuilder in interface TaskSpecOrBuilder
    • getLifecyclePoliciesOrBuilderList

      public List<? extends LifecyclePolicyOrBuilder> getLifecyclePoliciesOrBuilderList()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
      Specified by:
      getLifecyclePoliciesOrBuilderList in interface TaskSpecOrBuilder
    • addLifecyclePoliciesBuilder

      public LifecyclePolicy.Builder addLifecyclePoliciesBuilder()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • addLifecyclePoliciesBuilder

      public LifecyclePolicy.Builder addLifecyclePoliciesBuilder(int index)
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • getLifecyclePoliciesBuilderList

      public List<LifecyclePolicy.Builder> getLifecyclePoliciesBuilderList()
       Lifecycle management schema when any task in a task group is failed.
       Currently we only support one lifecycle policy.
       When the lifecycle policy condition is met,
       the action in the policy will execute.
       If task execution result does not meet with the defined lifecycle
       policy, we consider it as the default policy.
       Default policy means if the exit code is 0, exit task.
       If task ends with non-zero exit code, retry the task with max_retry_count.
       
      repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;
    • getEnvironmentsCount

      @Deprecated public int getEnvironmentsCount()
      Deprecated.
      Description copied from interface: TaskSpecOrBuilder
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
      Specified by:
      getEnvironmentsCount in interface TaskSpecOrBuilder
    • containsEnvironments

      @Deprecated public boolean containsEnvironments(String key)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
      Specified by:
      containsEnvironments in interface TaskSpecOrBuilder
    • getEnvironments

      @Deprecated public Map<String,String> getEnvironments()
      Deprecated.
      Specified by:
      getEnvironments in interface TaskSpecOrBuilder
    • getEnvironmentsMap

      @Deprecated public Map<String,String> getEnvironmentsMap()
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
      Specified by:
      getEnvironmentsMap in interface TaskSpecOrBuilder
    • getEnvironmentsOrDefault

      @Deprecated public String getEnvironmentsOrDefault(String key, String defaultValue)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
      Specified by:
      getEnvironmentsOrDefault in interface TaskSpecOrBuilder
    • getEnvironmentsOrThrow

      @Deprecated public String getEnvironmentsOrThrow(String key)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
      Specified by:
      getEnvironmentsOrThrow in interface TaskSpecOrBuilder
    • clearEnvironments

      @Deprecated public TaskSpec.Builder clearEnvironments()
      Deprecated.
    • removeEnvironments

      @Deprecated public TaskSpec.Builder removeEnvironments(String key)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
    • getMutableEnvironments

      @Deprecated public Map<String,String> getMutableEnvironments()
      Deprecated.
      Use alternate mutation accessors instead.
    • putEnvironments

      @Deprecated public TaskSpec.Builder putEnvironments(String key, String value)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
    • putAllEnvironments

      @Deprecated public TaskSpec.Builder putAllEnvironments(Map<String,String> values)
      Deprecated.
       Deprecated: please use environment(non-plural) instead.
       
      map<string, string> environments = 6 [deprecated = true];
    • getVolumesList

      public List<Volume> getVolumesList()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
      Specified by:
      getVolumesList in interface TaskSpecOrBuilder
    • getVolumesCount

      public int getVolumesCount()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
      Specified by:
      getVolumesCount in interface TaskSpecOrBuilder
    • getVolumes

      public Volume getVolumes(int index)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
      Specified by:
      getVolumes in interface TaskSpecOrBuilder
    • setVolumes

      public TaskSpec.Builder setVolumes(int index, Volume value)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • setVolumes

      public TaskSpec.Builder setVolumes(int index, Volume.Builder builderForValue)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addVolumes

      public TaskSpec.Builder addVolumes(Volume value)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addVolumes

      public TaskSpec.Builder addVolumes(int index, Volume value)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addVolumes

      public TaskSpec.Builder addVolumes(Volume.Builder builderForValue)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addVolumes

      public TaskSpec.Builder addVolumes(int index, Volume.Builder builderForValue)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addAllVolumes

      public TaskSpec.Builder addAllVolumes(Iterable<? extends Volume> values)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • clearVolumes

      public TaskSpec.Builder clearVolumes()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • removeVolumes

      public TaskSpec.Builder removeVolumes(int index)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • getVolumesBuilder

      public Volume.Builder getVolumesBuilder(int index)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • getVolumesOrBuilder

      public VolumeOrBuilder getVolumesOrBuilder(int index)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
      Specified by:
      getVolumesOrBuilder in interface TaskSpecOrBuilder
    • getVolumesOrBuilderList

      public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
      Specified by:
      getVolumesOrBuilderList in interface TaskSpecOrBuilder
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • addVolumesBuilder

      public Volume.Builder addVolumesBuilder(int index)
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • getVolumesBuilderList

      public List<Volume.Builder> getVolumesBuilderList()
       Volumes to mount before running Tasks using this TaskSpec.
       
      repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
    • hasEnvironment

      public boolean hasEnvironment()
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
      Specified by:
      hasEnvironment in interface TaskSpecOrBuilder
      Returns:
      Whether the environment field is set.
    • getEnvironment

      public Environment getEnvironment()
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
      Specified by:
      getEnvironment in interface TaskSpecOrBuilder
      Returns:
      The environment.
    • setEnvironment

      public TaskSpec.Builder setEnvironment(Environment value)
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
    • setEnvironment

      public TaskSpec.Builder setEnvironment(Environment.Builder builderForValue)
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
    • mergeEnvironment

      public TaskSpec.Builder mergeEnvironment(Environment value)
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
    • clearEnvironment

      public TaskSpec.Builder clearEnvironment()
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
    • getEnvironmentBuilder

      public Environment.Builder getEnvironmentBuilder()
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
    • getEnvironmentOrBuilder

      public EnvironmentOrBuilder getEnvironmentOrBuilder()
       Environment variables to set before running the Task.
       
      .google.cloud.batch.v1alpha.Environment environment = 10;
      Specified by:
      getEnvironmentOrBuilder in interface TaskSpecOrBuilder