// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: his_encrypt_ppg_data.proto
package com.fs.watch.protobuf;
public final class HisEncryptPpgData {
  private HisEncryptPpgData() {}
  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 HisPPGEncryptOrBuilder extends
      // @@protoc_insertion_point(interface_extends:HisPPGEncrypt)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     * @return Whether the ppgencrypt field is set.
     */
    boolean hasPpgencrypt();
    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     * @return The ppgencrypt.
     */
    HisPpgData.HisDataPPG getPpgencrypt();
    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     */
    HisPpgData.HisDataPPGOrBuilder getPpgencryptOrBuilder();

    /**
     * <pre>
     *random number
     * </pre>
     *
     * <code>required bytes Random = 2;</code>
     * @return Whether the random field is set.
     */
    boolean hasRandom();
    /**
     * <pre>
     *random number
     * </pre>
     *
     * <code>required bytes Random = 2;</code>
     * @return The random.
     */
    com.google.protobuf.ByteString getRandom();

    /**
     * <code>required bytes BleMac = 3;</code>
     * @return Whether the bleMac field is set.
     */
    boolean hasBleMac();
    /**
     * <code>required bytes BleMac = 3;</code>
     * @return The bleMac.
     */
    com.google.protobuf.ByteString getBleMac();
  }
  /**
   * Protobuf type {@code HisPPGEncrypt}
   */
  public  static final class HisPPGEncrypt extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisPPGEncrypt)
      HisPPGEncryptOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisPPGEncrypt.newBuilder() to construct.
    private HisPPGEncrypt(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisPPGEncrypt() {
      random_ = com.google.protobuf.ByteString.EMPTY;
      bleMac_ = com.google.protobuf.ByteString.EMPTY;
    }

    @Override
    @SuppressWarnings({"unused"})
    protected Object newInstance(
        UnusedPrivateParameter unused) {
      return new HisPPGEncrypt();
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisPPGEncrypt(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      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;
            case 10: {
              HisPpgData.HisDataPPG.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = ppgencrypt_.toBuilder();
              }
              ppgencrypt_ = input.readMessage(HisPpgData.HisDataPPG.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(ppgencrypt_);
                ppgencrypt_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              random_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              bleMac_ = input.readBytes();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return HisEncryptPpgData.internal_static_HisPPGEncrypt_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisEncryptPpgData.internal_static_HisPPGEncrypt_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisPPGEncrypt.class, Builder.class);
    }

    private int bitField0_;
    public static final int PPGENCRYPT_FIELD_NUMBER = 1;
    private HisPpgData.HisDataPPG ppgencrypt_;
    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     * @return Whether the ppgencrypt field is set.
     */
    public boolean hasPpgencrypt() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     * @return The ppgencrypt.
     */
    public HisPpgData.HisDataPPG getPpgencrypt() {
      return ppgencrypt_ == null ? HisPpgData.HisDataPPG.getDefaultInstance() : ppgencrypt_;
    }
    /**
     * <code>required .HisDataPPG ppgencrypt = 1;</code>
     */
    public HisPpgData.HisDataPPGOrBuilder getPpgencryptOrBuilder() {
      return ppgencrypt_ == null ? HisPpgData.HisDataPPG.getDefaultInstance() : ppgencrypt_;
    }

    public static final int RANDOM_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString random_;
    /**
     * <pre>
     *random number
     * </pre>
     *
     * <code>required bytes Random = 2;</code>
     * @return Whether the random field is set.
     */
    public boolean hasRandom() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     *random number
     * </pre>
     *
     * <code>required bytes Random = 2;</code>
     * @return The random.
     */
    public com.google.protobuf.ByteString getRandom() {
      return random_;
    }

    public static final int BLEMAC_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString bleMac_;
    /**
     * <code>required bytes BleMac = 3;</code>
     * @return Whether the bleMac field is set.
     */
    public boolean hasBleMac() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>required bytes BleMac = 3;</code>
     * @return The bleMac.
     */
    public com.google.protobuf.ByteString getBleMac() {
      return bleMac_;
    }

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

      if (!hasPpgencrypt()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRandom()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBleMac()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getPpgencrypt().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getPpgencrypt());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeBytes(2, random_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeBytes(3, bleMac_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPpgencrypt());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, random_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, bleMac_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof HisPPGEncrypt)) {
        return super.equals(obj);
      }
      HisPPGEncrypt other = (HisPPGEncrypt) obj;

      if (hasPpgencrypt() != other.hasPpgencrypt()) return false;
      if (hasPpgencrypt()) {
        if (!getPpgencrypt()
            .equals(other.getPpgencrypt())) return false;
      }
      if (hasRandom() != other.hasRandom()) return false;
      if (hasRandom()) {
        if (!getRandom()
            .equals(other.getRandom())) return false;
      }
      if (hasBleMac() != other.hasBleMac()) return false;
      if (hasBleMac()) {
        if (!getBleMac()
            .equals(other.getBleMac())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasPpgencrypt()) {
        hash = (37 * hash) + PPGENCRYPT_FIELD_NUMBER;
        hash = (53 * hash) + getPpgencrypt().hashCode();
      }
      if (hasRandom()) {
        hash = (37 * hash) + RANDOM_FIELD_NUMBER;
        hash = (53 * hash) + getRandom().hashCode();
      }
      if (hasBleMac()) {
        hash = (37 * hash) + BLEMAC_FIELD_NUMBER;
        hash = (53 * hash) + getBleMac().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisEncryptPpgData.internal_static_HisPPGEncrypt_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisPPGEncrypt.class, Builder.class);
      }

      // Construct using HisEncryptPpgData.HisPPGEncrypt.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPpgencryptFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (ppgencryptBuilder_ == null) {
          ppgencrypt_ = null;
        } else {
          ppgencryptBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        random_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        bleMac_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return HisEncryptPpgData.internal_static_HisPPGEncrypt_descriptor;
      }

      @Override
      public HisPPGEncrypt getDefaultInstanceForType() {
        return HisPPGEncrypt.getDefaultInstance();
      }

      @Override
      public HisPPGEncrypt build() {
        HisPPGEncrypt result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public HisPPGEncrypt buildPartial() {
        HisPPGEncrypt result = new HisPPGEncrypt(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (ppgencryptBuilder_ == null) {
            result.ppgencrypt_ = ppgencrypt_;
          } else {
            result.ppgencrypt_ = ppgencryptBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.random_ = random_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.bleMac_ = bleMac_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(HisPPGEncrypt other) {
        if (other == HisPPGEncrypt.getDefaultInstance()) return this;
        if (other.hasPpgencrypt()) {
          mergePpgencrypt(other.getPpgencrypt());
        }
        if (other.hasRandom()) {
          setRandom(other.getRandom());
        }
        if (other.hasBleMac()) {
          setBleMac(other.getBleMac());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasPpgencrypt()) {
          return false;
        }
        if (!hasRandom()) {
          return false;
        }
        if (!hasBleMac()) {
          return false;
        }
        if (!getPpgencrypt().isInitialized()) {
          return false;
        }
        return true;
      }

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

      private HisPpgData.HisDataPPG ppgencrypt_;
      private com.google.protobuf.SingleFieldBuilderV3<
          HisPpgData.HisDataPPG, HisPpgData.HisDataPPG.Builder, HisPpgData.HisDataPPGOrBuilder> ppgencryptBuilder_;
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       * @return Whether the ppgencrypt field is set.
       */
      public boolean hasPpgencrypt() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       * @return The ppgencrypt.
       */
      public HisPpgData.HisDataPPG getPpgencrypt() {
        if (ppgencryptBuilder_ == null) {
          return ppgencrypt_ == null ? HisPpgData.HisDataPPG.getDefaultInstance() : ppgencrypt_;
        } else {
          return ppgencryptBuilder_.getMessage();
        }
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public Builder setPpgencrypt(HisPpgData.HisDataPPG value) {
        if (ppgencryptBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ppgencrypt_ = value;
          onChanged();
        } else {
          ppgencryptBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public Builder setPpgencrypt(
          HisPpgData.HisDataPPG.Builder builderForValue) {
        if (ppgencryptBuilder_ == null) {
          ppgencrypt_ = builderForValue.build();
          onChanged();
        } else {
          ppgencryptBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public Builder mergePpgencrypt(HisPpgData.HisDataPPG value) {
        if (ppgencryptBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              ppgencrypt_ != null &&
              ppgencrypt_ != HisPpgData.HisDataPPG.getDefaultInstance()) {
            ppgencrypt_ =
              HisPpgData.HisDataPPG.newBuilder(ppgencrypt_).mergeFrom(value).buildPartial();
          } else {
            ppgencrypt_ = value;
          }
          onChanged();
        } else {
          ppgencryptBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public Builder clearPpgencrypt() {
        if (ppgencryptBuilder_ == null) {
          ppgencrypt_ = null;
          onChanged();
        } else {
          ppgencryptBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public HisPpgData.HisDataPPG.Builder getPpgencryptBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getPpgencryptFieldBuilder().getBuilder();
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      public HisPpgData.HisDataPPGOrBuilder getPpgencryptOrBuilder() {
        if (ppgencryptBuilder_ != null) {
          return ppgencryptBuilder_.getMessageOrBuilder();
        } else {
          return ppgencrypt_ == null ?
              HisPpgData.HisDataPPG.getDefaultInstance() : ppgencrypt_;
        }
      }
      /**
       * <code>required .HisDataPPG ppgencrypt = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          HisPpgData.HisDataPPG, HisPpgData.HisDataPPG.Builder, HisPpgData.HisDataPPGOrBuilder>
          getPpgencryptFieldBuilder() {
        if (ppgencryptBuilder_ == null) {
          ppgencryptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              HisPpgData.HisDataPPG, HisPpgData.HisDataPPG.Builder, HisPpgData.HisDataPPGOrBuilder>(
                  getPpgencrypt(),
                  getParentForChildren(),
                  isClean());
          ppgencrypt_ = null;
        }
        return ppgencryptBuilder_;
      }

      private com.google.protobuf.ByteString random_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <pre>
       *random number
       * </pre>
       *
       * <code>required bytes Random = 2;</code>
       * @return Whether the random field is set.
       */
      public boolean hasRandom() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       *random number
       * </pre>
       *
       * <code>required bytes Random = 2;</code>
       * @return The random.
       */
      public com.google.protobuf.ByteString getRandom() {
        return random_;
      }
      /**
       * <pre>
       *random number
       * </pre>
       *
       * <code>required bytes Random = 2;</code>
       * @param value The random to set.
       * @return This builder for chaining.
       */
      public Builder setRandom(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        random_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *random number
       * </pre>
       *
       * <code>required bytes Random = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearRandom() {
        bitField0_ = (bitField0_ & ~0x00000002);
        random_ = getDefaultInstance().getRandom();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString bleMac_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>required bytes BleMac = 3;</code>
       * @return Whether the bleMac field is set.
       */
      public boolean hasBleMac() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>required bytes BleMac = 3;</code>
       * @return The bleMac.
       */
      public com.google.protobuf.ByteString getBleMac() {
        return bleMac_;
      }
      /**
       * <code>required bytes BleMac = 3;</code>
       * @param value The bleMac to set.
       * @return This builder for chaining.
       */
      public Builder setBleMac(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        bleMac_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes BleMac = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearBleMac() {
        bitField0_ = (bitField0_ & ~0x00000004);
        bleMac_ = getDefaultInstance().getBleMac();
        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:HisPPGEncrypt)
    }

    // @@protoc_insertion_point(class_scope:HisPPGEncrypt)
    private static final HisPPGEncrypt DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new HisPPGEncrypt();
    }

    public static HisPPGEncrypt getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @Override
    public HisPPGEncrypt getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HisDataPPGEncryptOrBuilder extends
      // @@protoc_insertion_point(interface_extends:HisDataPPGEncrypt)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     * @return Whether the hisPpg field is set.
     */
    boolean hasHisPpg();
    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     * @return The hisPpg.
     */
    HisPPGEncrypt getHisPpg();
    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     */
    HisPPGEncryptOrBuilder getHisPpgOrBuilder();

    /**
     * <code>required bytes signature_data = 2;</code>
     * @return Whether the signatureData field is set.
     */
    boolean hasSignatureData();
    /**
     * <code>required bytes signature_data = 2;</code>
     * @return The signatureData.
     */
    com.google.protobuf.ByteString getSignatureData();
  }
  /**
   * Protobuf type {@code HisDataPPGEncrypt}
   */
  public  static final class HisDataPPGEncrypt extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisDataPPGEncrypt)
      HisDataPPGEncryptOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisDataPPGEncrypt.newBuilder() to construct.
    private HisDataPPGEncrypt(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisDataPPGEncrypt() {
      signatureData_ = com.google.protobuf.ByteString.EMPTY;
    }

    @Override
    @SuppressWarnings({"unused"})
    protected Object newInstance(
        UnusedPrivateParameter unused) {
      return new HisDataPPGEncrypt();
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisDataPPGEncrypt(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      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;
            case 10: {
              HisPPGEncrypt.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = hisPpg_.toBuilder();
              }
              hisPpg_ = input.readMessage(HisPPGEncrypt.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(hisPpg_);
                hisPpg_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              signatureData_ = input.readBytes();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return HisEncryptPpgData.internal_static_HisDataPPGEncrypt_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisEncryptPpgData.internal_static_HisDataPPGEncrypt_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisDataPPGEncrypt.class, Builder.class);
    }

    private int bitField0_;
    public static final int HIS_PPG_FIELD_NUMBER = 1;
    private HisPPGEncrypt hisPpg_;
    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     * @return Whether the hisPpg field is set.
     */
    public boolean hasHisPpg() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     * @return The hisPpg.
     */
    public HisPPGEncrypt getHisPpg() {
      return hisPpg_ == null ? HisPPGEncrypt.getDefaultInstance() : hisPpg_;
    }
    /**
     * <code>required .HisPPGEncrypt his_ppg = 1;</code>
     */
    public HisPPGEncryptOrBuilder getHisPpgOrBuilder() {
      return hisPpg_ == null ? HisPPGEncrypt.getDefaultInstance() : hisPpg_;
    }

    public static final int SIGNATURE_DATA_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString signatureData_;
    /**
     * <code>required bytes signature_data = 2;</code>
     * @return Whether the signatureData field is set.
     */
    public boolean hasSignatureData() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required bytes signature_data = 2;</code>
     * @return The signatureData.
     */
    public com.google.protobuf.ByteString getSignatureData() {
      return signatureData_;
    }

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

      if (!hasHisPpg()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSignatureData()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getHisPpg().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getHisPpg());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeBytes(2, signatureData_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getHisPpg());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, signatureData_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof HisDataPPGEncrypt)) {
        return super.equals(obj);
      }
      HisDataPPGEncrypt other = (HisDataPPGEncrypt) obj;

      if (hasHisPpg() != other.hasHisPpg()) return false;
      if (hasHisPpg()) {
        if (!getHisPpg()
            .equals(other.getHisPpg())) return false;
      }
      if (hasSignatureData() != other.hasSignatureData()) return false;
      if (hasSignatureData()) {
        if (!getSignatureData()
            .equals(other.getSignatureData())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasHisPpg()) {
        hash = (37 * hash) + HIS_PPG_FIELD_NUMBER;
        hash = (53 * hash) + getHisPpg().hashCode();
      }
      if (hasSignatureData()) {
        hash = (37 * hash) + SIGNATURE_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getSignatureData().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisEncryptPpgData.internal_static_HisDataPPGEncrypt_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisDataPPGEncrypt.class, Builder.class);
      }

      // Construct using HisEncryptPpgData.HisDataPPGEncrypt.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getHisPpgFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (hisPpgBuilder_ == null) {
          hisPpg_ = null;
        } else {
          hisPpgBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        signatureData_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return HisEncryptPpgData.internal_static_HisDataPPGEncrypt_descriptor;
      }

      @Override
      public HisDataPPGEncrypt getDefaultInstanceForType() {
        return HisDataPPGEncrypt.getDefaultInstance();
      }

      @Override
      public HisDataPPGEncrypt build() {
        HisDataPPGEncrypt result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public HisDataPPGEncrypt buildPartial() {
        HisDataPPGEncrypt result = new HisDataPPGEncrypt(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (hisPpgBuilder_ == null) {
            result.hisPpg_ = hisPpg_;
          } else {
            result.hisPpg_ = hisPpgBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.signatureData_ = signatureData_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(HisDataPPGEncrypt other) {
        if (other == HisDataPPGEncrypt.getDefaultInstance()) return this;
        if (other.hasHisPpg()) {
          mergeHisPpg(other.getHisPpg());
        }
        if (other.hasSignatureData()) {
          setSignatureData(other.getSignatureData());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasHisPpg()) {
          return false;
        }
        if (!hasSignatureData()) {
          return false;
        }
        if (!getHisPpg().isInitialized()) {
          return false;
        }
        return true;
      }

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

      private HisPPGEncrypt hisPpg_;
      private com.google.protobuf.SingleFieldBuilderV3<
          HisPPGEncrypt, HisPPGEncrypt.Builder, HisPPGEncryptOrBuilder> hisPpgBuilder_;
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       * @return Whether the hisPpg field is set.
       */
      public boolean hasHisPpg() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       * @return The hisPpg.
       */
      public HisPPGEncrypt getHisPpg() {
        if (hisPpgBuilder_ == null) {
          return hisPpg_ == null ? HisPPGEncrypt.getDefaultInstance() : hisPpg_;
        } else {
          return hisPpgBuilder_.getMessage();
        }
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public Builder setHisPpg(HisPPGEncrypt value) {
        if (hisPpgBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          hisPpg_ = value;
          onChanged();
        } else {
          hisPpgBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public Builder setHisPpg(
          HisPPGEncrypt.Builder builderForValue) {
        if (hisPpgBuilder_ == null) {
          hisPpg_ = builderForValue.build();
          onChanged();
        } else {
          hisPpgBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public Builder mergeHisPpg(HisPPGEncrypt value) {
        if (hisPpgBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              hisPpg_ != null &&
              hisPpg_ != HisPPGEncrypt.getDefaultInstance()) {
            hisPpg_ =
              HisPPGEncrypt.newBuilder(hisPpg_).mergeFrom(value).buildPartial();
          } else {
            hisPpg_ = value;
          }
          onChanged();
        } else {
          hisPpgBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public Builder clearHisPpg() {
        if (hisPpgBuilder_ == null) {
          hisPpg_ = null;
          onChanged();
        } else {
          hisPpgBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public HisPPGEncrypt.Builder getHisPpgBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getHisPpgFieldBuilder().getBuilder();
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      public HisPPGEncryptOrBuilder getHisPpgOrBuilder() {
        if (hisPpgBuilder_ != null) {
          return hisPpgBuilder_.getMessageOrBuilder();
        } else {
          return hisPpg_ == null ?
              HisPPGEncrypt.getDefaultInstance() : hisPpg_;
        }
      }
      /**
       * <code>required .HisPPGEncrypt his_ppg = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          HisPPGEncrypt, HisPPGEncrypt.Builder, HisPPGEncryptOrBuilder>
          getHisPpgFieldBuilder() {
        if (hisPpgBuilder_ == null) {
          hisPpgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              HisPPGEncrypt, HisPPGEncrypt.Builder, HisPPGEncryptOrBuilder>(
                  getHisPpg(),
                  getParentForChildren(),
                  isClean());
          hisPpg_ = null;
        }
        return hisPpgBuilder_;
      }

      private com.google.protobuf.ByteString signatureData_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>required bytes signature_data = 2;</code>
       * @return Whether the signatureData field is set.
       */
      public boolean hasSignatureData() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required bytes signature_data = 2;</code>
       * @return The signatureData.
       */
      public com.google.protobuf.ByteString getSignatureData() {
        return signatureData_;
      }
      /**
       * <code>required bytes signature_data = 2;</code>
       * @param value The signatureData to set.
       * @return This builder for chaining.
       */
      public Builder setSignatureData(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        signatureData_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes signature_data = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearSignatureData() {
        bitField0_ = (bitField0_ & ~0x00000002);
        signatureData_ = getDefaultInstance().getSignatureData();
        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:HisDataPPGEncrypt)
    }

    // @@protoc_insertion_point(class_scope:HisDataPPGEncrypt)
    private static final HisDataPPGEncrypt DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new HisDataPPGEncrypt();
    }

    public static HisDataPPGEncrypt getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @Override
    public HisDataPPGEncrypt getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisPPGEncrypt_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisPPGEncrypt_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisDataPPGEncrypt_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisDataPPGEncrypt_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\032his_encrypt_ppg_data.proto\032\023realtime_d" +
      "ata.proto\032\022his_ppg_data.proto\"P\n\rHisPPGE" +
      "ncrypt\022\037\n\nppgencrypt\030\001 \002(\0132\013.HisDataPPG\022" +
      "\016\n\006Random\030\002 \002(\014\022\016\n\006BleMac\030\003 \002(\014\"L\n\021HisDa" +
      "taPPGEncrypt\022\037\n\007his_ppg\030\001 \002(\0132\016.HisPPGEn" +
      "crypt\022\026\n\016signature_data\030\002 \002(\014B\tZ\007./iwown"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          RealtimeData.getDescriptor(),
          HisPpgData.getDescriptor(),
        });
    internal_static_HisPPGEncrypt_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_HisPPGEncrypt_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisPPGEncrypt_descriptor,
        new String[] { "Ppgencrypt", "Random", "BleMac", });
    internal_static_HisDataPPGEncrypt_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_HisDataPPGEncrypt_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisDataPPGEncrypt_descriptor,
        new String[] { "HisPpg", "SignatureData", });
    RealtimeData.getDescriptor();
    HisPpgData.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
