org.tensorflow.util.testlog.TestResults Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/util/test_log.proto
package org.tensorflow.util.testlog;
/**
*
* 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 {@code tensorflow.TestResults}
*/
public final class TestResults extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TestResults)
TestResultsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestResults.newBuilder() to construct.
private TestResults(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestResults() {
target_ = "";
startTime_ = 0L;
runTime_ = 0D;
name_ = "";
benchmarkType_ = 0;
runMode_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestResults(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
target_ = s;
break;
}
case 18: {
org.tensorflow.util.testlog.BenchmarkEntries.Builder subBuilder = null;
if (entries_ != null) {
subBuilder = entries_.toBuilder();
}
entries_ = input.readMessage(org.tensorflow.util.testlog.BenchmarkEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(entries_);
entries_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.tensorflow.util.testlog.BuildConfiguration.Builder subBuilder = null;
if (buildConfiguration_ != null) {
subBuilder = buildConfiguration_.toBuilder();
}
buildConfiguration_ = input.readMessage(org.tensorflow.util.testlog.BuildConfiguration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(buildConfiguration_);
buildConfiguration_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.tensorflow.util.testlog.CommitId.Builder subBuilder = null;
if (commitId_ != null) {
subBuilder = commitId_.toBuilder();
}
commitId_ = input.readMessage(org.tensorflow.util.testlog.CommitId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commitId_);
commitId_ = subBuilder.buildPartial();
}
break;
}
case 40: {
startTime_ = input.readInt64();
break;
}
case 49: {
runTime_ = input.readDouble();
break;
}
case 58: {
org.tensorflow.util.testlog.MachineConfiguration.Builder subBuilder = null;
if (machineConfiguration_ != null) {
subBuilder = machineConfiguration_.toBuilder();
}
machineConfiguration_ = input.readMessage(org.tensorflow.util.testlog.MachineConfiguration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(machineConfiguration_);
machineConfiguration_ = subBuilder.buildPartial();
}
break;
}
case 66: {
org.tensorflow.util.testlog.RunConfiguration.Builder subBuilder = null;
if (runConfiguration_ != null) {
subBuilder = runConfiguration_.toBuilder();
}
runConfiguration_ = input.readMessage(org.tensorflow.util.testlog.RunConfiguration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(runConfiguration_);
runConfiguration_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 80: {
int rawValue = input.readEnum();
benchmarkType_ = rawValue;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
runMode_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.TestResults.class, org.tensorflow.util.testlog.TestResults.Builder.class);
}
/**
*
* The type of benchmark.
*
*
* Protobuf enum {@code tensorflow.TestResults.BenchmarkType}
*/
public enum BenchmarkType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Fallback for protos written before Type was introduced.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* CPP_MICROBENCHMARK = 1;
*/
CPP_MICROBENCHMARK(1),
/**
* PYTHON_BENCHMARK = 2;
*/
PYTHON_BENCHMARK(2),
/**
* ANDROID_BENCHMARK = 3;
*/
ANDROID_BENCHMARK(3),
UNRECOGNIZED(-1),
;
/**
*
* Fallback for protos written before Type was introduced.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* CPP_MICROBENCHMARK = 1;
*/
public static final int CPP_MICROBENCHMARK_VALUE = 1;
/**
* PYTHON_BENCHMARK = 2;
*/
public static final int PYTHON_BENCHMARK_VALUE = 2;
/**
* ANDROID_BENCHMARK = 3;
*/
public static final int ANDROID_BENCHMARK_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BenchmarkType valueOf(int value) {
return forNumber(value);
}
public static BenchmarkType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return CPP_MICROBENCHMARK;
case 2: return PYTHON_BENCHMARK;
case 3: return ANDROID_BENCHMARK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BenchmarkType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BenchmarkType findValueByNumber(int number) {
return BenchmarkType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestResults.getDescriptor().getEnumTypes().get(0);
}
private static final BenchmarkType[] VALUES = values();
public static BenchmarkType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BenchmarkType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tensorflow.TestResults.BenchmarkType)
}
public static final int TARGET_FIELD_NUMBER = 1;
private volatile java.lang.Object target_;
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
}
}
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENTRIES_FIELD_NUMBER = 2;
private org.tensorflow.util.testlog.BenchmarkEntries entries_;
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public boolean hasEntries() {
return entries_ != null;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public org.tensorflow.util.testlog.BenchmarkEntries getEntries() {
return entries_ == null ? org.tensorflow.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public org.tensorflow.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrBuilder() {
return getEntries();
}
public static final int BUILD_CONFIGURATION_FIELD_NUMBER = 3;
private org.tensorflow.util.testlog.BuildConfiguration buildConfiguration_;
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public boolean hasBuildConfiguration() {
return buildConfiguration_ != null;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public org.tensorflow.util.testlog.BuildConfiguration getBuildConfiguration() {
return buildConfiguration_ == null ? org.tensorflow.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public org.tensorflow.util.testlog.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() {
return getBuildConfiguration();
}
public static final int COMMIT_ID_FIELD_NUMBER = 4;
private org.tensorflow.util.testlog.CommitId commitId_;
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public boolean hasCommitId() {
return commitId_ != null;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public org.tensorflow.util.testlog.CommitId getCommitId() {
return commitId_ == null ? org.tensorflow.util.testlog.CommitId.getDefaultInstance() : commitId_;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public org.tensorflow.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder() {
return getCommitId();
}
public static final int START_TIME_FIELD_NUMBER = 5;
private long startTime_;
/**
*
* The time the run started (in seconds of UTC time since Unix epoch)
*
*
* int64 start_time = 5;
*/
public long getStartTime() {
return startTime_;
}
public static final int RUN_TIME_FIELD_NUMBER = 6;
private double runTime_;
/**
*
* The amount of time the total run took (wall time in seconds)
*
*
* double run_time = 6;
*/
public double getRunTime() {
return runTime_;
}
public static final int MACHINE_CONFIGURATION_FIELD_NUMBER = 7;
private org.tensorflow.util.testlog.MachineConfiguration machineConfiguration_;
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public boolean hasMachineConfiguration() {
return machineConfiguration_ != null;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public org.tensorflow.util.testlog.MachineConfiguration getMachineConfiguration() {
return machineConfiguration_ == null ? org.tensorflow.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public org.tensorflow.util.testlog.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() {
return getMachineConfiguration();
}
public static final int RUN_CONFIGURATION_FIELD_NUMBER = 8;
private org.tensorflow.util.testlog.RunConfiguration runConfiguration_;
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public boolean hasRunConfiguration() {
return runConfiguration_ != null;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public org.tensorflow.util.testlog.RunConfiguration getRunConfiguration() {
return runConfiguration_ == null ? org.tensorflow.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public org.tensorflow.util.testlog.RunConfigurationOrBuilder getRunConfigurationOrBuilder() {
return getRunConfiguration();
}
public static final int NAME_FIELD_NUMBER = 9;
private volatile java.lang.Object name_;
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BENCHMARK_TYPE_FIELD_NUMBER = 10;
private int benchmarkType_;
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public int getBenchmarkTypeValue() {
return benchmarkType_;
}
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public org.tensorflow.util.testlog.TestResults.BenchmarkType getBenchmarkType() {
org.tensorflow.util.testlog.TestResults.BenchmarkType result = org.tensorflow.util.testlog.TestResults.BenchmarkType.valueOf(benchmarkType_);
return result == null ? org.tensorflow.util.testlog.TestResults.BenchmarkType.UNRECOGNIZED : result;
}
public static final int RUN_MODE_FIELD_NUMBER = 11;
private volatile java.lang.Object runMode_;
/**
*
* 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;
*/
public java.lang.String getRunMode() {
java.lang.Object ref = runMode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runMode_ = s;
return s;
}
}
/**
*
* 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;
*/
public com.google.protobuf.ByteString
getRunModeBytes() {
java.lang.Object ref = runMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTargetBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_);
}
if (entries_ != null) {
output.writeMessage(2, getEntries());
}
if (buildConfiguration_ != null) {
output.writeMessage(3, getBuildConfiguration());
}
if (commitId_ != null) {
output.writeMessage(4, getCommitId());
}
if (startTime_ != 0L) {
output.writeInt64(5, startTime_);
}
if (runTime_ != 0D) {
output.writeDouble(6, runTime_);
}
if (machineConfiguration_ != null) {
output.writeMessage(7, getMachineConfiguration());
}
if (runConfiguration_ != null) {
output.writeMessage(8, getRunConfiguration());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_);
}
if (benchmarkType_ != org.tensorflow.util.testlog.TestResults.BenchmarkType.UNKNOWN.getNumber()) {
output.writeEnum(10, benchmarkType_);
}
if (!getRunModeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, runMode_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTargetBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_);
}
if (entries_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEntries());
}
if (buildConfiguration_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getBuildConfiguration());
}
if (commitId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCommitId());
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startTime_);
}
if (runTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, runTime_);
}
if (machineConfiguration_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getMachineConfiguration());
}
if (runConfiguration_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getRunConfiguration());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_);
}
if (benchmarkType_ != org.tensorflow.util.testlog.TestResults.BenchmarkType.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, benchmarkType_);
}
if (!getRunModeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, runMode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.util.testlog.TestResults)) {
return super.equals(obj);
}
org.tensorflow.util.testlog.TestResults other = (org.tensorflow.util.testlog.TestResults) obj;
boolean result = true;
result = result && getTarget()
.equals(other.getTarget());
result = result && (hasEntries() == other.hasEntries());
if (hasEntries()) {
result = result && getEntries()
.equals(other.getEntries());
}
result = result && (hasBuildConfiguration() == other.hasBuildConfiguration());
if (hasBuildConfiguration()) {
result = result && getBuildConfiguration()
.equals(other.getBuildConfiguration());
}
result = result && (hasCommitId() == other.hasCommitId());
if (hasCommitId()) {
result = result && getCommitId()
.equals(other.getCommitId());
}
result = result && (getStartTime()
== other.getStartTime());
result = result && (
java.lang.Double.doubleToLongBits(getRunTime())
== java.lang.Double.doubleToLongBits(
other.getRunTime()));
result = result && (hasMachineConfiguration() == other.hasMachineConfiguration());
if (hasMachineConfiguration()) {
result = result && getMachineConfiguration()
.equals(other.getMachineConfiguration());
}
result = result && (hasRunConfiguration() == other.hasRunConfiguration());
if (hasRunConfiguration()) {
result = result && getRunConfiguration()
.equals(other.getRunConfiguration());
}
result = result && getName()
.equals(other.getName());
result = result && benchmarkType_ == other.benchmarkType_;
result = result && getRunMode()
.equals(other.getRunMode());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
if (hasEntries()) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntries().hashCode();
}
if (hasBuildConfiguration()) {
hash = (37 * hash) + BUILD_CONFIGURATION_FIELD_NUMBER;
hash = (53 * hash) + getBuildConfiguration().hashCode();
}
if (hasCommitId()) {
hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER;
hash = (53 * hash) + getCommitId().hashCode();
}
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + RUN_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRunTime()));
if (hasMachineConfiguration()) {
hash = (37 * hash) + MACHINE_CONFIGURATION_FIELD_NUMBER;
hash = (53 * hash) + getMachineConfiguration().hashCode();
}
if (hasRunConfiguration()) {
hash = (37 * hash) + RUN_CONFIGURATION_FIELD_NUMBER;
hash = (53 * hash) + getRunConfiguration().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + BENCHMARK_TYPE_FIELD_NUMBER;
hash = (53 * hash) + benchmarkType_;
hash = (37 * hash) + RUN_MODE_FIELD_NUMBER;
hash = (53 * hash) + getRunMode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.TestResults parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.TestResults parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.TestResults parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.util.testlog.TestResults prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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 {@code tensorflow.TestResults}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TestResults)
org.tensorflow.util.testlog.TestResultsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.TestResults.class, org.tensorflow.util.testlog.TestResults.Builder.class);
}
// Construct using org.tensorflow.util.testlog.TestResults.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
target_ = "";
if (entriesBuilder_ == null) {
entries_ = null;
} else {
entries_ = null;
entriesBuilder_ = null;
}
if (buildConfigurationBuilder_ == null) {
buildConfiguration_ = null;
} else {
buildConfiguration_ = null;
buildConfigurationBuilder_ = null;
}
if (commitIdBuilder_ == null) {
commitId_ = null;
} else {
commitId_ = null;
commitIdBuilder_ = null;
}
startTime_ = 0L;
runTime_ = 0D;
if (machineConfigurationBuilder_ == null) {
machineConfiguration_ = null;
} else {
machineConfiguration_ = null;
machineConfigurationBuilder_ = null;
}
if (runConfigurationBuilder_ == null) {
runConfiguration_ = null;
} else {
runConfiguration_ = null;
runConfigurationBuilder_ = null;
}
name_ = "";
benchmarkType_ = 0;
runMode_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor;
}
public org.tensorflow.util.testlog.TestResults getDefaultInstanceForType() {
return org.tensorflow.util.testlog.TestResults.getDefaultInstance();
}
public org.tensorflow.util.testlog.TestResults build() {
org.tensorflow.util.testlog.TestResults result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.testlog.TestResults buildPartial() {
org.tensorflow.util.testlog.TestResults result = new org.tensorflow.util.testlog.TestResults(this);
result.target_ = target_;
if (entriesBuilder_ == null) {
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
if (buildConfigurationBuilder_ == null) {
result.buildConfiguration_ = buildConfiguration_;
} else {
result.buildConfiguration_ = buildConfigurationBuilder_.build();
}
if (commitIdBuilder_ == null) {
result.commitId_ = commitId_;
} else {
result.commitId_ = commitIdBuilder_.build();
}
result.startTime_ = startTime_;
result.runTime_ = runTime_;
if (machineConfigurationBuilder_ == null) {
result.machineConfiguration_ = machineConfiguration_;
} else {
result.machineConfiguration_ = machineConfigurationBuilder_.build();
}
if (runConfigurationBuilder_ == null) {
result.runConfiguration_ = runConfiguration_;
} else {
result.runConfiguration_ = runConfigurationBuilder_.build();
}
result.name_ = name_;
result.benchmarkType_ = benchmarkType_;
result.runMode_ = runMode_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.util.testlog.TestResults) {
return mergeFrom((org.tensorflow.util.testlog.TestResults)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.testlog.TestResults other) {
if (other == org.tensorflow.util.testlog.TestResults.getDefaultInstance()) return this;
if (!other.getTarget().isEmpty()) {
target_ = other.target_;
onChanged();
}
if (other.hasEntries()) {
mergeEntries(other.getEntries());
}
if (other.hasBuildConfiguration()) {
mergeBuildConfiguration(other.getBuildConfiguration());
}
if (other.hasCommitId()) {
mergeCommitId(other.getCommitId());
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getRunTime() != 0D) {
setRunTime(other.getRunTime());
}
if (other.hasMachineConfiguration()) {
mergeMachineConfiguration(other.getMachineConfiguration());
}
if (other.hasRunConfiguration()) {
mergeRunConfiguration(other.getRunConfiguration());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.benchmarkType_ != 0) {
setBenchmarkTypeValue(other.getBenchmarkTypeValue());
}
if (!other.getRunMode().isEmpty()) {
runMode_ = other.runMode_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.util.testlog.TestResults parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.testlog.TestResults) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object target_ = "";
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
target_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
return this;
}
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
onChanged();
return this;
}
/**
*
* The target of the run, e.g.:
* //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
*
*
* string target = 1;
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
target_ = value;
onChanged();
return this;
}
private org.tensorflow.util.testlog.BenchmarkEntries entries_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BenchmarkEntries, org.tensorflow.util.testlog.BenchmarkEntries.Builder, org.tensorflow.util.testlog.BenchmarkEntriesOrBuilder> entriesBuilder_;
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public boolean hasEntries() {
return entriesBuilder_ != null || entries_ != null;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public org.tensorflow.util.testlog.BenchmarkEntries getEntries() {
if (entriesBuilder_ == null) {
return entries_ == null ? org.tensorflow.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_;
} else {
return entriesBuilder_.getMessage();
}
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public Builder setEntries(org.tensorflow.util.testlog.BenchmarkEntries value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entries_ = value;
onChanged();
} else {
entriesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public Builder setEntries(
org.tensorflow.util.testlog.BenchmarkEntries.Builder builderForValue) {
if (entriesBuilder_ == null) {
entries_ = builderForValue.build();
onChanged();
} else {
entriesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public Builder mergeEntries(org.tensorflow.util.testlog.BenchmarkEntries value) {
if (entriesBuilder_ == null) {
if (entries_ != null) {
entries_ =
org.tensorflow.util.testlog.BenchmarkEntries.newBuilder(entries_).mergeFrom(value).buildPartial();
} else {
entries_ = value;
}
onChanged();
} else {
entriesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public Builder clearEntries() {
if (entriesBuilder_ == null) {
entries_ = null;
onChanged();
} else {
entries_ = null;
entriesBuilder_ = null;
}
return this;
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public org.tensorflow.util.testlog.BenchmarkEntries.Builder getEntriesBuilder() {
onChanged();
return getEntriesFieldBuilder().getBuilder();
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
public org.tensorflow.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrBuilder() {
if (entriesBuilder_ != null) {
return entriesBuilder_.getMessageOrBuilder();
} else {
return entries_ == null ?
org.tensorflow.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_;
}
}
/**
*
* The list of tests or benchmarks in this run.
*
*
* .tensorflow.BenchmarkEntries entries = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BenchmarkEntries, org.tensorflow.util.testlog.BenchmarkEntries.Builder, org.tensorflow.util.testlog.BenchmarkEntriesOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BenchmarkEntries, org.tensorflow.util.testlog.BenchmarkEntries.Builder, org.tensorflow.util.testlog.BenchmarkEntriesOrBuilder>(
getEntries(),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
private org.tensorflow.util.testlog.BuildConfiguration buildConfiguration_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BuildConfiguration, org.tensorflow.util.testlog.BuildConfiguration.Builder, org.tensorflow.util.testlog.BuildConfigurationOrBuilder> buildConfigurationBuilder_;
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public boolean hasBuildConfiguration() {
return buildConfigurationBuilder_ != null || buildConfiguration_ != null;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public org.tensorflow.util.testlog.BuildConfiguration getBuildConfiguration() {
if (buildConfigurationBuilder_ == null) {
return buildConfiguration_ == null ? org.tensorflow.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_;
} else {
return buildConfigurationBuilder_.getMessage();
}
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public Builder setBuildConfiguration(org.tensorflow.util.testlog.BuildConfiguration value) {
if (buildConfigurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buildConfiguration_ = value;
onChanged();
} else {
buildConfigurationBuilder_.setMessage(value);
}
return this;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public Builder setBuildConfiguration(
org.tensorflow.util.testlog.BuildConfiguration.Builder builderForValue) {
if (buildConfigurationBuilder_ == null) {
buildConfiguration_ = builderForValue.build();
onChanged();
} else {
buildConfigurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public Builder mergeBuildConfiguration(org.tensorflow.util.testlog.BuildConfiguration value) {
if (buildConfigurationBuilder_ == null) {
if (buildConfiguration_ != null) {
buildConfiguration_ =
org.tensorflow.util.testlog.BuildConfiguration.newBuilder(buildConfiguration_).mergeFrom(value).buildPartial();
} else {
buildConfiguration_ = value;
}
onChanged();
} else {
buildConfigurationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public Builder clearBuildConfiguration() {
if (buildConfigurationBuilder_ == null) {
buildConfiguration_ = null;
onChanged();
} else {
buildConfiguration_ = null;
buildConfigurationBuilder_ = null;
}
return this;
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public org.tensorflow.util.testlog.BuildConfiguration.Builder getBuildConfigurationBuilder() {
onChanged();
return getBuildConfigurationFieldBuilder().getBuilder();
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
public org.tensorflow.util.testlog.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() {
if (buildConfigurationBuilder_ != null) {
return buildConfigurationBuilder_.getMessageOrBuilder();
} else {
return buildConfiguration_ == null ?
org.tensorflow.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_;
}
}
/**
*
* The configuration of the build (compiled opt? with cuda? any copts?)
*
*
* .tensorflow.BuildConfiguration build_configuration = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BuildConfiguration, org.tensorflow.util.testlog.BuildConfiguration.Builder, org.tensorflow.util.testlog.BuildConfigurationOrBuilder>
getBuildConfigurationFieldBuilder() {
if (buildConfigurationBuilder_ == null) {
buildConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.BuildConfiguration, org.tensorflow.util.testlog.BuildConfiguration.Builder, org.tensorflow.util.testlog.BuildConfigurationOrBuilder>(
getBuildConfiguration(),
getParentForChildren(),
isClean());
buildConfiguration_ = null;
}
return buildConfigurationBuilder_;
}
private org.tensorflow.util.testlog.CommitId commitId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CommitId, org.tensorflow.util.testlog.CommitId.Builder, org.tensorflow.util.testlog.CommitIdOrBuilder> commitIdBuilder_;
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public boolean hasCommitId() {
return commitIdBuilder_ != null || commitId_ != null;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public org.tensorflow.util.testlog.CommitId getCommitId() {
if (commitIdBuilder_ == null) {
return commitId_ == null ? org.tensorflow.util.testlog.CommitId.getDefaultInstance() : commitId_;
} else {
return commitIdBuilder_.getMessage();
}
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public Builder setCommitId(org.tensorflow.util.testlog.CommitId value) {
if (commitIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commitId_ = value;
onChanged();
} else {
commitIdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public Builder setCommitId(
org.tensorflow.util.testlog.CommitId.Builder builderForValue) {
if (commitIdBuilder_ == null) {
commitId_ = builderForValue.build();
onChanged();
} else {
commitIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public Builder mergeCommitId(org.tensorflow.util.testlog.CommitId value) {
if (commitIdBuilder_ == null) {
if (commitId_ != null) {
commitId_ =
org.tensorflow.util.testlog.CommitId.newBuilder(commitId_).mergeFrom(value).buildPartial();
} else {
commitId_ = value;
}
onChanged();
} else {
commitIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public Builder clearCommitId() {
if (commitIdBuilder_ == null) {
commitId_ = null;
onChanged();
} else {
commitId_ = null;
commitIdBuilder_ = null;
}
return this;
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public org.tensorflow.util.testlog.CommitId.Builder getCommitIdBuilder() {
onChanged();
return getCommitIdFieldBuilder().getBuilder();
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
public org.tensorflow.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder() {
if (commitIdBuilder_ != null) {
return commitIdBuilder_.getMessageOrBuilder();
} else {
return commitId_ == null ?
org.tensorflow.util.testlog.CommitId.getDefaultInstance() : commitId_;
}
}
/**
*
* The commit id (git hash or changelist)
*
*
* .tensorflow.CommitId commit_id = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CommitId, org.tensorflow.util.testlog.CommitId.Builder, org.tensorflow.util.testlog.CommitIdOrBuilder>
getCommitIdFieldBuilder() {
if (commitIdBuilder_ == null) {
commitIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CommitId, org.tensorflow.util.testlog.CommitId.Builder, org.tensorflow.util.testlog.CommitIdOrBuilder>(
getCommitId(),
getParentForChildren(),
isClean());
commitId_ = null;
}
return commitIdBuilder_;
}
private long startTime_ ;
/**
*
* The time the run started (in seconds of UTC time since Unix epoch)
*
*
* int64 start_time = 5;
*/
public long getStartTime() {
return startTime_;
}
/**
*
* The time the run started (in seconds of UTC time since Unix epoch)
*
*
* int64 start_time = 5;
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
*
* The time the run started (in seconds of UTC time since Unix epoch)
*
*
* int64 start_time = 5;
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private double runTime_ ;
/**
*
* The amount of time the total run took (wall time in seconds)
*
*
* double run_time = 6;
*/
public double getRunTime() {
return runTime_;
}
/**
*
* The amount of time the total run took (wall time in seconds)
*
*
* double run_time = 6;
*/
public Builder setRunTime(double value) {
runTime_ = value;
onChanged();
return this;
}
/**
*
* The amount of time the total run took (wall time in seconds)
*
*
* double run_time = 6;
*/
public Builder clearRunTime() {
runTime_ = 0D;
onChanged();
return this;
}
private org.tensorflow.util.testlog.MachineConfiguration machineConfiguration_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MachineConfiguration, org.tensorflow.util.testlog.MachineConfiguration.Builder, org.tensorflow.util.testlog.MachineConfigurationOrBuilder> machineConfigurationBuilder_;
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public boolean hasMachineConfiguration() {
return machineConfigurationBuilder_ != null || machineConfiguration_ != null;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public org.tensorflow.util.testlog.MachineConfiguration getMachineConfiguration() {
if (machineConfigurationBuilder_ == null) {
return machineConfiguration_ == null ? org.tensorflow.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_;
} else {
return machineConfigurationBuilder_.getMessage();
}
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public Builder setMachineConfiguration(org.tensorflow.util.testlog.MachineConfiguration value) {
if (machineConfigurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
machineConfiguration_ = value;
onChanged();
} else {
machineConfigurationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public Builder setMachineConfiguration(
org.tensorflow.util.testlog.MachineConfiguration.Builder builderForValue) {
if (machineConfigurationBuilder_ == null) {
machineConfiguration_ = builderForValue.build();
onChanged();
} else {
machineConfigurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public Builder mergeMachineConfiguration(org.tensorflow.util.testlog.MachineConfiguration value) {
if (machineConfigurationBuilder_ == null) {
if (machineConfiguration_ != null) {
machineConfiguration_ =
org.tensorflow.util.testlog.MachineConfiguration.newBuilder(machineConfiguration_).mergeFrom(value).buildPartial();
} else {
machineConfiguration_ = value;
}
onChanged();
} else {
machineConfigurationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public Builder clearMachineConfiguration() {
if (machineConfigurationBuilder_ == null) {
machineConfiguration_ = null;
onChanged();
} else {
machineConfiguration_ = null;
machineConfigurationBuilder_ = null;
}
return this;
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public org.tensorflow.util.testlog.MachineConfiguration.Builder getMachineConfigurationBuilder() {
onChanged();
return getMachineConfigurationFieldBuilder().getBuilder();
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
public org.tensorflow.util.testlog.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() {
if (machineConfigurationBuilder_ != null) {
return machineConfigurationBuilder_.getMessageOrBuilder();
} else {
return machineConfiguration_ == null ?
org.tensorflow.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_;
}
}
/**
*
* Machine-specific parameters (Platform and CPU info)
*
*
* .tensorflow.MachineConfiguration machine_configuration = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MachineConfiguration, org.tensorflow.util.testlog.MachineConfiguration.Builder, org.tensorflow.util.testlog.MachineConfigurationOrBuilder>
getMachineConfigurationFieldBuilder() {
if (machineConfigurationBuilder_ == null) {
machineConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MachineConfiguration, org.tensorflow.util.testlog.MachineConfiguration.Builder, org.tensorflow.util.testlog.MachineConfigurationOrBuilder>(
getMachineConfiguration(),
getParentForChildren(),
isClean());
machineConfiguration_ = null;
}
return machineConfigurationBuilder_;
}
private org.tensorflow.util.testlog.RunConfiguration runConfiguration_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.RunConfiguration, org.tensorflow.util.testlog.RunConfiguration.Builder, org.tensorflow.util.testlog.RunConfigurationOrBuilder> runConfigurationBuilder_;
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public boolean hasRunConfiguration() {
return runConfigurationBuilder_ != null || runConfiguration_ != null;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public org.tensorflow.util.testlog.RunConfiguration getRunConfiguration() {
if (runConfigurationBuilder_ == null) {
return runConfiguration_ == null ? org.tensorflow.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_;
} else {
return runConfigurationBuilder_.getMessage();
}
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public Builder setRunConfiguration(org.tensorflow.util.testlog.RunConfiguration value) {
if (runConfigurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
runConfiguration_ = value;
onChanged();
} else {
runConfigurationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public Builder setRunConfiguration(
org.tensorflow.util.testlog.RunConfiguration.Builder builderForValue) {
if (runConfigurationBuilder_ == null) {
runConfiguration_ = builderForValue.build();
onChanged();
} else {
runConfigurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public Builder mergeRunConfiguration(org.tensorflow.util.testlog.RunConfiguration value) {
if (runConfigurationBuilder_ == null) {
if (runConfiguration_ != null) {
runConfiguration_ =
org.tensorflow.util.testlog.RunConfiguration.newBuilder(runConfiguration_).mergeFrom(value).buildPartial();
} else {
runConfiguration_ = value;
}
onChanged();
} else {
runConfigurationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public Builder clearRunConfiguration() {
if (runConfigurationBuilder_ == null) {
runConfiguration_ = null;
onChanged();
} else {
runConfiguration_ = null;
runConfigurationBuilder_ = null;
}
return this;
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public org.tensorflow.util.testlog.RunConfiguration.Builder getRunConfigurationBuilder() {
onChanged();
return getRunConfigurationFieldBuilder().getBuilder();
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
public org.tensorflow.util.testlog.RunConfigurationOrBuilder getRunConfigurationOrBuilder() {
if (runConfigurationBuilder_ != null) {
return runConfigurationBuilder_.getMessageOrBuilder();
} else {
return runConfiguration_ == null ?
org.tensorflow.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_;
}
}
/**
*
* Run-specific parameters (arguments, etc)
*
*
* .tensorflow.RunConfiguration run_configuration = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.RunConfiguration, org.tensorflow.util.testlog.RunConfiguration.Builder, org.tensorflow.util.testlog.RunConfigurationOrBuilder>
getRunConfigurationFieldBuilder() {
if (runConfigurationBuilder_ == null) {
runConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.RunConfiguration, org.tensorflow.util.testlog.RunConfiguration.Builder, org.tensorflow.util.testlog.RunConfigurationOrBuilder>(
getRunConfiguration(),
getParentForChildren(),
isClean());
runConfiguration_ = null;
}
return runConfigurationBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Benchmark target identifier.
*
*
* string name = 9;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int benchmarkType_ = 0;
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public int getBenchmarkTypeValue() {
return benchmarkType_;
}
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public Builder setBenchmarkTypeValue(int value) {
benchmarkType_ = value;
onChanged();
return this;
}
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public org.tensorflow.util.testlog.TestResults.BenchmarkType getBenchmarkType() {
org.tensorflow.util.testlog.TestResults.BenchmarkType result = org.tensorflow.util.testlog.TestResults.BenchmarkType.valueOf(benchmarkType_);
return result == null ? org.tensorflow.util.testlog.TestResults.BenchmarkType.UNRECOGNIZED : result;
}
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public Builder setBenchmarkType(org.tensorflow.util.testlog.TestResults.BenchmarkType value) {
if (value == null) {
throw new NullPointerException();
}
benchmarkType_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.TestResults.BenchmarkType benchmark_type = 10;
*/
public Builder clearBenchmarkType() {
benchmarkType_ = 0;
onChanged();
return this;
}
private java.lang.Object runMode_ = "";
/**
*
* 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;
*/
public java.lang.String getRunMode() {
java.lang.Object ref = runMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runMode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
*/
public com.google.protobuf.ByteString
getRunModeBytes() {
java.lang.Object ref = runMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
*/
public Builder setRunMode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
runMode_ = value;
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder clearRunMode() {
runMode_ = getDefaultInstance().getRunMode();
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder setRunModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
runMode_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TestResults)
}
// @@protoc_insertion_point(class_scope:tensorflow.TestResults)
private static final org.tensorflow.util.testlog.TestResults DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.util.testlog.TestResults();
}
public static org.tensorflow.util.testlog.TestResults getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TestResults parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestResults(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.util.testlog.TestResults getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy