gt:           if (!hasCode()) {
context: package com.juqueen.flatshare;// Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: PacketProto.proto
  
  public final class PacketProto {
    private PacketProto() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
    }
    public interface PacketOrBuilder extends
        // @@protoc_insertion_point(interface_extends:Packet)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>repeated .Packet.Header header = 7;</code>
       */
      java.util.List<Packet.Header>
          getHeaderList();
      /**
       * <code>repeated .Packet.Header header = 7;</code>
       */
      Packet.Header getHeader(int index);
      /**
       * <code>repeated .Packet.Header header = 7;</code>
       */
      int getHeaderCount();
      /**
       * <code>repeated .Packet.Header header = 7;</code>
       */
      java.util.List<? extends Packet.HeaderOrBuilder>
          getHeaderOrBuilderList();
      /**
       * <code>repeated .Packet.Header header = 7;</code>
       */
      Packet.HeaderOrBuilder getHeaderOrBuilder(
              int index);
  
      /**
       * <code>repeated .Packet.Data data = 8;</code>
       */
      java.util.List<Packet.Data>
          getDataList();
      /**
       * <code>repeated .Packet.Data data = 8;</code>
       */
      Packet.Data getData(int index);
      /**
       * <code>repeated .Packet.Data data = 8;</code>
       */
      int getDataCount();
      /**
       * <code>repeated .Packet.Data data = 8;</code>
       */
      java.util.List<? extends Packet.DataOrBuilder>
          getDataOrBuilderList();
      /**
       * <code>repeated .Packet.Data data = 8;</code>
       */
      Packet.DataOrBuilder getDataOrBuilder(
              int index);
    }
    /**
     * Protobuf type {@code Packet}
     */
    public static final class Packet extends
        com.google.protobuf.GeneratedMessage implements
        // @@protoc_insertion_point(message_implements:Packet)
        PacketOrBuilder {
      // Use Packet.newBuilder() to construct.
      private Packet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
        super(builder);
        this.unknownFields = builder.getUnknownFields();
      }
      private Packet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  
      private static final Packet defaultInstance;
      public static Packet getDefaultInstance() {
        return defaultInstance;
      }
  
      public Packet getDefaultInstanceForType() {
        return defaultInstance;
      }
  
      private final com.google.protobuf.UnknownFieldSet unknownFields;
      @Override
      public final com.google.protobuf.UnknownFieldSet
          getUnknownFields() {
        return this.unknownFields;
      }
      private Packet(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        initFields();
        int mutable_bitField0_ = 0;
        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;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
              case 58: {
                if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                  header_ = new java.util.ArrayList<Header>();
                  mutable_bitField0_ |= 0x00000001;
                }
                header_.add(input.readMessage(Header.PARSER, extensionRegistry));
                break;
              }
              case 66: {
                if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                  data_ = new java.util.ArrayList<Data>();
                  mutable_bitField0_ |= 0x00000002;
                }
                data_.add(input.readMessage(Data.PARSER, extensionRegistry));
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e.getMessage()).setUnfinishedMessage(this);
        } finally {
          if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
            header_ = java.util.Collections.unmodifiableList(header_);
          }
          if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
            data_ = java.util.Collections.unmodifiableList(data_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return PacketProto.internal_static_Packet_descriptor;
      }
  
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return PacketProto.internal_static_Packet_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                Packet.class, Builder.class);
      }
  
      public static com.google.protobuf.Parser<Packet> PARSER =
          new com.google.protobuf.AbstractParser<Packet>() {
        public Packet parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Packet(input, extensionRegistry);
        }
      };
  
      @Override
      public com.google.protobuf.Parser<Packet> getParserForType() {
        return PARSER;
      }
  
      public interface HeaderOrBuilder extends
          // @@protoc_insertion_point(interface_extends:Packet.Header)
          com.google.protobuf.MessageOrBuilder {
  
        /**
         * <code>required int32 code = 1;</code>
         */
        boolean hasCode();
        /**
         * <code>required int32 code = 1;</code>
         */
        int getCode();
  
        /**
         * <code>optional string intent = 2;</code>
         */
        boolean hasIntent();
        /**
         * <code>optional string intent = 2;</code>
         */
        String getIntent();
        /**
         * <code>optional string intent = 2;</code>
         */
        com.google.protobuf.ByteString
            getIntentBytes();
  
        /**
         * <code>optional string data = 3;</code>
         */
        boolean hasData();
        /**
         * <code>optional string data = 3;</code>
         */
        String getData();
        /**
         * <code>optional string data = 3;</code>
         */
        com.google.protobuf.ByteString
            getDataBytes();
  
        /**
         * <code>optional int32 data_length = 4;</code>
         */
        boolean hasDataLength();
        /**
         * <code>optional int32 data_length = 4;</code>
         */
        int getDataLength();
      }
      /**
       * Protobuf type {@code Packet.Header}
       */
      public static final class Header extends
          com.google.protobuf.GeneratedMessage implements
          // @@protoc_insertion_point(message_implements:Packet.Header)
          HeaderOrBuilder {
        // Use Header.newBuilder() to construct.
        private Header(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
          super(builder);
          this.unknownFields = builder.getUnknownFields();
        }
        private Header(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  
        private static final Header defaultInstance;
        public static Header getDefaultInstance() {
          return defaultInstance;
        }
  
        public Header getDefaultInstanceForType() {
          return defaultInstance;
        }
  
        private final com.google.protobuf.UnknownFieldSet unknownFields;
        @Override
        public final com.google.protobuf.UnknownFieldSet
            getUnknownFields() {
          return this.unknownFields;
        }
        private Header(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          initFields();
          int mutable_bitField0_ = 0;
          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;
                default: {
                  if (!parseUnknownField(input, unknownFields,
                                         extensionRegistry, tag)) {
                    done = true;
                  }
                  break;
                }
                case 8: {
                  bitField0_ |= 0x00000001;
                  code_ = input.readInt32();
                  break;
                }
                case 18: {
                  com.google.protobuf.ByteString bs = input.readBytes();
                  bitField0_ |= 0x00000002;
                  intent_ = bs;
                  break;
                }
                case 26: {
                  com.google.protobuf.ByteString bs = input.readBytes();
                  bitField0_ |= 0x00000004;
                  data_ = bs;
                  break;
                }
                case 32: {
                  bitField0_ |= 0x00000008;
                  dataLength_ = input.readInt32();
                  break;
                }
              }
            }
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this);
          } finally {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
          }
        }
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return PacketProto.internal_static_Packet_Header_descriptor;
        }
  
        protected FieldAccessorTable
            internalGetFieldAccessorTable() {
          return PacketProto.internal_static_Packet_Header_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  Header.class, Builder.class);
        }
  
        public static com.google.protobuf.Parser<Header> PARSER =
            new com.google.protobuf.AbstractParser<Header>() {
          public Header parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new Header(input, extensionRegistry);
          }
        };
  
        @Override
        public com.google.protobuf.Parser<Header> getParserForType() {
          return PARSER;
        }
  
        private int bitField0_;
        public static final int CODE_FIELD_NUMBER = 1;
        private int code_;
        /**
         * <code>required int32 code = 1;</code>
         */
        public boolean hasCode() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        /**
         * <code>required int32 code = 1;</code>
         */
        public int getCode() {
          return code_;
        }
  
        public static final int INTENT_FIELD_NUMBER = 2;
        private Object intent_;
        /**
         * <code>optional string intent = 2;</code>
         */
        public boolean hasIntent() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        /**
         * <code>optional string intent = 2;</code>
         */
        public String getIntent() {
          Object ref = intent_;
          if (ref instanceof String) {
            return (String) ref;
          } else {
            com.google.protobuf.ByteString bs = 
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            if (bs.isValidUtf8()) {
              intent_ = s;
            }
            return s;
          }
        }
        /**
         * <code>optional string intent = 2;</code>
         */
        public com.google.protobuf.ByteString
            getIntentBytes() {
          Object ref = intent_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (String) ref);
            intent_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
  
        public static final int DATA_FIELD_NUMBER = 3;
        private Object data_;
        /**
         * <code>optional string data = 3;</code>
         */
        public boolean hasData() {
          return ((bitField0_ & 0x00000004) == 0x00000004);
        }
        /**
         * <code>optional string data = 3;</code>
         */
        public String getData() {
          Object ref = data_;
          if (ref instanceof String) {
            return (String) ref;
          } else {
            com.google.protobuf.ByteString bs = 
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            if (bs.isValidUtf8()) {
              data_ = s;
            }
            return s;
          }
        }
        /**
         * <code>optional string data = 3;</code>
         */
        public com.google.protobuf.ByteString
            getDataBytes() {
          Object ref = data_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (String) ref);
            data_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
  
        public static final int DATA_LENGTH_FIELD_NUMBER = 4;
        private int dataLength_;
        /**
         * <code>optional int32 data_length = 4;</code>
         */
        public boolean hasDataLength() {
          return ((bitField0_ & 0x00000008) == 0x00000008);
        }
        /**
         * <code>optional int32 data_length = 4;</code>
         */
        public int getDataLength() {
          return dataLength_;
        }
  
        private void initFields() {
          code_ = 0;
          intent_ = "";
          data_ = "";
          dataLength_ = 0;
        }
        private byte memoizedIsInitialized = -1;
        public final boolean isInitialized() {
          byte isInitialized = memoizedIsInitialized;
          if (isInitialized == 1) return true;
          if (isInitialized == 0) return false;
  
          if (!hasCode()) {
            memoizedIsInitialized = 0;
            return false;
          }
          memoizedIsInitialized = 1;
          return true;
        }
  
        public void writeTo(com.google.protobuf.CodedOutputStream output)
                            throws java.io.IOException {
          getSerializedSize();
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            output.writeInt32(1, code_);
          }
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            output.writeBytes(2, getIntentBytes());
          }
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            output.writeBytes(3, getDataBytes());
          }
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            output.writeInt32(4, dataLength_);
          }
          getUnknownFields().writeTo(output);
        }
  
        private int memoizedSerializedSize = -1;
        public int getSerializedSize() {
          int size = memoizedSerializedSize;
          if (size != -1) return size;
  
          size = 0;
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt32Size(1, code_);
          }
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(2, getIntentBytes());
          }
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(3, getDataBytes());
          }
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt32Size(4, dataLength_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSerializedSize = size;
          return size;
        }
  
        private static final long serialVersionUID = 0L;
        @Override
        protected Object writeReplace()
            throws java.io.ObjectStreamException {
          return super.writeReplace();
        }
  
        public static Header parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static Header parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static Header parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static Header parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static Header parseFrom(java.io.InputStream input)
            throws java.io.IOException {
          return PARSER.parseFrom(input);
        }
        public static Header parseFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return PARSER.parseFrom(input, extensionRegistry);
        }
        public static Header parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException {
          return PARSER.parseDelimitedFrom(input);
        }
        public static Header parseDelimitedFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return PARSER.parseDelimitedFrom(input, extensionRegistry);
        }
        public static Header parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException {
          return PARSER.parseFrom(input);
        }
        public static Header parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return PARSER.parseFrom(input, extensionRegistry);
        }
  
        public static Builder newBuilder() { return Builder.create(); }
        public Builder newBuilderForType() { return newBuilder(); }
        public static Builder newBuilder(Header prototype) {
          return newBuilder().mergeFrom(prototype);
        }
        public Builder toBuilder() { return newBuilder(this); }
  
        @Override
        protected Builder newBuilderForType(
            BuilderParent parent) {
          Builder builder = new Builder(parent);
          return builder;
        }
        /**
         * Protobuf type {@code Packet.Header}
         */
        public static final class Builder extends
            com.google.protobuf.GeneratedMessage.Builder<Builder> implements
            // @@protoc_insertion_point(builder_implements:Packet.Header)
            HeaderOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor
              getDescriptor() {
            return PacketProto.internal_static_Packet_Header_descriptor;
          }
  
          protected FieldAccessorTable
              internalGetFieldAccessorTable() {
            return PacketProto.internal_static_Packet_Header_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    Header.class, Builder.class);
          }
  
          // Construct using PacketProto.Packet.Header.newBuilder()
          private Builder() {
            maybeForceBuilderInitialization();
          }
  
          private Builder(
              BuilderParent parent) {
            super(parent);
            maybeForceBuilderInitialization();
          }
          private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            }
          }
          private static Builder create() {
            return new Builder();
          }
  
          public Builder clear() {
            super.clear();
            code_ = 0;
            bitField0_ = (bitField0_ & ~0x00000001);
            intent_ = "";
            bitField0_ = (bitField0_ & ~0x00000002);
            data_ = "";
            bitField0_ = (bitField0_ & ~0x00000004);
            dataLength_ = 0;
            bitField0_ = (bitField0_ & ~0x00000008);
            return this;
          }
  
          public Builder clone() {
            return create().mergeFrom(buildPartial());
          }
  
          public com.google.protobuf.Descriptors.Descriptor
              getDescriptorForType() {
            return PacketProto.internal_static_Packet_Header_descriptor;
          }
  
          public Header getDefaultInstanceForType() {
            return Header.getDefaultInstance();
          }
  
          public Header build() {
            Header result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }
  
          public Header buildPartial() {
            Header result = new Header(this);
            int from_bitField0_ = bitField0_;
            int to_bitField0_ = 0;
            if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
              to_bitField0_ |= 0x00000001;
            }
            result.code_ = code_;
            if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
              to_bitField0_ |= 0x00000002;
            }
            result.intent_ = intent_;
            if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
              to_bitField0_ |= 0x00000004;
            }
            result.data_ = data_;
            if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
              to_bitField0_ |= 0x00000008;
            }
            result.dataLength_ = dataLength_;
            result.bitField0_ = to_bitField0_;
            onBuilt();
            return result;
          }
  
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof Header) {
              return mergeFrom((Header)other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }
  
          public Builder mergeFrom(Header other) {
            if (other == Header.getDefaultInstance()) return this;
            if (other.hasCode()) {
              setCode(other.getCode());
            }
            if (other.hasIntent()) {
              bitField0_ |= 0x00000002;
              intent_ = other.intent_;
              onChanged();
            }
            if (other.hasData()) {
              bitField0_ |= 0x00000004;
              data_ = other.data_;
              onChanged();
            }
            if (other.hasDataLength()) {
              setDataLength(other.getDataLength());
            }
            this.mergeUnknownFields(other.getUnknownFields());
            return this;
          }
  
          public final boolean isInitialized() {
  