org.tensorflow.util.testlog.MetricEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/util/test_log.proto
package org.tensorflow.util.testlog;
/**
* Protobuf type {@code tensorflow.MetricEntry}
*/
public final class MetricEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.MetricEntry)
MetricEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use MetricEntry.newBuilder() to construct.
private MetricEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MetricEntry() {
name_ = "";
value_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MetricEntry(
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();
name_ = s;
break;
}
case 17: {
value_ = input.readDouble();
break;
}
case 26: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (minValue_ != null) {
subBuilder = minValue_.toBuilder();
}
minValue_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(minValue_);
minValue_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (maxValue_ != null) {
subBuilder = maxValue_.toBuilder();
}
maxValue_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxValue_);
maxValue_ = subBuilder.buildPartial();
}
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_MetricEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.MetricEntry.class, org.tensorflow.util.testlog.MetricEntry.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Metric name
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Metric name
*
*
* string name = 1;
*/
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 VALUE_FIELD_NUMBER = 2;
private double value_;
/**
*
* Metric value
*
*
* double value = 2;
*/
public double getValue() {
return value_;
}
public static final int MIN_VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.DoubleValue minValue_;
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public boolean hasMinValue() {
return minValue_ != null;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public com.google.protobuf.DoubleValue getMinValue() {
return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() {
return getMinValue();
}
public static final int MAX_VALUE_FIELD_NUMBER = 4;
private com.google.protobuf.DoubleValue maxValue_;
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public boolean hasMaxValue() {
return maxValue_ != null;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public com.google.protobuf.DoubleValue getMaxValue() {
return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() {
return getMaxValue();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (value_ != 0D) {
output.writeDouble(2, value_);
}
if (minValue_ != null) {
output.writeMessage(3, getMinValue());
}
if (maxValue_ != null) {
output.writeMessage(4, getMaxValue());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (value_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, value_);
}
if (minValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMinValue());
}
if (maxValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMaxValue());
}
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.MetricEntry)) {
return super.equals(obj);
}
org.tensorflow.util.testlog.MetricEntry other = (org.tensorflow.util.testlog.MetricEntry) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (
java.lang.Double.doubleToLongBits(getValue())
== java.lang.Double.doubleToLongBits(
other.getValue()));
result = result && (hasMinValue() == other.hasMinValue());
if (hasMinValue()) {
result = result && getMinValue()
.equals(other.getMinValue());
}
result = result && (hasMaxValue() == other.hasMaxValue());
if (hasMaxValue()) {
result = result && getMaxValue()
.equals(other.getMaxValue());
}
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
if (hasMinValue()) {
hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getMinValue().hashCode();
}
if (hasMaxValue()) {
hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getMaxValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.util.testlog.MetricEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MetricEntry 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.MetricEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MetricEntry 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.MetricEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MetricEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.MetricEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MetricEntry 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.MetricEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MetricEntry 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.MetricEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MetricEntry 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.MetricEntry 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;
}
/**
* Protobuf type {@code tensorflow.MetricEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.MetricEntry)
org.tensorflow.util.testlog.MetricEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.MetricEntry.class, org.tensorflow.util.testlog.MetricEntry.Builder.class);
}
// Construct using org.tensorflow.util.testlog.MetricEntry.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();
name_ = "";
value_ = 0D;
if (minValueBuilder_ == null) {
minValue_ = null;
} else {
minValue_ = null;
minValueBuilder_ = null;
}
if (maxValueBuilder_ == null) {
maxValue_ = null;
} else {
maxValue_ = null;
maxValueBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor;
}
public org.tensorflow.util.testlog.MetricEntry getDefaultInstanceForType() {
return org.tensorflow.util.testlog.MetricEntry.getDefaultInstance();
}
public org.tensorflow.util.testlog.MetricEntry build() {
org.tensorflow.util.testlog.MetricEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.testlog.MetricEntry buildPartial() {
org.tensorflow.util.testlog.MetricEntry result = new org.tensorflow.util.testlog.MetricEntry(this);
result.name_ = name_;
result.value_ = value_;
if (minValueBuilder_ == null) {
result.minValue_ = minValue_;
} else {
result.minValue_ = minValueBuilder_.build();
}
if (maxValueBuilder_ == null) {
result.maxValue_ = maxValue_;
} else {
result.maxValue_ = maxValueBuilder_.build();
}
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.MetricEntry) {
return mergeFrom((org.tensorflow.util.testlog.MetricEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.testlog.MetricEntry other) {
if (other == org.tensorflow.util.testlog.MetricEntry.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getValue() != 0D) {
setValue(other.getValue());
}
if (other.hasMinValue()) {
mergeMinValue(other.getMinValue());
}
if (other.hasMaxValue()) {
mergeMaxValue(other.getMaxValue());
}
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.MetricEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.testlog.MetricEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Metric name
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Metric name
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Metric name
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Metric name
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Metric name
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private double value_ ;
/**
*
* Metric value
*
*
* double value = 2;
*/
public double getValue() {
return value_;
}
/**
*
* Metric value
*
*
* double value = 2;
*/
public Builder setValue(double value) {
value_ = value;
onChanged();
return this;
}
/**
*
* Metric value
*
*
* double value = 2;
*/
public Builder clearValue() {
value_ = 0D;
onChanged();
return this;
}
private com.google.protobuf.DoubleValue minValue_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> minValueBuilder_;
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public boolean hasMinValue() {
return minValueBuilder_ != null || minValue_ != null;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public com.google.protobuf.DoubleValue getMinValue() {
if (minValueBuilder_ == null) {
return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_;
} else {
return minValueBuilder_.getMessage();
}
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public Builder setMinValue(com.google.protobuf.DoubleValue value) {
if (minValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
minValue_ = value;
onChanged();
} else {
minValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public Builder setMinValue(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (minValueBuilder_ == null) {
minValue_ = builderForValue.build();
onChanged();
} else {
minValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public Builder mergeMinValue(com.google.protobuf.DoubleValue value) {
if (minValueBuilder_ == null) {
if (minValue_ != null) {
minValue_ =
com.google.protobuf.DoubleValue.newBuilder(minValue_).mergeFrom(value).buildPartial();
} else {
minValue_ = value;
}
onChanged();
} else {
minValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public Builder clearMinValue() {
if (minValueBuilder_ == null) {
minValue_ = null;
onChanged();
} else {
minValue_ = null;
minValueBuilder_ = null;
}
return this;
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public com.google.protobuf.DoubleValue.Builder getMinValueBuilder() {
onChanged();
return getMinValueFieldBuilder().getBuilder();
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() {
if (minValueBuilder_ != null) {
return minValueBuilder_.getMessageOrBuilder();
} else {
return minValue_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_;
}
}
/**
*
* The minimum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue min_value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getMinValueFieldBuilder() {
if (minValueBuilder_ == null) {
minValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getMinValue(),
getParentForChildren(),
isClean());
minValue_ = null;
}
return minValueBuilder_;
}
private com.google.protobuf.DoubleValue maxValue_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> maxValueBuilder_;
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public boolean hasMaxValue() {
return maxValueBuilder_ != null || maxValue_ != null;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public com.google.protobuf.DoubleValue getMaxValue() {
if (maxValueBuilder_ == null) {
return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_;
} else {
return maxValueBuilder_.getMessage();
}
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public Builder setMaxValue(com.google.protobuf.DoubleValue value) {
if (maxValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxValue_ = value;
onChanged();
} else {
maxValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public Builder setMaxValue(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (maxValueBuilder_ == null) {
maxValue_ = builderForValue.build();
onChanged();
} else {
maxValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public Builder mergeMaxValue(com.google.protobuf.DoubleValue value) {
if (maxValueBuilder_ == null) {
if (maxValue_ != null) {
maxValue_ =
com.google.protobuf.DoubleValue.newBuilder(maxValue_).mergeFrom(value).buildPartial();
} else {
maxValue_ = value;
}
onChanged();
} else {
maxValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public Builder clearMaxValue() {
if (maxValueBuilder_ == null) {
maxValue_ = null;
onChanged();
} else {
maxValue_ = null;
maxValueBuilder_ = null;
}
return this;
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public com.google.protobuf.DoubleValue.Builder getMaxValueBuilder() {
onChanged();
return getMaxValueFieldBuilder().getBuilder();
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() {
if (maxValueBuilder_ != null) {
return maxValueBuilder_.getMessageOrBuilder();
} else {
return maxValue_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_;
}
}
/**
*
* The maximum acceptable value for the metric if specified
*
*
* .google.protobuf.DoubleValue max_value = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getMaxValueFieldBuilder() {
if (maxValueBuilder_ == null) {
maxValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getMaxValue(),
getParentForChildren(),
isClean());
maxValue_ = null;
}
return maxValueBuilder_;
}
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.MetricEntry)
}
// @@protoc_insertion_point(class_scope:tensorflow.MetricEntry)
private static final org.tensorflow.util.testlog.MetricEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.util.testlog.MetricEntry();
}
public static org.tensorflow.util.testlog.MetricEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public MetricEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MetricEntry(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.MetricEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}