Class BuildStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildStatus.Builder>
com.google.devtools.build.v1.BuildStatus.Builder
All Implemented Interfaces:
BuildStatusOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuildStatus

public static final class BuildStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuildStatus.Builder> implements BuildStatusOrBuilder
 Status used for both invocation attempt and overall build completion.
 
Protobuf type google.devtools.build.v1.BuildStatus
  • 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<BuildStatus.Builder>
    • clear

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

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

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

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

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

      public BuildStatus.Builder mergeFrom(BuildStatus other)
    • isInitialized

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

      public BuildStatus.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<BuildStatus.Builder>
      Throws:
      IOException
    • getResultValue

      public int getResultValue()
       The end result.
       
      .google.devtools.build.v1.BuildStatus.Result result = 1;
      Specified by:
      getResultValue in interface BuildStatusOrBuilder
      Returns:
      The enum numeric value on the wire for result.
    • setResultValue

      public BuildStatus.Builder setResultValue(int value)
       The end result.
       
      .google.devtools.build.v1.BuildStatus.Result result = 1;
      Parameters:
      value - The enum numeric value on the wire for result to set.
      Returns:
      This builder for chaining.
    • getResult

      public BuildStatus.Result getResult()
       The end result.
       
      .google.devtools.build.v1.BuildStatus.Result result = 1;
      Specified by:
      getResult in interface BuildStatusOrBuilder
      Returns:
      The result.
    • setResult

      public BuildStatus.Builder setResult(BuildStatus.Result value)
       The end result.
       
      .google.devtools.build.v1.BuildStatus.Result result = 1;
      Parameters:
      value - The result to set.
      Returns:
      This builder for chaining.
    • clearResult

      public BuildStatus.Builder clearResult()
       The end result.
       
      .google.devtools.build.v1.BuildStatus.Result result = 1;
      Returns:
      This builder for chaining.
    • getFinalInvocationId

      public String getFinalInvocationId()
       Final invocation ID of the build, if there was one.
       This field is only set on a status in BuildFinished event.
       
      string final_invocation_id = 3;
      Specified by:
      getFinalInvocationId in interface BuildStatusOrBuilder
      Returns:
      The finalInvocationId.
    • getFinalInvocationIdBytes

      public com.google.protobuf.ByteString getFinalInvocationIdBytes()
       Final invocation ID of the build, if there was one.
       This field is only set on a status in BuildFinished event.
       
      string final_invocation_id = 3;
      Specified by:
      getFinalInvocationIdBytes in interface BuildStatusOrBuilder
      Returns:
      The bytes for finalInvocationId.
    • setFinalInvocationId

      public BuildStatus.Builder setFinalInvocationId(String value)
       Final invocation ID of the build, if there was one.
       This field is only set on a status in BuildFinished event.
       
      string final_invocation_id = 3;
      Parameters:
      value - The finalInvocationId to set.
      Returns:
      This builder for chaining.
    • clearFinalInvocationId

      public BuildStatus.Builder clearFinalInvocationId()
       Final invocation ID of the build, if there was one.
       This field is only set on a status in BuildFinished event.
       
      string final_invocation_id = 3;
      Returns:
      This builder for chaining.
    • setFinalInvocationIdBytes

      public BuildStatus.Builder setFinalInvocationIdBytes(com.google.protobuf.ByteString value)
       Final invocation ID of the build, if there was one.
       This field is only set on a status in BuildFinished event.
       
      string final_invocation_id = 3;
      Parameters:
      value - The bytes for finalInvocationId to set.
      Returns:
      This builder for chaining.
    • hasBuildToolExitCode

      public boolean hasBuildToolExitCode()
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
      Specified by:
      hasBuildToolExitCode in interface BuildStatusOrBuilder
      Returns:
      Whether the buildToolExitCode field is set.
    • getBuildToolExitCode

      public com.google.protobuf.Int32Value getBuildToolExitCode()
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
      Specified by:
      getBuildToolExitCode in interface BuildStatusOrBuilder
      Returns:
      The buildToolExitCode.
    • setBuildToolExitCode

      public BuildStatus.Builder setBuildToolExitCode(com.google.protobuf.Int32Value value)
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
    • setBuildToolExitCode

      public BuildStatus.Builder setBuildToolExitCode(com.google.protobuf.Int32Value.Builder builderForValue)
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
    • mergeBuildToolExitCode

      public BuildStatus.Builder mergeBuildToolExitCode(com.google.protobuf.Int32Value value)
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
    • clearBuildToolExitCode

      public BuildStatus.Builder clearBuildToolExitCode()
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
    • getBuildToolExitCodeBuilder

      public com.google.protobuf.Int32Value.Builder getBuildToolExitCodeBuilder()
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
    • getBuildToolExitCodeOrBuilder

      public com.google.protobuf.Int32ValueOrBuilder getBuildToolExitCodeOrBuilder()
       Build tool exit code. Integer value returned by the executed build tool.
       Might not be available in some cases, e.g., a build timeout.
       
      .google.protobuf.Int32Value build_tool_exit_code = 4;
      Specified by:
      getBuildToolExitCodeOrBuilder in interface BuildStatusOrBuilder
    • getErrorMessage

      public String getErrorMessage()
       Human-readable error message. Do not use for programmatic purposes.
       
      string error_message = 5;
      Specified by:
      getErrorMessage in interface BuildStatusOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       Human-readable error message. Do not use for programmatic purposes.
       
      string error_message = 5;
      Specified by:
      getErrorMessageBytes in interface BuildStatusOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public BuildStatus.Builder setErrorMessage(String value)
       Human-readable error message. Do not use for programmatic purposes.
       
      string error_message = 5;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public BuildStatus.Builder clearErrorMessage()
       Human-readable error message. Do not use for programmatic purposes.
       
      string error_message = 5;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public BuildStatus.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       Human-readable error message. Do not use for programmatic purposes.
       
      string error_message = 5;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • hasDetails

      public boolean hasDetails()
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
      Specified by:
      hasDetails in interface BuildStatusOrBuilder
      Returns:
      Whether the details field is set.
    • getDetails

      public com.google.protobuf.Any getDetails()
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
      Specified by:
      getDetails in interface BuildStatusOrBuilder
      Returns:
      The details.
    • setDetails

      public BuildStatus.Builder setDetails(com.google.protobuf.Any value)
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
    • setDetails

      public BuildStatus.Builder setDetails(com.google.protobuf.Any.Builder builderForValue)
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
    • mergeDetails

      public BuildStatus.Builder mergeDetails(com.google.protobuf.Any value)
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
    • clearDetails

      public BuildStatus.Builder clearDetails()
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
    • getDetailsBuilder

      public com.google.protobuf.Any.Builder getDetailsBuilder()
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
    • getDetailsOrBuilder

      public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder()
       Fine-grained diagnostic information to complement the status.
       
      .google.protobuf.Any details = 2;
      Specified by:
      getDetailsOrBuilder in interface BuildStatusOrBuilder