org.tensorflow.metadata.v0.DerivedFeatureConfig Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/derived_feature.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* Stores configuration for a variety of canned feature derivers.
* TODO(b/227478330): Consider validating config in merge_util.cc.
*
*
* Protobuf type {@code tensorflow.metadata.v0.DerivedFeatureConfig}
*/
public final class DerivedFeatureConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.DerivedFeatureConfig)
DerivedFeatureConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use DerivedFeatureConfig.newBuilder() to construct.
private DerivedFeatureConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DerivedFeatureConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DerivedFeatureConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DerivedFeatureConfig.class, org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder.class);
}
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ALLOWLIST(1),
ARGMAX_TOP_K(2),
REDUCE_OP(3),
SLICE_SQL(4),
IMAGE_QUALITY(5),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(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 TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return ALLOWLIST;
case 2: return ARGMAX_TOP_K;
case 3: return REDUCE_OP;
case 4: return SLICE_SQL;
case 5: return IMAGE_QUALITY;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int ALLOWLIST_FIELD_NUMBER = 1;
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
* @return Whether the allowlist field is set.
*/
@java.lang.Override
public boolean hasAllowlist() {
return typeCase_ == 1;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
* @return The allowlist.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AllowlistDeriver getAllowlist() {
if (typeCase_ == 1) {
return (org.tensorflow.metadata.v0.AllowlistDeriver) type_;
}
return org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AllowlistDeriverOrBuilder getAllowlistOrBuilder() {
if (typeCase_ == 1) {
return (org.tensorflow.metadata.v0.AllowlistDeriver) type_;
}
return org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
}
public static final int ARGMAX_TOP_K_FIELD_NUMBER = 2;
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
* @return Whether the argmaxTopK field is set.
*/
@java.lang.Override
public boolean hasArgmaxTopK() {
return typeCase_ == 2;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
* @return The argmaxTopK.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ArgmaxTopK getArgmaxTopK() {
if (typeCase_ == 2) {
return (org.tensorflow.metadata.v0.ArgmaxTopK) type_;
}
return org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ArgmaxTopKOrBuilder getArgmaxTopKOrBuilder() {
if (typeCase_ == 2) {
return (org.tensorflow.metadata.v0.ArgmaxTopK) type_;
}
return org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
}
public static final int REDUCE_OP_FIELD_NUMBER = 3;
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
* @return Whether the reduceOp field is set.
*/
@java.lang.Override
public boolean hasReduceOp() {
return typeCase_ == 3;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
* @return The reduceOp.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ReduceOp getReduceOp() {
if (typeCase_ == 3) {
return (org.tensorflow.metadata.v0.ReduceOp) type_;
}
return org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ReduceOpOrBuilder getReduceOpOrBuilder() {
if (typeCase_ == 3) {
return (org.tensorflow.metadata.v0.ReduceOp) type_;
}
return org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
}
public static final int SLICE_SQL_FIELD_NUMBER = 4;
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
* @return Whether the sliceSql field is set.
*/
@java.lang.Override
public boolean hasSliceSql() {
return typeCase_ == 4;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
* @return The sliceSql.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SliceSql getSliceSql() {
if (typeCase_ == 4) {
return (org.tensorflow.metadata.v0.SliceSql) type_;
}
return org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SliceSqlOrBuilder getSliceSqlOrBuilder() {
if (typeCase_ == 4) {
return (org.tensorflow.metadata.v0.SliceSql) type_;
}
return org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
}
public static final int IMAGE_QUALITY_FIELD_NUMBER = 5;
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
* @return Whether the imageQuality field is set.
*/
@java.lang.Override
public boolean hasImageQuality() {
return typeCase_ == 5;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
* @return The imageQuality.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ImageQualityDeriver getImageQuality() {
if (typeCase_ == 5) {
return (org.tensorflow.metadata.v0.ImageQualityDeriver) type_;
}
return org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance();
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ImageQualityDeriverOrBuilder getImageQualityOrBuilder() {
if (typeCase_ == 5) {
return (org.tensorflow.metadata.v0.ImageQualityDeriver) type_;
}
return org.tensorflow.metadata.v0.ImageQualityDeriver.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 (typeCase_ == 1) {
output.writeMessage(1, (org.tensorflow.metadata.v0.AllowlistDeriver) type_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (org.tensorflow.metadata.v0.ArgmaxTopK) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (org.tensorflow.metadata.v0.ReduceOp) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (org.tensorflow.metadata.v0.SliceSql) type_);
}
if (typeCase_ == 5) {
output.writeMessage(5, (org.tensorflow.metadata.v0.ImageQualityDeriver) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (org.tensorflow.metadata.v0.AllowlistDeriver) type_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.tensorflow.metadata.v0.ArgmaxTopK) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (org.tensorflow.metadata.v0.ReduceOp) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (org.tensorflow.metadata.v0.SliceSql) type_);
}
if (typeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (org.tensorflow.metadata.v0.ImageQualityDeriver) type_);
}
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.DerivedFeatureConfig)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.DerivedFeatureConfig other = (org.tensorflow.metadata.v0.DerivedFeatureConfig) obj;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (!getAllowlist()
.equals(other.getAllowlist())) return false;
break;
case 2:
if (!getArgmaxTopK()
.equals(other.getArgmaxTopK())) return false;
break;
case 3:
if (!getReduceOp()
.equals(other.getReduceOp())) return false;
break;
case 4:
if (!getSliceSql()
.equals(other.getSliceSql())) return false;
break;
case 5:
if (!getImageQuality()
.equals(other.getImageQuality())) 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();
switch (typeCase_) {
case 1:
hash = (37 * hash) + ALLOWLIST_FIELD_NUMBER;
hash = (53 * hash) + getAllowlist().hashCode();
break;
case 2:
hash = (37 * hash) + ARGMAX_TOP_K_FIELD_NUMBER;
hash = (53 * hash) + getArgmaxTopK().hashCode();
break;
case 3:
hash = (37 * hash) + REDUCE_OP_FIELD_NUMBER;
hash = (53 * hash) + getReduceOp().hashCode();
break;
case 4:
hash = (37 * hash) + SLICE_SQL_FIELD_NUMBER;
hash = (53 * hash) + getSliceSql().hashCode();
break;
case 5:
hash = (37 * hash) + IMAGE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getImageQuality().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig 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.DerivedFeatureConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig 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.DerivedFeatureConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig 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.DerivedFeatureConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig 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.DerivedFeatureConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig 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.DerivedFeatureConfig 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;
}
/**
*
* Stores configuration for a variety of canned feature derivers.
* TODO(b/227478330): Consider validating config in merge_util.cc.
*
*
* Protobuf type {@code tensorflow.metadata.v0.DerivedFeatureConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.DerivedFeatureConfig)
org.tensorflow.metadata.v0.DerivedFeatureConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.DerivedFeatureConfig.class, org.tensorflow.metadata.v0.DerivedFeatureConfig.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.DerivedFeatureConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (allowlistBuilder_ != null) {
allowlistBuilder_.clear();
}
if (argmaxTopKBuilder_ != null) {
argmaxTopKBuilder_.clear();
}
if (reduceOpBuilder_ != null) {
reduceOpBuilder_.clear();
}
if (sliceSqlBuilder_ != null) {
sliceSqlBuilder_.clear();
}
if (imageQualityBuilder_ != null) {
imageQualityBuilder_.clear();
}
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.DerivedFeature.internal_static_tensorflow_metadata_v0_DerivedFeatureConfig_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureConfig getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureConfig build() {
org.tensorflow.metadata.v0.DerivedFeatureConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.DerivedFeatureConfig buildPartial() {
org.tensorflow.metadata.v0.DerivedFeatureConfig result = new org.tensorflow.metadata.v0.DerivedFeatureConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.DerivedFeatureConfig result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.tensorflow.metadata.v0.DerivedFeatureConfig result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 1 &&
allowlistBuilder_ != null) {
result.type_ = allowlistBuilder_.build();
}
if (typeCase_ == 2 &&
argmaxTopKBuilder_ != null) {
result.type_ = argmaxTopKBuilder_.build();
}
if (typeCase_ == 3 &&
reduceOpBuilder_ != null) {
result.type_ = reduceOpBuilder_.build();
}
if (typeCase_ == 4 &&
sliceSqlBuilder_ != null) {
result.type_ = sliceSqlBuilder_.build();
}
if (typeCase_ == 5 &&
imageQualityBuilder_ != null) {
result.type_ = imageQualityBuilder_.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.DerivedFeatureConfig) {
return mergeFrom((org.tensorflow.metadata.v0.DerivedFeatureConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.DerivedFeatureConfig other) {
if (other == org.tensorflow.metadata.v0.DerivedFeatureConfig.getDefaultInstance()) return this;
switch (other.getTypeCase()) {
case ALLOWLIST: {
mergeAllowlist(other.getAllowlist());
break;
}
case ARGMAX_TOP_K: {
mergeArgmaxTopK(other.getArgmaxTopK());
break;
}
case REDUCE_OP: {
mergeReduceOp(other.getReduceOp());
break;
}
case SLICE_SQL: {
mergeSliceSql(other.getSliceSql());
break;
}
case IMAGE_QUALITY: {
mergeImageQuality(other.getImageQuality());
break;
}
case TYPE_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(
getAllowlistFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getArgmaxTopKFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getReduceOpFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getSliceSqlFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getImageQualityFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 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 typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AllowlistDeriver, org.tensorflow.metadata.v0.AllowlistDeriver.Builder, org.tensorflow.metadata.v0.AllowlistDeriverOrBuilder> allowlistBuilder_;
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
* @return Whether the allowlist field is set.
*/
@java.lang.Override
public boolean hasAllowlist() {
return typeCase_ == 1;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
* @return The allowlist.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AllowlistDeriver getAllowlist() {
if (allowlistBuilder_ == null) {
if (typeCase_ == 1) {
return (org.tensorflow.metadata.v0.AllowlistDeriver) type_;
}
return org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
} else {
if (typeCase_ == 1) {
return allowlistBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
public Builder setAllowlist(org.tensorflow.metadata.v0.AllowlistDeriver value) {
if (allowlistBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
allowlistBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
public Builder setAllowlist(
org.tensorflow.metadata.v0.AllowlistDeriver.Builder builderForValue) {
if (allowlistBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
allowlistBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
public Builder mergeAllowlist(org.tensorflow.metadata.v0.AllowlistDeriver value) {
if (allowlistBuilder_ == null) {
if (typeCase_ == 1 &&
type_ != org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance()) {
type_ = org.tensorflow.metadata.v0.AllowlistDeriver.newBuilder((org.tensorflow.metadata.v0.AllowlistDeriver) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 1) {
allowlistBuilder_.mergeFrom(value);
} else {
allowlistBuilder_.setMessage(value);
}
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
public Builder clearAllowlist() {
if (allowlistBuilder_ == null) {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
}
allowlistBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
public org.tensorflow.metadata.v0.AllowlistDeriver.Builder getAllowlistBuilder() {
return getAllowlistFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.AllowlistDeriverOrBuilder getAllowlistOrBuilder() {
if ((typeCase_ == 1) && (allowlistBuilder_ != null)) {
return allowlistBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 1) {
return (org.tensorflow.metadata.v0.AllowlistDeriver) type_;
}
return org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.AllowlistDeriver allowlist = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AllowlistDeriver, org.tensorflow.metadata.v0.AllowlistDeriver.Builder, org.tensorflow.metadata.v0.AllowlistDeriverOrBuilder>
getAllowlistFieldBuilder() {
if (allowlistBuilder_ == null) {
if (!(typeCase_ == 1)) {
type_ = org.tensorflow.metadata.v0.AllowlistDeriver.getDefaultInstance();
}
allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.AllowlistDeriver, org.tensorflow.metadata.v0.AllowlistDeriver.Builder, org.tensorflow.metadata.v0.AllowlistDeriverOrBuilder>(
(org.tensorflow.metadata.v0.AllowlistDeriver) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 1;
onChanged();
return allowlistBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ArgmaxTopK, org.tensorflow.metadata.v0.ArgmaxTopK.Builder, org.tensorflow.metadata.v0.ArgmaxTopKOrBuilder> argmaxTopKBuilder_;
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
* @return Whether the argmaxTopK field is set.
*/
@java.lang.Override
public boolean hasArgmaxTopK() {
return typeCase_ == 2;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
* @return The argmaxTopK.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ArgmaxTopK getArgmaxTopK() {
if (argmaxTopKBuilder_ == null) {
if (typeCase_ == 2) {
return (org.tensorflow.metadata.v0.ArgmaxTopK) type_;
}
return org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return argmaxTopKBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
public Builder setArgmaxTopK(org.tensorflow.metadata.v0.ArgmaxTopK value) {
if (argmaxTopKBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
argmaxTopKBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
public Builder setArgmaxTopK(
org.tensorflow.metadata.v0.ArgmaxTopK.Builder builderForValue) {
if (argmaxTopKBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
argmaxTopKBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
public Builder mergeArgmaxTopK(org.tensorflow.metadata.v0.ArgmaxTopK value) {
if (argmaxTopKBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance()) {
type_ = org.tensorflow.metadata.v0.ArgmaxTopK.newBuilder((org.tensorflow.metadata.v0.ArgmaxTopK) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
argmaxTopKBuilder_.mergeFrom(value);
} else {
argmaxTopKBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
public Builder clearArgmaxTopK() {
if (argmaxTopKBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
argmaxTopKBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
public org.tensorflow.metadata.v0.ArgmaxTopK.Builder getArgmaxTopKBuilder() {
return getArgmaxTopKFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ArgmaxTopKOrBuilder getArgmaxTopKOrBuilder() {
if ((typeCase_ == 2) && (argmaxTopKBuilder_ != null)) {
return argmaxTopKBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (org.tensorflow.metadata.v0.ArgmaxTopK) type_;
}
return org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ArgmaxTopK argmax_top_k = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ArgmaxTopK, org.tensorflow.metadata.v0.ArgmaxTopK.Builder, org.tensorflow.metadata.v0.ArgmaxTopKOrBuilder>
getArgmaxTopKFieldBuilder() {
if (argmaxTopKBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = org.tensorflow.metadata.v0.ArgmaxTopK.getDefaultInstance();
}
argmaxTopKBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ArgmaxTopK, org.tensorflow.metadata.v0.ArgmaxTopK.Builder, org.tensorflow.metadata.v0.ArgmaxTopKOrBuilder>(
(org.tensorflow.metadata.v0.ArgmaxTopK) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();
return argmaxTopKBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ReduceOp, org.tensorflow.metadata.v0.ReduceOp.Builder, org.tensorflow.metadata.v0.ReduceOpOrBuilder> reduceOpBuilder_;
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
* @return Whether the reduceOp field is set.
*/
@java.lang.Override
public boolean hasReduceOp() {
return typeCase_ == 3;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
* @return The reduceOp.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ReduceOp getReduceOp() {
if (reduceOpBuilder_ == null) {
if (typeCase_ == 3) {
return (org.tensorflow.metadata.v0.ReduceOp) type_;
}
return org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return reduceOpBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
public Builder setReduceOp(org.tensorflow.metadata.v0.ReduceOp value) {
if (reduceOpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
reduceOpBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
public Builder setReduceOp(
org.tensorflow.metadata.v0.ReduceOp.Builder builderForValue) {
if (reduceOpBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
reduceOpBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
public Builder mergeReduceOp(org.tensorflow.metadata.v0.ReduceOp value) {
if (reduceOpBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance()) {
type_ = org.tensorflow.metadata.v0.ReduceOp.newBuilder((org.tensorflow.metadata.v0.ReduceOp) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
reduceOpBuilder_.mergeFrom(value);
} else {
reduceOpBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
public Builder clearReduceOp() {
if (reduceOpBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
reduceOpBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
public org.tensorflow.metadata.v0.ReduceOp.Builder getReduceOpBuilder() {
return getReduceOpFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ReduceOpOrBuilder getReduceOpOrBuilder() {
if ((typeCase_ == 3) && (reduceOpBuilder_ != null)) {
return reduceOpBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (org.tensorflow.metadata.v0.ReduceOp) type_;
}
return org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ReduceOp reduce_op = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ReduceOp, org.tensorflow.metadata.v0.ReduceOp.Builder, org.tensorflow.metadata.v0.ReduceOpOrBuilder>
getReduceOpFieldBuilder() {
if (reduceOpBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = org.tensorflow.metadata.v0.ReduceOp.getDefaultInstance();
}
reduceOpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ReduceOp, org.tensorflow.metadata.v0.ReduceOp.Builder, org.tensorflow.metadata.v0.ReduceOpOrBuilder>(
(org.tensorflow.metadata.v0.ReduceOp) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return reduceOpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.SliceSql, org.tensorflow.metadata.v0.SliceSql.Builder, org.tensorflow.metadata.v0.SliceSqlOrBuilder> sliceSqlBuilder_;
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
* @return Whether the sliceSql field is set.
*/
@java.lang.Override
public boolean hasSliceSql() {
return typeCase_ == 4;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
* @return The sliceSql.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SliceSql getSliceSql() {
if (sliceSqlBuilder_ == null) {
if (typeCase_ == 4) {
return (org.tensorflow.metadata.v0.SliceSql) type_;
}
return org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return sliceSqlBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
public Builder setSliceSql(org.tensorflow.metadata.v0.SliceSql value) {
if (sliceSqlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sliceSqlBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
public Builder setSliceSql(
org.tensorflow.metadata.v0.SliceSql.Builder builderForValue) {
if (sliceSqlBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sliceSqlBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
public Builder mergeSliceSql(org.tensorflow.metadata.v0.SliceSql value) {
if (sliceSqlBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != org.tensorflow.metadata.v0.SliceSql.getDefaultInstance()) {
type_ = org.tensorflow.metadata.v0.SliceSql.newBuilder((org.tensorflow.metadata.v0.SliceSql) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
sliceSqlBuilder_.mergeFrom(value);
} else {
sliceSqlBuilder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
public Builder clearSliceSql() {
if (sliceSqlBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
sliceSqlBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
public org.tensorflow.metadata.v0.SliceSql.Builder getSliceSqlBuilder() {
return getSliceSqlFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.SliceSqlOrBuilder getSliceSqlOrBuilder() {
if ((typeCase_ == 4) && (sliceSqlBuilder_ != null)) {
return sliceSqlBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (org.tensorflow.metadata.v0.SliceSql) type_;
}
return org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.SliceSql slice_sql = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.SliceSql, org.tensorflow.metadata.v0.SliceSql.Builder, org.tensorflow.metadata.v0.SliceSqlOrBuilder>
getSliceSqlFieldBuilder() {
if (sliceSqlBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = org.tensorflow.metadata.v0.SliceSql.getDefaultInstance();
}
sliceSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.SliceSql, org.tensorflow.metadata.v0.SliceSql.Builder, org.tensorflow.metadata.v0.SliceSqlOrBuilder>(
(org.tensorflow.metadata.v0.SliceSql) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();
return sliceSqlBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ImageQualityDeriver, org.tensorflow.metadata.v0.ImageQualityDeriver.Builder, org.tensorflow.metadata.v0.ImageQualityDeriverOrBuilder> imageQualityBuilder_;
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
* @return Whether the imageQuality field is set.
*/
@java.lang.Override
public boolean hasImageQuality() {
return typeCase_ == 5;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
* @return The imageQuality.
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ImageQualityDeriver getImageQuality() {
if (imageQualityBuilder_ == null) {
if (typeCase_ == 5) {
return (org.tensorflow.metadata.v0.ImageQualityDeriver) type_;
}
return org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance();
} else {
if (typeCase_ == 5) {
return imageQualityBuilder_.getMessage();
}
return org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
public Builder setImageQuality(org.tensorflow.metadata.v0.ImageQualityDeriver value) {
if (imageQualityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
imageQualityBuilder_.setMessage(value);
}
typeCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
public Builder setImageQuality(
org.tensorflow.metadata.v0.ImageQualityDeriver.Builder builderForValue) {
if (imageQualityBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
imageQualityBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
public Builder mergeImageQuality(org.tensorflow.metadata.v0.ImageQualityDeriver value) {
if (imageQualityBuilder_ == null) {
if (typeCase_ == 5 &&
type_ != org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance()) {
type_ = org.tensorflow.metadata.v0.ImageQualityDeriver.newBuilder((org.tensorflow.metadata.v0.ImageQualityDeriver) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 5) {
imageQualityBuilder_.mergeFrom(value);
} else {
imageQualityBuilder_.setMessage(value);
}
}
typeCase_ = 5;
return this;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
public Builder clearImageQuality() {
if (imageQualityBuilder_ == null) {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
}
imageQualityBuilder_.clear();
}
return this;
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
public org.tensorflow.metadata.v0.ImageQualityDeriver.Builder getImageQualityBuilder() {
return getImageQualityFieldBuilder().getBuilder();
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
@java.lang.Override
public org.tensorflow.metadata.v0.ImageQualityDeriverOrBuilder getImageQualityOrBuilder() {
if ((typeCase_ == 5) && (imageQualityBuilder_ != null)) {
return imageQualityBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 5) {
return (org.tensorflow.metadata.v0.ImageQualityDeriver) type_;
}
return org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance();
}
}
/**
* .tensorflow.metadata.v0.ImageQualityDeriver image_quality = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ImageQualityDeriver, org.tensorflow.metadata.v0.ImageQualityDeriver.Builder, org.tensorflow.metadata.v0.ImageQualityDeriverOrBuilder>
getImageQualityFieldBuilder() {
if (imageQualityBuilder_ == null) {
if (!(typeCase_ == 5)) {
type_ = org.tensorflow.metadata.v0.ImageQualityDeriver.getDefaultInstance();
}
imageQualityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.metadata.v0.ImageQualityDeriver, org.tensorflow.metadata.v0.ImageQualityDeriver.Builder, org.tensorflow.metadata.v0.ImageQualityDeriverOrBuilder>(
(org.tensorflow.metadata.v0.ImageQualityDeriver) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 5;
onChanged();
return imageQualityBuilder_;
}
@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.DerivedFeatureConfig)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.DerivedFeatureConfig)
private static final org.tensorflow.metadata.v0.DerivedFeatureConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.DerivedFeatureConfig();
}
public static org.tensorflow.metadata.v0.DerivedFeatureConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DerivedFeatureConfig 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.DerivedFeatureConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy