Class BuildEventStreamProtos.TestResult.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.TestResult.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.GeneratedMessageV3.Builder<BuildEventStreamProtos.TestResult.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public BuildEventStreamProtos.TestResult.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws java.io.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<BuildEventStreamProtos.TestResult.Builder>
        Throws:
        java.io.IOException
      • setStatusValue

        public BuildEventStreamProtos.TestResult.Builder setStatusValue​(int value)
         The status of this test.
         
        .build_event_stream.TestStatus status = 5;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • getStatusDetails

        public java.lang.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.
      • setStatusDetails

        public BuildEventStreamProtos.TestResult.Builder setStatusDetails​(java.lang.String value)
         Additional details about the status of the test. This is intended for
         user display and must not be parsed.
         
        string status_details = 9;
        Parameters:
        value - The statusDetails to set.
        Returns:
        This builder for chaining.
      • clearStatusDetails

        public BuildEventStreamProtos.TestResult.Builder clearStatusDetails()
         Additional details about the status of the test. This is intended for
         user display and must not be parsed.
         
        string status_details = 9;
        Returns:
        This builder for chaining.
      • setStatusDetailsBytes

        public BuildEventStreamProtos.TestResult.Builder setStatusDetailsBytes​(com.google.protobuf.ByteString value)
         Additional details about the status of the test. This is intended for
         user display and must not be parsed.
         
        string status_details = 9;
        Parameters:
        value - The bytes for statusDetails to set.
        Returns:
        This builder for chaining.
      • setCachedLocally

        public BuildEventStreamProtos.TestResult.Builder setCachedLocally​(boolean value)
         True, if the reported attempt is taken from the tool's local cache.
         
        bool cached_locally = 4;
        Parameters:
        value - The cachedLocally to set.
        Returns:
        This builder for chaining.
      • clearCachedLocally

        public BuildEventStreamProtos.TestResult.Builder clearCachedLocally()
         True, if the reported attempt is taken from the tool's local cache.
         
        bool cached_locally = 4;
        Returns:
        This builder for chaining.
      • getTestAttemptStartMillisEpoch

        @Deprecated
        public long getTestAttemptStartMillisEpoch()
        Deprecated.
        build_event_stream.TestResult.test_attempt_start_millis_epoch is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=632
         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.
      • setTestAttemptStartMillisEpoch

        @Deprecated
        public BuildEventStreamProtos.TestResult.Builder setTestAttemptStartMillisEpoch​(long value)
        Deprecated.
        build_event_stream.TestResult.test_attempt_start_millis_epoch is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=632
         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];
        Parameters:
        value - The testAttemptStartMillisEpoch to set.
        Returns:
        This builder for chaining.
      • clearTestAttemptStartMillisEpoch

        @Deprecated
        public BuildEventStreamProtos.TestResult.Builder clearTestAttemptStartMillisEpoch()
        Deprecated.
        build_event_stream.TestResult.test_attempt_start_millis_epoch is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=632
         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];
        Returns:
        This builder for chaining.
      • 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.
      • setTestAttemptStart

        public BuildEventStreamProtos.TestResult.Builder setTestAttemptStart​(com.google.protobuf.Timestamp value)
         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;
      • setTestAttemptStart

        public BuildEventStreamProtos.TestResult.Builder setTestAttemptStart​(com.google.protobuf.Timestamp.Builder builderForValue)
         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;
      • mergeTestAttemptStart

        public BuildEventStreamProtos.TestResult.Builder mergeTestAttemptStart​(com.google.protobuf.Timestamp value)
         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;
      • clearTestAttemptStart

        public BuildEventStreamProtos.TestResult.Builder clearTestAttemptStart()
         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;
      • getTestAttemptStartBuilder

        public com.google.protobuf.Timestamp.Builder getTestAttemptStartBuilder()
         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;
      • 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 src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=645
         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.
      • setTestAttemptDurationMillis

        @Deprecated
        public BuildEventStreamProtos.TestResult.Builder setTestAttemptDurationMillis​(long value)
        Deprecated.
        build_event_stream.TestResult.test_attempt_duration_millis is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=645
         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];
        Parameters:
        value - The testAttemptDurationMillis to set.
        Returns:
        This builder for chaining.
      • clearTestAttemptDurationMillis

        @Deprecated
        public BuildEventStreamProtos.TestResult.Builder clearTestAttemptDurationMillis()
        Deprecated.
        build_event_stream.TestResult.test_attempt_duration_millis is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=645
         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];
        Returns:
        This builder for chaining.
      • 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.
      • setTestAttemptDuration

        public BuildEventStreamProtos.TestResult.Builder setTestAttemptDuration​(com.google.protobuf.Duration value)
         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;
      • setTestAttemptDuration

        public BuildEventStreamProtos.TestResult.Builder setTestAttemptDuration​(com.google.protobuf.Duration.Builder builderForValue)
         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;
      • mergeTestAttemptDuration

        public BuildEventStreamProtos.TestResult.Builder mergeTestAttemptDuration​(com.google.protobuf.Duration value)
         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;
      • clearTestAttemptDuration

        public BuildEventStreamProtos.TestResult.Builder clearTestAttemptDuration()
         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;
      • getTestAttemptDurationBuilder

        public com.google.protobuf.Duration.Builder getTestAttemptDurationBuilder()
         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;
      • 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
      • clearTestActionOutput

        public BuildEventStreamProtos.TestResult.Builder clearTestActionOutput()
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • removeTestActionOutput

        public BuildEventStreamProtos.TestResult.Builder removeTestActionOutput​(int index)
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • getTestActionOutputBuilder

        public BuildEventStreamProtos.File.Builder getTestActionOutputBuilder​(int index)
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • addTestActionOutputBuilder

        public BuildEventStreamProtos.File.Builder addTestActionOutputBuilder()
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • addTestActionOutputBuilder

        public BuildEventStreamProtos.File.Builder addTestActionOutputBuilder​(int index)
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • getTestActionOutputBuilderList

        public java.util.List<BuildEventStreamProtos.File.Builder> getTestActionOutputBuilderList()
         Files (logs, test.xml, undeclared outputs, etc) generated by that test
         action.
         
        repeated .build_event_stream.File test_action_output = 2;
      • getWarning

        public java.lang.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.
      • setWarning

        public BuildEventStreamProtos.TestResult.Builder setWarning​(int index,
                                                                    java.lang.String value)
         Warnings generated by that test action.
         
        repeated string warning = 7;
        Parameters:
        index - The index to set the value at.
        value - The warning to set.
        Returns:
        This builder for chaining.
      • addWarning

        public BuildEventStreamProtos.TestResult.Builder addWarning​(java.lang.String value)
         Warnings generated by that test action.
         
        repeated string warning = 7;
        Parameters:
        value - The warning to add.
        Returns:
        This builder for chaining.
      • addAllWarning

        public BuildEventStreamProtos.TestResult.Builder addAllWarning​(java.lang.Iterable<java.lang.String> values)
         Warnings generated by that test action.
         
        repeated string warning = 7;
        Parameters:
        values - The warning to add.
        Returns:
        This builder for chaining.
      • addWarningBytes

        public BuildEventStreamProtos.TestResult.Builder addWarningBytes​(com.google.protobuf.ByteString value)
         Warnings generated by that test action.
         
        repeated string warning = 7;
        Parameters:
        value - The bytes of the warning to add.
        Returns:
        This builder for chaining.