content: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: message.proto
  
  package com.hao.heji.proto;
  
  public final class Message {
    private Message() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistryLite registry) {
    }
  
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
      registerAllExtensions(
          (com.google.protobuf.ExtensionRegistryLite) registry);
    }
    /**
     * <pre>
     *消息类型
     * </pre>
     *
     * Protobuf enum {@code com.heji.proto.Type}
     */
    public enum Type
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>ADD_BILL = 0;</code>
       */
      ADD_BILL(0),
      /**
       * <code>ADD_BILL_ACK = 1;</code>
       */
      ADD_BILL_ACK(1),
      /**
       * <code>DELETE_BILL = 2;</code>
       */
      DELETE_BILL(2),
      /**
       * <code>DELETE_BILL_ACK = 3;</code>
       */
      DELETE_BILL_ACK(3),
      /**
       * <code>UPDATE_BILL = 4;</code>
       */
      UPDATE_BILL(4),
      /**
       * <code>UPDATE_BILL_ACK = 5;</code>
       */
      UPDATE_BILL_ACK(5),
      /**
       * <code>ADD_BOOK = 6;</code>
       */
      ADD_BOOK(6),
      /**
       * <code>ADD_BOOK_ACK = 7;</code>
       */
      ADD_BOOK_ACK(7),
      /**
       * <code>DELETE_BOOK = 8;</code>
       */
      DELETE_BOOK(8),
      /**
       * <code>DELETE_BOOK_ACK = 9;</code>
       */
      DELETE_BOOK_ACK(9),
      /**
       * <code>UPDATE_BOOK = 10;</code>
       */
      UPDATE_BOOK(10),
      /**
       * <code>UPDATE_BOOK_ACK = 11;</code>
       */
      UPDATE_BOOK_ACK(11),
      /**
       * <code>ADD_CATEGORY = 12;</code>
       */
      ADD_CATEGORY(12),
      /**
       * <code>ADD_CATEGORY_ACK = 13;</code>
       */
      ADD_CATEGORY_ACK(13),
      /**
       * <code>DELETE_GATEGORY = 14;</code>
       */
      DELETE_GATEGORY(14),
      /**
       * <code>DELETE_GATEGORY_ACK = 15;</code>
       */
      DELETE_GATEGORY_ACK(15),
      /**
       * <code>UPDATE_GATEGORY = 16;</code>
       */
      UPDATE_GATEGORY(16),
      /**
       * <code>UPDATE_GATEGORY_ACK = 17;</code>
       */
      UPDATE_GATEGORY_ACK(17),
      UNRECOGNIZED(-1),
      ;
  
      /**
       * <code>ADD_BILL = 0;</code>
       */
      public static final int ADD_BILL_VALUE = 0;
      /**
       * <code>ADD_BILL_ACK = 1;</code>
       */
      public static final int ADD_BILL_ACK_VALUE = 1;
      /**
       * <code>DELETE_BILL = 2;</code>
       */
      public static final int DELETE_BILL_VALUE = 2;
      /**
       * <code>DELETE_BILL_ACK = 3;</code>
       */
      public static final int DELETE_BILL_ACK_VALUE = 3;
      /**
       * <code>UPDATE_BILL = 4;</code>
       */
      public static final int UPDATE_BILL_VALUE = 4;
      /**
       * <code>UPDATE_BILL_ACK = 5;</code>
       */
      public static final int UPDATE_BILL_ACK_VALUE = 5;
      /**
       * <code>ADD_BOOK = 6;</code>
       */
      public static final int ADD_BOOK_VALUE = 6;
      /**
       * <code>ADD_BOOK_ACK = 7;</code>
       */
      public static final int ADD_BOOK_ACK_VALUE = 7;
      /**
       * <code>DELETE_BOOK = 8;</code>
       */
      public static final int DELETE_BOOK_VALUE = 8;
      /**
       * <code>DELETE_BOOK_ACK = 9;</code>
       */
      public static final int DELETE_BOOK_ACK_VALUE = 9;
      /**
       * <code>UPDATE_BOOK = 10;</code>
       */
      public static final int UPDATE_BOOK_VALUE = 10;
      /**
       * <code>UPDATE_BOOK_ACK = 11;</code>
       */
      public static final int UPDATE_BOOK_ACK_VALUE = 11;
      /**
       * <code>ADD_CATEGORY = 12;</code>
       */
      public static final int ADD_CATEGORY_VALUE = 12;
      /**
       * <code>ADD_CATEGORY_ACK = 13;</code>
       */
      public static final int ADD_CATEGORY_ACK_VALUE = 13;
      /**
       * <code>DELETE_GATEGORY = 14;</code>
       */
      public static final int DELETE_GATEGORY_VALUE = 14;
      /**
       * <code>DELETE_GATEGORY_ACK = 15;</code>
       */
      public static final int DELETE_GATEGORY_ACK_VALUE = 15;
      /**
       * <code>UPDATE_GATEGORY = 16;</code>
       */
      public static final int UPDATE_GATEGORY_VALUE = 16;
      /**
       * <code>UPDATE_GATEGORY_ACK = 17;</code>
       */
      public static final int UPDATE_GATEGORY_ACK_VALUE = 17;
  
  
      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }
  
      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @Deprecated
      public static Type valueOf(int value) {
        return forNumber(value);
      }
  
      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Type forNumber(int value) {
        switch (value) {
          case 0: return ADD_BILL;
          case 1: return ADD_BILL_ACK;
          case 2: return DELETE_BILL;
          case 3: return DELETE_BILL_ACK;
          case 4: return UPDATE_BILL;
          case 5: return UPDATE_BILL_ACK;
          case 6: return ADD_BOOK;
          case 7: return ADD_BOOK_ACK;
          case 8: return DELETE_BOOK;
          case 9: return DELETE_BOOK_ACK;
          case 10: return UPDATE_BOOK;
          case 11: return UPDATE_BOOK_ACK;
          case 12: return ADD_CATEGORY;
          case 13: return ADD_CATEGORY_ACK;
          case 14: return DELETE_GATEGORY;
          case 15: return DELETE_GATEGORY_ACK;
          case 16: return UPDATE_GATEGORY;
          case 17: return UPDATE_GATEGORY_ACK;
          default: return null;
        }
      }
  
      public static com.google.protobuf.Internal.EnumLiteMap<Type>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Type> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Type>() {
              public Type findValueByNumber(int number) {
                return Type.forNumber(number);
              }
            };
  
      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return Message.getDescriptor().getEnumTypes().get(0);
      }
  
      private static final Type[] VALUES = values();
  
      public static Type valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }
  
      private final int value;
  
      private Type(int value) {
        this.value = value;
      }
  
      // @@protoc_insertion_point(enum_scope:com.heji.proto.Type)
    }
  
    public interface PacketOrBuilder extends
        // @@protoc_insertion_point(interface_extends:com.heji.proto.Packet)
        com.google.protobuf.MessageOrBuilder {
  
      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      String getId();
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      com.google.protobuf.ByteString
          getIdBytes();
  
      /**
       * <code>.com.heji.proto.Type type = 2;</code>
       * @return The enum numeric value on the wire for type.
       */
      int getTypeValue();
      /**
       * <code>.com.heji.proto.Type type = 2;</code>
       * @return The type.
       */
      Type getType();
  
      /**
       * <code>int64 timestamp = 3;</code>
       * @return The timestamp.
       */
      long getTimestamp();
  
      /**
       * <code>string sender_id = 4;</code>
       * @return The senderId.
       */
      String getSenderId();
      /**
       * <code>string sender_id = 4;</code>
       * @return The bytes for senderId.
       */
      com.google.protobuf.ByteString
          getSenderIdBytes();
  
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @return A list containing the receiverIds.
       */
      java.util.List<String>
          getReceiverIdsList();
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @return The count of receiverIds.
       */
      int getReceiverIdsCount();
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @param index The index of the element to return.
       * @return The receiverIds at the given index.
       */
      String getReceiverIds(int index);
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @param index The index of the value to return.
       * @return The bytes of the receiverIds at the given index.
       */
      com.google.protobuf.ByteString
          getReceiverIdsBytes(int index);
  
      /**
       * <code>string content = 6;</code>
       * @return The content.
       */
      String getContent();
      /**
       * <code>string content = 6;</code>
       * @return The bytes for content.
       */
      com.google.protobuf.ByteString
          getContentBytes();
    }
    /**
     * <pre>
     *消息体
     * </pre>
     *
     * Protobuf type {@code com.heji.proto.Packet}
     */
    public static final class Packet extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:com.heji.proto.Packet)
        PacketOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Packet.newBuilder() to construct.
      private Packet(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private Packet() {
        id_ = "";
        type_ = 0;
        senderId_ = "";
        receiverIds_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        content_ = "";
      }
  
      @Override
      @SuppressWarnings({"unused"})
      protected Object newInstance(
          UnusedPrivateParameter unused) {
        return new Packet();
      }
  
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return Message.internal_static_com_heji_proto_Packet_descriptor;
      }
  
      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return Message.internal_static_com_heji_proto_Packet_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                Packet.class, Builder.class);
      }
  
      public static final int ID_FIELD_NUMBER = 1;
      @SuppressWarnings("serial")
      private volatile Object id_ = "";
      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      @Override
      public String getId() {
        Object ref = id_;
        if (ref instanceof String) {
          return (String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          id_ = s;
          return s;
        }
      }
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      @Override
      public com.google.protobuf.ByteString
          getIdBytes() {
        Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int TYPE_FIELD_NUMBER = 2;
      private int type_ = 0;
      /**
       * <code>.com.heji.proto.Type type = 2;</code>
       * @return The enum numeric value on the wire for type.
       */
      @Override public int getTypeValue() {
        return type_;
      }
      /**
       * <code>.com.heji.proto.Type type = 2;</code>
       * @return The type.
       */
      @Override public Type getType() {
        Type result = Type.forNumber(type_);
        return result == null ? Type.UNRECOGNIZED : result;
      }
  
      public static final int TIMESTAMP_FIELD_NUMBER = 3;
      private long timestamp_ = 0L;
      /**
       * <code>int64 timestamp = 3;</code>
       * @return The timestamp.
       */
      @Override
      public long getTimestamp() {
        return timestamp_;
      }
  
      public static final int SENDER_ID_FIELD_NUMBER = 4;
      @SuppressWarnings("serial")
      private volatile Object senderId_ = "";
      /**
       * <code>string sender_id = 4;</code>
       * @return The senderId.
       */
      @Override
      public String getSenderId() {
        Object ref = senderId_;
        if (ref instanceof String) {
          return (String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          senderId_ = s;
          return s;
        }
      }
      /**
       * <code>string sender_id = 4;</code>
       * @return The bytes for senderId.
       */
      @Override
      public com.google.protobuf.ByteString
          getSenderIdBytes() {
        Object ref = senderId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          senderId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      public static final int RECEIVER_IDS_FIELD_NUMBER = 5;
      @SuppressWarnings("serial")
      private com.google.protobuf.LazyStringArrayList receiverIds_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @return A list containing the receiverIds.
       */
      public com.google.protobuf.ProtocolStringList
          getReceiverIdsList() {
        return receiverIds_;
      }
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @return The count of receiverIds.
       */
      public int getReceiverIdsCount() {
        return receiverIds_.size();
      }
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @param index The index of the element to return.
       * @return The receiverIds at the given index.
       */
      public String getReceiverIds(int index) {
        return receiverIds_.get(index);
      }
      /**
       * <code>repeated string receiver_ids = 5;</code>
       * @param index The index of the value to return.
       * @return The bytes of the receiverIds at the given index.
       */
      public com.google.protobuf.ByteString
          getReceiverIdsBytes(int index) {
        return receiverIds_.getByteString(index);
      }
  
      public static final int CONTENT_FIELD_NUMBER = 6;
      @SuppressWarnings("serial")
      private volatile Object content_ = "";
      /**
       * <code>string content = 6;</code>
       * @return The content.
       */
      @Override
      public String getContent() {
        Object ref = content_;
        if (ref instanceof String) {
          return (String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          String s = bs.toStringUtf8();
          content_ = s;
          return s;
        }
      }
      /**
       * <code>string content = 6;</code>
       * @return The bytes for content.
       */
      @Override
      public com.google.protobuf.ByteString
          getContentBytes() {
        Object ref = content_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (String) ref);
          content_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
  
      private byte memoizedIsInitialized = -1;
      @Override
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;
  
        memoizedIsInitialized = 1;
        return true;
      }
  
      @Override
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
        }
        if (type_ != Type.ADD_BILL.getNumber()) {
          output.writeEnum(2, type_);
        }
        if (timestamp_ != 0L) {
          output.writeInt64(3, timestamp_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(senderId_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 4, senderId_);
        }
        for (int i = 0; i < receiverIds_.size(); i++) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 5, receiverIds_.getRaw(i));
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 6, content_);
        }
        getUnknownFields().writeTo(output);
      }
  
      @Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;
  
        size = 0;
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
        }
        if (type_ != Type.ADD_BILL.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(2, type_);
        }
        if (timestamp_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(3, timestamp_);
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(senderId_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, senderId_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < receiverIds_.size(); i++) {
            dataSize += computeStringSizeNoTag(receiverIds_.getRaw(i));
          }
          size += dataSize;
          size += 1 * getReceiverIdsList().size();
        }
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, content_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }
  
      @Override
      public boolean equals(final Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof Packet)) {
          return super.equals(obj);
        }
        Packet other = (Packet) obj;
  
        if (!getId()
            .equals(other.getId())) return false;
        if (type_ != other.type_) return false;
        if (getTimestamp()
            != other.getTimestamp()) return false;
        if (!getSenderId()
            .equals(other.getSenderId())) return false;
        if (!getReceiverIdsList()
            .equals(other.getReceiverIdsList())) return false;
        if (!getContent()
            .equals(other.getContent())) return false;
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }
  
      @Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getId().hashCode();
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + type_;
        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getTimestamp());
        hash = (37 * hash) + SENDER_ID_FIELD_NUMBER;
        hash = (53 * hash) + getSenderId().hashCode();
        if (getReceiverIdsCount() > 0) {
          hash = (37 * hash) + RECEIVER_IDS_FIELD_NUMBER;
          hash = (53 * hash) + getReceiverIdsList().hashCode();
        }
        hash = (37 * hash) + CONTENT_FIELD_NUMBER;
        hash = (53 * hash) + getContent().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }
  
      public static Packet parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static Packet parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static Packet parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static Packet parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static Packet parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static Packet parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static Packet parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static Packet 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 Packet parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static Packet 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 Packet parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static Packet parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }
  
      @Override
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
      }
      public static Builder newBuilder(Packet prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      @Override
      public Builder toBuilder() {
        return this == DEFAULT_INSTANCE
            ? new Builder() : new Builder().mergeFrom(this);
      }
  
      @Override
      protected Builder newBuilderForType(
          BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      /**
       * <pre>
       *消息体
       * </pre>
       *
       * Protobuf type {@code com.heji.proto.Packet}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:com.heji.proto.Packet)
          PacketOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return Message.internal_static_com_heji_proto_Packet_descriptor;
        }
  
        @Override
        protected FieldAccessorTable
            internalGetFieldAccessorTable() {
          return Message.internal_static_com_heji_proto_Packet_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  Packet.class, Builder.class);
        }
  
        // Construct using com.hao.heji.proto.Message.Packet.newBuilder()
        private Builder() {
  
        }
  
        private Builder(
            BuilderParent parent) {
          super(parent);
  
        }
        @Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          id_ = "";
          type_ = 0;
          timestamp_ = 0L;
          senderId_ = "";
          receiverIds_ =
              com.google.protobuf.LazyStringArrayList.emptyList();
          content_ = "";
          return this;
        }
  
        @Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return Message.internal_static_com_heji_proto_Packet_descriptor;
        }
  
        @Override
        public Packet getDefaultInstanceForType() {
          return Packet.getDefaultInstance();
        }
  
        @Override
        public Packet build() {
          Packet result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
        @Override
        public Packet buildPartial() {
          Packet result = new Packet(this);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }
  
        private void buildPartial0(Packet result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.id_ = id_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.type_ = type_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.timestamp_ = timestamp_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.senderId_ = senderId_;
          }
          if (((from_bitField0_ & 0x00000010) != 0)) {
            receiverIds_.makeImmutable();
            result.receiverIds_ = receiverIds_;
          }
          if (((from_bitField0_ & 0x00000020) != 0)) {
            result.content_ = content_;
          }
        }
  
        @Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof Packet) {
            return mergeFrom((Packet)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
        public Builder mergeFrom(Packet other) {
          if (other == Packet.getDefaultInstance()) return this;
          if (!other.getId().isEmpty()) {
            id_ = other.id_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          if (other.type_ != 0) {
            setTypeValue(other.getTypeValue());
          }
          if (other.getTimestamp() != 0L) {
            setTimestamp(other.getTimestamp());
          }
          if (!other.getSenderId().isEmpty()) {
            senderId_ = other.senderId_;
            bitField0_ |= 0x00000008;
            onChanged();
          }
          if (!other.receiverIds_.isEmpty()) {
            if (receiverIds_.isEmpty()) {
              receiverIds_ = other.receiverIds_;
              bitField0_ |= 0x00000010;
            } else {
              ensureReceiverIdsIsMutable();
              receiverIds_.addAll(other.receiverIds_);
            }
            onChanged();
          }
          if (!other.getContent().isEmpty()) {
            content_ = other.content_;
            bitField0_ |= 0x00000020;
            onChanged();
          }
          this.mergeUnknownFields(other.getUnknownFields());
          onChanged();
          return this;
        }
  
        @Override
        public final boolean isInitialized() {
          return true;
        }
  
        @Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  id_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 16: {
                  type_ = input.readEnum();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
                case 24: {
                  timestamp_ = input.readInt64();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
                case 34: {
                  senderId_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
                case 42: {
                  String s = input.readStringRequireUtf8();
                  ensureReceiverIdsIsMutable();
                  receiverIds_.add(s);
                  break;
                } // case 42
                case 50: {
                  content_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 50
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;
  
        private Object id_ = "";
        /**
         * <code>string id = 1;</code>
         * @return The id.
         */
        public String getId() {
          Object ref = id_;
          if (!(ref instanceof String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            id_ = s;
            return s;
          } else {
            return (String) ref;
          }
        }
        /**
         * <code>string id = 1;</code>
         * @return The bytes for id.
         */
        public com.google.protobuf.ByteString
            getIdBytes() {
          Object ref = id_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (String) ref);
            id_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>string id = 1;</code>
         * @param value The id to set.
         * @return This builder for chaining.
         */
        public Builder setId(
            String value) {
          if (value == null) { throw new NullPointerException(); }
          id_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * <code>string id = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearId() {
          id_ = getDefaultInstance().getId();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         * <code>string id = 1;</code>
         * @param value The bytes for id to set.
         * @return This builder for chaining.
         */
        public Builder setIdBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          checkByteStringIsUtf8(value);
          id_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
  
        private int type_ = 0;
        /**
         * <code>.com.heji.proto.Type type = 2;</code>
         * @return The enum numeric value on the wire for type.
         */
        @Override public int getTypeValue() {
          return type_;
        }
        /**
         * <code>.com.heji.proto.Type type = 2;</code>
         * @param value The enum numeric value on the wire for type to set.
         * @return This builder for chaining.
         */
        public Builder setTypeValue(int value) {
          type_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * <code>.com.heji.proto.Type type = 2;</code>
         * @return The type.
         */
        @Override
        public Type getType() {
          Type result = Type.forNumber(type_);
          return result == null ? Type.UNRECOGNIZED : result;
        }
        /**
         * <code>.com.heji.proto.Type type = 2;</code>
         * @param value The type to set.
         * @return This builder for chaining.
         */
        public Builder setType(Type value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000002;
          type_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * <code>.com.heji.proto.Type type = 2;</code>
         * @return This builder for chaining.
         */
        public Builder clearType() {
          bitField0_ = (bitField0_ & ~0x00000002);
          type_ = 0;
          onChanged();
          return this;
        }
  
        private long timestamp_ ;
        /**
         * <code>int64 timestamp = 3;</code>
         * @return The timestamp.
         */
        @Override
        public long getTimestamp() {
          return timestamp_;
        }
        /**
         * <code>int64 timestamp = 3;</code>
         * @param value The timestamp to set.
         * @return This builder for chaining.
         */
        public Builder setTimestamp(long value) {
  
          timestamp_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * <code>int64 timestamp = 3;</code>
         * @return This builder for chaining.
         */
        public Builder clearTimestamp() {
          bitField0_ = (bitField0_ & ~0x00000004);
          timestamp_ = 0L;
          onChanged();
          return this;
        }
  
        private Object senderId_ = "";
        /**
         * <code>string sender_id = 4;</code>
         * @return The senderId.
         */
        public String getSenderId() {
          Object ref = senderId_;
          if (!(ref instanceof String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            senderId_ = s;
            return s;
          } else {
            return (String) ref;
          }
        }
        /**
         * <code>string sender_id = 4;</code>
         * @return The bytes for senderId.
         */
        public com.google.protobuf.ByteString
            getSenderIdBytes() {
          Object ref = senderId_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (String) ref);
            senderId_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>string sender_id = 4;</code>
         * @param value The senderId to set.
         * @return This builder for chaining.
         */
        public Builder setSenderId(
            String value) {
          if (value == null) { throw new NullPointerException(); }
          senderId_ = value;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * <code>string sender_id = 4;</code>
         * @return This builder for chaining.
         */
        public Builder clearSenderId() {
          senderId_ = getDefaultInstance().getSenderId();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
          return this;
        }
        /**
         * <code>string sender_id = 4;</code>
         * @param value The bytes for senderId to set.
         * @return This builder for chaining.
         */
        public Builder setSenderIdBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          checkByteStringIsUtf8(value);
          senderId_ = value;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
  
        private com.google.protobuf.LazyStringArrayList receiverIds_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        private void ensureReceiverIdsIsMutable() {
          if (!receiverIds_.isModifiable()) {
            receiverIds_ = new com.google.protobuf.LazyStringArrayList(receiverIds_);
          }
          bitField0_ |= 0x00000010;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @return A list containing the receiverIds.
         */
        public com.google.protobuf.ProtocolStringList
            getReceiverIdsList() {
          receiverIds_.makeImmutable();
          return receiverIds_;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @return The count of receiverIds.
         */
        public int getReceiverIdsCount() {
          return receiverIds_.size();
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param index The index of the element to return.
         * @return The receiverIds at the given index.
         */
        public String getReceiverIds(int index) {
          return receiverIds_.get(index);
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param index The index of the value to return.
         * @return The bytes of the receiverIds at the given index.
         */
        public com.google.protobuf.ByteString
            getReceiverIdsBytes(int index) {
          return receiverIds_.getByteString(index);
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param index The index to set the value at.
         * @param value The receiverIds to set.
         * @return This builder for chaining.
         */
        public Builder setReceiverIds(
            int index, String value) {
          if (value == null) { throw new NullPointerException(); }
          ensureReceiverIdsIsMutable();
          receiverIds_.set(index, value);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param value The receiverIds to add.
         * @return This builder for chaining.
         */
        public Builder addReceiverIds(
            String value) {
          if (value == null) { throw new NullPointerException(); }
          ensureReceiverIdsIsMutable();
          receiverIds_.add(value);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param values The receiverIds to add.
         * @return This builder for chaining.
         */
        public Builder addAllReceiverIds(
            Iterable<String> values) {
          ensureReceiverIdsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, receiverIds_);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @return This builder for chaining.
         */
        public Builder clearReceiverIds() {
          receiverIds_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);;
          onChanged();
          return this;
        }
        /**
         * <code>repeated string receiver_ids = 5;</code>
         * @param value The bytes of the receiverIds to add.
         * @return This builder for chaining.
         */
        public Builder addReceiverIdsBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          checkByteStringIsUtf8(value);
          ensureReceiverIdsIsMutable();
          receiverIds_.add(value);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
  
        private Object content_ = "";
        /**
         * <code>string content = 6;</code>
         * @return The content.
         */
        public String getContent() {
          Object ref = content_;
          if (!(ref instanceof String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            content_ = s;
            return s;
          } else {
            return (String) ref;
          }
        }
        /**
         * <code>string content = 6;</code>
         * @return The bytes for content.
         */
        public com.google.protobuf.ByteString
            getContentBytes() {
          Object ref = content_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (String) ref);
            content_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>string content = 6;</code>
         * @param value The content to set.
         * @return This builder for chaining.
         */
        public Builder setContent(
            String value) {
          if (value == null) { throw new NullPointerException(); }
          content_ = value;
          bitField0_ |= 0x00000020;
          onChanged();
          return this;
        }
        /**
         * <code>string content = 6;</code>
         * @return This builder for chaining.
         */
        public Builder clearContent() {
          content_ = getDefaultInstance().getContent();
          bitField0_ = (bitField0_ & ~0x00000020);
          onChanged();
          return this;
        }
        /**
         * <code>string content = 6;</code>
         * @param value The bytes for content to set.
         * @return This builder for chaining.
         */
        public Builder setContentBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          checkByteStringIsUtf8(value);
          content_ = value;
          bitField0_ |= 0x00000020;
          onChanged();
          return this;
        }
        @Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFields(unknownFields);
        }
  
        @Override
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }
  
  
        // @@protoc_insertion_point(builder_scope:com.heji.proto.Packet)
      }
  
      // @@protoc_insertion_point(class_scope:com.heji.proto.Packet)
      private static final Packet DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new Packet();
      }
  
      public static Packet getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }
  
      private static final com.google.protobuf.Parser<Packet>
          PARSER = new com.google.protobuf.AbstractParser<Packet>() {
        @Override
        public Packet parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };
  
      public static com.google.protobuf.Parser<Packet> parser() {
        return PARSER;
      }
  
      @Override
      public com.google.protobuf.Parser<Packet> getParserForType() {
        return PARSER;
      }
  
      @Override
      public Packet getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }
  
    }
  
    private static final com.google.protobuf.Descriptors.Descriptor
      internal_static_com_heji_proto_Packet_descriptor;
    private static final 
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internal_static_com_heji_proto_Packet_fieldAccessorTable;
  
    public static com.google.protobuf.Descriptors.FileDescriptor
        getDescriptor() {
      return descriptor;
    }
    private static  com.google.protobuf.Descriptors.FileDescriptor
        descriptor;
    static {
      String[] descriptorData = {
        "\n\rmessage.proto\022\016com.heji.proto\"\205\001\n\006Pack" +
        "et\022\n\n\002id\030\001 \001(\t\022\"\n\004type\030\002 \001(\0162\024.com.heji." +
        "proto.Type\022\021\n\ttimestamp\030\003 \001(\003\022\021\n\tsender_" +
        "id\030\004 \001(\t\022\024\n\014receiver_ids\030\005 \003(\t\022\017\n\007conten" +
        "t\030\006 \001(\t*\342\002\n\004Type\022\014\n\010ADD_BILL\020\000\022\020\n\014ADD_BI" +
        "LL_ACK\020\001\022\017\n\013DELETE_BILL\020\002\022\023\n\017DELETE_BILL" +
        "_ACK\020\003\022\017\n\013UPDATE_BILL\020\004\022\023\n\017UPDATE_BILL_A" +
        "CK\020\005\022\014\n\010ADD_BOOK\020\006\022\020\n\014ADD_BOOK_ACK\020\007\022\017\n\013" +
        "DELETE_BOOK\020\010\022\023\n\017DELETE_BOOK_ACK\020\t\022\017\n\013UP" +
        "DATE_BOOK\020\n\022\023\n\017UPDATE_BOOK_ACK\020\013\022\020\n\014ADD_" +
        "CATEGORY\020\014\022\024\n\020ADD_CATEGORY_ACK\020\r\022\023\n\017DELE" +
        "TE_GATEGORY\020\016\022\027\n\023DELETE_GATEGORY_ACK\020\017\022\023" +
        "\n\017UPDATE_GATEGORY\020\020\022\027\n\023UPDATE_GATEGORY_A" +
        "CK\020\021B\036\n\022com.hao.heji.protoZ\010../wsmsgb\006pr" +
        "oto3"
      };
      descriptor = com.google.protobuf.Descriptors.FileDescriptor
        .internalBuildGeneratedFileFrom(descriptorData,
          new com.google.protobuf.Descriptors.FileDescriptor[] {
          });
      internal_static_com_heji_proto_Packet_descriptor =
        getDescriptor().getMessageTypes().get(0);
      internal_static_com_heji_proto_Packet_fieldAccessorTable = new
        com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
          internal_static_com_heji_proto_Packet_descriptor,
          new String[] { "Id", "Type", "Timestamp", "SenderId", "ReceiverIds", "Content", });
    }
  
    // @@protoc_insertion_point(outer_class_scope)
  }
  