Class BuildEventStreamProtos.TestResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TestResult
All Implemented Interfaces:
BuildEventStreamProtos.TestResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
BuildEventStreamProtos

public static final class BuildEventStreamProtos.TestResult extends com.google.protobuf.GeneratedMessage implements BuildEventStreamProtos.TestResultOrBuilder
 Payload on events reporting about individual test action.
 
Protobuf type build_event_stream.TestResult
See Also:
  • Field Details

    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • STATUS_DETAILS_FIELD_NUMBER

      public static final int STATUS_DETAILS_FIELD_NUMBER
      See Also:
    • CACHED_LOCALLY_FIELD_NUMBER

      public static final int CACHED_LOCALLY_FIELD_NUMBER
      See Also:
    • TEST_ATTEMPT_START_MILLIS_EPOCH_FIELD_NUMBER

      public static final int TEST_ATTEMPT_START_MILLIS_EPOCH_FIELD_NUMBER
      See Also:
    • TEST_ATTEMPT_START_FIELD_NUMBER

      public static final int TEST_ATTEMPT_START_FIELD_NUMBER
      See Also:
    • TEST_ATTEMPT_DURATION_MILLIS_FIELD_NUMBER

      public static final int TEST_ATTEMPT_DURATION_MILLIS_FIELD_NUMBER
      See Also:
    • TEST_ATTEMPT_DURATION_FIELD_NUMBER

      public static final int TEST_ATTEMPT_DURATION_FIELD_NUMBER
      See Also:
    • TEST_ACTION_OUTPUT_FIELD_NUMBER

      public static final int TEST_ACTION_OUTPUT_FIELD_NUMBER
      See Also:
    • WARNING_FIELD_NUMBER

      public static final int WARNING_FIELD_NUMBER
      See Also:
    • EXECUTION_INFO_FIELD_NUMBER

      public static final int EXECUTION_INFO_FIELD_NUMBER
      See Also:
  • 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
    • getStatusValue

      public int getStatusValue()
       The status of this test.
       
      .build_event_stream.TestStatus status = 5;
      Specified by:
      getStatusValue in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

       The status of this test.
       
      .build_event_stream.TestStatus status = 5;
      Specified by:
      getStatus in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The status.
    • getStatusDetails

      public String getStatusDetails()
       Additional details about the status of the test. This is intended for
       user display and must not be parsed.
       
      string status_details = 9;
      Specified by:
      getStatusDetails in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The statusDetails.
    • getStatusDetailsBytes

      public com.google.protobuf.ByteString getStatusDetailsBytes()
       Additional details about the status of the test. This is intended for
       user display and must not be parsed.
       
      string status_details = 9;
      Specified by:
      getStatusDetailsBytes in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The bytes for statusDetails.
    • getCachedLocally

      public boolean getCachedLocally()
       True, if the reported attempt is taken from the tool's local cache.
       
      bool cached_locally = 4;
      Specified by:
      getCachedLocally in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The cachedLocally.
    • getTestAttemptStartMillisEpoch

      @Deprecated public long getTestAttemptStartMillisEpoch()
      Deprecated.
      build_event_stream.TestResult.test_attempt_start_millis_epoch is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=699
       Time in milliseconds since the epoch at which the test attempt was started.
       Note: for cached test results, this is time can be before the start of the
       build.
      
       Deprecated, use `test_attempt_start` instead.
      
       TODO(yannic): Remove.
       
      int64 test_attempt_start_millis_epoch = 6 [deprecated = true];
      Specified by:
      getTestAttemptStartMillisEpoch in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The testAttemptStartMillisEpoch.
    • hasTestAttemptStart

      public boolean hasTestAttemptStart()
       Time at which the test attempt was started.
       Note: for cached test results, this is time can be before the start of the
       build.
       
      .google.protobuf.Timestamp test_attempt_start = 10;
      Specified by:
      hasTestAttemptStart in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      Whether the testAttemptStart field is set.
    • getTestAttemptStart

      public com.google.protobuf.Timestamp getTestAttemptStart()
       Time at which the test attempt was started.
       Note: for cached test results, this is time can be before the start of the
       build.
       
      .google.protobuf.Timestamp test_attempt_start = 10;
      Specified by:
      getTestAttemptStart in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The testAttemptStart.
    • getTestAttemptStartOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTestAttemptStartOrBuilder()
       Time at which the test attempt was started.
       Note: for cached test results, this is time can be before the start of the
       build.
       
      .google.protobuf.Timestamp test_attempt_start = 10;
      Specified by:
      getTestAttemptStartOrBuilder in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestAttemptDurationMillis

      @Deprecated public long getTestAttemptDurationMillis()
      Deprecated.
      build_event_stream.TestResult.test_attempt_duration_millis is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=712
       Time the test took to run. For locally cached results, this is the time
       the cached invocation took when it was invoked.
      
       Deprecated, use `test_attempt_duration` instead.
      
       TODO(yannic): Remove.
       
      int64 test_attempt_duration_millis = 3 [deprecated = true];
      Specified by:
      getTestAttemptDurationMillis in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The testAttemptDurationMillis.
    • hasTestAttemptDuration

      public boolean hasTestAttemptDuration()
       Time the test took to run. For locally cached results, this is the time
       the cached invocation took when it was invoked.
       
      .google.protobuf.Duration test_attempt_duration = 11;
      Specified by:
      hasTestAttemptDuration in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      Whether the testAttemptDuration field is set.
    • getTestAttemptDuration

      public com.google.protobuf.Duration getTestAttemptDuration()
       Time the test took to run. For locally cached results, this is the time
       the cached invocation took when it was invoked.
       
      .google.protobuf.Duration test_attempt_duration = 11;
      Specified by:
      getTestAttemptDuration in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The testAttemptDuration.
    • getTestAttemptDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTestAttemptDurationOrBuilder()
       Time the test took to run. For locally cached results, this is the time
       the cached invocation took when it was invoked.
       
      .google.protobuf.Duration test_attempt_duration = 11;
      Specified by:
      getTestAttemptDurationOrBuilder in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestActionOutputList

      public List<BuildEventStreamProtos.File> getTestActionOutputList()
       Files (logs, test.xml, undeclared outputs, etc) generated by that test
       action.
       
      repeated .build_event_stream.File test_action_output = 2;
      Specified by:
      getTestActionOutputList in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestActionOutputOrBuilderList

      public List<? extends BuildEventStreamProtos.FileOrBuilder> getTestActionOutputOrBuilderList()
       Files (logs, test.xml, undeclared outputs, etc) generated by that test
       action.
       
      repeated .build_event_stream.File test_action_output = 2;
      Specified by:
      getTestActionOutputOrBuilderList in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestActionOutputCount

      public int getTestActionOutputCount()
       Files (logs, test.xml, undeclared outputs, etc) generated by that test
       action.
       
      repeated .build_event_stream.File test_action_output = 2;
      Specified by:
      getTestActionOutputCount in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestActionOutput

      public BuildEventStreamProtos.File getTestActionOutput(int index)
       Files (logs, test.xml, undeclared outputs, etc) generated by that test
       action.
       
      repeated .build_event_stream.File test_action_output = 2;
      Specified by:
      getTestActionOutput in interface BuildEventStreamProtos.TestResultOrBuilder
    • getTestActionOutputOrBuilder

      public BuildEventStreamProtos.FileOrBuilder getTestActionOutputOrBuilder(int index)
       Files (logs, test.xml, undeclared outputs, etc) generated by that test
       action.
       
      repeated .build_event_stream.File test_action_output = 2;
      Specified by:
      getTestActionOutputOrBuilder in interface BuildEventStreamProtos.TestResultOrBuilder
    • getWarningList

      public com.google.protobuf.ProtocolStringList getWarningList()
       Warnings generated by that test action.
       
      repeated string warning = 7;
      Specified by:
      getWarningList in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      A list containing the warning.
    • getWarningCount

      public int getWarningCount()
       Warnings generated by that test action.
       
      repeated string warning = 7;
      Specified by:
      getWarningCount in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The count of warning.
    • getWarning

      public String getWarning(int index)
       Warnings generated by that test action.
       
      repeated string warning = 7;
      Specified by:
      getWarning in interface BuildEventStreamProtos.TestResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The warning at the given index.
    • getWarningBytes

      public com.google.protobuf.ByteString getWarningBytes(int index)
       Warnings generated by that test action.
       
      repeated string warning = 7;
      Specified by:
      getWarningBytes in interface BuildEventStreamProtos.TestResultOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the warning at the given index.
    • hasExecutionInfo

      public boolean hasExecutionInfo()
      .build_event_stream.TestResult.ExecutionInfo execution_info = 8;
      Specified by:
      hasExecutionInfo in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      Whether the executionInfo field is set.
    • getExecutionInfo

      .build_event_stream.TestResult.ExecutionInfo execution_info = 8;
      Specified by:
      getExecutionInfo in interface BuildEventStreamProtos.TestResultOrBuilder
      Returns:
      The executionInfo.
    • getExecutionInfoOrBuilder

      .build_event_stream.TestResult.ExecutionInfo execution_info = 8;
      Specified by:
      getExecutionInfoOrBuilder in interface BuildEventStreamProtos.TestResultOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BuildEventStreamProtos.TestResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BuildEventStreamProtos.TestResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BuildEventStreamProtos.TestResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BuildEventStreamProtos.TestResult.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BuildEventStreamProtos.TestResult.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BuildEventStreamProtos.TestResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BuildEventStreamProtos.TestResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BuildEventStreamProtos.TestResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<BuildEventStreamProtos.TestResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public BuildEventStreamProtos.TestResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder