Class TestResults.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TestResultsOrBuilder
Enclosing class:
TestResults

public static final class TestResults.Builder extends GeneratedMessage.Builder<TestResults.Builder> implements TestResultsOrBuilder
The output of one benchmark / test run.  Each run contains a list of
tests or benchmarks, stored as BenchmarkEntry messages.

This message should be emitted by the reporter (which runs the
test / BM in a subprocess and then reads the emitted BenchmarkEntry messages;
usually from a serialized json file, finally collecting them along
with additional information about the test run.
Protobuf type tensorflow.TestResults
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<TestResults.Builder>
    • clear

      public TestResults.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<TestResults.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<TestResults.Builder>
    • getDefaultInstanceForType

      public TestResults getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public TestResults build()
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public TestResults buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • mergeFrom

      public TestResults.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<TestResults.Builder>
    • mergeFrom

      public TestResults.Builder mergeFrom(TestResults other)
    • isInitialized

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

      public TestResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<TestResults.Builder>
      Throws:
      IOException
    • getTarget

      public String getTarget()
      The target of the run, e.g.:
      //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
      
      string target = 1;
      Specified by:
      getTarget in interface TestResultsOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public ByteString getTargetBytes()
      The target of the run, e.g.:
      //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
      
      string target = 1;
      Specified by:
      getTargetBytes in interface TestResultsOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public TestResults.Builder setTarget(String value)
      The target of the run, e.g.:
      //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
      
      string target = 1;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public TestResults.Builder clearTarget()
      The target of the run, e.g.:
      //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
      
      string target = 1;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public TestResults.Builder setTargetBytes(ByteString value)
      The target of the run, e.g.:
      //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
      
      string target = 1;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • hasEntries

      public boolean hasEntries()
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
      Specified by:
      hasEntries in interface TestResultsOrBuilder
      Returns:
      Whether the entries field is set.
    • getEntries

      public BenchmarkEntries getEntries()
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
      Specified by:
      getEntries in interface TestResultsOrBuilder
      Returns:
      The entries.
    • setEntries

      public TestResults.Builder setEntries(BenchmarkEntries value)
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
    • setEntries

      public TestResults.Builder setEntries(BenchmarkEntries.Builder builderForValue)
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
    • mergeEntries

      public TestResults.Builder mergeEntries(BenchmarkEntries value)
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
    • clearEntries

      public TestResults.Builder clearEntries()
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
    • getEntriesBuilder

      public BenchmarkEntries.Builder getEntriesBuilder()
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
    • getEntriesOrBuilder

      public BenchmarkEntriesOrBuilder getEntriesOrBuilder()
      The list of tests or benchmarks in this run.
      
      .tensorflow.BenchmarkEntries entries = 2;
      Specified by:
      getEntriesOrBuilder in interface TestResultsOrBuilder
    • hasBuildConfiguration

      public boolean hasBuildConfiguration()
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
      Specified by:
      hasBuildConfiguration in interface TestResultsOrBuilder
      Returns:
      Whether the buildConfiguration field is set.
    • getBuildConfiguration

      public BuildConfiguration getBuildConfiguration()
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
      Specified by:
      getBuildConfiguration in interface TestResultsOrBuilder
      Returns:
      The buildConfiguration.
    • setBuildConfiguration

      public TestResults.Builder setBuildConfiguration(BuildConfiguration value)
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
    • setBuildConfiguration

      public TestResults.Builder setBuildConfiguration(BuildConfiguration.Builder builderForValue)
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
    • mergeBuildConfiguration

      public TestResults.Builder mergeBuildConfiguration(BuildConfiguration value)
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
    • clearBuildConfiguration

      public TestResults.Builder clearBuildConfiguration()
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
    • getBuildConfigurationBuilder

      public BuildConfiguration.Builder getBuildConfigurationBuilder()
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
    • getBuildConfigurationOrBuilder

      public BuildConfigurationOrBuilder getBuildConfigurationOrBuilder()
      The configuration of the build (compiled opt? with cuda? any copts?)
      
      .tensorflow.BuildConfiguration build_configuration = 3;
      Specified by:
      getBuildConfigurationOrBuilder in interface TestResultsOrBuilder
    • hasCommitId

      public boolean hasCommitId()
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
      Specified by:
      hasCommitId in interface TestResultsOrBuilder
      Returns:
      Whether the commitId field is set.
    • getCommitId

      public CommitId getCommitId()
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
      Specified by:
      getCommitId in interface TestResultsOrBuilder
      Returns:
      The commitId.
    • setCommitId

      public TestResults.Builder setCommitId(CommitId value)
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
    • setCommitId

      public TestResults.Builder setCommitId(CommitId.Builder builderForValue)
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
    • mergeCommitId

      public TestResults.Builder mergeCommitId(CommitId value)
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
    • clearCommitId

      public TestResults.Builder clearCommitId()
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
    • getCommitIdBuilder

      public CommitId.Builder getCommitIdBuilder()
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
    • getCommitIdOrBuilder

      public CommitIdOrBuilder getCommitIdOrBuilder()
      The commit id (git hash or changelist)
      
      .tensorflow.CommitId commit_id = 4;
      Specified by:
      getCommitIdOrBuilder in interface TestResultsOrBuilder
    • getStartTime

      public long getStartTime()
      The time the run started (in seconds of UTC time since Unix epoch)
      
      int64 start_time = 5;
      Specified by:
      getStartTime in interface TestResultsOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public TestResults.Builder setStartTime(long value)
      The time the run started (in seconds of UTC time since Unix epoch)
      
      int64 start_time = 5;
      Parameters:
      value - The startTime to set.
      Returns:
      This builder for chaining.
    • clearStartTime

      public TestResults.Builder clearStartTime()
      The time the run started (in seconds of UTC time since Unix epoch)
      
      int64 start_time = 5;
      Returns:
      This builder for chaining.
    • getRunTime

      public double getRunTime()
      The amount of time the total run took (wall time in seconds)
      
      double run_time = 6;
      Specified by:
      getRunTime in interface TestResultsOrBuilder
      Returns:
      The runTime.
    • setRunTime

      public TestResults.Builder setRunTime(double value)
      The amount of time the total run took (wall time in seconds)
      
      double run_time = 6;
      Parameters:
      value - The runTime to set.
      Returns:
      This builder for chaining.
    • clearRunTime

      public TestResults.Builder clearRunTime()
      The amount of time the total run took (wall time in seconds)
      
      double run_time = 6;
      Returns:
      This builder for chaining.
    • hasMachineConfiguration

      public boolean hasMachineConfiguration()
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
      Specified by:
      hasMachineConfiguration in interface TestResultsOrBuilder
      Returns:
      Whether the machineConfiguration field is set.
    • getMachineConfiguration

      public MachineConfiguration getMachineConfiguration()
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
      Specified by:
      getMachineConfiguration in interface TestResultsOrBuilder
      Returns:
      The machineConfiguration.
    • setMachineConfiguration

      public TestResults.Builder setMachineConfiguration(MachineConfiguration value)
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
    • setMachineConfiguration

      public TestResults.Builder setMachineConfiguration(MachineConfiguration.Builder builderForValue)
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
    • mergeMachineConfiguration

      public TestResults.Builder mergeMachineConfiguration(MachineConfiguration value)
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
    • clearMachineConfiguration

      public TestResults.Builder clearMachineConfiguration()
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
    • getMachineConfigurationBuilder

      public MachineConfiguration.Builder getMachineConfigurationBuilder()
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
    • getMachineConfigurationOrBuilder

      public MachineConfigurationOrBuilder getMachineConfigurationOrBuilder()
      Machine-specific parameters (Platform and CPU info)
      
      .tensorflow.MachineConfiguration machine_configuration = 7;
      Specified by:
      getMachineConfigurationOrBuilder in interface TestResultsOrBuilder
    • hasRunConfiguration

      public boolean hasRunConfiguration()
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
      Specified by:
      hasRunConfiguration in interface TestResultsOrBuilder
      Returns:
      Whether the runConfiguration field is set.
    • getRunConfiguration

      public RunConfiguration getRunConfiguration()
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
      Specified by:
      getRunConfiguration in interface TestResultsOrBuilder
      Returns:
      The runConfiguration.
    • setRunConfiguration

      public TestResults.Builder setRunConfiguration(RunConfiguration value)
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
    • setRunConfiguration

      public TestResults.Builder setRunConfiguration(RunConfiguration.Builder builderForValue)
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
    • mergeRunConfiguration

      public TestResults.Builder mergeRunConfiguration(RunConfiguration value)
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
    • clearRunConfiguration

      public TestResults.Builder clearRunConfiguration()
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
    • getRunConfigurationBuilder

      public RunConfiguration.Builder getRunConfigurationBuilder()
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
    • getRunConfigurationOrBuilder

      public RunConfigurationOrBuilder getRunConfigurationOrBuilder()
      Run-specific parameters (arguments, etc)
      
      .tensorflow.RunConfiguration run_configuration = 8;
      Specified by:
      getRunConfigurationOrBuilder in interface TestResultsOrBuilder
    • getName

      public String getName()
      Benchmark target identifier.
      
      string name = 9;
      Specified by:
      getName in interface TestResultsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public ByteString getNameBytes()
      Benchmark target identifier.
      
      string name = 9;
      Specified by:
      getNameBytes in interface TestResultsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TestResults.Builder setName(String value)
      Benchmark target identifier.
      
      string name = 9;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TestResults.Builder clearName()
      Benchmark target identifier.
      
      string name = 9;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TestResults.Builder setNameBytes(ByteString value)
      Benchmark target identifier.
      
      string name = 9;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getBenchmarkTypeValue

      public int getBenchmarkTypeValue()
      .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
      Specified by:
      getBenchmarkTypeValue in interface TestResultsOrBuilder
      Returns:
      The enum numeric value on the wire for benchmarkType.
    • setBenchmarkTypeValue

      public TestResults.Builder setBenchmarkTypeValue(int value)
      .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
      Parameters:
      value - The enum numeric value on the wire for benchmarkType to set.
      Returns:
      This builder for chaining.
    • getBenchmarkType

      public TestResults.BenchmarkType getBenchmarkType()
      .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
      Specified by:
      getBenchmarkType in interface TestResultsOrBuilder
      Returns:
      The benchmarkType.
    • setBenchmarkType

      public TestResults.Builder setBenchmarkType(TestResults.BenchmarkType value)
      .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
      Parameters:
      value - The benchmarkType to set.
      Returns:
      This builder for chaining.
    • clearBenchmarkType

      public TestResults.Builder clearBenchmarkType()
      .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
      Returns:
      This builder for chaining.
    • getRunMode

      public String getRunMode()
      Used for differentiating between continuous and debug builds.
      Must be one of:
      * cbuild: results from continuous build.
      * presubmit: results from oneshot requests.
      * culprit: results from culprit finder rerun.
      
      string run_mode = 11;
      Specified by:
      getRunMode in interface TestResultsOrBuilder
      Returns:
      The runMode.
    • getRunModeBytes

      public ByteString getRunModeBytes()
      Used for differentiating between continuous and debug builds.
      Must be one of:
      * cbuild: results from continuous build.
      * presubmit: results from oneshot requests.
      * culprit: results from culprit finder rerun.
      
      string run_mode = 11;
      Specified by:
      getRunModeBytes in interface TestResultsOrBuilder
      Returns:
      The bytes for runMode.
    • setRunMode

      public TestResults.Builder setRunMode(String value)
      Used for differentiating between continuous and debug builds.
      Must be one of:
      * cbuild: results from continuous build.
      * presubmit: results from oneshot requests.
      * culprit: results from culprit finder rerun.
      
      string run_mode = 11;
      Parameters:
      value - The runMode to set.
      Returns:
      This builder for chaining.
    • clearRunMode

      public TestResults.Builder clearRunMode()
      Used for differentiating between continuous and debug builds.
      Must be one of:
      * cbuild: results from continuous build.
      * presubmit: results from oneshot requests.
      * culprit: results from culprit finder rerun.
      
      string run_mode = 11;
      Returns:
      This builder for chaining.
    • setRunModeBytes

      public TestResults.Builder setRunModeBytes(ByteString value)
      Used for differentiating between continuous and debug builds.
      Must be one of:
      * cbuild: results from continuous build.
      * presubmit: results from oneshot requests.
      * culprit: results from culprit finder rerun.
      
      string run_mode = 11;
      Parameters:
      value - The bytes for runMode to set.
      Returns:
      This builder for chaining.
    • getTfVersion

      public String getTfVersion()
      TensorFlow version this benchmark runs against.
      This can be either set to full version or just the major version.
      
      string tf_version = 12;
      Specified by:
      getTfVersion in interface TestResultsOrBuilder
      Returns:
      The tfVersion.
    • getTfVersionBytes

      public ByteString getTfVersionBytes()
      TensorFlow version this benchmark runs against.
      This can be either set to full version or just the major version.
      
      string tf_version = 12;
      Specified by:
      getTfVersionBytes in interface TestResultsOrBuilder
      Returns:
      The bytes for tfVersion.
    • setTfVersion

      public TestResults.Builder setTfVersion(String value)
      TensorFlow version this benchmark runs against.
      This can be either set to full version or just the major version.
      
      string tf_version = 12;
      Parameters:
      value - The tfVersion to set.
      Returns:
      This builder for chaining.
    • clearTfVersion

      public TestResults.Builder clearTfVersion()
      TensorFlow version this benchmark runs against.
      This can be either set to full version or just the major version.
      
      string tf_version = 12;
      Returns:
      This builder for chaining.
    • setTfVersionBytes

      public TestResults.Builder setTfVersionBytes(ByteString value)
      TensorFlow version this benchmark runs against.
      This can be either set to full version or just the major version.
      
      string tf_version = 12;
      Parameters:
      value - The bytes for tfVersion to set.
      Returns:
      This builder for chaining.