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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPayload on events reporting about individual test action.static final classMessage providing optional meta data on the execution of the test action, if available.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanTrue, if the reported attempt is taken from the tool's local cache.static final com.google.protobuf.Descriptors.Descriptor.build_event_stream.TestResult.ExecutionInfo execution_info = 8;.build_event_stream.TestResult.ExecutionInfo execution_info = 8;com.google.protobuf.Parser<BuildEventStreamProtos.TestResult>intThe status of this test.Additional details about the status of the test.com.google.protobuf.ByteStringAdditional details about the status of the test.intThe status of this test.getTestActionOutput(int index) Files (logs, test.xml, undeclared outputs, etc) generated by that test action.intFiles (logs, test.xml, undeclared outputs, etc) generated by that test action.Files (logs, test.xml, undeclared outputs, etc) generated by that test action.getTestActionOutputOrBuilder(int index) Files (logs, test.xml, undeclared outputs, etc) generated by that test action.List<? extends BuildEventStreamProtos.FileOrBuilder>Files (logs, test.xml, undeclared outputs, etc) generated by that test action.com.google.protobuf.DurationTime the test took to run.longDeprecated.build_event_stream.TestResult.test_attempt_duration_millis is deprecated.com.google.protobuf.DurationOrBuilderTime the test took to run.com.google.protobuf.TimestampTime at which the test attempt was started.longDeprecated.build_event_stream.TestResult.test_attempt_start_millis_epoch is deprecated.com.google.protobuf.TimestampOrBuilderTime at which the test attempt was started.getWarning(int index) Warnings generated by that test action.com.google.protobuf.ByteStringgetWarningBytes(int index) Warnings generated by that test action.intWarnings generated by that test action.com.google.protobuf.ProtocolStringListWarnings generated by that test action.boolean.build_event_stream.TestResult.ExecutionInfo execution_info = 8;inthashCode()booleanTime the test took to run.booleanTime at which the test attempt was started.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(BuildEventStreamProtos.TestResult prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BuildEventStreamProtos.TestResult>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getStatusValue
public int getStatusValue()The status of this test.
.build_event_stream.TestStatus status = 5;- Specified by:
getStatusValuein interfaceBuildEventStreamProtos.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:
getStatusin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- The status.
-
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:
getStatusDetailsin interfaceBuildEventStreamProtos.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:
getStatusDetailsBytesin interfaceBuildEventStreamProtos.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:
getCachedLocallyin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- The cachedLocally.
-
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=699Time 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:
getTestAttemptStartMillisEpochin interfaceBuildEventStreamProtos.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:
hasTestAttemptStartin interfaceBuildEventStreamProtos.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:
getTestAttemptStartin interfaceBuildEventStreamProtos.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:
getTestAttemptStartOrBuilderin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
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=712Time 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:
getTestAttemptDurationMillisin interfaceBuildEventStreamProtos.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:
hasTestAttemptDurationin interfaceBuildEventStreamProtos.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:
getTestAttemptDurationin interfaceBuildEventStreamProtos.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:
getTestAttemptDurationOrBuilderin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
getTestActionOutputList
Files (logs, test.xml, undeclared outputs, etc) generated by that test action.
repeated .build_event_stream.File test_action_output = 2;- Specified by:
getTestActionOutputListin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
getTestActionOutputOrBuilderList
Files (logs, test.xml, undeclared outputs, etc) generated by that test action.
repeated .build_event_stream.File test_action_output = 2;- Specified by:
getTestActionOutputOrBuilderListin interfaceBuildEventStreamProtos.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:
getTestActionOutputCountin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
getTestActionOutput
Files (logs, test.xml, undeclared outputs, etc) generated by that test action.
repeated .build_event_stream.File test_action_output = 2;- Specified by:
getTestActionOutputin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
getTestActionOutputOrBuilder
Files (logs, test.xml, undeclared outputs, etc) generated by that test action.
repeated .build_event_stream.File test_action_output = 2;- Specified by:
getTestActionOutputOrBuilderin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
getWarningList
public com.google.protobuf.ProtocolStringList getWarningList()Warnings generated by that test action.
repeated string warning = 7;- Specified by:
getWarningListin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- A list containing the warning.
-
getWarningCount
public int getWarningCount()Warnings generated by that test action.
repeated string warning = 7;- Specified by:
getWarningCountin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- The count of warning.
-
getWarning
Warnings generated by that test action.
repeated string warning = 7;- Specified by:
getWarningin interfaceBuildEventStreamProtos.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:
getWarningBytesin interfaceBuildEventStreamProtos.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:
hasExecutionInfoin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- Whether the executionInfo field is set.
-
getExecutionInfo
.build_event_stream.TestResult.ExecutionInfo execution_info = 8;- Specified by:
getExecutionInfoin interfaceBuildEventStreamProtos.TestResultOrBuilder- Returns:
- The executionInfo.
-
getExecutionInfoOrBuilder
.build_event_stream.TestResult.ExecutionInfo execution_info = 8;- Specified by:
getExecutionInfoOrBuilderin interfaceBuildEventStreamProtos.TestResultOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static BuildEventStreamProtos.TestResult.Builder newBuilder(BuildEventStreamProtos.TestResult prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BuildEventStreamProtos.TestResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-