org.tensorflow.metadata.v0.DerivedFeatureSource Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/derived_feature.proto
// Protobuf Java Version: 3.25.5
package org.tensorflow.metadata.v0;
/**
*
* DerivedFeatureSource tracks information about the source of a derived
* feature. Derived features are computed from ordinary features for the
* purposes of statistics collection and validation, but do not exist in the
* dataset.
* Experimental and subject to change.
* LINT.IfChange
*
*
* Protobuf type {@code tensorflow.metadata.v0.DerivedFeatureSource}
*/
public final class DerivedFeatureSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DerivedFeatureSource)
DerivedFeatureSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use DerivedFeatureSource.newBuilder() to construct.
private DerivedFeatureSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DerivedFeatureSource() {
deriverName_ = "";
description_ = "";
sourcePath_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DerivedFeatureSource();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DerivedFeatureSource.class, org.tensorflow.metadata.v0.DerivedFeatureSource.Builder.class);
}
private int bitField0_;
public static final int DERIVER_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object deriverName_ = "";
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @return The deriverName.
*/
@java.lang.Override
public java.lang.String getDeriverName() {
java.lang.Object ref = deriverName_;
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();
deriverName_ = s;
return s;
}
}
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @return The bytes for deriverName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeriverNameBytes() {
java.lang.Object ref = deriverName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deriverName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_PATH_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List sourcePath_;
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
@java.lang.Override
public java.util.List getSourcePathList() {
return sourcePath_;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
@java.lang.Override
public java.util.List extends org.tensorflow.metadata.v0.PathOrBuilder>
getSourcePathOrBuilderList() {
return sourcePath_;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
@java.lang.Override
public int getSourcePathCount() {
return sourcePath_.size();
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.Path getSourcePath(int index) {
return sourcePath_.get(index);
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.PathOrBuilder getSourcePathOrBuilder(
int index) {
return sourcePath_.get(index);
}
public static final int DECLARATIVELY_CONFIGURED_FIELD_NUMBER = 4;
private boolean declarativelyConfigured_ = false;
/**
*
* A DerivedFeatureSource that is declaratively configured represents an
* intent for downstream processing to generate a derived feature
* (in the schema), or tracks that a feature was generated from such a
* configuration (in statistics).
*
*
* bool declaratively_configured = 4;
* @return The declarativelyConfigured.
*/
@java.lang.Override
public boolean getDeclarativelyConfigured() {
return declarativelyConfigured_;
}
public static final int CONFIG_FIELD_NUMBER = 5;
private org.tensorflow.metadata.v0.DerivedFeatureConfig config_;
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
* @return The config.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureConfig getConfig() {
return config_ == null ? org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance() : config_;
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder getConfigOrBuilder() {
return config_ == null ? org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance() : config_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deriverName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deriverName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
for (int i = 0; i < sourcePath_.size(); i++) {
output.writeMessage(3, sourcePath_.get(i));
}
if (declarativelyConfigured_ != false) {
output.writeBool(4, declarativelyConfigured_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deriverName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deriverName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
for (int i = 0; i < sourcePath_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, sourcePath_.get(i));
}
if (declarativelyConfigured_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, declarativelyConfigured_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getConfig());
}
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.DerivedFeatureSource)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.DerivedFeatureSource other = (org.tensorflow.metadata.v0.DerivedFeatureSource) obj;
if (!getDeriverName()
.equals(other.getDeriverName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getSourcePathList()
.equals(other.getSourcePathList())) return false;
if (getDeclarativelyConfigured()
!= other.getDeclarativelyConfigured()) return false;
if (hasConfig() != other.hasConfig()) return false;
if (hasConfig()) {
if (!getConfig()
.equals(other.getConfig())) 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();
hash = (37 * hash) + DERIVER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeriverName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (getSourcePathCount() > 0) {
hash = (37 * hash) + SOURCE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getSourcePathList().hashCode();
}
hash = (37 * hash) + DECLARATIVELY_CONFIGURED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeclarativelyConfigured());
if (hasConfig()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource 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.DerivedFeatureSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource 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.DerivedFeatureSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource 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.DerivedFeatureSource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource 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.DerivedFeatureSource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource 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.DerivedFeatureSource 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;
}
/**
*
* DerivedFeatureSource tracks information about the source of a derived
* feature. Derived features are computed from ordinary features for the
* purposes of statistics collection and validation, but do not exist in the
* dataset.
* Experimental and subject to change.
* LINT.IfChange
*
*
* Protobuf type {@code tensorflow.metadata.v0.DerivedFeatureSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DerivedFeatureSource)
org.tensorflow.metadata.v0.DerivedFeatureSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DerivedFeatureSource.class, org.tensorflow.metadata.v0.DerivedFeatureSource.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.DerivedFeatureSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSourcePathFieldBuilder();
getConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deriverName_ = "";
description_ = "";
if (sourcePathBuilder_ == null) {
sourcePath_ = java.util.Collections.emptyList();
} else {
sourcePath_ = null;
sourcePathBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
declarativelyConfigured_ = false;
config_ = null;
if (configBuilder_ != null) {
configBuilder_.dispose();
configBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureSource_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureSource getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureSource build() {
org.tensorflow.metadata.v0.DerivedFeatureSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureSource buildPartial() {
org.tensorflow.metadata.v0.DerivedFeatureSource result = new org.tensorflow.metadata.v0.DerivedFeatureSource(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tensorflow.metadata.v0.DerivedFeatureSource result) {
if (sourcePathBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
sourcePath_ = java.util.Collections.unmodifiableList(sourcePath_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.sourcePath_ = sourcePath_;
} else {
result.sourcePath_ = sourcePathBuilder_.build();
}
}
private void buildPartial0(org.tensorflow.metadata.v0.DerivedFeatureSource result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.deriverName_ = deriverName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.declarativelyConfigured_ = declarativelyConfigured_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.config_ = configBuilder_ == null
? config_
: configBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.DerivedFeatureSource) {
return mergeFrom((org.tensorflow.metadata.v0.DerivedFeatureSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.DerivedFeatureSource other) {
if (other == org.tensorflow.metadata.v0.DerivedFeatureSource.getDefaultInstance()) return this;
if (!other.getDeriverName().isEmpty()) {
deriverName_ = other.deriverName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (sourcePathBuilder_ == null) {
if (!other.sourcePath_.isEmpty()) {
if (sourcePath_.isEmpty()) {
sourcePath_ = other.sourcePath_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSourcePathIsMutable();
sourcePath_.addAll(other.sourcePath_);
}
onChanged();
}
} else {
if (!other.sourcePath_.isEmpty()) {
if (sourcePathBuilder_.isEmpty()) {
sourcePathBuilder_.dispose();
sourcePathBuilder_ = null;
sourcePath_ = other.sourcePath_;
bitField0_ = (bitField0_ & ~0x00000004);
sourcePathBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSourcePathFieldBuilder() : null;
} else {
sourcePathBuilder_.addAllMessages(other.sourcePath_);
}
}
}
if (other.getDeclarativelyConfigured() != false) {
setDeclarativelyConfigured(other.getDeclarativelyConfigured());
}
if (other.hasConfig()) {
mergeConfig(other.getConfig());
}
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: {
deriverName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
org.tensorflow.metadata.v0.Path m =
input.readMessage(
org.tensorflow.metadata.v0.Path.PARSER,
extensionRegistry);
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
sourcePath_.add(m);
} else {
sourcePathBuilder_.addMessage(m);
}
break;
} // case 26
case 32: {
declarativelyConfigured_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
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 bitField0_;
private java.lang.Object deriverName_ = "";
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @return The deriverName.
*/
public java.lang.String getDeriverName() {
java.lang.Object ref = deriverName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deriverName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @return The bytes for deriverName.
*/
public com.google.protobuf.ByteString
getDeriverNameBytes() {
java.lang.Object ref = deriverName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deriverName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @param value The deriverName to set.
* @return This builder for chaining.
*/
public Builder setDeriverName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deriverName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @return This builder for chaining.
*/
public Builder clearDeriverName() {
deriverName_ = getDefaultInstance().getDeriverName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The name of the deriver that generated this feature.
*
*
* string deriver_name = 1;
* @param value The bytes for deriverName to set.
* @return This builder for chaining.
*/
public Builder setDeriverNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
deriverName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* An optional description of the transformation.
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List sourcePath_ =
java.util.Collections.emptyList();
private void ensureSourcePathIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
sourcePath_ = new java.util.ArrayList(sourcePath_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder> sourcePathBuilder_;
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public java.util.List getSourcePathList() {
if (sourcePathBuilder_ == null) {
return java.util.Collections.unmodifiableList(sourcePath_);
} else {
return sourcePathBuilder_.getMessageList();
}
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public int getSourcePathCount() {
if (sourcePathBuilder_ == null) {
return sourcePath_.size();
} else {
return sourcePathBuilder_.getCount();
}
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public org.tensorflow.metadata.v0.Path getSourcePath(int index) {
if (sourcePathBuilder_ == null) {
return sourcePath_.get(index);
} else {
return sourcePathBuilder_.getMessage(index);
}
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder setSourcePath(
int index, org.tensorflow.metadata.v0.Path value) {
if (sourcePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSourcePathIsMutable();
sourcePath_.set(index, value);
onChanged();
} else {
sourcePathBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder setSourcePath(
int index, org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
sourcePath_.set(index, builderForValue.build());
onChanged();
} else {
sourcePathBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder addSourcePath(org.tensorflow.metadata.v0.Path value) {
if (sourcePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSourcePathIsMutable();
sourcePath_.add(value);
onChanged();
} else {
sourcePathBuilder_.addMessage(value);
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder addSourcePath(
int index, org.tensorflow.metadata.v0.Path value) {
if (sourcePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSourcePathIsMutable();
sourcePath_.add(index, value);
onChanged();
} else {
sourcePathBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder addSourcePath(
org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
sourcePath_.add(builderForValue.build());
onChanged();
} else {
sourcePathBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder addSourcePath(
int index, org.tensorflow.metadata.v0.Path.Builder builderForValue) {
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
sourcePath_.add(index, builderForValue.build());
onChanged();
} else {
sourcePathBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder addAllSourcePath(
java.lang.Iterable extends org.tensorflow.metadata.v0.Path> values) {
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sourcePath_);
onChanged();
} else {
sourcePathBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder clearSourcePath() {
if (sourcePathBuilder_ == null) {
sourcePath_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
sourcePathBuilder_.clear();
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public Builder removeSourcePath(int index) {
if (sourcePathBuilder_ == null) {
ensureSourcePathIsMutable();
sourcePath_.remove(index);
onChanged();
} else {
sourcePathBuilder_.remove(index);
}
return this;
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public org.tensorflow.metadata.v0.Path.Builder getSourcePathBuilder(
int index) {
return getSourcePathFieldBuilder().getBuilder(index);
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public org.tensorflow.metadata.v0.PathOrBuilder getSourcePathOrBuilder(
int index) {
if (sourcePathBuilder_ == null) {
return sourcePath_.get(index); } else {
return sourcePathBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public java.util.List extends org.tensorflow.metadata.v0.PathOrBuilder>
getSourcePathOrBuilderList() {
if (sourcePathBuilder_ != null) {
return sourcePathBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sourcePath_);
}
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public org.tensorflow.metadata.v0.Path.Builder addSourcePathBuilder() {
return getSourcePathFieldBuilder().addBuilder(
org.tensorflow.metadata.v0.Path.getDefaultInstance());
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public org.tensorflow.metadata.v0.Path.Builder addSourcePathBuilder(
int index) {
return getSourcePathFieldBuilder().addBuilder(
index, org.tensorflow.metadata.v0.Path.getDefaultInstance());
}
/**
*
* The constituent features that went into generating this derived feature.
*
*
* repeated .tensorflow.metadata.v0.Path source_path = 3;
*/
public java.util.List
getSourcePathBuilderList() {
return getSourcePathFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>
getSourcePathFieldBuilder() {
if (sourcePathBuilder_ == null) {
sourcePathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.metadata.v0.Path, org.tensorflow.metadata.v0.Path.Builder, org.tensorflow.metadata.v0.PathOrBuilder>(
sourcePath_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
sourcePath_ = null;
}
return sourcePathBuilder_;
}
private boolean declarativelyConfigured_ ;
/**
*
* A DerivedFeatureSource that is declaratively configured represents an
* intent for downstream processing to generate a derived feature
* (in the schema), or tracks that a feature was generated from such a
* configuration (in statistics).
*
*
* bool declaratively_configured = 4;
* @return The declarativelyConfigured.
*/
@java.lang.Override
public boolean getDeclarativelyConfigured() {
return declarativelyConfigured_;
}
/**
*
* A DerivedFeatureSource that is declaratively configured represents an
* intent for downstream processing to generate a derived feature
* (in the schema), or tracks that a feature was generated from such a
* configuration (in statistics).
*
*
* bool declaratively_configured = 4;
* @param value The declarativelyConfigured to set.
* @return This builder for chaining.
*/
public Builder setDeclarativelyConfigured(boolean value) {
declarativelyConfigured_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A DerivedFeatureSource that is declaratively configured represents an
* intent for downstream processing to generate a derived feature
* (in the schema), or tracks that a feature was generated from such a
* configuration (in statistics).
*
*
* bool declaratively_configured = 4;
* @return This builder for chaining.
*/
public Builder clearDeclarativelyConfigured() {
bitField0_ = (bitField0_ & ~0x00000008);
declarativelyConfigured_ = false;
onChanged();
return this;
}
private org.tensorflow.metadata.v0.DerivedFeatureConfig config_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureConfig, org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder, org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder> configBuilder_;
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
* @return The config.
*/
public org.tensorflow.metadata.v0.DerivedFeatureConfig getConfig() {
if (configBuilder_ == null) {
return config_ == null ? org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance() : config_;
} else {
return configBuilder_.getMessage();
}
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public Builder setConfig(org.tensorflow.metadata.v0.DerivedFeatureConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
} else {
configBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public Builder setConfig(
org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder builderForValue) {
if (configBuilder_ == null) {
config_ = builderForValue.build();
} else {
configBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public Builder mergeConfig(org.tensorflow.metadata.v0.DerivedFeatureConfig value) {
if (configBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
config_ != null &&
config_ != org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance()) {
getConfigBuilder().mergeFrom(value);
} else {
config_ = value;
}
} else {
configBuilder_.mergeFrom(value);
}
if (config_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public Builder clearConfig() {
bitField0_ = (bitField0_ & ~0x00000010);
config_ = null;
if (configBuilder_ != null) {
configBuilder_.dispose();
configBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder getConfigBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getConfigFieldBuilder().getBuilder();
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
public org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder getConfigOrBuilder() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilder();
} else {
return config_ == null ?
org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance() : config_;
}
}
/**
*
* Optional configuration for canned derivers.
*
*
* .tensorflow.metadata.v0.DerivedFeatureConfig config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureConfig, org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder, org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.DerivedFeatureConfig, org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder, org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder>(
getConfig(),
getParentForChildren(),
isClean());
config_ = null;
}
return configBuilder_;
}
@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.DerivedFeatureSource)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DerivedFeatureSource)
private static final org.tensorflow.metadata.v0.DerivedFeatureSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DerivedFeatureSource();
}
public static org.tensorflow.metadata.v0.DerivedFeatureSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DerivedFeatureSource 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.DerivedFeatureSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy