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

    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     * @return Whether the ecgencrypt field is set.
     */
    boolean hasEcgencrypt();
    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     * @return The ecgencrypt.
     */
    HisEcgData.HisDataECG getEcgencrypt();
    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     */
    HisEcgData.HisDataECGOrBuilder getEcgencryptOrBuilder();

    /**
     * <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 HisECGEncrypt}
   */
  public  static final class HisECGEncrypt extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisECGEncrypt)
      HisECGEncryptOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisECGEncrypt.newBuilder() to construct.
    private HisECGEncrypt(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisECGEncrypt() {
      random_ = com.google.protobuf.ByteString.EMPTY;
      bleMac_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisECGEncrypt(
        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: {
              HisEcgData.HisDataECG.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = ecgencrypt_.toBuilder();
              }
              ecgencrypt_ = input.readMessage(HisEcgData.HisDataECG.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(ecgencrypt_);
                ecgencrypt_ = 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 HisEncryptEcgData.internal_static_HisECGEncrypt_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisEncryptEcgData.internal_static_HisECGEncrypt_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisECGEncrypt.class, Builder.class);
    }

    private int bitField0_;
    public static final int ECGENCRYPT_FIELD_NUMBER = 1;
    private HisEcgData.HisDataECG ecgencrypt_;
    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     * @return Whether the ecgencrypt field is set.
     */
    public boolean hasEcgencrypt() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     * @return The ecgencrypt.
     */
    public HisEcgData.HisDataECG getEcgencrypt() {
      return ecgencrypt_ == null ? HisEcgData.HisDataECG.getDefaultInstance() : ecgencrypt_;
    }
    /**
     * <code>required .HisDataECG ecgencrypt = 1;</code>
     */
    public HisEcgData.HisDataECGOrBuilder getEcgencryptOrBuilder() {
      return ecgencrypt_ == null ? HisEcgData.HisDataECG.getDefaultInstance() : ecgencrypt_;
    }

    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 (!hasEcgencrypt()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRandom()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasBleMac()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getEcgencrypt().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, getEcgencrypt());
      }
      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, getEcgencrypt());
      }
      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 HisECGEncrypt)) {
        return super.equals(obj);
      }
      HisECGEncrypt other = (HisECGEncrypt) obj;

      if (hasEcgencrypt() != other.hasEcgencrypt()) return false;
      if (hasEcgencrypt()) {
        if (!getEcgencrypt()
            .equals(other.getEcgencrypt())) 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 (hasEcgencrypt()) {
        hash = (37 * hash) + ECGENCRYPT_FIELD_NUMBER;
        hash = (53 * hash) + getEcgencrypt().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 HisECGEncrypt parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisECGEncrypt parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisECGEncrypt parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisECGEncrypt parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisECGEncrypt parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisECGEncrypt parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisECGEncrypt parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static HisECGEncrypt 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 HisECGEncrypt parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static HisECGEncrypt 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 HisECGEncrypt parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static HisECGEncrypt 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(HisECGEncrypt 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 HisECGEncrypt}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:HisECGEncrypt)
        HisECGEncryptOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return HisEncryptEcgData.internal_static_HisECGEncrypt_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisEncryptEcgData.internal_static_HisECGEncrypt_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisECGEncrypt.class, Builder.class);
      }

      // Construct using HisEncryptEcgData.HisECGEncrypt.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getEcgencryptFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (ecgencryptBuilder_ == null) {
          ecgencrypt_ = null;
        } else {
          ecgencryptBuilder_.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 HisEncryptEcgData.internal_static_HisECGEncrypt_descriptor;
      }

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

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

      @Override
      public HisECGEncrypt buildPartial() {
        HisECGEncrypt result = new HisECGEncrypt(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (ecgencryptBuilder_ == null) {
            result.ecgencrypt_ = ecgencrypt_;
          } else {
            result.ecgencrypt_ = ecgencryptBuilder_.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 HisECGEncrypt) {
          return mergeFrom((HisECGEncrypt)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(HisECGEncrypt other) {
        if (other == HisECGEncrypt.getDefaultInstance()) return this;
        if (other.hasEcgencrypt()) {
          mergeEcgencrypt(other.getEcgencrypt());
        }
        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 (!hasEcgencrypt()) {
          return false;
        }
        if (!hasRandom()) {
          return false;
        }
        if (!hasBleMac()) {
          return false;
        }
        if (!getEcgencrypt().isInitialized()) {
          return false;
        }
        return true;
      }

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

      private HisEcgData.HisDataECG ecgencrypt_;
      private com.google.protobuf.SingleFieldBuilderV3<
          HisEcgData.HisDataECG, HisEcgData.HisDataECG.Builder, HisEcgData.HisDataECGOrBuilder> ecgencryptBuilder_;
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       * @return Whether the ecgencrypt field is set.
       */
      public boolean hasEcgencrypt() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       * @return The ecgencrypt.
       */
      public HisEcgData.HisDataECG getEcgencrypt() {
        if (ecgencryptBuilder_ == null) {
          return ecgencrypt_ == null ? HisEcgData.HisDataECG.getDefaultInstance() : ecgencrypt_;
        } else {
          return ecgencryptBuilder_.getMessage();
        }
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public Builder setEcgencrypt(HisEcgData.HisDataECG value) {
        if (ecgencryptBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ecgencrypt_ = value;
          onChanged();
        } else {
          ecgencryptBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public Builder setEcgencrypt(
          HisEcgData.HisDataECG.Builder builderForValue) {
        if (ecgencryptBuilder_ == null) {
          ecgencrypt_ = builderForValue.build();
          onChanged();
        } else {
          ecgencryptBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public Builder mergeEcgencrypt(HisEcgData.HisDataECG value) {
        if (ecgencryptBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              ecgencrypt_ != null &&
              ecgencrypt_ != HisEcgData.HisDataECG.getDefaultInstance()) {
            ecgencrypt_ =
              HisEcgData.HisDataECG.newBuilder(ecgencrypt_).mergeFrom(value).buildPartial();
          } else {
            ecgencrypt_ = value;
          }
          onChanged();
        } else {
          ecgencryptBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public Builder clearEcgencrypt() {
        if (ecgencryptBuilder_ == null) {
          ecgencrypt_ = null;
          onChanged();
        } else {
          ecgencryptBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public HisEcgData.HisDataECG.Builder getEcgencryptBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getEcgencryptFieldBuilder().getBuilder();
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      public HisEcgData.HisDataECGOrBuilder getEcgencryptOrBuilder() {
        if (ecgencryptBuilder_ != null) {
          return ecgencryptBuilder_.getMessageOrBuilder();
        } else {
          return ecgencrypt_ == null ?
              HisEcgData.HisDataECG.getDefaultInstance() : ecgencrypt_;
        }
      }
      /**
       * <code>required .HisDataECG ecgencrypt = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          HisEcgData.HisDataECG, HisEcgData.HisDataECG.Builder, HisEcgData.HisDataECGOrBuilder>
          getEcgencryptFieldBuilder() {
        if (ecgencryptBuilder_ == null) {
          ecgencryptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              HisEcgData.HisDataECG, HisEcgData.HisDataECG.Builder, HisEcgData.HisDataECGOrBuilder>(
                  getEcgencrypt(),
                  getParentForChildren(),
                  isClean());
          ecgencrypt_ = null;
        }
        return ecgencryptBuilder_;
      }

      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:HisECGEncrypt)
    }

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

    public static HisECGEncrypt getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     * @return Whether the hisEcg field is set.
     */
    boolean hasHisEcg();
    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     * @return The hisEcg.
     */
    HisECGEncrypt getHisEcg();
    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     */
    HisECGEncryptOrBuilder getHisEcgOrBuilder();

    /**
     * <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 HisDataECGEncrypt}
   */
  public  static final class HisDataECGEncrypt extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisDataECGEncrypt)
      HisDataECGEncryptOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisDataECGEncrypt.newBuilder() to construct.
    private HisDataECGEncrypt(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisDataECGEncrypt() {
      signatureData_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisDataECGEncrypt(
        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: {
              HisECGEncrypt.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = hisEcg_.toBuilder();
              }
              hisEcg_ = input.readMessage(HisECGEncrypt.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(hisEcg_);
                hisEcg_ = 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 HisEncryptEcgData.internal_static_HisDataECGEncrypt_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisEncryptEcgData.internal_static_HisDataECGEncrypt_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisDataECGEncrypt.class, Builder.class);
    }

    private int bitField0_;
    public static final int HIS_ECG_FIELD_NUMBER = 1;
    private HisECGEncrypt hisEcg_;
    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     * @return Whether the hisEcg field is set.
     */
    public boolean hasHisEcg() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     * @return The hisEcg.
     */
    public HisECGEncrypt getHisEcg() {
      return hisEcg_ == null ? HisECGEncrypt.getDefaultInstance() : hisEcg_;
    }
    /**
     * <code>required .HisECGEncrypt his_ecg = 1;</code>
     */
    public HisECGEncryptOrBuilder getHisEcgOrBuilder() {
      return hisEcg_ == null ? HisECGEncrypt.getDefaultInstance() : hisEcg_;
    }

    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 (!hasHisEcg()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSignatureData()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getHisEcg().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, getHisEcg());
      }
      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, getHisEcg());
      }
      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 HisDataECGEncrypt)) {
        return super.equals(obj);
      }
      HisDataECGEncrypt other = (HisDataECGEncrypt) obj;

      if (hasHisEcg() != other.hasHisEcg()) return false;
      if (hasHisEcg()) {
        if (!getHisEcg()
            .equals(other.getHisEcg())) 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 (hasHisEcg()) {
        hash = (37 * hash) + HIS_ECG_FIELD_NUMBER;
        hash = (53 * hash) + getHisEcg().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 HisDataECGEncrypt parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisDataECGEncrypt parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisDataECGEncrypt parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisDataECGEncrypt parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisDataECGEncrypt parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static HisDataECGEncrypt parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static HisDataECGEncrypt parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static HisDataECGEncrypt 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 HisDataECGEncrypt parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static HisDataECGEncrypt 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 HisDataECGEncrypt parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static HisDataECGEncrypt 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(HisDataECGEncrypt 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 HisDataECGEncrypt}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:HisDataECGEncrypt)
        HisDataECGEncryptOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return HisEncryptEcgData.internal_static_HisDataECGEncrypt_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisEncryptEcgData.internal_static_HisDataECGEncrypt_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisDataECGEncrypt.class, Builder.class);
      }

      // Construct using HisEncryptEcgData.HisDataECGEncrypt.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

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

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

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

      @Override
      public HisDataECGEncrypt buildPartial() {
        HisDataECGEncrypt result = new HisDataECGEncrypt(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (hisEcgBuilder_ == null) {
            result.hisEcg_ = hisEcg_;
          } else {
            result.hisEcg_ = hisEcgBuilder_.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 HisDataECGEncrypt) {
          return mergeFrom((HisDataECGEncrypt)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(HisDataECGEncrypt other) {
        if (other == HisDataECGEncrypt.getDefaultInstance()) return this;
        if (other.hasHisEcg()) {
          mergeHisEcg(other.getHisEcg());
        }
        if (other.hasSignatureData()) {
          setSignatureData(other.getSignatureData());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

      private HisECGEncrypt hisEcg_;
      private com.google.protobuf.SingleFieldBuilderV3<
          HisECGEncrypt, HisECGEncrypt.Builder, HisECGEncryptOrBuilder> hisEcgBuilder_;
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       * @return Whether the hisEcg field is set.
       */
      public boolean hasHisEcg() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       * @return The hisEcg.
       */
      public HisECGEncrypt getHisEcg() {
        if (hisEcgBuilder_ == null) {
          return hisEcg_ == null ? HisECGEncrypt.getDefaultInstance() : hisEcg_;
        } else {
          return hisEcgBuilder_.getMessage();
        }
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public Builder setHisEcg(HisECGEncrypt value) {
        if (hisEcgBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          hisEcg_ = value;
          onChanged();
        } else {
          hisEcgBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public Builder setHisEcg(
          HisECGEncrypt.Builder builderForValue) {
        if (hisEcgBuilder_ == null) {
          hisEcg_ = builderForValue.build();
          onChanged();
        } else {
          hisEcgBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public Builder mergeHisEcg(HisECGEncrypt value) {
        if (hisEcgBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              hisEcg_ != null &&
              hisEcg_ != HisECGEncrypt.getDefaultInstance()) {
            hisEcg_ =
              HisECGEncrypt.newBuilder(hisEcg_).mergeFrom(value).buildPartial();
          } else {
            hisEcg_ = value;
          }
          onChanged();
        } else {
          hisEcgBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public Builder clearHisEcg() {
        if (hisEcgBuilder_ == null) {
          hisEcg_ = null;
          onChanged();
        } else {
          hisEcgBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public HisECGEncrypt.Builder getHisEcgBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getHisEcgFieldBuilder().getBuilder();
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      public HisECGEncryptOrBuilder getHisEcgOrBuilder() {
        if (hisEcgBuilder_ != null) {
          return hisEcgBuilder_.getMessageOrBuilder();
        } else {
          return hisEcg_ == null ?
              HisECGEncrypt.getDefaultInstance() : hisEcg_;
        }
      }
      /**
       * <code>required .HisECGEncrypt his_ecg = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          HisECGEncrypt, HisECGEncrypt.Builder, HisECGEncryptOrBuilder>
          getHisEcgFieldBuilder() {
        if (hisEcgBuilder_ == null) {
          hisEcgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              HisECGEncrypt, HisECGEncrypt.Builder, HisECGEncryptOrBuilder>(
                  getHisEcg(),
                  getParentForChildren(),
                  isClean());
          hisEcg_ = null;
        }
        return hisEcgBuilder_;
      }

      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:HisDataECGEncrypt)
    }

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

    public static HisDataECGEncrypt getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisECGEncrypt_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisECGEncrypt_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisDataECGEncrypt_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisDataECGEncrypt_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_ecg_data.proto\032\023realtime_d" +
      "ata.proto\032\022his_ecg_data.proto\"P\n\rHisECGE" +
      "ncrypt\022\037\n\necgencrypt\030\001 \002(\0132\013.HisDataECG\022" +
      "\016\n\006Random\030\002 \002(\014\022\016\n\006BleMac\030\003 \002(\014\"L\n\021HisDa" +
      "taECGEncrypt\022\037\n\007his_ecg\030\001 \002(\0132\016.HisECGEn" +
      "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(),
          HisEcgData.getDescriptor(),
        });
    internal_static_HisECGEncrypt_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_HisECGEncrypt_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisECGEncrypt_descriptor,
        new String[] { "Ecgencrypt", "Random", "BleMac", });
    internal_static_HisDataECGEncrypt_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_HisDataECGEncrypt_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisDataECGEncrypt_descriptor,
        new String[] { "HisEcg", "SignatureData", });
    RealtimeData.getDescriptor();
    HisEcgData.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
