// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: types/block.proto

package proto.types;

public final class block {
  private block() {}
  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 BlockIDOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.BlockID)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 pid = 1;</code>
     */
    int getPid();

    /**
     * <code>int32 bid = 2;</code>
     */
    int getBid();
  }
  /**
   * Protobuf type {@code proto.types.BlockID}
   */
  public  static final class BlockID extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.BlockID)
      BlockIDOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockID.newBuilder() to construct.
    private BlockID(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BlockID() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockID(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.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 8: {

              pid_ = input.readInt32();
              break;
            }
            case 16: {

              bid_ = input.readInt32();
              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 proto.types.block.internal_static_proto_types_BlockID_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.block.internal_static_proto_types_BlockID_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.block.BlockID.class, proto.types.block.BlockID.Builder.class);
    }

    public static final int PID_FIELD_NUMBER = 1;
    private int pid_;
    /**
     * <code>int32 pid = 1;</code>
     */
    public int getPid() {
      return pid_;
    }

    public static final int BID_FIELD_NUMBER = 2;
    private int bid_;
    /**
     * <code>int32 bid = 2;</code>
     */
    public int getBid() {
      return bid_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (pid_ != 0) {
        output.writeInt32(1, pid_);
      }
      if (bid_ != 0) {
        output.writeInt32(2, bid_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (pid_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, pid_);
      }
      if (bid_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, bid_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.types.block.BlockID)) {
        return super.equals(obj);
      }
      proto.types.block.BlockID other = (proto.types.block.BlockID) obj;

      if (getPid()
          != other.getPid()) return false;
      if (getBid()
          != other.getBid()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PID_FIELD_NUMBER;
      hash = (53 * hash) + getPid();
      hash = (37 * hash) + BID_FIELD_NUMBER;
      hash = (53 * hash) + getBid();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.types.block.BlockID parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockID parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockID parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockID parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockID parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockID parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockID parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockID 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 proto.types.block.BlockID parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockID 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 proto.types.block.BlockID parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockID parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(proto.types.block.BlockID prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto.types.BlockID}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:proto.types.BlockID)
        proto.types.block.BlockIDOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.types.block.internal_static_proto_types_BlockID_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.block.internal_static_proto_types_BlockID_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.block.BlockID.class, proto.types.block.BlockID.Builder.class);
      }

      // Construct using proto.types.block.BlockID.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        pid_ = 0;

        bid_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.block.internal_static_proto_types_BlockID_descriptor;
      }

      @java.lang.Override
      public proto.types.block.BlockID getDefaultInstanceForType() {
        return proto.types.block.BlockID.getDefaultInstance();
      }

      @java.lang.Override
      public proto.types.block.BlockID build() {
        proto.types.block.BlockID result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.types.block.BlockID buildPartial() {
        proto.types.block.BlockID result = new proto.types.block.BlockID(this);
        result.pid_ = pid_;
        result.bid_ = bid_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.block.BlockID other) {
        if (other == proto.types.block.BlockID.getDefaultInstance()) return this;
        if (other.getPid() != 0) {
          setPid(other.getPid());
        }
        if (other.getBid() != 0) {
          setBid(other.getBid());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

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

      private int pid_ ;
      /**
       * <code>int32 pid = 1;</code>
       */
      public int getPid() {
        return pid_;
      }
      /**
       * <code>int32 pid = 1;</code>
       */
      public Builder setPid(int value) {
        
        pid_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 pid = 1;</code>
       */
      public Builder clearPid() {
        
        pid_ = 0;
        onChanged();
        return this;
      }

      private int bid_ ;
      /**
       * <code>int32 bid = 2;</code>
       */
      public int getBid() {
        return bid_;
      }
      /**
       * <code>int32 bid = 2;</code>
       */
      public Builder setBid(int value) {
        
        bid_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 bid = 2;</code>
       */
      public Builder clearBid() {
        
        bid_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:proto.types.BlockID)
    }

    // @@protoc_insertion_point(class_scope:proto.types.BlockID)
    private static final proto.types.block.BlockID DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.block.BlockID();
    }

    public static proto.types.block.BlockID getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public proto.types.block.BlockID getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BlockHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.BlockHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    boolean hasM();
    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    proto.types.meta.Meta getM();
    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    proto.types.meta.MetaOrBuilder getMOrBuilder();

    /**
     * <code>bytes prev = 2;</code>
     */
    com.google.protobuf.ByteString getPrev();

    /**
     * <code>int32 height = 3;</code>
     */
    int getHeight();

    /**
     * <code>bytes transactionHash = 4;</code>
     */
    com.google.protobuf.ByteString getTransactionHash();

    /**
     * <code>string proof = 5;</code>
     */
    java.lang.String getProof();
    /**
     * <code>string proof = 5;</code>
     */
    com.google.protobuf.ByteString
        getProofBytes();

    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    boolean hasBid();
    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    proto.types.block.BlockID getBid();
    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    proto.types.block.BlockIDOrBuilder getBidOrBuilder();

    /**
     * <code>bool empty = 7;</code>
     */
    boolean getEmpty();

    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    boolean hasHst();
    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    proto.types.block.HeaderStatistics getHst();
    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    proto.types.block.HeaderStatisticsOrBuilder getHstOrBuilder();
  }
  /**
   * Protobuf type {@code proto.types.BlockHeader}
   */
  public  static final class BlockHeader extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.BlockHeader)
      BlockHeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockHeader.newBuilder() to construct.
    private BlockHeader(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BlockHeader() {
      prev_ = com.google.protobuf.ByteString.EMPTY;
      transactionHash_ = com.google.protobuf.ByteString.EMPTY;
      proof_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockHeader(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.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: {
              proto.types.meta.Meta.Builder subBuilder = null;
              if (m_ != null) {
                subBuilder = m_.toBuilder();
              }
              m_ = input.readMessage(proto.types.meta.Meta.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(m_);
                m_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {

              prev_ = input.readBytes();
              break;
            }
            case 24: {

              height_ = input.readInt32();
              break;
            }
            case 34: {

              transactionHash_ = input.readBytes();
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              proof_ = s;
              break;
            }
            case 50: {
              proto.types.block.BlockID.Builder subBuilder = null;
              if (bid_ != null) {
                subBuilder = bid_.toBuilder();
              }
              bid_ = input.readMessage(proto.types.block.BlockID.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(bid_);
                bid_ = subBuilder.buildPartial();
              }

              break;
            }
            case 56: {

              empty_ = input.readBool();
              break;
            }
            case 66: {
              proto.types.block.HeaderStatistics.Builder subBuilder = null;
              if (hst_ != null) {
                subBuilder = hst_.toBuilder();
              }
              hst_ = input.readMessage(proto.types.block.HeaderStatistics.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(hst_);
                hst_ = subBuilder.buildPartial();
              }

              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 proto.types.block.internal_static_proto_types_BlockHeader_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.block.internal_static_proto_types_BlockHeader_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.block.BlockHeader.class, proto.types.block.BlockHeader.Builder.class);
    }

    public static final int M_FIELD_NUMBER = 1;
    private proto.types.meta.Meta m_;
    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    public boolean hasM() {
      return m_ != null;
    }
    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    public proto.types.meta.Meta getM() {
      return m_ == null ? proto.types.meta.Meta.getDefaultInstance() : m_;
    }
    /**
     * <code>.proto.types.Meta m = 1;</code>
     */
    public proto.types.meta.MetaOrBuilder getMOrBuilder() {
      return getM();
    }

    public static final int PREV_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString prev_;
    /**
     * <code>bytes prev = 2;</code>
     */
    public com.google.protobuf.ByteString getPrev() {
      return prev_;
    }

    public static final int HEIGHT_FIELD_NUMBER = 3;
    private int height_;
    /**
     * <code>int32 height = 3;</code>
     */
    public int getHeight() {
      return height_;
    }

    public static final int TRANSACTIONHASH_FIELD_NUMBER = 4;
    private com.google.protobuf.ByteString transactionHash_;
    /**
     * <code>bytes transactionHash = 4;</code>
     */
    public com.google.protobuf.ByteString getTransactionHash() {
      return transactionHash_;
    }

    public static final int PROOF_FIELD_NUMBER = 5;
    private volatile java.lang.Object proof_;
    /**
     * <code>string proof = 5;</code>
     */
    public java.lang.String getProof() {
      java.lang.Object ref = proof_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        proof_ = s;
        return s;
      }
    }
    /**
     * <code>string proof = 5;</code>
     */
    public com.google.protobuf.ByteString
        getProofBytes() {
      java.lang.Object ref = proof_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        proof_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int BID_FIELD_NUMBER = 6;
    private proto.types.block.BlockID bid_;
    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    public boolean hasBid() {
      return bid_ != null;
    }
    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    public proto.types.block.BlockID getBid() {
      return bid_ == null ? proto.types.block.BlockID.getDefaultInstance() : bid_;
    }
    /**
     * <code>.proto.types.BlockID bid = 6;</code>
     */
    public proto.types.block.BlockIDOrBuilder getBidOrBuilder() {
      return getBid();
    }

    public static final int EMPTY_FIELD_NUMBER = 7;
    private boolean empty_;
    /**
     * <code>bool empty = 7;</code>
     */
    public boolean getEmpty() {
      return empty_;
    }

    public static final int HST_FIELD_NUMBER = 8;
    private proto.types.block.HeaderStatistics hst_;
    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    public boolean hasHst() {
      return hst_ != null;
    }
    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    public proto.types.block.HeaderStatistics getHst() {
      return hst_ == null ? proto.types.block.HeaderStatistics.getDefaultInstance() : hst_;
    }
    /**
     * <code>.proto.types.HeaderStatistics hst = 8;</code>
     */
    public proto.types.block.HeaderStatisticsOrBuilder getHstOrBuilder() {
      return getHst();
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (m_ != null) {
        output.writeMessage(1, getM());
      }
      if (!prev_.isEmpty()) {
        output.writeBytes(2, prev_);
      }
      if (height_ != 0) {
        output.writeInt32(3, height_);
      }
      if (!transactionHash_.isEmpty()) {
        output.writeBytes(4, transactionHash_);
      }
      if (!getProofBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, proof_);
      }
      if (bid_ != null) {
        output.writeMessage(6, getBid());
      }
      if (empty_ != false) {
        output.writeBool(7, empty_);
      }
      if (hst_ != null) {
        output.writeMessage(8, getHst());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (m_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getM());
      }
      if (!prev_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, prev_);
      }
      if (height_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, height_);
      }
      if (!transactionHash_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, transactionHash_);
      }
      if (!getProofBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, proof_);
      }
      if (bid_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, getBid());
      }
      if (empty_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, empty_);
      }
      if (hst_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, getHst());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.types.block.BlockHeader)) {
        return super.equals(obj);
      }
      proto.types.block.BlockHeader other = (proto.types.block.BlockHeader) obj;

      if (hasM() != other.hasM()) return false;
      if (hasM()) {
        if (!getM()
            .equals(other.getM())) return false;
      }
      if (!getPrev()
          .equals(other.getPrev())) return false;
      if (getHeight()
          != other.getHeight()) return false;
      if (!getTransactionHash()
          .equals(other.getTransactionHash())) return false;
      if (!getProof()
          .equals(other.getProof())) return false;
      if (hasBid() != other.hasBid()) return false;
      if (hasBid()) {
        if (!getBid()
            .equals(other.getBid())) return false;
      }
      if (getEmpty()
          != other.getEmpty()) return false;
      if (hasHst() != other.hasHst()) return false;
      if (hasHst()) {
        if (!getHst()
            .equals(other.getHst())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasM()) {
        hash = (37 * hash) + M_FIELD_NUMBER;
        hash = (53 * hash) + getM().hashCode();
      }
      hash = (37 * hash) + PREV_FIELD_NUMBER;
      hash = (53 * hash) + getPrev().hashCode();
      hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
      hash = (53 * hash) + getHeight();
      hash = (37 * hash) + TRANSACTIONHASH_FIELD_NUMBER;
      hash = (53 * hash) + getTransactionHash().hashCode();
      hash = (37 * hash) + PROOF_FIELD_NUMBER;
      hash = (53 * hash) + getProof().hashCode();
      if (hasBid()) {
        hash = (37 * hash) + BID_FIELD_NUMBER;
        hash = (53 * hash) + getBid().hashCode();
      }
      hash = (37 * hash) + EMPTY_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getEmpty());
      if (hasHst()) {
        hash = (37 * hash) + HST_FIELD_NUMBER;
        hash = (53 * hash) + getHst().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.types.block.BlockHeader parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockHeader parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockHeader parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockHeader parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockHeader parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockHeader parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockHeader parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockHeader 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 proto.types.block.BlockHeader parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockHeader 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 proto.types.block.BlockHeader parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockHeader parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(proto.types.block.BlockHeader prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto.types.BlockHeader}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:proto.types.BlockHeader)
        proto.types.block.BlockHeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.types.block.internal_static_proto_types_BlockHeader_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.block.internal_static_proto_types_BlockHeader_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.block.BlockHeader.class, proto.types.block.BlockHeader.Builder.class);
      }

      // Construct using proto.types.block.BlockHeader.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (mBuilder_ == null) {
          m_ = null;
        } else {
          m_ = null;
          mBuilder_ = null;
        }
        prev_ = com.google.protobuf.ByteString.EMPTY;

        height_ = 0;

        transactionHash_ = com.google.protobuf.ByteString.EMPTY;

        proof_ = "";

        if (bidBuilder_ == null) {
          bid_ = null;
        } else {
          bid_ = null;
          bidBuilder_ = null;
        }
        empty_ = false;

        if (hstBuilder_ == null) {
          hst_ = null;
        } else {
          hst_ = null;
          hstBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.block.internal_static_proto_types_BlockHeader_descriptor;
      }

      @java.lang.Override
      public proto.types.block.BlockHeader getDefaultInstanceForType() {
        return proto.types.block.BlockHeader.getDefaultInstance();
      }

      @java.lang.Override
      public proto.types.block.BlockHeader build() {
        proto.types.block.BlockHeader result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.types.block.BlockHeader buildPartial() {
        proto.types.block.BlockHeader result = new proto.types.block.BlockHeader(this);
        if (mBuilder_ == null) {
          result.m_ = m_;
        } else {
          result.m_ = mBuilder_.build();
        }
        result.prev_ = prev_;
        result.height_ = height_;
        result.transactionHash_ = transactionHash_;
        result.proof_ = proof_;
        if (bidBuilder_ == null) {
          result.bid_ = bid_;
        } else {
          result.bid_ = bidBuilder_.build();
        }
        result.empty_ = empty_;
        if (hstBuilder_ == null) {
          result.hst_ = hst_;
        } else {
          result.hst_ = hstBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.block.BlockHeader other) {
        if (other == proto.types.block.BlockHeader.getDefaultInstance()) return this;
        if (other.hasM()) {
          mergeM(other.getM());
        }
        if (other.getPrev() != com.google.protobuf.ByteString.EMPTY) {
          setPrev(other.getPrev());
        }
        if (other.getHeight() != 0) {
          setHeight(other.getHeight());
        }
        if (other.getTransactionHash() != com.google.protobuf.ByteString.EMPTY) {
          setTransactionHash(other.getTransactionHash());
        }
        if (!other.getProof().isEmpty()) {
          proof_ = other.proof_;
          onChanged();
        }
        if (other.hasBid()) {
          mergeBid(other.getBid());
        }
        if (other.getEmpty() != false) {
          setEmpty(other.getEmpty());
        }
        if (other.hasHst()) {
          mergeHst(other.getHst());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

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

      private proto.types.meta.Meta m_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.meta.Meta, proto.types.meta.Meta.Builder, proto.types.meta.MetaOrBuilder> mBuilder_;
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public boolean hasM() {
        return mBuilder_ != null || m_ != null;
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public proto.types.meta.Meta getM() {
        if (mBuilder_ == null) {
          return m_ == null ? proto.types.meta.Meta.getDefaultInstance() : m_;
        } else {
          return mBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public Builder setM(proto.types.meta.Meta value) {
        if (mBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          m_ = value;
          onChanged();
        } else {
          mBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public Builder setM(
          proto.types.meta.Meta.Builder builderForValue) {
        if (mBuilder_ == null) {
          m_ = builderForValue.build();
          onChanged();
        } else {
          mBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public Builder mergeM(proto.types.meta.Meta value) {
        if (mBuilder_ == null) {
          if (m_ != null) {
            m_ =
              proto.types.meta.Meta.newBuilder(m_).mergeFrom(value).buildPartial();
          } else {
            m_ = value;
          }
          onChanged();
        } else {
          mBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public Builder clearM() {
        if (mBuilder_ == null) {
          m_ = null;
          onChanged();
        } else {
          m_ = null;
          mBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public proto.types.meta.Meta.Builder getMBuilder() {
        
        onChanged();
        return getMFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      public proto.types.meta.MetaOrBuilder getMOrBuilder() {
        if (mBuilder_ != null) {
          return mBuilder_.getMessageOrBuilder();
        } else {
          return m_ == null ?
              proto.types.meta.Meta.getDefaultInstance() : m_;
        }
      }
      /**
       * <code>.proto.types.Meta m = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.meta.Meta, proto.types.meta.Meta.Builder, proto.types.meta.MetaOrBuilder> 
          getMFieldBuilder() {
        if (mBuilder_ == null) {
          mBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.meta.Meta, proto.types.meta.Meta.Builder, proto.types.meta.MetaOrBuilder>(
                  getM(),
                  getParentForChildren(),
                  isClean());
          m_ = null;
        }
        return mBuilder_;
      }

      private com.google.protobuf.ByteString prev_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>bytes prev = 2;</code>
       */
      public com.google.protobuf.ByteString getPrev() {
        return prev_;
      }
      /**
       * <code>bytes prev = 2;</code>
       */
      public Builder setPrev(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        prev_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bytes prev = 2;</code>
       */
      public Builder clearPrev() {
        
        prev_ = getDefaultInstance().getPrev();
        onChanged();
        return this;
      }

      private int height_ ;
      /**
       * <code>int32 height = 3;</code>
       */
      public int getHeight() {
        return height_;
      }
      /**
       * <code>int32 height = 3;</code>
       */
      public Builder setHeight(int value) {
        
        height_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 height = 3;</code>
       */
      public Builder clearHeight() {
        
        height_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString transactionHash_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>bytes transactionHash = 4;</code>
       */
      public com.google.protobuf.ByteString getTransactionHash() {
        return transactionHash_;
      }
      /**
       * <code>bytes transactionHash = 4;</code>
       */
      public Builder setTransactionHash(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        transactionHash_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bytes transactionHash = 4;</code>
       */
      public Builder clearTransactionHash() {
        
        transactionHash_ = getDefaultInstance().getTransactionHash();
        onChanged();
        return this;
      }

      private java.lang.Object proof_ = "";
      /**
       * <code>string proof = 5;</code>
       */
      public java.lang.String getProof() {
        java.lang.Object ref = proof_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          proof_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string proof = 5;</code>
       */
      public com.google.protobuf.ByteString
          getProofBytes() {
        java.lang.Object ref = proof_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          proof_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string proof = 5;</code>
       */
      public Builder setProof(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        proof_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string proof = 5;</code>
       */
      public Builder clearProof() {
        
        proof_ = getDefaultInstance().getProof();
        onChanged();
        return this;
      }
      /**
       * <code>string proof = 5;</code>
       */
      public Builder setProofBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        proof_ = value;
        onChanged();
        return this;
      }

      private proto.types.block.BlockID bid_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder> bidBuilder_;
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public boolean hasBid() {
        return bidBuilder_ != null || bid_ != null;
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public proto.types.block.BlockID getBid() {
        if (bidBuilder_ == null) {
          return bid_ == null ? proto.types.block.BlockID.getDefaultInstance() : bid_;
        } else {
          return bidBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public Builder setBid(proto.types.block.BlockID value) {
        if (bidBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          bid_ = value;
          onChanged();
        } else {
          bidBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public Builder setBid(
          proto.types.block.BlockID.Builder builderForValue) {
        if (bidBuilder_ == null) {
          bid_ = builderForValue.build();
          onChanged();
        } else {
          bidBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public Builder mergeBid(proto.types.block.BlockID value) {
        if (bidBuilder_ == null) {
          if (bid_ != null) {
            bid_ =
              proto.types.block.BlockID.newBuilder(bid_).mergeFrom(value).buildPartial();
          } else {
            bid_ = value;
          }
          onChanged();
        } else {
          bidBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public Builder clearBid() {
        if (bidBuilder_ == null) {
          bid_ = null;
          onChanged();
        } else {
          bid_ = null;
          bidBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public proto.types.block.BlockID.Builder getBidBuilder() {
        
        onChanged();
        return getBidFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      public proto.types.block.BlockIDOrBuilder getBidOrBuilder() {
        if (bidBuilder_ != null) {
          return bidBuilder_.getMessageOrBuilder();
        } else {
          return bid_ == null ?
              proto.types.block.BlockID.getDefaultInstance() : bid_;
        }
      }
      /**
       * <code>.proto.types.BlockID bid = 6;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder> 
          getBidFieldBuilder() {
        if (bidBuilder_ == null) {
          bidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder>(
                  getBid(),
                  getParentForChildren(),
                  isClean());
          bid_ = null;
        }
        return bidBuilder_;
      }

      private boolean empty_ ;
      /**
       * <code>bool empty = 7;</code>
       */
      public boolean getEmpty() {
        return empty_;
      }
      /**
       * <code>bool empty = 7;</code>
       */
      public Builder setEmpty(boolean value) {
        
        empty_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool empty = 7;</code>
       */
      public Builder clearEmpty() {
        
        empty_ = false;
        onChanged();
        return this;
      }

      private proto.types.block.HeaderStatistics hst_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.HeaderStatistics, proto.types.block.HeaderStatistics.Builder, proto.types.block.HeaderStatisticsOrBuilder> hstBuilder_;
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public boolean hasHst() {
        return hstBuilder_ != null || hst_ != null;
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public proto.types.block.HeaderStatistics getHst() {
        if (hstBuilder_ == null) {
          return hst_ == null ? proto.types.block.HeaderStatistics.getDefaultInstance() : hst_;
        } else {
          return hstBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public Builder setHst(proto.types.block.HeaderStatistics value) {
        if (hstBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          hst_ = value;
          onChanged();
        } else {
          hstBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public Builder setHst(
          proto.types.block.HeaderStatistics.Builder builderForValue) {
        if (hstBuilder_ == null) {
          hst_ = builderForValue.build();
          onChanged();
        } else {
          hstBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public Builder mergeHst(proto.types.block.HeaderStatistics value) {
        if (hstBuilder_ == null) {
          if (hst_ != null) {
            hst_ =
              proto.types.block.HeaderStatistics.newBuilder(hst_).mergeFrom(value).buildPartial();
          } else {
            hst_ = value;
          }
          onChanged();
        } else {
          hstBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public Builder clearHst() {
        if (hstBuilder_ == null) {
          hst_ = null;
          onChanged();
        } else {
          hst_ = null;
          hstBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public proto.types.block.HeaderStatistics.Builder getHstBuilder() {
        
        onChanged();
        return getHstFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      public proto.types.block.HeaderStatisticsOrBuilder getHstOrBuilder() {
        if (hstBuilder_ != null) {
          return hstBuilder_.getMessageOrBuilder();
        } else {
          return hst_ == null ?
              proto.types.block.HeaderStatistics.getDefaultInstance() : hst_;
        }
      }
      /**
       * <code>.proto.types.HeaderStatistics hst = 8;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.HeaderStatistics, proto.types.block.HeaderStatistics.Builder, proto.types.block.HeaderStatisticsOrBuilder> 
          getHstFieldBuilder() {
        if (hstBuilder_ == null) {
          hstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.HeaderStatistics, proto.types.block.HeaderStatistics.Builder, proto.types.block.HeaderStatisticsOrBuilder>(
                  getHst(),
                  getParentForChildren(),
                  isClean());
          hst_ = null;
        }
        return hstBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:proto.types.BlockHeader)
    }

    // @@protoc_insertion_point(class_scope:proto.types.BlockHeader)
    private static final proto.types.block.BlockHeader DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.block.BlockHeader();
    }

    public static proto.types.block.BlockHeader getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public proto.types.block.BlockHeader getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HeaderStatisticsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.HeaderStatistics)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int64 proposeTime = 1;</code>
     */
    long getProposeTime();

    /**
     * <code>int64 tentativeTime = 2;</code>
     */
    long getTentativeTime();

    /**
     * <code>int64 definiteTime = 3;</code>
     */
    long getDefiniteTime();

    /**
     * <code>bool tentative = 5;</code>
     */
    boolean getTentative();
  }
  /**
   * Protobuf type {@code proto.types.HeaderStatistics}
   */
  public  static final class HeaderStatistics extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.HeaderStatistics)
      HeaderStatisticsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HeaderStatistics.newBuilder() to construct.
    private HeaderStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HeaderStatistics() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HeaderStatistics(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.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 8: {

              proposeTime_ = input.readInt64();
              break;
            }
            case 16: {

              tentativeTime_ = input.readInt64();
              break;
            }
            case 24: {

              definiteTime_ = input.readInt64();
              break;
            }
            case 40: {

              tentative_ = input.readBool();
              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 proto.types.block.internal_static_proto_types_HeaderStatistics_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.block.internal_static_proto_types_HeaderStatistics_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.block.HeaderStatistics.class, proto.types.block.HeaderStatistics.Builder.class);
    }

    public static final int PROPOSETIME_FIELD_NUMBER = 1;
    private long proposeTime_;
    /**
     * <code>int64 proposeTime = 1;</code>
     */
    public long getProposeTime() {
      return proposeTime_;
    }

    public static final int TENTATIVETIME_FIELD_NUMBER = 2;
    private long tentativeTime_;
    /**
     * <code>int64 tentativeTime = 2;</code>
     */
    public long getTentativeTime() {
      return tentativeTime_;
    }

    public static final int DEFINITETIME_FIELD_NUMBER = 3;
    private long definiteTime_;
    /**
     * <code>int64 definiteTime = 3;</code>
     */
    public long getDefiniteTime() {
      return definiteTime_;
    }

    public static final int TENTATIVE_FIELD_NUMBER = 5;
    private boolean tentative_;
    /**
     * <code>bool tentative = 5;</code>
     */
    public boolean getTentative() {
      return tentative_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (proposeTime_ != 0L) {
        output.writeInt64(1, proposeTime_);
      }
      if (tentativeTime_ != 0L) {
        output.writeInt64(2, tentativeTime_);
      }
      if (definiteTime_ != 0L) {
        output.writeInt64(3, definiteTime_);
      }
      if (tentative_ != false) {
        output.writeBool(5, tentative_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (proposeTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, proposeTime_);
      }
      if (tentativeTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, tentativeTime_);
      }
      if (definiteTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, definiteTime_);
      }
      if (tentative_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(5, tentative_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.types.block.HeaderStatistics)) {
        return super.equals(obj);
      }
      proto.types.block.HeaderStatistics other = (proto.types.block.HeaderStatistics) obj;

      if (getProposeTime()
          != other.getProposeTime()) return false;
      if (getTentativeTime()
          != other.getTentativeTime()) return false;
      if (getDefiniteTime()
          != other.getDefiniteTime()) return false;
      if (getTentative()
          != other.getTentative()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PROPOSETIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getProposeTime());
      hash = (37 * hash) + TENTATIVETIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTentativeTime());
      hash = (37 * hash) + DEFINITETIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getDefiniteTime());
      hash = (37 * hash) + TENTATIVE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getTentative());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.types.block.HeaderStatistics parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.HeaderStatistics parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.HeaderStatistics parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.HeaderStatistics parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.HeaderStatistics parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.HeaderStatistics parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.HeaderStatistics parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.HeaderStatistics 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 proto.types.block.HeaderStatistics parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.types.block.HeaderStatistics 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 proto.types.block.HeaderStatistics parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.HeaderStatistics parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(proto.types.block.HeaderStatistics prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto.types.HeaderStatistics}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:proto.types.HeaderStatistics)
        proto.types.block.HeaderStatisticsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.types.block.internal_static_proto_types_HeaderStatistics_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.block.internal_static_proto_types_HeaderStatistics_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.block.HeaderStatistics.class, proto.types.block.HeaderStatistics.Builder.class);
      }

      // Construct using proto.types.block.HeaderStatistics.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        proposeTime_ = 0L;

        tentativeTime_ = 0L;

        definiteTime_ = 0L;

        tentative_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.block.internal_static_proto_types_HeaderStatistics_descriptor;
      }

      @java.lang.Override
      public proto.types.block.HeaderStatistics getDefaultInstanceForType() {
        return proto.types.block.HeaderStatistics.getDefaultInstance();
      }

      @java.lang.Override
      public proto.types.block.HeaderStatistics build() {
        proto.types.block.HeaderStatistics result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.types.block.HeaderStatistics buildPartial() {
        proto.types.block.HeaderStatistics result = new proto.types.block.HeaderStatistics(this);
        result.proposeTime_ = proposeTime_;
        result.tentativeTime_ = tentativeTime_;
        result.definiteTime_ = definiteTime_;
        result.tentative_ = tentative_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.block.HeaderStatistics other) {
        if (other == proto.types.block.HeaderStatistics.getDefaultInstance()) return this;
        if (other.getProposeTime() != 0L) {
          setProposeTime(other.getProposeTime());
        }
        if (other.getTentativeTime() != 0L) {
          setTentativeTime(other.getTentativeTime());
        }
        if (other.getDefiniteTime() != 0L) {
          setDefiniteTime(other.getDefiniteTime());
        }
        if (other.getTentative() != false) {
          setTentative(other.getTentative());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

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

      private long proposeTime_ ;
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public long getProposeTime() {
        return proposeTime_;
      }
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public Builder setProposeTime(long value) {
        
        proposeTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public Builder clearProposeTime() {
        
        proposeTime_ = 0L;
        onChanged();
        return this;
      }

      private long tentativeTime_ ;
      /**
       * <code>int64 tentativeTime = 2;</code>
       */
      public long getTentativeTime() {
        return tentativeTime_;
      }
      /**
       * <code>int64 tentativeTime = 2;</code>
       */
      public Builder setTentativeTime(long value) {
        
        tentativeTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 tentativeTime = 2;</code>
       */
      public Builder clearTentativeTime() {
        
        tentativeTime_ = 0L;
        onChanged();
        return this;
      }

      private long definiteTime_ ;
      /**
       * <code>int64 definiteTime = 3;</code>
       */
      public long getDefiniteTime() {
        return definiteTime_;
      }
      /**
       * <code>int64 definiteTime = 3;</code>
       */
      public Builder setDefiniteTime(long value) {
        
        definiteTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 definiteTime = 3;</code>
       */
      public Builder clearDefiniteTime() {
        
        definiteTime_ = 0L;
        onChanged();
        return this;
      }

      private boolean tentative_ ;
      /**
       * <code>bool tentative = 5;</code>
       */
      public boolean getTentative() {
        return tentative_;
      }
      /**
       * <code>bool tentative = 5;</code>
       */
      public Builder setTentative(boolean value) {
        
        tentative_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool tentative = 5;</code>
       */
      public Builder clearTentative() {
        
        tentative_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:proto.types.HeaderStatistics)
    }

    // @@protoc_insertion_point(class_scope:proto.types.HeaderStatistics)
    private static final proto.types.block.HeaderStatistics DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.block.HeaderStatistics();
    }

    public static proto.types.block.HeaderStatistics getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public proto.types.block.HeaderStatistics getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BlockStatisticsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.BlockStatistics)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int64 proposeTime = 1;</code>
     */
    long getProposeTime();
  }
  /**
   * Protobuf type {@code proto.types.BlockStatistics}
   */
  public  static final class BlockStatistics extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.BlockStatistics)
      BlockStatisticsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockStatistics.newBuilder() to construct.
    private BlockStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BlockStatistics() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockStatistics(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.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 8: {

              proposeTime_ = input.readInt64();
              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 proto.types.block.internal_static_proto_types_BlockStatistics_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.block.internal_static_proto_types_BlockStatistics_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.block.BlockStatistics.class, proto.types.block.BlockStatistics.Builder.class);
    }

    public static final int PROPOSETIME_FIELD_NUMBER = 1;
    private long proposeTime_;
    /**
     * <code>int64 proposeTime = 1;</code>
     */
    public long getProposeTime() {
      return proposeTime_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (proposeTime_ != 0L) {
        output.writeInt64(1, proposeTime_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (proposeTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, proposeTime_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.types.block.BlockStatistics)) {
        return super.equals(obj);
      }
      proto.types.block.BlockStatistics other = (proto.types.block.BlockStatistics) obj;

      if (getProposeTime()
          != other.getProposeTime()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PROPOSETIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getProposeTime());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.types.block.BlockStatistics parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockStatistics parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockStatistics parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockStatistics parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockStatistics parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.BlockStatistics parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.BlockStatistics parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockStatistics 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 proto.types.block.BlockStatistics parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockStatistics 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 proto.types.block.BlockStatistics parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.BlockStatistics parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(proto.types.block.BlockStatistics prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto.types.BlockStatistics}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:proto.types.BlockStatistics)
        proto.types.block.BlockStatisticsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.types.block.internal_static_proto_types_BlockStatistics_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.block.internal_static_proto_types_BlockStatistics_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.block.BlockStatistics.class, proto.types.block.BlockStatistics.Builder.class);
      }

      // Construct using proto.types.block.BlockStatistics.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        proposeTime_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.block.internal_static_proto_types_BlockStatistics_descriptor;
      }

      @java.lang.Override
      public proto.types.block.BlockStatistics getDefaultInstanceForType() {
        return proto.types.block.BlockStatistics.getDefaultInstance();
      }

      @java.lang.Override
      public proto.types.block.BlockStatistics build() {
        proto.types.block.BlockStatistics result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.types.block.BlockStatistics buildPartial() {
        proto.types.block.BlockStatistics result = new proto.types.block.BlockStatistics(this);
        result.proposeTime_ = proposeTime_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.block.BlockStatistics other) {
        if (other == proto.types.block.BlockStatistics.getDefaultInstance()) return this;
        if (other.getProposeTime() != 0L) {
          setProposeTime(other.getProposeTime());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

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

      private long proposeTime_ ;
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public long getProposeTime() {
        return proposeTime_;
      }
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public Builder setProposeTime(long value) {
        
        proposeTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 proposeTime = 1;</code>
       */
      public Builder clearProposeTime() {
        
        proposeTime_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:proto.types.BlockStatistics)
    }

    // @@protoc_insertion_point(class_scope:proto.types.BlockStatistics)
    private static final proto.types.block.BlockStatistics DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.block.BlockStatistics();
    }

    public static proto.types.block.BlockStatistics getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public proto.types.block.BlockStatistics getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BlockOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.Block)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    boolean hasHeader();
    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    proto.types.block.BlockHeader getHeader();
    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    proto.types.block.BlockHeaderOrBuilder getHeaderOrBuilder();

    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    boolean hasId();
    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    proto.types.block.BlockID getId();
    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    proto.types.block.BlockIDOrBuilder getIdOrBuilder();

    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    java.util.List<proto.types.transaction.Transaction> 
        getDataList();
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    proto.types.transaction.Transaction getData(int index);
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    int getDataCount();
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    java.util.List<? extends proto.types.transaction.TransactionOrBuilder> 
        getDataOrBuilderList();
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    proto.types.transaction.TransactionOrBuilder getDataOrBuilder(
        int index);

    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    boolean hasBst();
    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    proto.types.block.BlockStatistics getBst();
    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    proto.types.block.BlockStatisticsOrBuilder getBstOrBuilder();
  }
  /**
   * Protobuf type {@code proto.types.Block}
   */
  public  static final class Block extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.Block)
      BlockOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Block.newBuilder() to construct.
    private Block(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Block() {
      data_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Block(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.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: {
              proto.types.block.BlockHeader.Builder subBuilder = null;
              if (header_ != null) {
                subBuilder = header_.toBuilder();
              }
              header_ = input.readMessage(proto.types.block.BlockHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(header_);
                header_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              proto.types.block.BlockID.Builder subBuilder = null;
              if (id_ != null) {
                subBuilder = id_.toBuilder();
              }
              id_ = input.readMessage(proto.types.block.BlockID.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(id_);
                id_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                data_ = new java.util.ArrayList<proto.types.transaction.Transaction>();
                mutable_bitField0_ |= 0x00000004;
              }
              data_.add(
                  input.readMessage(proto.types.transaction.Transaction.parser(), extensionRegistry));
              break;
            }
            case 34: {
              proto.types.block.BlockStatistics.Builder subBuilder = null;
              if (bst_ != null) {
                subBuilder = bst_.toBuilder();
              }
              bst_ = input.readMessage(proto.types.block.BlockStatistics.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(bst_);
                bst_ = subBuilder.buildPartial();
              }

              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 {
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          data_ = java.util.Collections.unmodifiableList(data_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return proto.types.block.internal_static_proto_types_Block_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.block.internal_static_proto_types_Block_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.block.Block.class, proto.types.block.Block.Builder.class);
    }

    private int bitField0_;
    public static final int HEADER_FIELD_NUMBER = 1;
    private proto.types.block.BlockHeader header_;
    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    public boolean hasHeader() {
      return header_ != null;
    }
    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    public proto.types.block.BlockHeader getHeader() {
      return header_ == null ? proto.types.block.BlockHeader.getDefaultInstance() : header_;
    }
    /**
     * <code>.proto.types.BlockHeader header = 1;</code>
     */
    public proto.types.block.BlockHeaderOrBuilder getHeaderOrBuilder() {
      return getHeader();
    }

    public static final int ID_FIELD_NUMBER = 2;
    private proto.types.block.BlockID id_;
    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    public boolean hasId() {
      return id_ != null;
    }
    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    public proto.types.block.BlockID getId() {
      return id_ == null ? proto.types.block.BlockID.getDefaultInstance() : id_;
    }
    /**
     * <code>.proto.types.BlockID id = 2;</code>
     */
    public proto.types.block.BlockIDOrBuilder getIdOrBuilder() {
      return getId();
    }

    public static final int DATA_FIELD_NUMBER = 3;
    private java.util.List<proto.types.transaction.Transaction> data_;
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    public java.util.List<proto.types.transaction.Transaction> getDataList() {
      return data_;
    }
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    public java.util.List<? extends proto.types.transaction.TransactionOrBuilder> 
        getDataOrBuilderList() {
      return data_;
    }
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    public int getDataCount() {
      return data_.size();
    }
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    public proto.types.transaction.Transaction getData(int index) {
      return data_.get(index);
    }
    /**
     * <code>repeated .proto.types.Transaction data = 3;</code>
     */
    public proto.types.transaction.TransactionOrBuilder getDataOrBuilder(
        int index) {
      return data_.get(index);
    }

    public static final int BST_FIELD_NUMBER = 4;
    private proto.types.block.BlockStatistics bst_;
    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    public boolean hasBst() {
      return bst_ != null;
    }
    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    public proto.types.block.BlockStatistics getBst() {
      return bst_ == null ? proto.types.block.BlockStatistics.getDefaultInstance() : bst_;
    }
    /**
     * <code>.proto.types.BlockStatistics bst = 4;</code>
     */
    public proto.types.block.BlockStatisticsOrBuilder getBstOrBuilder() {
      return getBst();
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (header_ != null) {
        output.writeMessage(1, getHeader());
      }
      if (id_ != null) {
        output.writeMessage(2, getId());
      }
      for (int i = 0; i < data_.size(); i++) {
        output.writeMessage(3, data_.get(i));
      }
      if (bst_ != null) {
        output.writeMessage(4, getBst());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (header_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getHeader());
      }
      if (id_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getId());
      }
      for (int i = 0; i < data_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, data_.get(i));
      }
      if (bst_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getBst());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof proto.types.block.Block)) {
        return super.equals(obj);
      }
      proto.types.block.Block other = (proto.types.block.Block) obj;

      if (hasHeader() != other.hasHeader()) return false;
      if (hasHeader()) {
        if (!getHeader()
            .equals(other.getHeader())) return false;
      }
      if (hasId() != other.hasId()) return false;
      if (hasId()) {
        if (!getId()
            .equals(other.getId())) return false;
      }
      if (!getDataList()
          .equals(other.getDataList())) return false;
      if (hasBst() != other.hasBst()) return false;
      if (hasBst()) {
        if (!getBst()
            .equals(other.getBst())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasHeader()) {
        hash = (37 * hash) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
      }
      if (hasId()) {
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getId().hashCode();
      }
      if (getDataCount() > 0) {
        hash = (37 * hash) + DATA_FIELD_NUMBER;
        hash = (53 * hash) + getDataList().hashCode();
      }
      if (hasBst()) {
        hash = (37 * hash) + BST_FIELD_NUMBER;
        hash = (53 * hash) + getBst().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static proto.types.block.Block parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.Block parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.Block parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.Block parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.Block parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static proto.types.block.Block parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static proto.types.block.Block parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.Block 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 proto.types.block.Block parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static proto.types.block.Block 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 proto.types.block.Block parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static proto.types.block.Block parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(proto.types.block.Block prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto.types.Block}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:proto.types.Block)
        proto.types.block.BlockOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return proto.types.block.internal_static_proto_types_Block_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.block.internal_static_proto_types_Block_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.block.Block.class, proto.types.block.Block.Builder.class);
      }

      // Construct using proto.types.block.Block.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getDataFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (headerBuilder_ == null) {
          header_ = null;
        } else {
          header_ = null;
          headerBuilder_ = null;
        }
        if (idBuilder_ == null) {
          id_ = null;
        } else {
          id_ = null;
          idBuilder_ = null;
        }
        if (dataBuilder_ == null) {
          data_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          dataBuilder_.clear();
        }
        if (bstBuilder_ == null) {
          bst_ = null;
        } else {
          bst_ = null;
          bstBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.block.internal_static_proto_types_Block_descriptor;
      }

      @java.lang.Override
      public proto.types.block.Block getDefaultInstanceForType() {
        return proto.types.block.Block.getDefaultInstance();
      }

      @java.lang.Override
      public proto.types.block.Block build() {
        proto.types.block.Block result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public proto.types.block.Block buildPartial() {
        proto.types.block.Block result = new proto.types.block.Block(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (headerBuilder_ == null) {
          result.header_ = header_;
        } else {
          result.header_ = headerBuilder_.build();
        }
        if (idBuilder_ == null) {
          result.id_ = id_;
        } else {
          result.id_ = idBuilder_.build();
        }
        if (dataBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            data_ = java.util.Collections.unmodifiableList(data_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.data_ = data_;
        } else {
          result.data_ = dataBuilder_.build();
        }
        if (bstBuilder_ == null) {
          result.bst_ = bst_;
        } else {
          result.bst_ = bstBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.block.Block other) {
        if (other == proto.types.block.Block.getDefaultInstance()) return this;
        if (other.hasHeader()) {
          mergeHeader(other.getHeader());
        }
        if (other.hasId()) {
          mergeId(other.getId());
        }
        if (dataBuilder_ == null) {
          if (!other.data_.isEmpty()) {
            if (data_.isEmpty()) {
              data_ = other.data_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureDataIsMutable();
              data_.addAll(other.data_);
            }
            onChanged();
          }
        } else {
          if (!other.data_.isEmpty()) {
            if (dataBuilder_.isEmpty()) {
              dataBuilder_.dispose();
              dataBuilder_ = null;
              data_ = other.data_;
              bitField0_ = (bitField0_ & ~0x00000004);
              dataBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getDataFieldBuilder() : null;
            } else {
              dataBuilder_.addAllMessages(other.data_);
            }
          }
        }
        if (other.hasBst()) {
          mergeBst(other.getBst());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

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

      private proto.types.block.BlockHeader header_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder> headerBuilder_;
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public boolean hasHeader() {
        return headerBuilder_ != null || header_ != null;
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public proto.types.block.BlockHeader getHeader() {
        if (headerBuilder_ == null) {
          return header_ == null ? proto.types.block.BlockHeader.getDefaultInstance() : header_;
        } else {
          return headerBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public Builder setHeader(proto.types.block.BlockHeader value) {
        if (headerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          onChanged();
        } else {
          headerBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public Builder setHeader(
          proto.types.block.BlockHeader.Builder builderForValue) {
        if (headerBuilder_ == null) {
          header_ = builderForValue.build();
          onChanged();
        } else {
          headerBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public Builder mergeHeader(proto.types.block.BlockHeader value) {
        if (headerBuilder_ == null) {
          if (header_ != null) {
            header_ =
              proto.types.block.BlockHeader.newBuilder(header_).mergeFrom(value).buildPartial();
          } else {
            header_ = value;
          }
          onChanged();
        } else {
          headerBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public Builder clearHeader() {
        if (headerBuilder_ == null) {
          header_ = null;
          onChanged();
        } else {
          header_ = null;
          headerBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public proto.types.block.BlockHeader.Builder getHeaderBuilder() {
        
        onChanged();
        return getHeaderFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      public proto.types.block.BlockHeaderOrBuilder getHeaderOrBuilder() {
        if (headerBuilder_ != null) {
          return headerBuilder_.getMessageOrBuilder();
        } else {
          return header_ == null ?
              proto.types.block.BlockHeader.getDefaultInstance() : header_;
        }
      }
      /**
       * <code>.proto.types.BlockHeader header = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder> 
          getHeaderFieldBuilder() {
        if (headerBuilder_ == null) {
          headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder>(
                  getHeader(),
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        return headerBuilder_;
      }

      private proto.types.block.BlockID id_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder> idBuilder_;
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public boolean hasId() {
        return idBuilder_ != null || id_ != null;
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public proto.types.block.BlockID getId() {
        if (idBuilder_ == null) {
          return id_ == null ? proto.types.block.BlockID.getDefaultInstance() : id_;
        } else {
          return idBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public Builder setId(proto.types.block.BlockID value) {
        if (idBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          id_ = value;
          onChanged();
        } else {
          idBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public Builder setId(
          proto.types.block.BlockID.Builder builderForValue) {
        if (idBuilder_ == null) {
          id_ = builderForValue.build();
          onChanged();
        } else {
          idBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public Builder mergeId(proto.types.block.BlockID value) {
        if (idBuilder_ == null) {
          if (id_ != null) {
            id_ =
              proto.types.block.BlockID.newBuilder(id_).mergeFrom(value).buildPartial();
          } else {
            id_ = value;
          }
          onChanged();
        } else {
          idBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public Builder clearId() {
        if (idBuilder_ == null) {
          id_ = null;
          onChanged();
        } else {
          id_ = null;
          idBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public proto.types.block.BlockID.Builder getIdBuilder() {
        
        onChanged();
        return getIdFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      public proto.types.block.BlockIDOrBuilder getIdOrBuilder() {
        if (idBuilder_ != null) {
          return idBuilder_.getMessageOrBuilder();
        } else {
          return id_ == null ?
              proto.types.block.BlockID.getDefaultInstance() : id_;
        }
      }
      /**
       * <code>.proto.types.BlockID id = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder> 
          getIdFieldBuilder() {
        if (idBuilder_ == null) {
          idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.BlockID, proto.types.block.BlockID.Builder, proto.types.block.BlockIDOrBuilder>(
                  getId(),
                  getParentForChildren(),
                  isClean());
          id_ = null;
        }
        return idBuilder_;
      }

      private java.util.List<proto.types.transaction.Transaction> data_ =
        java.util.Collections.emptyList();
      private void ensureDataIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          data_ = new java.util.ArrayList<proto.types.transaction.Transaction>(data_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          proto.types.transaction.Transaction, proto.types.transaction.Transaction.Builder, proto.types.transaction.TransactionOrBuilder> dataBuilder_;

      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public java.util.List<proto.types.transaction.Transaction> getDataList() {
        if (dataBuilder_ == null) {
          return java.util.Collections.unmodifiableList(data_);
        } else {
          return dataBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public int getDataCount() {
        if (dataBuilder_ == null) {
          return data_.size();
        } else {
          return dataBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public proto.types.transaction.Transaction getData(int index) {
        if (dataBuilder_ == null) {
          return data_.get(index);
        } else {
          return dataBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder setData(
          int index, proto.types.transaction.Transaction value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDataIsMutable();
          data_.set(index, value);
          onChanged();
        } else {
          dataBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder setData(
          int index, proto.types.transaction.Transaction.Builder builderForValue) {
        if (dataBuilder_ == null) {
          ensureDataIsMutable();
          data_.set(index, builderForValue.build());
          onChanged();
        } else {
          dataBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder addData(proto.types.transaction.Transaction value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDataIsMutable();
          data_.add(value);
          onChanged();
        } else {
          dataBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder addData(
          int index, proto.types.transaction.Transaction value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDataIsMutable();
          data_.add(index, value);
          onChanged();
        } else {
          dataBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder addData(
          proto.types.transaction.Transaction.Builder builderForValue) {
        if (dataBuilder_ == null) {
          ensureDataIsMutable();
          data_.add(builderForValue.build());
          onChanged();
        } else {
          dataBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder addData(
          int index, proto.types.transaction.Transaction.Builder builderForValue) {
        if (dataBuilder_ == null) {
          ensureDataIsMutable();
          data_.add(index, builderForValue.build());
          onChanged();
        } else {
          dataBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder addAllData(
          java.lang.Iterable<? extends proto.types.transaction.Transaction> values) {
        if (dataBuilder_ == null) {
          ensureDataIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, data_);
          onChanged();
        } else {
          dataBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder clearData() {
        if (dataBuilder_ == null) {
          data_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          dataBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public Builder removeData(int index) {
        if (dataBuilder_ == null) {
          ensureDataIsMutable();
          data_.remove(index);
          onChanged();
        } else {
          dataBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public proto.types.transaction.Transaction.Builder getDataBuilder(
          int index) {
        return getDataFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public proto.types.transaction.TransactionOrBuilder getDataOrBuilder(
          int index) {
        if (dataBuilder_ == null) {
          return data_.get(index);  } else {
          return dataBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public java.util.List<? extends proto.types.transaction.TransactionOrBuilder> 
           getDataOrBuilderList() {
        if (dataBuilder_ != null) {
          return dataBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(data_);
        }
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public proto.types.transaction.Transaction.Builder addDataBuilder() {
        return getDataFieldBuilder().addBuilder(
            proto.types.transaction.Transaction.getDefaultInstance());
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public proto.types.transaction.Transaction.Builder addDataBuilder(
          int index) {
        return getDataFieldBuilder().addBuilder(
            index, proto.types.transaction.Transaction.getDefaultInstance());
      }
      /**
       * <code>repeated .proto.types.Transaction data = 3;</code>
       */
      public java.util.List<proto.types.transaction.Transaction.Builder> 
           getDataBuilderList() {
        return getDataFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          proto.types.transaction.Transaction, proto.types.transaction.Transaction.Builder, proto.types.transaction.TransactionOrBuilder> 
          getDataFieldBuilder() {
        if (dataBuilder_ == null) {
          dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              proto.types.transaction.Transaction, proto.types.transaction.Transaction.Builder, proto.types.transaction.TransactionOrBuilder>(
                  data_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          data_ = null;
        }
        return dataBuilder_;
      }

      private proto.types.block.BlockStatistics bst_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockStatistics, proto.types.block.BlockStatistics.Builder, proto.types.block.BlockStatisticsOrBuilder> bstBuilder_;
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public boolean hasBst() {
        return bstBuilder_ != null || bst_ != null;
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public proto.types.block.BlockStatistics getBst() {
        if (bstBuilder_ == null) {
          return bst_ == null ? proto.types.block.BlockStatistics.getDefaultInstance() : bst_;
        } else {
          return bstBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public Builder setBst(proto.types.block.BlockStatistics value) {
        if (bstBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          bst_ = value;
          onChanged();
        } else {
          bstBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public Builder setBst(
          proto.types.block.BlockStatistics.Builder builderForValue) {
        if (bstBuilder_ == null) {
          bst_ = builderForValue.build();
          onChanged();
        } else {
          bstBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public Builder mergeBst(proto.types.block.BlockStatistics value) {
        if (bstBuilder_ == null) {
          if (bst_ != null) {
            bst_ =
              proto.types.block.BlockStatistics.newBuilder(bst_).mergeFrom(value).buildPartial();
          } else {
            bst_ = value;
          }
          onChanged();
        } else {
          bstBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public Builder clearBst() {
        if (bstBuilder_ == null) {
          bst_ = null;
          onChanged();
        } else {
          bst_ = null;
          bstBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public proto.types.block.BlockStatistics.Builder getBstBuilder() {
        
        onChanged();
        return getBstFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      public proto.types.block.BlockStatisticsOrBuilder getBstOrBuilder() {
        if (bstBuilder_ != null) {
          return bstBuilder_.getMessageOrBuilder();
        } else {
          return bst_ == null ?
              proto.types.block.BlockStatistics.getDefaultInstance() : bst_;
        }
      }
      /**
       * <code>.proto.types.BlockStatistics bst = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockStatistics, proto.types.block.BlockStatistics.Builder, proto.types.block.BlockStatisticsOrBuilder> 
          getBstFieldBuilder() {
        if (bstBuilder_ == null) {
          bstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.BlockStatistics, proto.types.block.BlockStatistics.Builder, proto.types.block.BlockStatisticsOrBuilder>(
                  getBst(),
                  getParentForChildren(),
                  isClean());
          bst_ = null;
        }
        return bstBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:proto.types.Block)
    }

    // @@protoc_insertion_point(class_scope:proto.types.Block)
    private static final proto.types.block.Block DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.block.Block();
    }

    public static proto.types.block.Block getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public proto.types.block.Block getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_BlockID_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_BlockID_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_BlockHeader_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_BlockHeader_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_HeaderStatistics_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_HeaderStatistics_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_BlockStatistics_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_BlockStatistics_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_Block_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_Block_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\021types/block.proto\022\013proto.types\032\020types/" +
      "meta.proto\032\027types/transaction.proto\"#\n\007B" +
      "lockID\022\013\n\003pid\030\001 \001(\005\022\013\n\003bid\030\002 \001(\005\"\317\001\n\013Blo" +
      "ckHeader\022\034\n\001m\030\001 \001(\0132\021.proto.types.Meta\022\014" +
      "\n\004prev\030\002 \001(\014\022\016\n\006height\030\003 \001(\005\022\027\n\017transact" +
      "ionHash\030\004 \001(\014\022\r\n\005proof\030\005 \001(\t\022!\n\003bid\030\006 \001(" +
      "\0132\024.proto.types.BlockID\022\r\n\005empty\030\007 \001(\010\022*" +
      "\n\003hst\030\010 \001(\0132\035.proto.types.HeaderStatisti" +
      "cs\"g\n\020HeaderStatistics\022\023\n\013proposeTime\030\001 " +
      "\001(\003\022\025\n\rtentativeTime\030\002 \001(\003\022\024\n\014definiteTi" +
      "me\030\003 \001(\003\022\021\n\ttentative\030\005 \001(\010\"&\n\017BlockStat" +
      "istics\022\023\n\013proposeTime\030\001 \001(\003\"\246\001\n\005Block\022(\n" +
      "\006header\030\001 \001(\0132\030.proto.types.BlockHeader\022" +
      " \n\002id\030\002 \001(\0132\024.proto.types.BlockID\022&\n\004dat" +
      "a\030\003 \003(\0132\030.proto.types.Transaction\022)\n\003bst" +
      "\030\004 \001(\0132\034.proto.types.BlockStatisticsB\024\n\013" +
      "proto.typesB\005blockb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          proto.types.meta.getDescriptor(),
          proto.types.transaction.getDescriptor(),
        }, assigner);
    internal_static_proto_types_BlockID_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_proto_types_BlockID_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_BlockID_descriptor,
        new java.lang.String[] { "Pid", "Bid", });
    internal_static_proto_types_BlockHeader_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_proto_types_BlockHeader_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_BlockHeader_descriptor,
        new java.lang.String[] { "M", "Prev", "Height", "TransactionHash", "Proof", "Bid", "Empty", "Hst", });
    internal_static_proto_types_HeaderStatistics_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_proto_types_HeaderStatistics_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_HeaderStatistics_descriptor,
        new java.lang.String[] { "ProposeTime", "TentativeTime", "DefiniteTime", "Tentative", });
    internal_static_proto_types_BlockStatistics_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_proto_types_BlockStatistics_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_BlockStatistics_descriptor,
        new java.lang.String[] { "ProposeTime", });
    internal_static_proto_types_Block_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_proto_types_Block_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_Block_descriptor,
        new java.lang.String[] { "Header", "Id", "Data", "Bst", });
    proto.types.meta.getDescriptor();
    proto.types.transaction.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
