org.tensorflow.metadata.v0.CrossFeatureStatistics Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/statistics.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* NextID: 8
*
*
* Protobuf type {@code tensorflow.metadata.v0.CrossFeatureStatistics}
*/
public final class CrossFeatureStatistics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.CrossFeatureStatistics)
CrossFeatureStatisticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CrossFeatureStatistics.newBuilder() to construct.
private CrossFeatureStatistics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CrossFeatureStatistics() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CrossFeatureStatistics();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CrossFeatureStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CrossFeatureStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.CrossFeatureStatistics.class, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder.class);
}
private int bitField0_;
private int crossStatsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object crossStats_;
public enum CrossStatsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NUM_CROSS_STATS(4),
CATEGORICAL_CROSS_STATS(5),
CROSSSTATS_NOT_SET(0);
private final int value;
private CrossStatsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CrossStatsCase valueOf(int value) {
return forNumber(value);
}
public static CrossStatsCase forNumber(int value) {
switch (value) {
case 4: return NUM_CROSS_STATS;
case 5: return CATEGORICAL_CROSS_STATS;
case 0: return CROSSSTATS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CrossStatsCase
getCrossStatsCase() {
return CrossStatsCase.forNumber(
crossStatsCase_);
}
public static final int PATH_X_FIELD_NUMBER = 1;
private org.tensorflow.metadata.v0.Path pathX_;
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
* @return Whether the pathX field is set.
*/
@java.lang.Override
public boolean hasPathX() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
* @return The pathX.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getPathX() {
return pathX_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathX_;
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getPathXOrBuilder() {
return pathX_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathX_;
}
public static final int PATH_Y_FIELD_NUMBER = 2;
private org.tensorflow.metadata.v0.Path pathY_;
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
* @return Whether the pathY field is set.
*/
@java.lang.Override
public boolean hasPathY() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
* @return The pathY.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getPathY() {
return pathY_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathY_;
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getPathYOrBuilder() {
return pathY_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathY_;
}
public static final int COUNT_FIELD_NUMBER = 3;
private long count_ = 0L;
/**
*
* Number of occurrences of this feature cross in the data. If any of
* the features in the cross is missing, the example is ignored.
*
*
* uint64 count = 3;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
public static final int NUM_CROSS_STATS_FIELD_NUMBER = 4;
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
* @return Whether the numCrossStats field is set.
*/
@java.lang.Override
public boolean hasNumCrossStats() {
return crossStatsCase_ == 4;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
* @return The numCrossStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericCrossStatistics getNumCrossStats() {
if (crossStatsCase_ == 4) {
return (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericCrossStatisticsOrBuilder getNumCrossStatsOrBuilder() {
if (crossStatsCase_ == 4) {
return (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
}
public static final int CATEGORICAL_CROSS_STATS_FIELD_NUMBER = 5;
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
* @return Whether the categoricalCrossStats field is set.
*/
@java.lang.Override
public boolean hasCategoricalCrossStats() {
return crossStatsCase_ == 5;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
* @return The categoricalCrossStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CategoricalCrossStatistics getCategoricalCrossStats() {
if (crossStatsCase_ == 5) {
return (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CategoricalCrossStatisticsOrBuilder getCategoricalCrossStatsOrBuilder() {
if (crossStatsCase_ == 5) {
return (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
}
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, getPathX());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getPathY());
}
if (count_ != 0L) {
output.writeUInt64(3, count_);
}
if (crossStatsCase_ == 4) {
output.writeMessage(4, (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_);
}
if (crossStatsCase_ == 5) {
output.writeMessage(5, (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_);
}
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, getPathX());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPathY());
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, count_);
}
if (crossStatsCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_);
}
if (crossStatsCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_);
}
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.CrossFeatureStatistics)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.CrossFeatureStatistics other = (org.tensorflow.metadata.v0.CrossFeatureStatistics) obj;
if (hasPathX() != other.hasPathX()) return false;
if (hasPathX()) {
if (!getPathX()
.equals(other.getPathX())) return false;
}
if (hasPathY() != other.hasPathY()) return false;
if (hasPathY()) {
if (!getPathY()
.equals(other.getPathY())) return false;
}
if (getCount()
!= other.getCount()) return false;
if (!getCrossStatsCase().equals(other.getCrossStatsCase())) return false;
switch (crossStatsCase_) {
case 4:
if (!getNumCrossStats()
.equals(other.getNumCrossStats())) return false;
break;
case 5:
if (!getCategoricalCrossStats()
.equals(other.getCategoricalCrossStats())) return false;
break;
case 0:
default:
}
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 (hasPathX()) {
hash = (37 * hash) + PATH_X_FIELD_NUMBER;
hash = (53 * hash) + getPathX().hashCode();
}
if (hasPathY()) {
hash = (37 * hash) + PATH_Y_FIELD_NUMBER;
hash = (53 * hash) + getPathY().hashCode();
}
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
switch (crossStatsCase_) {
case 4:
hash = (37 * hash) + NUM_CROSS_STATS_FIELD_NUMBER;
hash = (53 * hash) + getNumCrossStats().hashCode();
break;
case 5:
hash = (37 * hash) + CATEGORICAL_CROSS_STATS_FIELD_NUMBER;
hash = (53 * hash) + getCategoricalCrossStats().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics 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.CrossFeatureStatistics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics 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.CrossFeatureStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics 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.CrossFeatureStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics 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.CrossFeatureStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics 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.CrossFeatureStatistics 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;
}
/**
*
* NextID: 8
*
*
* Protobuf type {@code tensorflow.metadata.v0.CrossFeatureStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.CrossFeatureStatistics)
org.tensorflow.metadata.v0.CrossFeatureStatisticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CrossFeatureStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CrossFeatureStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.CrossFeatureStatistics.class, org.tensorflow.metadata.v0.CrossFeatureStatistics.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.CrossFeatureStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPathXFieldBuilder();
getPathYFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
pathX_ = null;
if (pathXBuilder_ != null) {
pathXBuilder_.dispose();
pathXBuilder_ = null;
}
pathY_ = null;
if (pathYBuilder_ != null) {
pathYBuilder_.dispose();
pathYBuilder_ = null;
}
count_ = 0L;
if (numCrossStatsBuilder_ != null) {
numCrossStatsBuilder_.clear();
}
if (categoricalCrossStatsBuilder_ != null) {
categoricalCrossStatsBuilder_.clear();
}
crossStatsCase_ = 0;
crossStats_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.Statistics.internal_static_tensorflow_metadata_v0_CrossFeatureStatistics_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.CrossFeatureStatistics getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.CrossFeatureStatistics.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.CrossFeatureStatistics build() {
org.tensorflow.metadata.v0.CrossFeatureStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.CrossFeatureStatistics buildPartial() {
org.tensorflow.metadata.v0.CrossFeatureStatistics result = new org.tensorflow.metadata.v0.CrossFeatureStatistics(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.CrossFeatureStatistics result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.pathX_ = pathXBuilder_ == null
? pathX_
: pathXBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.pathY_ = pathYBuilder_ == null
? pathY_
: pathYBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.count_ = count_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.CrossFeatureStatistics result) {
result.crossStatsCase_ = crossStatsCase_;
result.crossStats_ = this.crossStats_;
if (crossStatsCase_ == 4 &&
numCrossStatsBuilder_ != null) {
result.crossStats_ = numCrossStatsBuilder_.build();
}
if (crossStatsCase_ == 5 &&
categoricalCrossStatsBuilder_ != null) {
result.crossStats_ = categoricalCrossStatsBuilder_.build();
}
}
@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.CrossFeatureStatistics) {
return mergeFrom((org.tensorflow.metadata.v0.CrossFeatureStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.CrossFeatureStatistics other) {
if (other == org.tensorflow.metadata.v0.CrossFeatureStatistics.getDefaultInstance()) return this;
if (other.hasPathX()) {
mergePathX(other.getPathX());
}
if (other.hasPathY()) {
mergePathY(other.getPathY());
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
switch (other.getCrossStatsCase()) {
case NUM_CROSS_STATS: {
mergeNumCrossStats(other.getNumCrossStats());
break;
}
case CATEGORICAL_CROSS_STATS: {
mergeCategoricalCrossStats(other.getCategoricalCrossStats());
break;
}
case CROSSSTATS_NOT_SET: {
break;
}
}
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(
getPathXFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPathYFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
count_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getNumCrossStatsFieldBuilder().getBuilder(),
extensionRegistry);
crossStatsCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getCategoricalCrossStatsFieldBuilder().getBuilder(),
extensionRegistry);
crossStatsCase_ = 5;
break;
} // case 42
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 crossStatsCase_ = 0;
private java.lang.Object crossStats_;
public CrossStatsCase
getCrossStatsCase() {
return CrossStatsCase.forNumber(
crossStatsCase_);
}
public Builder clearCrossStats() {
crossStatsCase_ = 0;
crossStats_ = null;
onChanged();
return this;
}
private int bitField0_;
private org.tensorflow.metadata.v0.Path pathX_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder> pathXBuilder_;
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
* @return Whether the pathX field is set.
*/
public boolean hasPathX() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
* @return The pathX.
*/
public org.tensorflow.metadata.v0.Path getPathX() {
if (pathXBuilder_ == null) {
return pathX_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathX_;
} else {
return pathXBuilder_.getMessage();
}
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public Builder setPathX(org.tensorflow.metadata.v0.Path value) {
if (pathXBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pathX_ = value;
} else {
pathXBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public Builder setPathX(
org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (pathXBuilder_ == null) {
pathX_ = builderForValue.build();
} else {
pathXBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public Builder mergePathX(org.tensorflow.metadata.v0.Path value) {
if (pathXBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
pathX_ != null &&
pathX_ != org.tensorflow.metadata.v0.Path.getDefaultInstance()) {
getPathXBuilder().mergeFrom(value);
} else {
pathX_ = value;
}
} else {
pathXBuilder_.mergeFrom(value);
}
if (pathX_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public Builder clearPathX() {
bitField0_ = (bitField0_ & ~0x00000001);
pathX_ = null;
if (pathXBuilder_ != null) {
pathXBuilder_.dispose();
pathXBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public org.tensorflow.metadata.v0.Path.Builder getPathXBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPathXFieldBuilder().getBuilder();
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
public org.tensorflow.metadata.v0.PathOrBuilder getPathXOrBuilder() {
if (pathXBuilder_ != null) {
return pathXBuilder_.getMessageOrBuilder();
} else {
return pathX_ == null ?
org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathX_;
}
}
/**
*
* The path of feature x.
*
*
* .tensorflow.metadata.v0.Path path_x = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>
getPathXFieldBuilder() {
if (pathXBuilder_ == null) {
pathXBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>(
getPathX(),
getParentForChildren(),
isClean());
pathX_ = null;
}
return pathXBuilder_;
}
private org.tensorflow.metadata.v0.Path pathY_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder> pathYBuilder_;
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
* @return Whether the pathY field is set.
*/
public boolean hasPathY() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
* @return The pathY.
*/
public org.tensorflow.metadata.v0.Path getPathY() {
if (pathYBuilder_ == null) {
return pathY_ == null ? org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathY_;
} else {
return pathYBuilder_.getMessage();
}
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public Builder setPathY(org.tensorflow.metadata.v0.Path value) {
if (pathYBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pathY_ = value;
} else {
pathYBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public Builder setPathY(
org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (pathYBuilder_ == null) {
pathY_ = builderForValue.build();
} else {
pathYBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public Builder mergePathY(org.tensorflow.metadata.v0.Path value) {
if (pathYBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
pathY_ != null &&
pathY_ != org.tensorflow.metadata.v0.Path.getDefaultInstance()) {
getPathYBuilder().mergeFrom(value);
} else {
pathY_ = value;
}
} else {
pathYBuilder_.mergeFrom(value);
}
if (pathY_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public Builder clearPathY() {
bitField0_ = (bitField0_ & ~0x00000002);
pathY_ = null;
if (pathYBuilder_ != null) {
pathYBuilder_.dispose();
pathYBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public org.tensorflow.metadata.v0.Path.Builder getPathYBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPathYFieldBuilder().getBuilder();
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
public org.tensorflow.metadata.v0.PathOrBuilder getPathYOrBuilder() {
if (pathYBuilder_ != null) {
return pathYBuilder_.getMessageOrBuilder();
} else {
return pathY_ == null ?
org.tensorflow.metadata.v0.Path.getDefaultInstance() : pathY_;
}
}
/**
*
* The path of feature y.
*
*
* .tensorflow.metadata.v0.Path path_y = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>
getPathYFieldBuilder() {
if (pathYBuilder_ == null) {
pathYBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>(
getPathY(),
getParentForChildren(),
isClean());
pathY_ = null;
}
return pathYBuilder_;
}
private long count_ ;
/**
*
* Number of occurrences of this feature cross in the data. If any of
* the features in the cross is missing, the example is ignored.
*
*
* uint64 count = 3;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
* Number of occurrences of this feature cross in the data. If any of
* the features in the cross is missing, the example is ignored.
*
*
* uint64 count = 3;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Number of occurrences of this feature cross in the data. If any of
* the features in the cross is missing, the example is ignored.
*
*
* uint64 count = 3;
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000004);
count_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericCrossStatistics, org.tensorflow.metadata.v0.NumericCrossStatistics.Builder, org.tensorflow.metadata.v0.NumericCrossStatisticsOrBuilder> numCrossStatsBuilder_;
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
* @return Whether the numCrossStats field is set.
*/
@java.lang.Override
public boolean hasNumCrossStats() {
return crossStatsCase_ == 4;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
* @return The numCrossStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericCrossStatistics getNumCrossStats() {
if (numCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 4) {
return (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
} else {
if (crossStatsCase_ == 4) {
return numCrossStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
public Builder setNumCrossStats(org.tensorflow.metadata.v0.NumericCrossStatistics value) {
if (numCrossStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
crossStats_ = value;
onChanged();
} else {
numCrossStatsBuilder_.setMessage(value);
}
crossStatsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
public Builder setNumCrossStats(
org.tensorflow.metadata.v0.NumericCrossStatistics.Builder builderForValue) {
if (numCrossStatsBuilder_ == null) {
crossStats_ = builderForValue.build();
onChanged();
} else {
numCrossStatsBuilder_.setMessage(builderForValue.build());
}
crossStatsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
public Builder mergeNumCrossStats(org.tensorflow.metadata.v0.NumericCrossStatistics value) {
if (numCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 4 &&
crossStats_ != org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance()) {
crossStats_ = org.tensorflow.metadata.v0.NumericCrossStatistics.newBuilder((org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_)
.mergeFrom(value).buildPartial();
} else {
crossStats_ = value;
}
onChanged();
} else {
if (crossStatsCase_ == 4) {
numCrossStatsBuilder_.mergeFrom(value);
} else {
numCrossStatsBuilder_.setMessage(value);
}
}
crossStatsCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
public Builder clearNumCrossStats() {
if (numCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 4) {
crossStatsCase_ = 0;
crossStats_ = null;
onChanged();
}
} else {
if (crossStatsCase_ == 4) {
crossStatsCase_ = 0;
crossStats_ = null;
}
numCrossStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
public org.tensorflow.metadata.v0.NumericCrossStatistics.Builder getNumCrossStatsBuilder() {
return getNumCrossStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.NumericCrossStatisticsOrBuilder getNumCrossStatsOrBuilder() {
if ((crossStatsCase_ == 4) && (numCrossStatsBuilder_ != null)) {
return numCrossStatsBuilder_.getMessageOrBuilder();
} else {
if (crossStatsCase_ == 4) {
return (org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.NumericCrossStatistics num_cross_stats = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericCrossStatistics, org.tensorflow.metadata.v0.NumericCrossStatistics.Builder, org.tensorflow.metadata.v0.NumericCrossStatisticsOrBuilder>
getNumCrossStatsFieldBuilder() {
if (numCrossStatsBuilder_ == null) {
if (!(crossStatsCase_ == 4)) {
crossStats_ = org.tensorflow.metadata.v0.NumericCrossStatistics.getDefaultInstance();
}
numCrossStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.NumericCrossStatistics, org.tensorflow.metadata.v0.NumericCrossStatistics.Builder, org.tensorflow.metadata.v0.NumericCrossStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.NumericCrossStatistics) crossStats_,
getParentForChildren(),
isClean());
crossStats_ = null;
}
crossStatsCase_ = 4;
onChanged();
return numCrossStatsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.CategoricalCrossStatistics, org.tensorflow.metadata.v0.CategoricalCrossStatistics.Builder, org.tensorflow.metadata.v0.CategoricalCrossStatisticsOrBuilder> categoricalCrossStatsBuilder_;
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
* @return Whether the categoricalCrossStats field is set.
*/
@java.lang.Override
public boolean hasCategoricalCrossStats() {
return crossStatsCase_ == 5;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
* @return The categoricalCrossStats.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CategoricalCrossStatistics getCategoricalCrossStats() {
if (categoricalCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 5) {
return (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
} else {
if (crossStatsCase_ == 5) {
return categoricalCrossStatsBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
public Builder setCategoricalCrossStats(org.tensorflow.metadata.v0.CategoricalCrossStatistics value) {
if (categoricalCrossStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
crossStats_ = value;
onChanged();
} else {
categoricalCrossStatsBuilder_.setMessage(value);
}
crossStatsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
public Builder setCategoricalCrossStats(
org.tensorflow.metadata.v0.CategoricalCrossStatistics.Builder builderForValue) {
if (categoricalCrossStatsBuilder_ == null) {
crossStats_ = builderForValue.build();
onChanged();
} else {
categoricalCrossStatsBuilder_.setMessage(builderForValue.build());
}
crossStatsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
public Builder mergeCategoricalCrossStats(org.tensorflow.metadata.v0.CategoricalCrossStatistics value) {
if (categoricalCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 5 &&
crossStats_ != org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance()) {
crossStats_ = org.tensorflow.metadata.v0.CategoricalCrossStatistics.newBuilder((org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_)
.mergeFrom(value).buildPartial();
} else {
crossStats_ = value;
}
onChanged();
} else {
if (crossStatsCase_ == 5) {
categoricalCrossStatsBuilder_.mergeFrom(value);
} else {
categoricalCrossStatsBuilder_.setMessage(value);
}
}
crossStatsCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
public Builder clearCategoricalCrossStats() {
if (categoricalCrossStatsBuilder_ == null) {
if (crossStatsCase_ == 5) {
crossStatsCase_ = 0;
crossStats_ = null;
onChanged();
}
} else {
if (crossStatsCase_ == 5) {
crossStatsCase_ = 0;
crossStats_ = null;
}
categoricalCrossStatsBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
public org.tensorflow.metadata.v0.CategoricalCrossStatistics.Builder getCategoricalCrossStatsBuilder() {
return getCategoricalCrossStatsFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.CategoricalCrossStatisticsOrBuilder getCategoricalCrossStatsOrBuilder() {
if ((crossStatsCase_ == 5) && (categoricalCrossStatsBuilder_ != null)) {
return categoricalCrossStatsBuilder_.getMessageOrBuilder();
} else {
if (crossStatsCase_ == 5) {
return (org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_;
}
return org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.CategoricalCrossStatistics categorical_cross_stats = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.CategoricalCrossStatistics, org.tensorflow.metadata.v0.CategoricalCrossStatistics.Builder, org.tensorflow.metadata.v0.CategoricalCrossStatisticsOrBuilder>
getCategoricalCrossStatsFieldBuilder() {
if (categoricalCrossStatsBuilder_ == null) {
if (!(crossStatsCase_ == 5)) {
crossStats_ = org.tensorflow.metadata.v0.CategoricalCrossStatistics.getDefaultInstance();
}
categoricalCrossStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.CategoricalCrossStatistics, org.tensorflow.metadata.v0.CategoricalCrossStatistics.Builder, org.tensorflow.metadata.v0.CategoricalCrossStatisticsOrBuilder>(
(org.tensorflow.metadata.v0.CategoricalCrossStatistics) crossStats_,
getParentForChildren(),
isClean());
crossStats_ = null;
}
crossStatsCase_ = 5;
onChanged();
return categoricalCrossStatsBuilder_;
}
@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.CrossFeatureStatistics)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.CrossFeatureStatistics)
private static final org.tensorflow.metadata.v0.CrossFeatureStatistics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.CrossFeatureStatistics();
}
public static org.tensorflow.metadata.v0.CrossFeatureStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CrossFeatureStatistics 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.CrossFeatureStatistics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy