@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeDouble(1, doubleType_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFloat(2, floatType_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeInt32(3, int32Type_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeInt64(4, int64Type_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeUInt32(5, uint32Type_);
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        output.writeUInt64(6, uint64Type_);
      }
      if (((bitField0_ & 0x00000040) != 0)) {
        output.writeSInt32(7, sint32Type_);
      }
      if (((bitField0_ & 0x00000080) != 0)) {
        output.writeSInt64(8, sint64Type_);
      }
      if (((bitField0_ & 0x00000100) != 0)) {
        output.writeFixed32(9, fixed32Type_);
      }
      if (((bitField0_ & 0x00000200) != 0)) {
        output.writeFixed64(10, fixed64Type_);
      }
      if (((bitField0_ & 0x00000400) != 0)) {
        output.writeSFixed32(11, sfixed32Type_);
      }
      if (((bitField0_ & 0x00000800) != 0)) {
        output.writeSFixed64(12, sfixed64Type_);
      }
      if (((bitField0_ & 0x00001000) != 0)) {
        output.writeBool(13, boolType_);
      }
      if (((bitField0_ & 0x00002000) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 14, stringType_);
      }
      if (((bitField0_ & 0x00004000) != 0)) {
        output.writeBytes(15, bytesType_);
      }
      for (int i = 0; i < mapType_.size(); i++) {
        output.writeMessage(16, mapType_.get(i));
      }
      for (int i = 0; i < stringListType_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 17, stringListType_.getRaw(i));
      }
      if (((bitField0_ & 0x00008000) != 0)) {
        output.writeMessage(18, getMessageType());
      }
      for (int i = 0; i < messageListType_.size(); i++) {
        output.writeMessage(19, messageListType_.get(i));
      }
      if (((bitField0_ & 0x00010000) != 0)) {
        output.writeEnum(20, enumType_);
      }
      getUnknownFields().writeTo(output);
    }
<code>optional .AllTypes.Enum1 enumType = 20;</code>
@return The enumType.
ql/src/gen/protobuf/gen-test/org/apache/hadoop/hive/ql/io/protobuf/SampleProtos.java