Class TestResults.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TestResults.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TestResults.Builder>
org.tensorflow.proto.TestResults.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TestResultsOrBuilder
- Enclosing class:
TestResults
public static final class TestResults.Builder
extends GeneratedMessageV3.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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear().tensorflow.TestResults.BenchmarkType benchmark_type = 10;The configuration of the build (compiled opt?The commit id (git hash or changelist)The list of tests or benchmarks in this run.Machine-specific parameters (Platform and CPU info)Benchmark target identifier.Run-specific parameters (arguments, etc)Used for differentiating between continuous and debug builds.The amount of time the total run took (wall time in seconds)The time the run started (in seconds of UTC time since Unix epoch)The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testTensorFlow version this benchmark runs against.clone().tensorflow.TestResults.BenchmarkType benchmark_type = 10;int.tensorflow.TestResults.BenchmarkType benchmark_type = 10;The configuration of the build (compiled opt?The configuration of the build (compiled opt?The configuration of the build (compiled opt?The commit id (git hash or changelist)The commit id (git hash or changelist)The commit id (git hash or changelist)static final Descriptors.DescriptorThe list of tests or benchmarks in this run.The list of tests or benchmarks in this run.The list of tests or benchmarks in this run.Machine-specific parameters (Platform and CPU info)Machine-specific parameters (Platform and CPU info)Machine-specific parameters (Platform and CPU info)getName()Benchmark target identifier.Benchmark target identifier.Run-specific parameters (arguments, etc)Run-specific parameters (arguments, etc)Run-specific parameters (arguments, etc)Used for differentiating between continuous and debug builds.Used for differentiating between continuous and debug builds.doubleThe amount of time the total run took (wall time in seconds)longThe time the run started (in seconds of UTC time since Unix epoch)The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testThe target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testTensorFlow version this benchmark runs against.TensorFlow version this benchmark runs against.booleanThe configuration of the build (compiled opt?booleanThe commit id (git hash or changelist)booleanThe list of tests or benchmarks in this run.booleanMachine-specific parameters (Platform and CPU info)booleanRun-specific parameters (arguments, etc)protected GeneratedMessageV3.FieldAccessorTablefinal booleanThe configuration of the build (compiled opt?mergeCommitId(CommitId value) The commit id (git hash or changelist)mergeEntries(BenchmarkEntries value) The list of tests or benchmarks in this run.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TestResults other) Machine-specific parameters (Platform and CPU info)Run-specific parameters (arguments, etc)final TestResults.BuildermergeUnknownFields(UnknownFieldSet unknownFields) .tensorflow.TestResults.BenchmarkType benchmark_type = 10;setBenchmarkTypeValue(int value) .tensorflow.TestResults.BenchmarkType benchmark_type = 10;The configuration of the build (compiled opt?setBuildConfiguration(BuildConfiguration.Builder builderForValue) The configuration of the build (compiled opt?setCommitId(CommitId value) The commit id (git hash or changelist)setCommitId(CommitId.Builder builderForValue) The commit id (git hash or changelist)setEntries(BenchmarkEntries value) The list of tests or benchmarks in this run.setEntries(BenchmarkEntries.Builder builderForValue) The list of tests or benchmarks in this run.setField(Descriptors.FieldDescriptor field, Object value) Machine-specific parameters (Platform and CPU info)setMachineConfiguration(MachineConfiguration.Builder builderForValue) Machine-specific parameters (Platform and CPU info)Benchmark target identifier.setNameBytes(ByteString value) Benchmark target identifier.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) Run-specific parameters (arguments, etc)setRunConfiguration(RunConfiguration.Builder builderForValue) Run-specific parameters (arguments, etc)setRunMode(String value) Used for differentiating between continuous and debug builds.setRunModeBytes(ByteString value) Used for differentiating between continuous and debug builds.setRunTime(double value) The amount of time the total run took (wall time in seconds)setStartTime(long value) The time the run started (in seconds of UTC time since Unix epoch)The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testsetTargetBytes(ByteString value) The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testsetTfVersion(String value) TensorFlow version this benchmark runs against.setTfVersionBytes(ByteString value) TensorFlow version this benchmark runs against.final TestResults.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<TestResults.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<TestResults.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<TestResults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<TestResults.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<TestResults.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<TestResults.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<TestResults.Builder>
-
setRepeatedField
public TestResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<TestResults.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<TestResults.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TestResults.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<TestResults.Builder>
-
mergeFrom
public TestResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TestResults.Builder>- Throws:
IOException
-
getTarget
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
string target = 1;- Specified by:
getTargetin interfaceTestResultsOrBuilder- Returns:
- The target.
-
getTargetBytes
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
string target = 1;- Specified by:
getTargetBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for target.
-
setTarget
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
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
string target = 1;- Returns:
- This builder for chaining.
-
setTargetBytes
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:
hasEntriesin interfaceTestResultsOrBuilder- Returns:
- Whether the entries field is set.
-
getEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2;- Specified by:
getEntriesin interfaceTestResultsOrBuilder- Returns:
- The entries.
-
setEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2; -
setEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2; -
mergeEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2; -
clearEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2; -
getEntriesBuilder
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2; -
getEntriesOrBuilder
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2;- Specified by:
getEntriesOrBuilderin interfaceTestResultsOrBuilder
-
hasBuildConfiguration
public boolean hasBuildConfiguration()The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
hasBuildConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the buildConfiguration field is set.
-
getBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
getBuildConfigurationin interfaceTestResultsOrBuilder- Returns:
- The buildConfiguration.
-
setBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3; -
setBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3; -
mergeBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3; -
clearBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3; -
getBuildConfigurationBuilder
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3; -
getBuildConfigurationOrBuilder
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
getBuildConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
hasCommitId
public boolean hasCommitId()The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
hasCommitIdin interfaceTestResultsOrBuilder- Returns:
- Whether the commitId field is set.
-
getCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
getCommitIdin interfaceTestResultsOrBuilder- Returns:
- The commitId.
-
setCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4; -
setCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4; -
mergeCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4; -
clearCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4; -
getCommitIdBuilder
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4; -
getCommitIdOrBuilder
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
getCommitIdOrBuilderin interfaceTestResultsOrBuilder
-
getStartTime
public long getStartTime()The time the run started (in seconds of UTC time since Unix epoch)
int64 start_time = 5;- Specified by:
getStartTimein interfaceTestResultsOrBuilder- Returns:
- The startTime.
-
setStartTime
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
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:
getRunTimein interfaceTestResultsOrBuilder- Returns:
- The runTime.
-
setRunTime
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
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:
hasMachineConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the machineConfiguration field is set.
-
getMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7;- Specified by:
getMachineConfigurationin interfaceTestResultsOrBuilder- Returns:
- The machineConfiguration.
-
setMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7; -
setMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7; -
mergeMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7; -
clearMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7; -
getMachineConfigurationBuilder
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7; -
getMachineConfigurationOrBuilder
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7;- Specified by:
getMachineConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
hasRunConfiguration
public boolean hasRunConfiguration()Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
hasRunConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the runConfiguration field is set.
-
getRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
getRunConfigurationin interfaceTestResultsOrBuilder- Returns:
- The runConfiguration.
-
setRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8; -
setRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8; -
mergeRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8; -
clearRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8; -
getRunConfigurationBuilder
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8; -
getRunConfigurationOrBuilder
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
getRunConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
getName
Benchmark target identifier.
string name = 9;- Specified by:
getNamein interfaceTestResultsOrBuilder- Returns:
- The name.
-
getNameBytes
Benchmark target identifier.
string name = 9;- Specified by:
getNameBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for name.
-
setName
Benchmark target identifier.
string name = 9;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Benchmark target identifier.
string name = 9;- Returns:
- This builder for chaining.
-
setNameBytes
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:
getBenchmarkTypeValuein interfaceTestResultsOrBuilder- Returns:
- The enum numeric value on the wire for benchmarkType.
-
setBenchmarkTypeValue
.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
.tensorflow.TestResults.BenchmarkType benchmark_type = 10;- Specified by:
getBenchmarkTypein interfaceTestResultsOrBuilder- Returns:
- The benchmarkType.
-
setBenchmarkType
.tensorflow.TestResults.BenchmarkType benchmark_type = 10;- Parameters:
value- The benchmarkType to set.- Returns:
- This builder for chaining.
-
clearBenchmarkType
.tensorflow.TestResults.BenchmarkType benchmark_type = 10;- Returns:
- This builder for chaining.
-
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:
getRunModein interfaceTestResultsOrBuilder- Returns:
- The runMode.
-
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:
getRunModeBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for runMode.
-
setRunMode
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
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
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
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:
getTfVersionin interfaceTestResultsOrBuilder- Returns:
- The tfVersion.
-
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:
getTfVersionBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for tfVersion.
-
setTfVersion
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
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
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.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<TestResults.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<TestResults.Builder>
-