// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/example/example_parser_configuration.proto

package org.tensorflow.proto.example;

/**
 * Protobuf type {@code tensorflow.FeatureConfiguration}
 */
public  final class FeatureConfiguration extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.FeatureConfiguration)
    FeatureConfigurationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FeatureConfiguration.newBuilder() to construct.
  private FeatureConfiguration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private FeatureConfiguration() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new FeatureConfiguration();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private FeatureConfiguration(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            org.tensorflow.proto.example.FixedLenFeatureProto.Builder subBuilder = null;
            if (configCase_ == 1) {
              subBuilder = ((org.tensorflow.proto.example.FixedLenFeatureProto) config_).toBuilder();
            }
            config_ =
                input.readMessage(org.tensorflow.proto.example.FixedLenFeatureProto.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.example.FixedLenFeatureProto) config_);
              config_ = subBuilder.buildPartial();
            }
            configCase_ = 1;
            break;
          }
          case 18: {
            org.tensorflow.proto.example.VarLenFeatureProto.Builder subBuilder = null;
            if (configCase_ == 2) {
              subBuilder = ((org.tensorflow.proto.example.VarLenFeatureProto) config_).toBuilder();
            }
            config_ =
                input.readMessage(org.tensorflow.proto.example.VarLenFeatureProto.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((org.tensorflow.proto.example.VarLenFeatureProto) config_);
              config_ = subBuilder.buildPartial();
            }
            configCase_ = 2;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.proto.example.FeatureConfiguration.class, org.tensorflow.proto.example.FeatureConfiguration.Builder.class);
  }

  private int configCase_ = 0;
  private java.lang.Object config_;
  public enum ConfigCase
      implements com.google.protobuf.Internal.EnumLite {
    FIXED_LEN_FEATURE(1),
    VAR_LEN_FEATURE(2),
    CONFIG_NOT_SET(0);
    private final int value;
    private ConfigCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ConfigCase valueOf(int value) {
      return forNumber(value);
    }

    public static ConfigCase forNumber(int value) {
      switch (value) {
        case 1: return FIXED_LEN_FEATURE;
        case 2: return VAR_LEN_FEATURE;
        case 0: return CONFIG_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ConfigCase
  getConfigCase() {
    return ConfigCase.forNumber(
        configCase_);
  }

  public static final int FIXED_LEN_FEATURE_FIELD_NUMBER = 1;
  /**
   * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
   */
  public boolean hasFixedLenFeature() {
    return configCase_ == 1;
  }
  /**
   * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
   */
  public org.tensorflow.proto.example.FixedLenFeatureProto getFixedLenFeature() {
    if (configCase_ == 1) {
       return (org.tensorflow.proto.example.FixedLenFeatureProto) config_;
    }
    return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
   */
  public org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() {
    if (configCase_ == 1) {
       return (org.tensorflow.proto.example.FixedLenFeatureProto) config_;
    }
    return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
  }

  public static final int VAR_LEN_FEATURE_FIELD_NUMBER = 2;
  /**
   * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
   */
  public boolean hasVarLenFeature() {
    return configCase_ == 2;
  }
  /**
   * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
   */
  public org.tensorflow.proto.example.VarLenFeatureProto getVarLenFeature() {
    if (configCase_ == 2) {
       return (org.tensorflow.proto.example.VarLenFeatureProto) config_;
    }
    return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance();
  }
  /**
   * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
   */
  public org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() {
    if (configCase_ == 2) {
       return (org.tensorflow.proto.example.VarLenFeatureProto) config_;
    }
    return org.tensorflow.proto.example.VarLenFeatureProto.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 (configCase_ == 1) {
      output.writeMessage(1, (org.tensorflow.proto.example.FixedLenFeatureProto) config_);
    }
    if (configCase_ == 2) {
      output.writeMessage(2, (org.tensorflow.proto.example.VarLenFeatureProto) config_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (configCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (org.tensorflow.proto.example.FixedLenFeatureProto) config_);
    }
    if (configCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (org.tensorflow.proto.example.VarLenFeatureProto) config_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof org.tensorflow.proto.example.FeatureConfiguration)) {
      return super.equals(obj);
    }
    org.tensorflow.proto.example.FeatureConfiguration other = (org.tensorflow.proto.example.FeatureConfiguration) obj;

    if (!getConfigCase().equals(other.getConfigCase())) return false;
    switch (configCase_) {
      case 1:
        if (!getFixedLenFeature()
            .equals(other.getFixedLenFeature())) return false;
        break;
      case 2:
        if (!getVarLenFeature()
            .equals(other.getVarLenFeature())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (configCase_) {
      case 1:
        hash = (37 * hash) + FIXED_LEN_FEATURE_FIELD_NUMBER;
        hash = (53 * hash) + getFixedLenFeature().hashCode();
        break;
      case 2:
        hash = (37 * hash) + VAR_LEN_FEATURE_FIELD_NUMBER;
        hash = (53 * hash) + getVarLenFeature().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration 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.proto.example.FeatureConfiguration parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration 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.proto.example.FeatureConfiguration parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration 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.proto.example.FeatureConfiguration parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.tensorflow.proto.example.FeatureConfiguration 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.proto.example.FeatureConfiguration 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;
  }
  /**
   * Protobuf type {@code tensorflow.FeatureConfiguration}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:tensorflow.FeatureConfiguration)
      org.tensorflow.proto.example.FeatureConfigurationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tensorflow.proto.example.FeatureConfiguration.class, org.tensorflow.proto.example.FeatureConfiguration.Builder.class);
    }

    // Construct using org.tensorflow.proto.example.FeatureConfiguration.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      configCase_ = 0;
      config_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor;
    }

    @java.lang.Override
    public org.tensorflow.proto.example.FeatureConfiguration getDefaultInstanceForType() {
      return org.tensorflow.proto.example.FeatureConfiguration.getDefaultInstance();
    }

    @java.lang.Override
    public org.tensorflow.proto.example.FeatureConfiguration build() {
      org.tensorflow.proto.example.FeatureConfiguration result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.tensorflow.proto.example.FeatureConfiguration buildPartial() {
      org.tensorflow.proto.example.FeatureConfiguration result = new org.tensorflow.proto.example.FeatureConfiguration(this);
      if (configCase_ == 1) {
        if (fixedLenFeatureBuilder_ == null) {
          result.config_ = config_;
        } else {
          result.config_ = fixedLenFeatureBuilder_.build();
        }
      }
      if (configCase_ == 2) {
        if (varLenFeatureBuilder_ == null) {
          result.config_ = config_;
        } else {
          result.config_ = varLenFeatureBuilder_.build();
        }
      }
      result.configCase_ = configCase_;
      onBuilt();
      return result;
    }

    @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.proto.example.FeatureConfiguration) {
        return mergeFrom((org.tensorflow.proto.example.FeatureConfiguration)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.tensorflow.proto.example.FeatureConfiguration other) {
      if (other == org.tensorflow.proto.example.FeatureConfiguration.getDefaultInstance()) return this;
      switch (other.getConfigCase()) {
        case FIXED_LEN_FEATURE: {
          mergeFixedLenFeature(other.getFixedLenFeature());
          break;
        }
        case VAR_LEN_FEATURE: {
          mergeVarLenFeature(other.getVarLenFeature());
          break;
        }
        case CONFIG_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      org.tensorflow.proto.example.FeatureConfiguration parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.tensorflow.proto.example.FeatureConfiguration) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int configCase_ = 0;
    private java.lang.Object config_;
    public ConfigCase
        getConfigCase() {
      return ConfigCase.forNumber(
          configCase_);
    }

    public Builder clearConfig() {
      configCase_ = 0;
      config_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder> fixedLenFeatureBuilder_;
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public boolean hasFixedLenFeature() {
      return configCase_ == 1;
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public org.tensorflow.proto.example.FixedLenFeatureProto getFixedLenFeature() {
      if (fixedLenFeatureBuilder_ == null) {
        if (configCase_ == 1) {
          return (org.tensorflow.proto.example.FixedLenFeatureProto) config_;
        }
        return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
      } else {
        if (configCase_ == 1) {
          return fixedLenFeatureBuilder_.getMessage();
        }
        return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public Builder setFixedLenFeature(org.tensorflow.proto.example.FixedLenFeatureProto value) {
      if (fixedLenFeatureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        config_ = value;
        onChanged();
      } else {
        fixedLenFeatureBuilder_.setMessage(value);
      }
      configCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public Builder setFixedLenFeature(
        org.tensorflow.proto.example.FixedLenFeatureProto.Builder builderForValue) {
      if (fixedLenFeatureBuilder_ == null) {
        config_ = builderForValue.build();
        onChanged();
      } else {
        fixedLenFeatureBuilder_.setMessage(builderForValue.build());
      }
      configCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public Builder mergeFixedLenFeature(org.tensorflow.proto.example.FixedLenFeatureProto value) {
      if (fixedLenFeatureBuilder_ == null) {
        if (configCase_ == 1 &&
            config_ != org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance()) {
          config_ = org.tensorflow.proto.example.FixedLenFeatureProto.newBuilder((org.tensorflow.proto.example.FixedLenFeatureProto) config_)
              .mergeFrom(value).buildPartial();
        } else {
          config_ = value;
        }
        onChanged();
      } else {
        if (configCase_ == 1) {
          fixedLenFeatureBuilder_.mergeFrom(value);
        }
        fixedLenFeatureBuilder_.setMessage(value);
      }
      configCase_ = 1;
      return this;
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public Builder clearFixedLenFeature() {
      if (fixedLenFeatureBuilder_ == null) {
        if (configCase_ == 1) {
          configCase_ = 0;
          config_ = null;
          onChanged();
        }
      } else {
        if (configCase_ == 1) {
          configCase_ = 0;
          config_ = null;
        }
        fixedLenFeatureBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public org.tensorflow.proto.example.FixedLenFeatureProto.Builder getFixedLenFeatureBuilder() {
      return getFixedLenFeatureFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    public org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() {
      if ((configCase_ == 1) && (fixedLenFeatureBuilder_ != null)) {
        return fixedLenFeatureBuilder_.getMessageOrBuilder();
      } else {
        if (configCase_ == 1) {
          return (org.tensorflow.proto.example.FixedLenFeatureProto) config_;
        }
        return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.FixedLenFeatureProto fixed_len_feature = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder> 
        getFixedLenFeatureFieldBuilder() {
      if (fixedLenFeatureBuilder_ == null) {
        if (!(configCase_ == 1)) {
          config_ = org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance();
        }
        fixedLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder>(
                (org.tensorflow.proto.example.FixedLenFeatureProto) config_,
                getParentForChildren(),
                isClean());
        config_ = null;
      }
      configCase_ = 1;
      onChanged();;
      return fixedLenFeatureBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder> varLenFeatureBuilder_;
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public boolean hasVarLenFeature() {
      return configCase_ == 2;
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public org.tensorflow.proto.example.VarLenFeatureProto getVarLenFeature() {
      if (varLenFeatureBuilder_ == null) {
        if (configCase_ == 2) {
          return (org.tensorflow.proto.example.VarLenFeatureProto) config_;
        }
        return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance();
      } else {
        if (configCase_ == 2) {
          return varLenFeatureBuilder_.getMessage();
        }
        return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public Builder setVarLenFeature(org.tensorflow.proto.example.VarLenFeatureProto value) {
      if (varLenFeatureBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        config_ = value;
        onChanged();
      } else {
        varLenFeatureBuilder_.setMessage(value);
      }
      configCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public Builder setVarLenFeature(
        org.tensorflow.proto.example.VarLenFeatureProto.Builder builderForValue) {
      if (varLenFeatureBuilder_ == null) {
        config_ = builderForValue.build();
        onChanged();
      } else {
        varLenFeatureBuilder_.setMessage(builderForValue.build());
      }
      configCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public Builder mergeVarLenFeature(org.tensorflow.proto.example.VarLenFeatureProto value) {
      if (varLenFeatureBuilder_ == null) {
        if (configCase_ == 2 &&
            config_ != org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance()) {
          config_ = org.tensorflow.proto.example.VarLenFeatureProto.newBuilder((org.tensorflow.proto.example.VarLenFeatureProto) config_)
              .mergeFrom(value).buildPartial();
        } else {
          config_ = value;
        }
        onChanged();
      } else {
        if (configCase_ == 2) {
          varLenFeatureBuilder_.mergeFrom(value);
        }
        varLenFeatureBuilder_.setMessage(value);
      }
      configCase_ = 2;
      return this;
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public Builder clearVarLenFeature() {
      if (varLenFeatureBuilder_ == null) {
        if (configCase_ == 2) {
          configCase_ = 0;
          config_ = null;
          onChanged();
        }
      } else {
        if (configCase_ == 2) {
          configCase_ = 0;
          config_ = null;
        }
        varLenFeatureBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public org.tensorflow.proto.example.VarLenFeatureProto.Builder getVarLenFeatureBuilder() {
      return getVarLenFeatureFieldBuilder().getBuilder();
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    public org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() {
      if ((configCase_ == 2) && (varLenFeatureBuilder_ != null)) {
        return varLenFeatureBuilder_.getMessageOrBuilder();
      } else {
        if (configCase_ == 2) {
          return (org.tensorflow.proto.example.VarLenFeatureProto) config_;
        }
        return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance();
      }
    }
    /**
     * <code>.tensorflow.VarLenFeatureProto var_len_feature = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder> 
        getVarLenFeatureFieldBuilder() {
      if (varLenFeatureBuilder_ == null) {
        if (!(configCase_ == 2)) {
          config_ = org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance();
        }
        varLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder>(
                (org.tensorflow.proto.example.VarLenFeatureProto) config_,
                getParentForChildren(),
                isClean());
        config_ = null;
      }
      configCase_ = 2;
      onChanged();;
      return varLenFeatureBuilder_;
    }
    @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.FeatureConfiguration)
  }

  // @@protoc_insertion_point(class_scope:tensorflow.FeatureConfiguration)
  private static final org.tensorflow.proto.example.FeatureConfiguration DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.tensorflow.proto.example.FeatureConfiguration();
  }

  public static org.tensorflow.proto.example.FeatureConfiguration getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<FeatureConfiguration>
      PARSER = new com.google.protobuf.AbstractParser<FeatureConfiguration>() {
    @java.lang.Override
    public FeatureConfiguration parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new FeatureConfiguration(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<FeatureConfiguration> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<FeatureConfiguration> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public org.tensorflow.proto.example.FeatureConfiguration getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

