All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.metadata.v0.DatasetConstraints Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/schema.proto

// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;

/**
 * 
 * Constraints on the entire dataset.
 * 
* * Protobuf type {@code tensorflow.metadata.v0.DatasetConstraints} */ public final class DatasetConstraints extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DatasetConstraints) DatasetConstraintsOrBuilder { private static final long serialVersionUID = 0L; // Use DatasetConstraints.newBuilder() to construct. private DatasetConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DatasetConstraints() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DatasetConstraints(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_DatasetConstraints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_DatasetConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.DatasetConstraints.class, org.tensorflow.metadata.v0.DatasetConstraints.Builder.class); } private int bitField0_; public static final int NUM_EXAMPLES_DRIFT_COMPARATOR_FIELD_NUMBER = 1; private org.tensorflow.metadata.v0.NumericValueComparator numExamplesDriftComparator_; /** *
   * Tests differences in number of examples between the current data and the
   * previous span.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; * @return Whether the numExamplesDriftComparator field is set. */ @java.lang.Override public boolean hasNumExamplesDriftComparator() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Tests differences in number of examples between the current data and the
   * previous span.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; * @return The numExamplesDriftComparator. */ @java.lang.Override public org.tensorflow.metadata.v0.NumericValueComparator getNumExamplesDriftComparator() { return numExamplesDriftComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesDriftComparator_; } /** *
   * Tests differences in number of examples between the current data and the
   * previous span.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ @java.lang.Override public org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder getNumExamplesDriftComparatorOrBuilder() { return numExamplesDriftComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesDriftComparator_; } public static final int NUM_EXAMPLES_VERSION_COMPARATOR_FIELD_NUMBER = 2; private org.tensorflow.metadata.v0.NumericValueComparator numExamplesVersionComparator_; /** *
   * Tests comparisions in number of examples between the current data and the
   * previous version of that data.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; * @return Whether the numExamplesVersionComparator field is set. */ @java.lang.Override public boolean hasNumExamplesVersionComparator() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Tests comparisions in number of examples between the current data and the
   * previous version of that data.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; * @return The numExamplesVersionComparator. */ @java.lang.Override public org.tensorflow.metadata.v0.NumericValueComparator getNumExamplesVersionComparator() { return numExamplesVersionComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesVersionComparator_; } /** *
   * Tests comparisions in number of examples between the current data and the
   * previous version of that data.
   * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ @java.lang.Override public org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder getNumExamplesVersionComparatorOrBuilder() { return numExamplesVersionComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesVersionComparator_; } public static final int MIN_EXAMPLES_COUNT_FIELD_NUMBER = 3; private long minExamplesCount_ = 0L; /** *
   * Minimum number of examples in the dataset.
   * 
* * optional int64 min_examples_count = 3; * @return Whether the minExamplesCount field is set. */ @java.lang.Override public boolean hasMinExamplesCount() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Minimum number of examples in the dataset.
   * 
* * optional int64 min_examples_count = 3; * @return The minExamplesCount. */ @java.lang.Override public long getMinExamplesCount() { return minExamplesCount_; } public static final int MAX_EXAMPLES_COUNT_FIELD_NUMBER = 4; private long maxExamplesCount_ = 0L; /** *
   * Maximum number of examples in the dataset.
   * 
* * optional int64 max_examples_count = 4; * @return Whether the maxExamplesCount field is set. */ @java.lang.Override public boolean hasMaxExamplesCount() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Maximum number of examples in the dataset.
   * 
* * optional int64 max_examples_count = 4; * @return The maxExamplesCount. */ @java.lang.Override public long getMaxExamplesCount() { return maxExamplesCount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNumExamplesDriftComparator()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNumExamplesVersionComparator()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, minExamplesCount_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(4, maxExamplesCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNumExamplesDriftComparator()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNumExamplesVersionComparator()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, minExamplesCount_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, maxExamplesCount_); } size += getUnknownFields().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.metadata.v0.DatasetConstraints)) { return super.equals(obj); } org.tensorflow.metadata.v0.DatasetConstraints other = (org.tensorflow.metadata.v0.DatasetConstraints) obj; if (hasNumExamplesDriftComparator() != other.hasNumExamplesDriftComparator()) return false; if (hasNumExamplesDriftComparator()) { if (!getNumExamplesDriftComparator() .equals(other.getNumExamplesDriftComparator())) return false; } if (hasNumExamplesVersionComparator() != other.hasNumExamplesVersionComparator()) return false; if (hasNumExamplesVersionComparator()) { if (!getNumExamplesVersionComparator() .equals(other.getNumExamplesVersionComparator())) return false; } if (hasMinExamplesCount() != other.hasMinExamplesCount()) return false; if (hasMinExamplesCount()) { if (getMinExamplesCount() != other.getMinExamplesCount()) return false; } if (hasMaxExamplesCount() != other.hasMaxExamplesCount()) return false; if (hasMaxExamplesCount()) { if (getMaxExamplesCount() != other.getMaxExamplesCount()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNumExamplesDriftComparator()) { hash = (37 * hash) + NUM_EXAMPLES_DRIFT_COMPARATOR_FIELD_NUMBER; hash = (53 * hash) + getNumExamplesDriftComparator().hashCode(); } if (hasNumExamplesVersionComparator()) { hash = (37 * hash) + NUM_EXAMPLES_VERSION_COMPARATOR_FIELD_NUMBER; hash = (53 * hash) + getNumExamplesVersionComparator().hashCode(); } if (hasMinExamplesCount()) { hash = (37 * hash) + MIN_EXAMPLES_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinExamplesCount()); } if (hasMaxExamplesCount()) { hash = (37 * hash) + MAX_EXAMPLES_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxExamplesCount()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetConstraints 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.metadata.v0.DatasetConstraints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetConstraints 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.metadata.v0.DatasetConstraints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetConstraints 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.metadata.v0.DatasetConstraints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.metadata.v0.DatasetConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.metadata.v0.DatasetConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
   * Constraints on the entire dataset.
   * 
* * Protobuf type {@code tensorflow.metadata.v0.DatasetConstraints} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DatasetConstraints) org.tensorflow.metadata.v0.DatasetConstraintsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_DatasetConstraints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_DatasetConstraints_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.metadata.v0.DatasetConstraints.class, org.tensorflow.metadata.v0.DatasetConstraints.Builder.class); } // Construct using org.tensorflow.metadata.v0.DatasetConstraints.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNumExamplesDriftComparatorFieldBuilder(); getNumExamplesVersionComparatorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; numExamplesDriftComparator_ = null; if (numExamplesDriftComparatorBuilder_ != null) { numExamplesDriftComparatorBuilder_.dispose(); numExamplesDriftComparatorBuilder_ = null; } numExamplesVersionComparator_ = null; if (numExamplesVersionComparatorBuilder_ != null) { numExamplesVersionComparatorBuilder_.dispose(); numExamplesVersionComparatorBuilder_ = null; } minExamplesCount_ = 0L; maxExamplesCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_DatasetConstraints_descriptor; } @java.lang.Override public org.tensorflow.metadata.v0.DatasetConstraints getDefaultInstanceForType() { return org.tensorflow.metadata.v0.DatasetConstraints.getDefaultInstance(); } @java.lang.Override public org.tensorflow.metadata.v0.DatasetConstraints build() { org.tensorflow.metadata.v0.DatasetConstraints result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.metadata.v0.DatasetConstraints buildPartial() { org.tensorflow.metadata.v0.DatasetConstraints result = new org.tensorflow.metadata.v0.DatasetConstraints(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.tensorflow.metadata.v0.DatasetConstraints result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.numExamplesDriftComparator_ = numExamplesDriftComparatorBuilder_ == null ? numExamplesDriftComparator_ : numExamplesDriftComparatorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numExamplesVersionComparator_ = numExamplesVersionComparatorBuilder_ == null ? numExamplesVersionComparator_ : numExamplesVersionComparatorBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.minExamplesCount_ = minExamplesCount_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxExamplesCount_ = maxExamplesCount_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.metadata.v0.DatasetConstraints) { return mergeFrom((org.tensorflow.metadata.v0.DatasetConstraints)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.metadata.v0.DatasetConstraints other) { if (other == org.tensorflow.metadata.v0.DatasetConstraints.getDefaultInstance()) return this; if (other.hasNumExamplesDriftComparator()) { mergeNumExamplesDriftComparator(other.getNumExamplesDriftComparator()); } if (other.hasNumExamplesVersionComparator()) { mergeNumExamplesVersionComparator(other.getNumExamplesVersionComparator()); } if (other.hasMinExamplesCount()) { setMinExamplesCount(other.getMinExamplesCount()); } if (other.hasMaxExamplesCount()) { setMaxExamplesCount(other.getMaxExamplesCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNumExamplesDriftComparatorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNumExamplesVersionComparatorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { minExamplesCount_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { maxExamplesCount_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.tensorflow.metadata.v0.NumericValueComparator numExamplesDriftComparator_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder> numExamplesDriftComparatorBuilder_; /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; * @return Whether the numExamplesDriftComparator field is set. */ public boolean hasNumExamplesDriftComparator() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; * @return The numExamplesDriftComparator. */ public org.tensorflow.metadata.v0.NumericValueComparator getNumExamplesDriftComparator() { if (numExamplesDriftComparatorBuilder_ == null) { return numExamplesDriftComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesDriftComparator_; } else { return numExamplesDriftComparatorBuilder_.getMessage(); } } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public Builder setNumExamplesDriftComparator(org.tensorflow.metadata.v0.NumericValueComparator value) { if (numExamplesDriftComparatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } numExamplesDriftComparator_ = value; } else { numExamplesDriftComparatorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public Builder setNumExamplesDriftComparator( org.tensorflow.metadata.v0.NumericValueComparator.Builder builderForValue) { if (numExamplesDriftComparatorBuilder_ == null) { numExamplesDriftComparator_ = builderForValue.build(); } else { numExamplesDriftComparatorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public Builder mergeNumExamplesDriftComparator(org.tensorflow.metadata.v0.NumericValueComparator value) { if (numExamplesDriftComparatorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && numExamplesDriftComparator_ != null && numExamplesDriftComparator_ != org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance()) { getNumExamplesDriftComparatorBuilder().mergeFrom(value); } else { numExamplesDriftComparator_ = value; } } else { numExamplesDriftComparatorBuilder_.mergeFrom(value); } if (numExamplesDriftComparator_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public Builder clearNumExamplesDriftComparator() { bitField0_ = (bitField0_ & ~0x00000001); numExamplesDriftComparator_ = null; if (numExamplesDriftComparatorBuilder_ != null) { numExamplesDriftComparatorBuilder_.dispose(); numExamplesDriftComparatorBuilder_ = null; } onChanged(); return this; } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public org.tensorflow.metadata.v0.NumericValueComparator.Builder getNumExamplesDriftComparatorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNumExamplesDriftComparatorFieldBuilder().getBuilder(); } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ public org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder getNumExamplesDriftComparatorOrBuilder() { if (numExamplesDriftComparatorBuilder_ != null) { return numExamplesDriftComparatorBuilder_.getMessageOrBuilder(); } else { return numExamplesDriftComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesDriftComparator_; } } /** *
     * Tests differences in number of examples between the current data and the
     * previous span.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_drift_comparator = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder> getNumExamplesDriftComparatorFieldBuilder() { if (numExamplesDriftComparatorBuilder_ == null) { numExamplesDriftComparatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder>( getNumExamplesDriftComparator(), getParentForChildren(), isClean()); numExamplesDriftComparator_ = null; } return numExamplesDriftComparatorBuilder_; } private org.tensorflow.metadata.v0.NumericValueComparator numExamplesVersionComparator_; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder> numExamplesVersionComparatorBuilder_; /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; * @return Whether the numExamplesVersionComparator field is set. */ public boolean hasNumExamplesVersionComparator() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; * @return The numExamplesVersionComparator. */ public org.tensorflow.metadata.v0.NumericValueComparator getNumExamplesVersionComparator() { if (numExamplesVersionComparatorBuilder_ == null) { return numExamplesVersionComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesVersionComparator_; } else { return numExamplesVersionComparatorBuilder_.getMessage(); } } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public Builder setNumExamplesVersionComparator(org.tensorflow.metadata.v0.NumericValueComparator value) { if (numExamplesVersionComparatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } numExamplesVersionComparator_ = value; } else { numExamplesVersionComparatorBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public Builder setNumExamplesVersionComparator( org.tensorflow.metadata.v0.NumericValueComparator.Builder builderForValue) { if (numExamplesVersionComparatorBuilder_ == null) { numExamplesVersionComparator_ = builderForValue.build(); } else { numExamplesVersionComparatorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public Builder mergeNumExamplesVersionComparator(org.tensorflow.metadata.v0.NumericValueComparator value) { if (numExamplesVersionComparatorBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && numExamplesVersionComparator_ != null && numExamplesVersionComparator_ != org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance()) { getNumExamplesVersionComparatorBuilder().mergeFrom(value); } else { numExamplesVersionComparator_ = value; } } else { numExamplesVersionComparatorBuilder_.mergeFrom(value); } if (numExamplesVersionComparator_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public Builder clearNumExamplesVersionComparator() { bitField0_ = (bitField0_ & ~0x00000002); numExamplesVersionComparator_ = null; if (numExamplesVersionComparatorBuilder_ != null) { numExamplesVersionComparatorBuilder_.dispose(); numExamplesVersionComparatorBuilder_ = null; } onChanged(); return this; } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public org.tensorflow.metadata.v0.NumericValueComparator.Builder getNumExamplesVersionComparatorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNumExamplesVersionComparatorFieldBuilder().getBuilder(); } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ public org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder getNumExamplesVersionComparatorOrBuilder() { if (numExamplesVersionComparatorBuilder_ != null) { return numExamplesVersionComparatorBuilder_.getMessageOrBuilder(); } else { return numExamplesVersionComparator_ == null ? org.tensorflow.metadata.v0.NumericValueComparator.getDefaultInstance() : numExamplesVersionComparator_; } } /** *
     * Tests comparisions in number of examples between the current data and the
     * previous version of that data.
     * 
* * optional .tensorflow.metadata.v0.NumericValueComparator num_examples_version_comparator = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder> getNumExamplesVersionComparatorFieldBuilder() { if (numExamplesVersionComparatorBuilder_ == null) { numExamplesVersionComparatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.metadata.v0.NumericValueComparator, org.tensorflow.metadata.v0.NumericValueComparator.Builder, org.tensorflow.metadata.v0.NumericValueComparatorOrBuilder>( getNumExamplesVersionComparator(), getParentForChildren(), isClean()); numExamplesVersionComparator_ = null; } return numExamplesVersionComparatorBuilder_; } private long minExamplesCount_ ; /** *
     * Minimum number of examples in the dataset.
     * 
* * optional int64 min_examples_count = 3; * @return Whether the minExamplesCount field is set. */ @java.lang.Override public boolean hasMinExamplesCount() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Minimum number of examples in the dataset.
     * 
* * optional int64 min_examples_count = 3; * @return The minExamplesCount. */ @java.lang.Override public long getMinExamplesCount() { return minExamplesCount_; } /** *
     * Minimum number of examples in the dataset.
     * 
* * optional int64 min_examples_count = 3; * @param value The minExamplesCount to set. * @return This builder for chaining. */ public Builder setMinExamplesCount(long value) { minExamplesCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Minimum number of examples in the dataset.
     * 
* * optional int64 min_examples_count = 3; * @return This builder for chaining. */ public Builder clearMinExamplesCount() { bitField0_ = (bitField0_ & ~0x00000004); minExamplesCount_ = 0L; onChanged(); return this; } private long maxExamplesCount_ ; /** *
     * Maximum number of examples in the dataset.
     * 
* * optional int64 max_examples_count = 4; * @return Whether the maxExamplesCount field is set. */ @java.lang.Override public boolean hasMaxExamplesCount() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Maximum number of examples in the dataset.
     * 
* * optional int64 max_examples_count = 4; * @return The maxExamplesCount. */ @java.lang.Override public long getMaxExamplesCount() { return maxExamplesCount_; } /** *
     * Maximum number of examples in the dataset.
     * 
* * optional int64 max_examples_count = 4; * @param value The maxExamplesCount to set. * @return This builder for chaining. */ public Builder setMaxExamplesCount(long value) { maxExamplesCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Maximum number of examples in the dataset.
     * 
* * optional int64 max_examples_count = 4; * @return This builder for chaining. */ public Builder clearMaxExamplesCount() { bitField0_ = (bitField0_ & ~0x00000008); maxExamplesCount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.metadata.v0.DatasetConstraints) } // @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DatasetConstraints) private static final org.tensorflow.metadata.v0.DatasetConstraints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DatasetConstraints(); } public static org.tensorflow.metadata.v0.DatasetConstraints getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DatasetConstraints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.metadata.v0.DatasetConstraints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy