Class FailureDetails.Spawn.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FailureDetails.Spawn.Builder>
com.google.devtools.build.lib.server.FailureDetails.Spawn.Builder
All Implemented Interfaces:
FailureDetails.SpawnOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FailureDetails.Spawn

public static final class FailureDetails.Spawn.Builder extends com.google.protobuf.GeneratedMessage.Builder<FailureDetails.Spawn.Builder> implements FailureDetails.SpawnOrBuilder
Protobuf type failure_details.Spawn
  • 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<FailureDetails.Spawn.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<FailureDetails.Spawn.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<FailureDetails.Spawn.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public FailureDetails.Spawn.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<FailureDetails.Spawn.Builder>
      Throws:
      IOException
    • getCodeValue

      public int getCodeValue()
      .failure_details.Spawn.Code code = 1;
      Specified by:
      getCodeValue in interface FailureDetails.SpawnOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public FailureDetails.Spawn.Builder setCodeValue(int value)
      .failure_details.Spawn.Code code = 1;
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public FailureDetails.Spawn.Code getCode()
      .failure_details.Spawn.Code code = 1;
      Specified by:
      getCode in interface FailureDetails.SpawnOrBuilder
      Returns:
      The code.
    • setCode

      .failure_details.Spawn.Code code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public FailureDetails.Spawn.Builder clearCode()
      .failure_details.Spawn.Code code = 1;
      Returns:
      This builder for chaining.
    • getCatastrophic

      public boolean getCatastrophic()
       For Codes describing generic failure to spawn (eg. EXECUTION_FAILED and
       EXECUTION_DENIED) the `catastrophic` field may be set to true indicating a
       failure that immediately terminated the entire build tool.
       
      bool catastrophic = 2;
      Specified by:
      getCatastrophic in interface FailureDetails.SpawnOrBuilder
      Returns:
      The catastrophic.
    • setCatastrophic

      public FailureDetails.Spawn.Builder setCatastrophic(boolean value)
       For Codes describing generic failure to spawn (eg. EXECUTION_FAILED and
       EXECUTION_DENIED) the `catastrophic` field may be set to true indicating a
       failure that immediately terminated the entire build tool.
       
      bool catastrophic = 2;
      Parameters:
      value - The catastrophic to set.
      Returns:
      This builder for chaining.
    • clearCatastrophic

      public FailureDetails.Spawn.Builder clearCatastrophic()
       For Codes describing generic failure to spawn (eg. EXECUTION_FAILED and
       EXECUTION_DENIED) the `catastrophic` field may be set to true indicating a
       failure that immediately terminated the entire build tool.
       
      bool catastrophic = 2;
      Returns:
      This builder for chaining.
    • getSpawnExitCode

      public int getSpawnExitCode()
       If Code is NON_ZERO_EXIT, the `spawn_exit_code` field may be set to the
       non-zero exit code returned by the spawned process to the OS.
      
       NOTE: This field must not be confused with the build tool's overall
       exit code.
       
      int32 spawn_exit_code = 3;
      Specified by:
      getSpawnExitCode in interface FailureDetails.SpawnOrBuilder
      Returns:
      The spawnExitCode.
    • setSpawnExitCode

      public FailureDetails.Spawn.Builder setSpawnExitCode(int value)
       If Code is NON_ZERO_EXIT, the `spawn_exit_code` field may be set to the
       non-zero exit code returned by the spawned process to the OS.
      
       NOTE: This field must not be confused with the build tool's overall
       exit code.
       
      int32 spawn_exit_code = 3;
      Parameters:
      value - The spawnExitCode to set.
      Returns:
      This builder for chaining.
    • clearSpawnExitCode

      public FailureDetails.Spawn.Builder clearSpawnExitCode()
       If Code is NON_ZERO_EXIT, the `spawn_exit_code` field may be set to the
       non-zero exit code returned by the spawned process to the OS.
      
       NOTE: This field must not be confused with the build tool's overall
       exit code.
       
      int32 spawn_exit_code = 3;
      Returns:
      This builder for chaining.