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

package tensorflow;

public final class ExampleProtoFastParsingTest {
  private ExampleProtoFastParsingTest() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ExampleWithExtrasOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.ExampleWithExtras)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    boolean hasFeatures();
    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    org.tensorflow.example.Features getFeatures();
    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    org.tensorflow.example.FeaturesOrBuilder getFeaturesOrBuilder();

    /**
     * <code>string extra1 = 1337;</code>
     */
    java.lang.String getExtra1();
    /**
     * <code>string extra1 = 1337;</code>
     */
    com.google.protobuf.ByteString
        getExtra1Bytes();

    /**
     * <code>int64 extra2 = 1338;</code>
     */
    long getExtra2();

    /**
     * <code>fixed32 extra3 = 1339;</code>
     */
    int getExtra3();

    /**
     * <code>fixed64 extra4 = 1340;</code>
     */
    long getExtra4();

    /**
     * <code>double extra5 = 1341;</code>
     */
    double getExtra5();

    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    java.util.List<java.lang.Float> getExtra6List();
    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    int getExtra6Count();
    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    float getExtra6(int index);

    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    boolean hasExtra7();
    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    org.tensorflow.example.Features getExtra7();
    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    org.tensorflow.example.FeaturesOrBuilder getExtra7OrBuilder();
  }
  /**
   * <pre>
   * This message is parallel to Example, but with additional fields to test
   * unknown fields handling in example_proto_fast_parsing_test.cc.
   * </pre>
   *
   * Protobuf type {@code tensorflow.ExampleWithExtras}
   */
  public  static final class ExampleWithExtras extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tensorflow.ExampleWithExtras)
      ExampleWithExtrasOrBuilder {
    // Use ExampleWithExtras.newBuilder() to construct.
    private ExampleWithExtras(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ExampleWithExtras() {
      extra1_ = "";
      extra2_ = 0L;
      extra3_ = 0;
      extra4_ = 0L;
      extra5_ = 0D;
      extra6_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ExampleWithExtras(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              org.tensorflow.example.Features.Builder subBuilder = null;
              if (features_ != null) {
                subBuilder = features_.toBuilder();
              }
              features_ = input.readMessage(org.tensorflow.example.Features.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(features_);
                features_ = subBuilder.buildPartial();
              }

              break;
            }
            case 10698: {
              java.lang.String s = input.readStringRequireUtf8();

              extra1_ = s;
              break;
            }
            case 10704: {

              extra2_ = input.readInt64();
              break;
            }
            case 10717: {

              extra3_ = input.readFixed32();
              break;
            }
            case 10721: {

              extra4_ = input.readFixed64();
              break;
            }
            case 10729: {

              extra5_ = input.readDouble();
              break;
            }
            case 10741: {
              if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
                extra6_ = new java.util.ArrayList<java.lang.Float>();
                mutable_bitField0_ |= 0x00000040;
              }
              extra6_.add(input.readFloat());
              break;
            }
            case 10738: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
                extra6_ = new java.util.ArrayList<java.lang.Float>();
                mutable_bitField0_ |= 0x00000040;
              }
              while (input.getBytesUntilLimit() > 0) {
                extra6_.add(input.readFloat());
              }
              input.popLimit(limit);
              break;
            }
            case 10746: {
              org.tensorflow.example.Features.Builder subBuilder = null;
              if (extra7_ != null) {
                subBuilder = extra7_.toBuilder();
              }
              extra7_ = input.readMessage(org.tensorflow.example.Features.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(extra7_);
                extra7_ = subBuilder.buildPartial();
              }

              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 {
        if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
          extra6_ = java.util.Collections.unmodifiableList(extra6_);
        }
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tensorflow.ExampleProtoFastParsingTest.internal_static_tensorflow_ExampleWithExtras_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tensorflow.ExampleProtoFastParsingTest.internal_static_tensorflow_ExampleWithExtras_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.class, tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.Builder.class);
    }

    private int bitField0_;
    public static final int FEATURES_FIELD_NUMBER = 1;
    private org.tensorflow.example.Features features_;
    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    public boolean hasFeatures() {
      return features_ != null;
    }
    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    public org.tensorflow.example.Features getFeatures() {
      return features_ == null ? org.tensorflow.example.Features.getDefaultInstance() : features_;
    }
    /**
     * <code>.tensorflow.Features features = 1;</code>
     */
    public org.tensorflow.example.FeaturesOrBuilder getFeaturesOrBuilder() {
      return getFeatures();
    }

    public static final int EXTRA1_FIELD_NUMBER = 1337;
    private volatile java.lang.Object extra1_;
    /**
     * <code>string extra1 = 1337;</code>
     */
    public java.lang.String getExtra1() {
      java.lang.Object ref = extra1_;
      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();
        extra1_ = s;
        return s;
      }
    }
    /**
     * <code>string extra1 = 1337;</code>
     */
    public com.google.protobuf.ByteString
        getExtra1Bytes() {
      java.lang.Object ref = extra1_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        extra1_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXTRA2_FIELD_NUMBER = 1338;
    private long extra2_;
    /**
     * <code>int64 extra2 = 1338;</code>
     */
    public long getExtra2() {
      return extra2_;
    }

    public static final int EXTRA3_FIELD_NUMBER = 1339;
    private int extra3_;
    /**
     * <code>fixed32 extra3 = 1339;</code>
     */
    public int getExtra3() {
      return extra3_;
    }

    public static final int EXTRA4_FIELD_NUMBER = 1340;
    private long extra4_;
    /**
     * <code>fixed64 extra4 = 1340;</code>
     */
    public long getExtra4() {
      return extra4_;
    }

    public static final int EXTRA5_FIELD_NUMBER = 1341;
    private double extra5_;
    /**
     * <code>double extra5 = 1341;</code>
     */
    public double getExtra5() {
      return extra5_;
    }

    public static final int EXTRA6_FIELD_NUMBER = 1342;
    private java.util.List<java.lang.Float> extra6_;
    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    public java.util.List<java.lang.Float>
        getExtra6List() {
      return extra6_;
    }
    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    public int getExtra6Count() {
      return extra6_.size();
    }
    /**
     * <code>repeated float extra6 = 1342;</code>
     */
    public float getExtra6(int index) {
      return extra6_.get(index);
    }
    private int extra6MemoizedSerializedSize = -1;

    public static final int EXTRA7_FIELD_NUMBER = 1343;
    private org.tensorflow.example.Features extra7_;
    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    public boolean hasExtra7() {
      return extra7_ != null;
    }
    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    public org.tensorflow.example.Features getExtra7() {
      return extra7_ == null ? org.tensorflow.example.Features.getDefaultInstance() : extra7_;
    }
    /**
     * <code>.tensorflow.Features extra7 = 1343;</code>
     */
    public org.tensorflow.example.FeaturesOrBuilder getExtra7OrBuilder() {
      return getExtra7();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (features_ != null) {
        output.writeMessage(1, getFeatures());
      }
      if (!getExtra1Bytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1337, extra1_);
      }
      if (extra2_ != 0L) {
        output.writeInt64(1338, extra2_);
      }
      if (extra3_ != 0) {
        output.writeFixed32(1339, extra3_);
      }
      if (extra4_ != 0L) {
        output.writeFixed64(1340, extra4_);
      }
      if (extra5_ != 0D) {
        output.writeDouble(1341, extra5_);
      }
      if (getExtra6List().size() > 0) {
        output.writeUInt32NoTag(10738);
        output.writeUInt32NoTag(extra6MemoizedSerializedSize);
      }
      for (int i = 0; i < extra6_.size(); i++) {
        output.writeFloatNoTag(extra6_.get(i));
      }
      if (extra7_ != null) {
        output.writeMessage(1343, getExtra7());
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (features_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getFeatures());
      }
      if (!getExtra1Bytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1337, extra1_);
      }
      if (extra2_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1338, extra2_);
      }
      if (extra3_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(1339, extra3_);
      }
      if (extra4_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed64Size(1340, extra4_);
      }
      if (extra5_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1341, extra5_);
      }
      {
        int dataSize = 0;
        dataSize = 4 * getExtra6List().size();
        size += dataSize;
        if (!getExtra6List().isEmpty()) {
          size += 2;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        extra6MemoizedSerializedSize = dataSize;
      }
      if (extra7_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1343, getExtra7());
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras)) {
        return super.equals(obj);
      }
      tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras other = (tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras) obj;

      boolean result = true;
      result = result && (hasFeatures() == other.hasFeatures());
      if (hasFeatures()) {
        result = result && getFeatures()
            .equals(other.getFeatures());
      }
      result = result && getExtra1()
          .equals(other.getExtra1());
      result = result && (getExtra2()
          == other.getExtra2());
      result = result && (getExtra3()
          == other.getExtra3());
      result = result && (getExtra4()
          == other.getExtra4());
      result = result && (
          java.lang.Double.doubleToLongBits(getExtra5())
          == java.lang.Double.doubleToLongBits(
              other.getExtra5()));
      result = result && getExtra6List()
          .equals(other.getExtra6List());
      result = result && (hasExtra7() == other.hasExtra7());
      if (hasExtra7()) {
        result = result && getExtra7()
            .equals(other.getExtra7());
      }
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasFeatures()) {
        hash = (37 * hash) + FEATURES_FIELD_NUMBER;
        hash = (53 * hash) + getFeatures().hashCode();
      }
      hash = (37 * hash) + EXTRA1_FIELD_NUMBER;
      hash = (53 * hash) + getExtra1().hashCode();
      hash = (37 * hash) + EXTRA2_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getExtra2());
      hash = (37 * hash) + EXTRA3_FIELD_NUMBER;
      hash = (53 * hash) + getExtra3();
      hash = (37 * hash) + EXTRA4_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getExtra4());
      hash = (37 * hash) + EXTRA5_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getExtra5()));
      if (getExtra6Count() > 0) {
        hash = (37 * hash) + EXTRA6_FIELD_NUMBER;
        hash = (53 * hash) + getExtra6List().hashCode();
      }
      if (hasExtra7()) {
        hash = (37 * hash) + EXTRA7_FIELD_NUMBER;
        hash = (53 * hash) + getExtra7().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras 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 tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras 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 tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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;
    }
    /**
     * <pre>
     * This message is parallel to Example, but with additional fields to test
     * unknown fields handling in example_proto_fast_parsing_test.cc.
     * </pre>
     *
     * Protobuf type {@code tensorflow.ExampleWithExtras}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:tensorflow.ExampleWithExtras)
        tensorflow.ExampleProtoFastParsingTest.ExampleWithExtrasOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tensorflow.ExampleProtoFastParsingTest.internal_static_tensorflow_ExampleWithExtras_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tensorflow.ExampleProtoFastParsingTest.internal_static_tensorflow_ExampleWithExtras_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.class, tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.Builder.class);
      }

      // Construct using tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (featuresBuilder_ == null) {
          features_ = null;
        } else {
          features_ = null;
          featuresBuilder_ = null;
        }
        extra1_ = "";

        extra2_ = 0L;

        extra3_ = 0;

        extra4_ = 0L;

        extra5_ = 0D;

        extra6_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000040);
        if (extra7Builder_ == null) {
          extra7_ = null;
        } else {
          extra7_ = null;
          extra7Builder_ = null;
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tensorflow.ExampleProtoFastParsingTest.internal_static_tensorflow_ExampleWithExtras_descriptor;
      }

      public tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras getDefaultInstanceForType() {
        return tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.getDefaultInstance();
      }

      public tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras build() {
        tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras buildPartial() {
        tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras result = new tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (featuresBuilder_ == null) {
          result.features_ = features_;
        } else {
          result.features_ = featuresBuilder_.build();
        }
        result.extra1_ = extra1_;
        result.extra2_ = extra2_;
        result.extra3_ = extra3_;
        result.extra4_ = extra4_;
        result.extra5_ = extra5_;
        if (((bitField0_ & 0x00000040) == 0x00000040)) {
          extra6_ = java.util.Collections.unmodifiableList(extra6_);
          bitField0_ = (bitField0_ & ~0x00000040);
        }
        result.extra6_ = extra6_;
        if (extra7Builder_ == null) {
          result.extra7_ = extra7_;
        } else {
          result.extra7_ = extra7Builder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras) {
          return mergeFrom((tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras other) {
        if (other == tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras.getDefaultInstance()) return this;
        if (other.hasFeatures()) {
          mergeFeatures(other.getFeatures());
        }
        if (!other.getExtra1().isEmpty()) {
          extra1_ = other.extra1_;
          onChanged();
        }
        if (other.getExtra2() != 0L) {
          setExtra2(other.getExtra2());
        }
        if (other.getExtra3() != 0) {
          setExtra3(other.getExtra3());
        }
        if (other.getExtra4() != 0L) {
          setExtra4(other.getExtra4());
        }
        if (other.getExtra5() != 0D) {
          setExtra5(other.getExtra5());
        }
        if (!other.extra6_.isEmpty()) {
          if (extra6_.isEmpty()) {
            extra6_ = other.extra6_;
            bitField0_ = (bitField0_ & ~0x00000040);
          } else {
            ensureExtra6IsMutable();
            extra6_.addAll(other.extra6_);
          }
          onChanged();
        }
        if (other.hasExtra7()) {
          mergeExtra7(other.getExtra7());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private org.tensorflow.example.Features features_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder> featuresBuilder_;
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public boolean hasFeatures() {
        return featuresBuilder_ != null || features_ != null;
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public org.tensorflow.example.Features getFeatures() {
        if (featuresBuilder_ == null) {
          return features_ == null ? org.tensorflow.example.Features.getDefaultInstance() : features_;
        } else {
          return featuresBuilder_.getMessage();
        }
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public Builder setFeatures(org.tensorflow.example.Features value) {
        if (featuresBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          features_ = value;
          onChanged();
        } else {
          featuresBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public Builder setFeatures(
          org.tensorflow.example.Features.Builder builderForValue) {
        if (featuresBuilder_ == null) {
          features_ = builderForValue.build();
          onChanged();
        } else {
          featuresBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public Builder mergeFeatures(org.tensorflow.example.Features value) {
        if (featuresBuilder_ == null) {
          if (features_ != null) {
            features_ =
              org.tensorflow.example.Features.newBuilder(features_).mergeFrom(value).buildPartial();
          } else {
            features_ = value;
          }
          onChanged();
        } else {
          featuresBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public Builder clearFeatures() {
        if (featuresBuilder_ == null) {
          features_ = null;
          onChanged();
        } else {
          features_ = null;
          featuresBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public org.tensorflow.example.Features.Builder getFeaturesBuilder() {
        
        onChanged();
        return getFeaturesFieldBuilder().getBuilder();
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      public org.tensorflow.example.FeaturesOrBuilder getFeaturesOrBuilder() {
        if (featuresBuilder_ != null) {
          return featuresBuilder_.getMessageOrBuilder();
        } else {
          return features_ == null ?
              org.tensorflow.example.Features.getDefaultInstance() : features_;
        }
      }
      /**
       * <code>.tensorflow.Features features = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder> 
          getFeaturesFieldBuilder() {
        if (featuresBuilder_ == null) {
          featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder>(
                  getFeatures(),
                  getParentForChildren(),
                  isClean());
          features_ = null;
        }
        return featuresBuilder_;
      }

      private java.lang.Object extra1_ = "";
      /**
       * <code>string extra1 = 1337;</code>
       */
      public java.lang.String getExtra1() {
        java.lang.Object ref = extra1_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          extra1_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string extra1 = 1337;</code>
       */
      public com.google.protobuf.ByteString
          getExtra1Bytes() {
        java.lang.Object ref = extra1_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          extra1_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string extra1 = 1337;</code>
       */
      public Builder setExtra1(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        extra1_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string extra1 = 1337;</code>
       */
      public Builder clearExtra1() {
        
        extra1_ = getDefaultInstance().getExtra1();
        onChanged();
        return this;
      }
      /**
       * <code>string extra1 = 1337;</code>
       */
      public Builder setExtra1Bytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        extra1_ = value;
        onChanged();
        return this;
      }

      private long extra2_ ;
      /**
       * <code>int64 extra2 = 1338;</code>
       */
      public long getExtra2() {
        return extra2_;
      }
      /**
       * <code>int64 extra2 = 1338;</code>
       */
      public Builder setExtra2(long value) {
        
        extra2_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 extra2 = 1338;</code>
       */
      public Builder clearExtra2() {
        
        extra2_ = 0L;
        onChanged();
        return this;
      }

      private int extra3_ ;
      /**
       * <code>fixed32 extra3 = 1339;</code>
       */
      public int getExtra3() {
        return extra3_;
      }
      /**
       * <code>fixed32 extra3 = 1339;</code>
       */
      public Builder setExtra3(int value) {
        
        extra3_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>fixed32 extra3 = 1339;</code>
       */
      public Builder clearExtra3() {
        
        extra3_ = 0;
        onChanged();
        return this;
      }

      private long extra4_ ;
      /**
       * <code>fixed64 extra4 = 1340;</code>
       */
      public long getExtra4() {
        return extra4_;
      }
      /**
       * <code>fixed64 extra4 = 1340;</code>
       */
      public Builder setExtra4(long value) {
        
        extra4_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>fixed64 extra4 = 1340;</code>
       */
      public Builder clearExtra4() {
        
        extra4_ = 0L;
        onChanged();
        return this;
      }

      private double extra5_ ;
      /**
       * <code>double extra5 = 1341;</code>
       */
      public double getExtra5() {
        return extra5_;
      }
      /**
       * <code>double extra5 = 1341;</code>
       */
      public Builder setExtra5(double value) {
        
        extra5_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>double extra5 = 1341;</code>
       */
      public Builder clearExtra5() {
        
        extra5_ = 0D;
        onChanged();
        return this;
      }

      private java.util.List<java.lang.Float> extra6_ = java.util.Collections.emptyList();
      private void ensureExtra6IsMutable() {
        if (!((bitField0_ & 0x00000040) == 0x00000040)) {
          extra6_ = new java.util.ArrayList<java.lang.Float>(extra6_);
          bitField0_ |= 0x00000040;
         }
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public java.util.List<java.lang.Float>
          getExtra6List() {
        return java.util.Collections.unmodifiableList(extra6_);
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public int getExtra6Count() {
        return extra6_.size();
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public float getExtra6(int index) {
        return extra6_.get(index);
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public Builder setExtra6(
          int index, float value) {
        ensureExtra6IsMutable();
        extra6_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public Builder addExtra6(float value) {
        ensureExtra6IsMutable();
        extra6_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public Builder addAllExtra6(
          java.lang.Iterable<? extends java.lang.Float> values) {
        ensureExtra6IsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, extra6_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated float extra6 = 1342;</code>
       */
      public Builder clearExtra6() {
        extra6_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000040);
        onChanged();
        return this;
      }

      private org.tensorflow.example.Features extra7_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder> extra7Builder_;
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public boolean hasExtra7() {
        return extra7Builder_ != null || extra7_ != null;
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public org.tensorflow.example.Features getExtra7() {
        if (extra7Builder_ == null) {
          return extra7_ == null ? org.tensorflow.example.Features.getDefaultInstance() : extra7_;
        } else {
          return extra7Builder_.getMessage();
        }
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public Builder setExtra7(org.tensorflow.example.Features value) {
        if (extra7Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          extra7_ = value;
          onChanged();
        } else {
          extra7Builder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public Builder setExtra7(
          org.tensorflow.example.Features.Builder builderForValue) {
        if (extra7Builder_ == null) {
          extra7_ = builderForValue.build();
          onChanged();
        } else {
          extra7Builder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public Builder mergeExtra7(org.tensorflow.example.Features value) {
        if (extra7Builder_ == null) {
          if (extra7_ != null) {
            extra7_ =
              org.tensorflow.example.Features.newBuilder(extra7_).mergeFrom(value).buildPartial();
          } else {
            extra7_ = value;
          }
          onChanged();
        } else {
          extra7Builder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public Builder clearExtra7() {
        if (extra7Builder_ == null) {
          extra7_ = null;
          onChanged();
        } else {
          extra7_ = null;
          extra7Builder_ = null;
        }

        return this;
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public org.tensorflow.example.Features.Builder getExtra7Builder() {
        
        onChanged();
        return getExtra7FieldBuilder().getBuilder();
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      public org.tensorflow.example.FeaturesOrBuilder getExtra7OrBuilder() {
        if (extra7Builder_ != null) {
          return extra7Builder_.getMessageOrBuilder();
        } else {
          return extra7_ == null ?
              org.tensorflow.example.Features.getDefaultInstance() : extra7_;
        }
      }
      /**
       * <code>.tensorflow.Features extra7 = 1343;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder> 
          getExtra7FieldBuilder() {
        if (extra7Builder_ == null) {
          extra7Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.tensorflow.example.Features, org.tensorflow.example.Features.Builder, org.tensorflow.example.FeaturesOrBuilder>(
                  getExtra7(),
                  getParentForChildren(),
                  isClean());
          extra7_ = null;
        }
        return extra7Builder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:tensorflow.ExampleWithExtras)
    }

    // @@protoc_insertion_point(class_scope:tensorflow.ExampleWithExtras)
    private static final tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras();
    }

    public static tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public tensorflow.ExampleProtoFastParsingTest.ExampleWithExtras getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tensorflow_ExampleWithExtras_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tensorflow_ExampleWithExtras_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n:tensorflow/core/util/example_proto_fas" +
      "t_parsing_test.proto\022\ntensorflow\032%tensor" +
      "flow/core/example/feature.proto\"\310\001\n\021Exam" +
      "pleWithExtras\022&\n\010features\030\001 \001(\0132\024.tensor" +
      "flow.Features\022\017\n\006extra1\030\271\n \001(\t\022\017\n\006extra2" +
      "\030\272\n \001(\003\022\017\n\006extra3\030\273\n \001(\007\022\017\n\006extra4\030\274\n \001(" +
      "\006\022\017\n\006extra5\030\275\n \001(\001\022\017\n\006extra6\030\276\n \003(\002\022%\n\006e" +
      "xtra7\030\277\n \001(\0132\024.tensorflow.FeaturesB\003\370\001\001b" +
      "\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          org.tensorflow.example.FeatureProtos.getDescriptor(),
        }, assigner);
    internal_static_tensorflow_ExampleWithExtras_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_tensorflow_ExampleWithExtras_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tensorflow_ExampleWithExtras_descriptor,
        new java.lang.String[] { "Features", "Extra1", "Extra2", "Extra3", "Extra4", "Extra5", "Extra6", "Extra7", });
    org.tensorflow.example.FeatureProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
