Class TaskExecution.Builder

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

public static final class TaskExecution.Builder extends com.google.protobuf.GeneratedMessage.Builder<TaskExecution.Builder> implements TaskExecutionOrBuilder
 This Task Execution field includes detail information for
 task execution procedures, based on StatusEvent types.
 
Protobuf type google.cloud.batch.v1alpha.TaskExecution
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The exit code of a finished task.
    Optional.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    The exit code of a finished task.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setExitCode(int value)
    The exit code of a finished task.
    Optional.
    setStderrSnippetBytes(com.google.protobuf.ByteString value)
    Optional.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getDescriptor

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

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

      public TaskExecution.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<TaskExecution.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<TaskExecution.Builder>
    • getDefaultInstanceForType

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

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

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

      public TaskExecution.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<TaskExecution.Builder>
    • mergeFrom

      public TaskExecution.Builder mergeFrom(TaskExecution other)
    • isInitialized

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

      public TaskExecution.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<TaskExecution.Builder>
      Throws:
      IOException
    • getExitCode

      public int getExitCode()
       The exit code of a finished task.
      
       If the task succeeded, the exit code will be 0. If the task failed but not
       due to the following reasons, the exit code will be 50000.
      
       Otherwise, it can be from different sources:
       * Batch known failures:
       https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
       * Batch runnable execution failures; you can rely on Batch logs to further
       diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
       there are multiple runnables failures, Batch only exposes the first error.
       
      int32 exit_code = 1;
      Specified by:
      getExitCode in interface TaskExecutionOrBuilder
      Returns:
      The exitCode.
    • setExitCode

      public TaskExecution.Builder setExitCode(int value)
       The exit code of a finished task.
      
       If the task succeeded, the exit code will be 0. If the task failed but not
       due to the following reasons, the exit code will be 50000.
      
       Otherwise, it can be from different sources:
       * Batch known failures:
       https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
       * Batch runnable execution failures; you can rely on Batch logs to further
       diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
       there are multiple runnables failures, Batch only exposes the first error.
       
      int32 exit_code = 1;
      Parameters:
      value - The exitCode to set.
      Returns:
      This builder for chaining.
    • clearExitCode

      public TaskExecution.Builder clearExitCode()
       The exit code of a finished task.
      
       If the task succeeded, the exit code will be 0. If the task failed but not
       due to the following reasons, the exit code will be 50000.
      
       Otherwise, it can be from different sources:
       * Batch known failures:
       https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
       * Batch runnable execution failures; you can rely on Batch logs to further
       diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
       there are multiple runnables failures, Batch only exposes the first error.
       
      int32 exit_code = 1;
      Returns:
      This builder for chaining.
    • getStderrSnippet

      public String getStderrSnippet()
       Optional. The tail end of any content written to standard error by the task
       execution. This field will be populated only when the execution failed.
       
      string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStderrSnippet in interface TaskExecutionOrBuilder
      Returns:
      The stderrSnippet.
    • getStderrSnippetBytes

      public com.google.protobuf.ByteString getStderrSnippetBytes()
       Optional. The tail end of any content written to standard error by the task
       execution. This field will be populated only when the execution failed.
       
      string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStderrSnippetBytes in interface TaskExecutionOrBuilder
      Returns:
      The bytes for stderrSnippet.
    • setStderrSnippet

      public TaskExecution.Builder setStderrSnippet(String value)
       Optional. The tail end of any content written to standard error by the task
       execution. This field will be populated only when the execution failed.
       
      string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stderrSnippet to set.
      Returns:
      This builder for chaining.
    • clearStderrSnippet

      public TaskExecution.Builder clearStderrSnippet()
       Optional. The tail end of any content written to standard error by the task
       execution. This field will be populated only when the execution failed.
       
      string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStderrSnippetBytes

      public TaskExecution.Builder setStderrSnippetBytes(com.google.protobuf.ByteString value)
       Optional. The tail end of any content written to standard error by the task
       execution. This field will be populated only when the execution failed.
       
      string stderr_snippet = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for stderrSnippet to set.
      Returns:
      This builder for chaining.