All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesplatform.protobuf.block.BlockOuterClass Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.1
package com.wavesplatform.protobuf.block;

public final class BlockOuterClass {
  private BlockOuterClass() {}
  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 BlockOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.Block)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .waves.Block.Header header = 1;
     * @return Whether the header field is set.
     */
    boolean hasHeader();
    /**
     * .waves.Block.Header header = 1;
     * @return The header.
     */
    com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader();
    /**
     * .waves.Block.Header header = 1;
     */
    com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder();

    /**
     * bytes signature = 2;
     * @return The signature.
     */
    com.google.protobuf.ByteString getSignature();

    /**
     * repeated .waves.SignedTransaction transactions = 3;
     */
    java.util.List 
        getTransactionsList();
    /**
     * repeated .waves.SignedTransaction transactions = 3;
     */
    com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index);
    /**
     * repeated .waves.SignedTransaction transactions = 3;
     */
    int getTransactionsCount();
    /**
     * repeated .waves.SignedTransaction transactions = 3;
     */
    java.util.List 
        getTransactionsOrBuilderList();
    /**
     * repeated .waves.SignedTransaction transactions = 3;
     */
    com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code waves.Block}
   */
  public static final class Block extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.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() {
      signature_ = com.google.protobuf.ByteString.EMPTY;
      transactions_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Block();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor;
    }

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

    public interface HeaderOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.Block.Header)
        com.google.protobuf.MessageOrBuilder {

      /**
       * int32 chain_id = 1;
       * @return The chainId.
       */
      int getChainId();

      /**
       * bytes reference = 2;
       * @return The reference.
       */
      com.google.protobuf.ByteString getReference();

      /**
       * int64 base_target = 3;
       * @return The baseTarget.
       */
      long getBaseTarget();

      /**
       * bytes generation_signature = 4;
       * @return The generationSignature.
       */
      com.google.protobuf.ByteString getGenerationSignature();

      /**
       * repeated uint32 feature_votes = 5;
       * @return A list containing the featureVotes.
       */
      java.util.List getFeatureVotesList();
      /**
       * repeated uint32 feature_votes = 5;
       * @return The count of featureVotes.
       */
      int getFeatureVotesCount();
      /**
       * repeated uint32 feature_votes = 5;
       * @param index The index of the element to return.
       * @return The featureVotes at the given index.
       */
      int getFeatureVotes(int index);

      /**
       * int64 timestamp = 6;
       * @return The timestamp.
       */
      long getTimestamp();

      /**
       * int32 version = 7;
       * @return The version.
       */
      int getVersion();

      /**
       * bytes generator = 8;
       * @return The generator.
       */
      com.google.protobuf.ByteString getGenerator();

      /**
       * int64 reward_vote = 9;
       * @return The rewardVote.
       */
      long getRewardVote();

      /**
       * bytes transactions_root = 10;
       * @return The transactionsRoot.
       */
      com.google.protobuf.ByteString getTransactionsRoot();

      /**
       * bytes state_hash = 11;
       * @return The stateHash.
       */
      com.google.protobuf.ByteString getStateHash();

      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       * @return Whether the challengedHeader field is set.
       */
      boolean hasChallengedHeader();
      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       * @return The challengedHeader.
       */
      com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getChallengedHeader();
      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       */
      com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder getChallengedHeaderOrBuilder();
    }
    /**
     * Protobuf type {@code waves.Block.Header}
     */
    public static final class Header extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.Block.Header)
        HeaderOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Header.newBuilder() to construct.
      private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private Header() {
        reference_ = com.google.protobuf.ByteString.EMPTY;
        generationSignature_ = com.google.protobuf.ByteString.EMPTY;
        featureVotes_ = emptyIntList();
        generator_ = com.google.protobuf.ByteString.EMPTY;
        transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
        stateHash_ = com.google.protobuf.ByteString.EMPTY;
      }

      @java.lang.Override
      @SuppressWarnings({"unused"})
      protected java.lang.Object newInstance(
          UnusedPrivateParameter unused) {
        return new Header();
      }

      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder.class);
      }

      public interface ChallengedHeaderOrBuilder extends
          // @@protoc_insertion_point(interface_extends:waves.Block.Header.ChallengedHeader)
          com.google.protobuf.MessageOrBuilder {

        /**
         * int64 base_target = 1;
         * @return The baseTarget.
         */
        long getBaseTarget();

        /**
         * bytes generation_signature = 2;
         * @return The generationSignature.
         */
        com.google.protobuf.ByteString getGenerationSignature();

        /**
         * repeated uint32 feature_votes = 3;
         * @return A list containing the featureVotes.
         */
        java.util.List getFeatureVotesList();
        /**
         * repeated uint32 feature_votes = 3;
         * @return The count of featureVotes.
         */
        int getFeatureVotesCount();
        /**
         * repeated uint32 feature_votes = 3;
         * @param index The index of the element to return.
         * @return The featureVotes at the given index.
         */
        int getFeatureVotes(int index);

        /**
         * int64 timestamp = 4;
         * @return The timestamp.
         */
        long getTimestamp();

        /**
         * bytes generator = 5;
         * @return The generator.
         */
        com.google.protobuf.ByteString getGenerator();

        /**
         * int64 reward_vote = 6;
         * @return The rewardVote.
         */
        long getRewardVote();

        /**
         * bytes state_hash = 7;
         * @return The stateHash.
         */
        com.google.protobuf.ByteString getStateHash();

        /**
         * bytes header_signature = 8;
         * @return The headerSignature.
         */
        com.google.protobuf.ByteString getHeaderSignature();
      }
      /**
       * Protobuf type {@code waves.Block.Header.ChallengedHeader}
       */
      public static final class ChallengedHeader extends
          com.google.protobuf.GeneratedMessageV3 implements
          // @@protoc_insertion_point(message_implements:waves.Block.Header.ChallengedHeader)
          ChallengedHeaderOrBuilder {
      private static final long serialVersionUID = 0L;
        // Use ChallengedHeader.newBuilder() to construct.
        private ChallengedHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) {
          super(builder);
        }
        private ChallengedHeader() {
          generationSignature_ = com.google.protobuf.ByteString.EMPTY;
          featureVotes_ = emptyIntList();
          generator_ = com.google.protobuf.ByteString.EMPTY;
          stateHash_ = com.google.protobuf.ByteString.EMPTY;
          headerSignature_ = com.google.protobuf.ByteString.EMPTY;
        }

        @java.lang.Override
        @SuppressWarnings({"unused"})
        protected java.lang.Object newInstance(
            UnusedPrivateParameter unused) {
          return new ChallengedHeader();
        }

        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_ChallengedHeader_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_ChallengedHeader_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder.class);
        }

        public static final int BASE_TARGET_FIELD_NUMBER = 1;
        private long baseTarget_ = 0L;
        /**
         * int64 base_target = 1;
         * @return The baseTarget.
         */
        @java.lang.Override
        public long getBaseTarget() {
          return baseTarget_;
        }

        public static final int GENERATION_SIGNATURE_FIELD_NUMBER = 2;
        private com.google.protobuf.ByteString generationSignature_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes generation_signature = 2;
         * @return The generationSignature.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getGenerationSignature() {
          return generationSignature_;
        }

        public static final int FEATURE_VOTES_FIELD_NUMBER = 3;
        @SuppressWarnings("serial")
        private com.google.protobuf.Internal.IntList featureVotes_ =
            emptyIntList();
        /**
         * repeated uint32 feature_votes = 3;
         * @return A list containing the featureVotes.
         */
        @java.lang.Override
        public java.util.List
            getFeatureVotesList() {
          return featureVotes_;
        }
        /**
         * repeated uint32 feature_votes = 3;
         * @return The count of featureVotes.
         */
        public int getFeatureVotesCount() {
          return featureVotes_.size();
        }
        /**
         * repeated uint32 feature_votes = 3;
         * @param index The index of the element to return.
         * @return The featureVotes at the given index.
         */
        public int getFeatureVotes(int index) {
          return featureVotes_.getInt(index);
        }
        private int featureVotesMemoizedSerializedSize = -1;

        public static final int TIMESTAMP_FIELD_NUMBER = 4;
        private long timestamp_ = 0L;
        /**
         * int64 timestamp = 4;
         * @return The timestamp.
         */
        @java.lang.Override
        public long getTimestamp() {
          return timestamp_;
        }

        public static final int GENERATOR_FIELD_NUMBER = 5;
        private com.google.protobuf.ByteString generator_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes generator = 5;
         * @return The generator.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getGenerator() {
          return generator_;
        }

        public static final int REWARD_VOTE_FIELD_NUMBER = 6;
        private long rewardVote_ = 0L;
        /**
         * int64 reward_vote = 6;
         * @return The rewardVote.
         */
        @java.lang.Override
        public long getRewardVote() {
          return rewardVote_;
        }

        public static final int STATE_HASH_FIELD_NUMBER = 7;
        private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes state_hash = 7;
         * @return The stateHash.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getStateHash() {
          return stateHash_;
        }

        public static final int HEADER_SIGNATURE_FIELD_NUMBER = 8;
        private com.google.protobuf.ByteString headerSignature_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes header_signature = 8;
         * @return The headerSignature.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getHeaderSignature() {
          return headerSignature_;
        }

        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 {
          getSerializedSize();
          if (baseTarget_ != 0L) {
            output.writeInt64(1, baseTarget_);
          }
          if (!generationSignature_.isEmpty()) {
            output.writeBytes(2, generationSignature_);
          }
          if (getFeatureVotesList().size() > 0) {
            output.writeUInt32NoTag(26);
            output.writeUInt32NoTag(featureVotesMemoizedSerializedSize);
          }
          for (int i = 0; i < featureVotes_.size(); i++) {
            output.writeUInt32NoTag(featureVotes_.getInt(i));
          }
          if (timestamp_ != 0L) {
            output.writeInt64(4, timestamp_);
          }
          if (!generator_.isEmpty()) {
            output.writeBytes(5, generator_);
          }
          if (rewardVote_ != 0L) {
            output.writeInt64(6, rewardVote_);
          }
          if (!stateHash_.isEmpty()) {
            output.writeBytes(7, stateHash_);
          }
          if (!headerSignature_.isEmpty()) {
            output.writeBytes(8, headerSignature_);
          }
          getUnknownFields().writeTo(output);
        }

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

          size = 0;
          if (baseTarget_ != 0L) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt64Size(1, baseTarget_);
          }
          if (!generationSignature_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(2, generationSignature_);
          }
          {
            int dataSize = 0;
            for (int i = 0; i < featureVotes_.size(); i++) {
              dataSize += com.google.protobuf.CodedOutputStream
                .computeUInt32SizeNoTag(featureVotes_.getInt(i));
            }
            size += dataSize;
            if (!getFeatureVotesList().isEmpty()) {
              size += 1;
              size += com.google.protobuf.CodedOutputStream
                  .computeInt32SizeNoTag(dataSize);
            }
            featureVotesMemoizedSerializedSize = dataSize;
          }
          if (timestamp_ != 0L) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt64Size(4, timestamp_);
          }
          if (!generator_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(5, generator_);
          }
          if (rewardVote_ != 0L) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt64Size(6, rewardVote_);
          }
          if (!stateHash_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(7, stateHash_);
          }
          if (!headerSignature_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(8, headerSignature_);
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
           return true;
          }
          if (!(obj instanceof com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader)) {
            return super.equals(obj);
          }
          com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader other = (com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader) obj;

          if (getBaseTarget()
              != other.getBaseTarget()) return false;
          if (!getGenerationSignature()
              .equals(other.getGenerationSignature())) return false;
          if (!getFeatureVotesList()
              .equals(other.getFeatureVotesList())) return false;
          if (getTimestamp()
              != other.getTimestamp()) return false;
          if (!getGenerator()
              .equals(other.getGenerator())) return false;
          if (getRewardVote()
              != other.getRewardVote()) return false;
          if (!getStateHash()
              .equals(other.getStateHash())) return false;
          if (!getHeaderSignature()
              .equals(other.getHeaderSignature())) return false;
          if (!getUnknownFields().equals(other.getUnknownFields())) 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) + BASE_TARGET_FIELD_NUMBER;
          hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
              getBaseTarget());
          hash = (37 * hash) + GENERATION_SIGNATURE_FIELD_NUMBER;
          hash = (53 * hash) + getGenerationSignature().hashCode();
          if (getFeatureVotesCount() > 0) {
            hash = (37 * hash) + FEATURE_VOTES_FIELD_NUMBER;
            hash = (53 * hash) + getFeatureVotesList().hashCode();
          }
          hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
          hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
              getTimestamp());
          hash = (37 * hash) + GENERATOR_FIELD_NUMBER;
          hash = (53 * hash) + getGenerator().hashCode();
          hash = (37 * hash) + REWARD_VOTE_FIELD_NUMBER;
          hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
              getRewardVote());
          hash = (37 * hash) + STATE_HASH_FIELD_NUMBER;
          hash = (53 * hash) + getStateHash().hashCode();
          hash = (37 * hash) + HEADER_SIGNATURE_FIELD_NUMBER;
          hash = (53 * hash) + getHeaderSignature().hashCode();
          hash = (29 * hash) + getUnknownFields().hashCode();
          memoizedHashCode = hash;
          return hash;
        }

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

        public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseWithIOException(PARSER, input);
        }
        public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader 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(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader 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 waves.Block.Header.ChallengedHeader}
         */
        public static final class Builder extends
            com.google.protobuf.GeneratedMessageV3.Builder implements
            // @@protoc_insertion_point(builder_implements:waves.Block.Header.ChallengedHeader)
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor
              getDescriptor() {
            return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_ChallengedHeader_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_ChallengedHeader_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder.class);
          }

          // Construct using com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.newBuilder()
          private Builder() {

          }

          private Builder(
              com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            super(parent);

          }
          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            baseTarget_ = 0L;
            generationSignature_ = com.google.protobuf.ByteString.EMPTY;
            featureVotes_ = emptyIntList();
            timestamp_ = 0L;
            generator_ = com.google.protobuf.ByteString.EMPTY;
            rewardVote_ = 0L;
            stateHash_ = com.google.protobuf.ByteString.EMPTY;
            headerSignature_ = com.google.protobuf.ByteString.EMPTY;
            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor
              getDescriptorForType() {
            return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_ChallengedHeader_descriptor;
          }

          @java.lang.Override
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getDefaultInstanceForType() {
            return com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance();
          }

          @java.lang.Override
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader build() {
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader buildPartial() {
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader result = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader(this);
            if (bitField0_ != 0) { buildPartial0(result); }
            onBuilt();
            return result;
          }

          private void buildPartial0(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.baseTarget_ = baseTarget_;
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.generationSignature_ = generationSignature_;
            }
            if (((from_bitField0_ & 0x00000004) != 0)) {
              featureVotes_.makeImmutable();
              result.featureVotes_ = featureVotes_;
            }
            if (((from_bitField0_ & 0x00000008) != 0)) {
              result.timestamp_ = timestamp_;
            }
            if (((from_bitField0_ & 0x00000010) != 0)) {
              result.generator_ = generator_;
            }
            if (((from_bitField0_ & 0x00000020) != 0)) {
              result.rewardVote_ = rewardVote_;
            }
            if (((from_bitField0_ & 0x00000040) != 0)) {
              result.stateHash_ = stateHash_;
            }
            if (((from_bitField0_ & 0x00000080) != 0)) {
              result.headerSignature_ = headerSignature_;
            }
          }

          @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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader) {
              return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader)other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }

          public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader other) {
            if (other == com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance()) return this;
            if (other.getBaseTarget() != 0L) {
              setBaseTarget(other.getBaseTarget());
            }
            if (other.getGenerationSignature() != com.google.protobuf.ByteString.EMPTY) {
              setGenerationSignature(other.getGenerationSignature());
            }
            if (!other.featureVotes_.isEmpty()) {
              if (featureVotes_.isEmpty()) {
                featureVotes_ = other.featureVotes_;
                featureVotes_.makeImmutable();
                bitField0_ |= 0x00000004;
              } else {
                ensureFeatureVotesIsMutable();
                featureVotes_.addAll(other.featureVotes_);
              }
              onChanged();
            }
            if (other.getTimestamp() != 0L) {
              setTimestamp(other.getTimestamp());
            }
            if (other.getGenerator() != com.google.protobuf.ByteString.EMPTY) {
              setGenerator(other.getGenerator());
            }
            if (other.getRewardVote() != 0L) {
              setRewardVote(other.getRewardVote());
            }
            if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) {
              setStateHash(other.getStateHash());
            }
            if (other.getHeaderSignature() != com.google.protobuf.ByteString.EMPTY) {
              setHeaderSignature(other.getHeaderSignature());
            }
            this.mergeUnknownFields(other.getUnknownFields());
            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 {
            if (extensionRegistry == null) {
              throw new java.lang.NullPointerException();
            }
            try {
              boolean done = false;
              while (!done) {
                int tag = input.readTag();
                switch (tag) {
                  case 0:
                    done = true;
                    break;
                  case 8: {
                    baseTarget_ = input.readInt64();
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 8
                  case 18: {
                    generationSignature_ = input.readBytes();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                  case 24: {
                    int v = input.readUInt32();
                    ensureFeatureVotesIsMutable();
                    featureVotes_.addInt(v);
                    break;
                  } // case 24
                  case 26: {
                    int length = input.readRawVarint32();
                    int limit = input.pushLimit(length);
                    ensureFeatureVotesIsMutable();
                    while (input.getBytesUntilLimit() > 0) {
                      featureVotes_.addInt(input.readUInt32());
                    }
                    input.popLimit(limit);
                    break;
                  } // case 26
                  case 32: {
                    timestamp_ = input.readInt64();
                    bitField0_ |= 0x00000008;
                    break;
                  } // case 32
                  case 42: {
                    generator_ = input.readBytes();
                    bitField0_ |= 0x00000010;
                    break;
                  } // case 42
                  case 48: {
                    rewardVote_ = input.readInt64();
                    bitField0_ |= 0x00000020;
                    break;
                  } // case 48
                  case 58: {
                    stateHash_ = input.readBytes();
                    bitField0_ |= 0x00000040;
                    break;
                  } // case 58
                  case 66: {
                    headerSignature_ = input.readBytes();
                    bitField0_ |= 0x00000080;
                    break;
                  } // case 66
                  default: {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
                } // switch (tag)
              } // while (!done)
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.unwrapIOException();
            } finally {
              onChanged();
            } // finally
            return this;
          }
          private int bitField0_;

          private long baseTarget_ ;
          /**
           * int64 base_target = 1;
           * @return The baseTarget.
           */
          @java.lang.Override
          public long getBaseTarget() {
            return baseTarget_;
          }
          /**
           * int64 base_target = 1;
           * @param value The baseTarget to set.
           * @return This builder for chaining.
           */
          public Builder setBaseTarget(long value) {

            baseTarget_ = value;
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * int64 base_target = 1;
           * @return This builder for chaining.
           */
          public Builder clearBaseTarget() {
            bitField0_ = (bitField0_ & ~0x00000001);
            baseTarget_ = 0L;
            onChanged();
            return this;
          }

          private com.google.protobuf.ByteString generationSignature_ = com.google.protobuf.ByteString.EMPTY;
          /**
           * bytes generation_signature = 2;
           * @return The generationSignature.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getGenerationSignature() {
            return generationSignature_;
          }
          /**
           * bytes generation_signature = 2;
           * @param value The generationSignature to set.
           * @return This builder for chaining.
           */
          public Builder setGenerationSignature(com.google.protobuf.ByteString value) {
            if (value == null) { throw new NullPointerException(); }
            generationSignature_ = value;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           * bytes generation_signature = 2;
           * @return This builder for chaining.
           */
          public Builder clearGenerationSignature() {
            bitField0_ = (bitField0_ & ~0x00000002);
            generationSignature_ = getDefaultInstance().getGenerationSignature();
            onChanged();
            return this;
          }

          private com.google.protobuf.Internal.IntList featureVotes_ = emptyIntList();
          private void ensureFeatureVotesIsMutable() {
            if (!featureVotes_.isModifiable()) {
              featureVotes_ = makeMutableCopy(featureVotes_);
            }
            bitField0_ |= 0x00000004;
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @return A list containing the featureVotes.
           */
          public java.util.List
              getFeatureVotesList() {
            featureVotes_.makeImmutable();
            return featureVotes_;
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @return The count of featureVotes.
           */
          public int getFeatureVotesCount() {
            return featureVotes_.size();
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @param index The index of the element to return.
           * @return The featureVotes at the given index.
           */
          public int getFeatureVotes(int index) {
            return featureVotes_.getInt(index);
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @param index The index to set the value at.
           * @param value The featureVotes to set.
           * @return This builder for chaining.
           */
          public Builder setFeatureVotes(
              int index, int value) {

            ensureFeatureVotesIsMutable();
            featureVotes_.setInt(index, value);
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @param value The featureVotes to add.
           * @return This builder for chaining.
           */
          public Builder addFeatureVotes(int value) {

            ensureFeatureVotesIsMutable();
            featureVotes_.addInt(value);
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @param values The featureVotes to add.
           * @return This builder for chaining.
           */
          public Builder addAllFeatureVotes(
              java.lang.Iterable values) {
            ensureFeatureVotesIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, featureVotes_);
            bitField0_ |= 0x00000004;
            onChanged();
            return this;
          }
          /**
           * repeated uint32 feature_votes = 3;
           * @return This builder for chaining.
           */
          public Builder clearFeatureVotes() {
            featureVotes_ = emptyIntList();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
            return this;
          }

          private long timestamp_ ;
          /**
           * int64 timestamp = 4;
           * @return The timestamp.
           */
          @java.lang.Override
          public long getTimestamp() {
            return timestamp_;
          }
          /**
           * int64 timestamp = 4;
           * @param value The timestamp to set.
           * @return This builder for chaining.
           */
          public Builder setTimestamp(long value) {

            timestamp_ = value;
            bitField0_ |= 0x00000008;
            onChanged();
            return this;
          }
          /**
           * int64 timestamp = 4;
           * @return This builder for chaining.
           */
          public Builder clearTimestamp() {
            bitField0_ = (bitField0_ & ~0x00000008);
            timestamp_ = 0L;
            onChanged();
            return this;
          }

          private com.google.protobuf.ByteString generator_ = com.google.protobuf.ByteString.EMPTY;
          /**
           * bytes generator = 5;
           * @return The generator.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getGenerator() {
            return generator_;
          }
          /**
           * bytes generator = 5;
           * @param value The generator to set.
           * @return This builder for chaining.
           */
          public Builder setGenerator(com.google.protobuf.ByteString value) {
            if (value == null) { throw new NullPointerException(); }
            generator_ = value;
            bitField0_ |= 0x00000010;
            onChanged();
            return this;
          }
          /**
           * bytes generator = 5;
           * @return This builder for chaining.
           */
          public Builder clearGenerator() {
            bitField0_ = (bitField0_ & ~0x00000010);
            generator_ = getDefaultInstance().getGenerator();
            onChanged();
            return this;
          }

          private long rewardVote_ ;
          /**
           * int64 reward_vote = 6;
           * @return The rewardVote.
           */
          @java.lang.Override
          public long getRewardVote() {
            return rewardVote_;
          }
          /**
           * int64 reward_vote = 6;
           * @param value The rewardVote to set.
           * @return This builder for chaining.
           */
          public Builder setRewardVote(long value) {

            rewardVote_ = value;
            bitField0_ |= 0x00000020;
            onChanged();
            return this;
          }
          /**
           * int64 reward_vote = 6;
           * @return This builder for chaining.
           */
          public Builder clearRewardVote() {
            bitField0_ = (bitField0_ & ~0x00000020);
            rewardVote_ = 0L;
            onChanged();
            return this;
          }

          private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY;
          /**
           * bytes state_hash = 7;
           * @return The stateHash.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getStateHash() {
            return stateHash_;
          }
          /**
           * bytes state_hash = 7;
           * @param value The stateHash to set.
           * @return This builder for chaining.
           */
          public Builder setStateHash(com.google.protobuf.ByteString value) {
            if (value == null) { throw new NullPointerException(); }
            stateHash_ = value;
            bitField0_ |= 0x00000040;
            onChanged();
            return this;
          }
          /**
           * bytes state_hash = 7;
           * @return This builder for chaining.
           */
          public Builder clearStateHash() {
            bitField0_ = (bitField0_ & ~0x00000040);
            stateHash_ = getDefaultInstance().getStateHash();
            onChanged();
            return this;
          }

          private com.google.protobuf.ByteString headerSignature_ = com.google.protobuf.ByteString.EMPTY;
          /**
           * bytes header_signature = 8;
           * @return The headerSignature.
           */
          @java.lang.Override
          public com.google.protobuf.ByteString getHeaderSignature() {
            return headerSignature_;
          }
          /**
           * bytes header_signature = 8;
           * @param value The headerSignature to set.
           * @return This builder for chaining.
           */
          public Builder setHeaderSignature(com.google.protobuf.ByteString value) {
            if (value == null) { throw new NullPointerException(); }
            headerSignature_ = value;
            bitField0_ |= 0x00000080;
            onChanged();
            return this;
          }
          /**
           * bytes header_signature = 8;
           * @return This builder for chaining.
           */
          public Builder clearHeaderSignature() {
            bitField0_ = (bitField0_ & ~0x00000080);
            headerSignature_ = getDefaultInstance().getHeaderSignature();
            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:waves.Block.Header.ChallengedHeader)
        }

        // @@protoc_insertion_point(class_scope:waves.Block.Header.ChallengedHeader)
        private static final com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader DEFAULT_INSTANCE;
        static {
          DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader();
        }

        public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser
            PARSER = new com.google.protobuf.AbstractParser() {
          @java.lang.Override
          public ChallengedHeader parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }

      }

      private int bitField0_;
      public static final int CHAIN_ID_FIELD_NUMBER = 1;
      private int chainId_ = 0;
      /**
       * int32 chain_id = 1;
       * @return The chainId.
       */
      @java.lang.Override
      public int getChainId() {
        return chainId_;
      }

      public static final int REFERENCE_FIELD_NUMBER = 2;
      private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes reference = 2;
       * @return The reference.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getReference() {
        return reference_;
      }

      public static final int BASE_TARGET_FIELD_NUMBER = 3;
      private long baseTarget_ = 0L;
      /**
       * int64 base_target = 3;
       * @return The baseTarget.
       */
      @java.lang.Override
      public long getBaseTarget() {
        return baseTarget_;
      }

      public static final int GENERATION_SIGNATURE_FIELD_NUMBER = 4;
      private com.google.protobuf.ByteString generationSignature_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes generation_signature = 4;
       * @return The generationSignature.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getGenerationSignature() {
        return generationSignature_;
      }

      public static final int FEATURE_VOTES_FIELD_NUMBER = 5;
      @SuppressWarnings("serial")
      private com.google.protobuf.Internal.IntList featureVotes_ =
          emptyIntList();
      /**
       * repeated uint32 feature_votes = 5;
       * @return A list containing the featureVotes.
       */
      @java.lang.Override
      public java.util.List
          getFeatureVotesList() {
        return featureVotes_;
      }
      /**
       * repeated uint32 feature_votes = 5;
       * @return The count of featureVotes.
       */
      public int getFeatureVotesCount() {
        return featureVotes_.size();
      }
      /**
       * repeated uint32 feature_votes = 5;
       * @param index The index of the element to return.
       * @return The featureVotes at the given index.
       */
      public int getFeatureVotes(int index) {
        return featureVotes_.getInt(index);
      }
      private int featureVotesMemoizedSerializedSize = -1;

      public static final int TIMESTAMP_FIELD_NUMBER = 6;
      private long timestamp_ = 0L;
      /**
       * int64 timestamp = 6;
       * @return The timestamp.
       */
      @java.lang.Override
      public long getTimestamp() {
        return timestamp_;
      }

      public static final int VERSION_FIELD_NUMBER = 7;
      private int version_ = 0;
      /**
       * int32 version = 7;
       * @return The version.
       */
      @java.lang.Override
      public int getVersion() {
        return version_;
      }

      public static final int GENERATOR_FIELD_NUMBER = 8;
      private com.google.protobuf.ByteString generator_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes generator = 8;
       * @return The generator.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getGenerator() {
        return generator_;
      }

      public static final int REWARD_VOTE_FIELD_NUMBER = 9;
      private long rewardVote_ = 0L;
      /**
       * int64 reward_vote = 9;
       * @return The rewardVote.
       */
      @java.lang.Override
      public long getRewardVote() {
        return rewardVote_;
      }

      public static final int TRANSACTIONS_ROOT_FIELD_NUMBER = 10;
      private com.google.protobuf.ByteString transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes transactions_root = 10;
       * @return The transactionsRoot.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTransactionsRoot() {
        return transactionsRoot_;
      }

      public static final int STATE_HASH_FIELD_NUMBER = 11;
      private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes state_hash = 11;
       * @return The stateHash.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getStateHash() {
        return stateHash_;
      }

      public static final int CHALLENGED_HEADER_FIELD_NUMBER = 12;
      private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader challengedHeader_;
      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       * @return Whether the challengedHeader field is set.
       */
      @java.lang.Override
      public boolean hasChallengedHeader() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       * @return The challengedHeader.
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getChallengedHeader() {
        return challengedHeader_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance() : challengedHeader_;
      }
      /**
       * .waves.Block.Header.ChallengedHeader challenged_header = 12;
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder getChallengedHeaderOrBuilder() {
        return challengedHeader_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance() : challengedHeader_;
      }

      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 {
        getSerializedSize();
        if (chainId_ != 0) {
          output.writeInt32(1, chainId_);
        }
        if (!reference_.isEmpty()) {
          output.writeBytes(2, reference_);
        }
        if (baseTarget_ != 0L) {
          output.writeInt64(3, baseTarget_);
        }
        if (!generationSignature_.isEmpty()) {
          output.writeBytes(4, generationSignature_);
        }
        if (getFeatureVotesList().size() > 0) {
          output.writeUInt32NoTag(42);
          output.writeUInt32NoTag(featureVotesMemoizedSerializedSize);
        }
        for (int i = 0; i < featureVotes_.size(); i++) {
          output.writeUInt32NoTag(featureVotes_.getInt(i));
        }
        if (timestamp_ != 0L) {
          output.writeInt64(6, timestamp_);
        }
        if (version_ != 0) {
          output.writeInt32(7, version_);
        }
        if (!generator_.isEmpty()) {
          output.writeBytes(8, generator_);
        }
        if (rewardVote_ != 0L) {
          output.writeInt64(9, rewardVote_);
        }
        if (!transactionsRoot_.isEmpty()) {
          output.writeBytes(10, transactionsRoot_);
        }
        if (!stateHash_.isEmpty()) {
          output.writeBytes(11, stateHash_);
        }
        if (((bitField0_ & 0x00000001) != 0)) {
          output.writeMessage(12, getChallengedHeader());
        }
        getUnknownFields().writeTo(output);
      }

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

        size = 0;
        if (chainId_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt32Size(1, chainId_);
        }
        if (!reference_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(2, reference_);
        }
        if (baseTarget_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(3, baseTarget_);
        }
        if (!generationSignature_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(4, generationSignature_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < featureVotes_.size(); i++) {
            dataSize += com.google.protobuf.CodedOutputStream
              .computeUInt32SizeNoTag(featureVotes_.getInt(i));
          }
          size += dataSize;
          if (!getFeatureVotesList().isEmpty()) {
            size += 1;
            size += com.google.protobuf.CodedOutputStream
                .computeInt32SizeNoTag(dataSize);
          }
          featureVotesMemoizedSerializedSize = dataSize;
        }
        if (timestamp_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(6, timestamp_);
        }
        if (version_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt32Size(7, version_);
        }
        if (!generator_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(8, generator_);
        }
        if (rewardVote_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(9, rewardVote_);
        }
        if (!transactionsRoot_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(10, transactionsRoot_);
        }
        if (!stateHash_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(11, stateHash_);
        }
        if (((bitField0_ & 0x00000001) != 0)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(12, getChallengedHeader());
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header)) {
          return super.equals(obj);
        }
        com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header other = (com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header) obj;

        if (getChainId()
            != other.getChainId()) return false;
        if (!getReference()
            .equals(other.getReference())) return false;
        if (getBaseTarget()
            != other.getBaseTarget()) return false;
        if (!getGenerationSignature()
            .equals(other.getGenerationSignature())) return false;
        if (!getFeatureVotesList()
            .equals(other.getFeatureVotesList())) return false;
        if (getTimestamp()
            != other.getTimestamp()) return false;
        if (getVersion()
            != other.getVersion()) return false;
        if (!getGenerator()
            .equals(other.getGenerator())) return false;
        if (getRewardVote()
            != other.getRewardVote()) return false;
        if (!getTransactionsRoot()
            .equals(other.getTransactionsRoot())) return false;
        if (!getStateHash()
            .equals(other.getStateHash())) return false;
        if (hasChallengedHeader() != other.hasChallengedHeader()) return false;
        if (hasChallengedHeader()) {
          if (!getChallengedHeader()
              .equals(other.getChallengedHeader())) return false;
        }
        if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CHAIN_ID_FIELD_NUMBER;
        hash = (53 * hash) + getChainId();
        hash = (37 * hash) + REFERENCE_FIELD_NUMBER;
        hash = (53 * hash) + getReference().hashCode();
        hash = (37 * hash) + BASE_TARGET_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getBaseTarget());
        hash = (37 * hash) + GENERATION_SIGNATURE_FIELD_NUMBER;
        hash = (53 * hash) + getGenerationSignature().hashCode();
        if (getFeatureVotesCount() > 0) {
          hash = (37 * hash) + FEATURE_VOTES_FIELD_NUMBER;
          hash = (53 * hash) + getFeatureVotesList().hashCode();
        }
        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getTimestamp());
        hash = (37 * hash) + VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getVersion();
        hash = (37 * hash) + GENERATOR_FIELD_NUMBER;
        hash = (53 * hash) + getGenerator().hashCode();
        hash = (37 * hash) + REWARD_VOTE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getRewardVote());
        hash = (37 * hash) + TRANSACTIONS_ROOT_FIELD_NUMBER;
        hash = (53 * hash) + getTransactionsRoot().hashCode();
        hash = (37 * hash) + STATE_HASH_FIELD_NUMBER;
        hash = (53 * hash) + getStateHash().hashCode();
        if (hasChallengedHeader()) {
          hash = (37 * hash) + CHALLENGED_HEADER_FIELD_NUMBER;
          hash = (53 * hash) + getChallengedHeader().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

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

      public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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 waves.Block.Header}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.Block.Header)
          com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder.class);
        }

        // Construct using com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
            getChallengedHeaderFieldBuilder();
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          chainId_ = 0;
          reference_ = com.google.protobuf.ByteString.EMPTY;
          baseTarget_ = 0L;
          generationSignature_ = com.google.protobuf.ByteString.EMPTY;
          featureVotes_ = emptyIntList();
          timestamp_ = 0L;
          version_ = 0;
          generator_ = com.google.protobuf.ByteString.EMPTY;
          rewardVote_ = 0L;
          transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
          stateHash_ = com.google.protobuf.ByteString.EMPTY;
          challengedHeader_ = null;
          if (challengedHeaderBuilder_ != null) {
            challengedHeaderBuilder_.dispose();
            challengedHeaderBuilder_ = null;
          }
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstanceForType() {
          return com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header build() {
          com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header buildPartial() {
          com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header result = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header(this);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.chainId_ = chainId_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.reference_ = reference_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.baseTarget_ = baseTarget_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.generationSignature_ = generationSignature_;
          }
          if (((from_bitField0_ & 0x00000010) != 0)) {
            featureVotes_.makeImmutable();
            result.featureVotes_ = featureVotes_;
          }
          if (((from_bitField0_ & 0x00000020) != 0)) {
            result.timestamp_ = timestamp_;
          }
          if (((from_bitField0_ & 0x00000040) != 0)) {
            result.version_ = version_;
          }
          if (((from_bitField0_ & 0x00000080) != 0)) {
            result.generator_ = generator_;
          }
          if (((from_bitField0_ & 0x00000100) != 0)) {
            result.rewardVote_ = rewardVote_;
          }
          if (((from_bitField0_ & 0x00000200) != 0)) {
            result.transactionsRoot_ = transactionsRoot_;
          }
          if (((from_bitField0_ & 0x00000400) != 0)) {
            result.stateHash_ = stateHash_;
          }
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000800) != 0)) {
            result.challengedHeader_ = challengedHeaderBuilder_ == null
                ? challengedHeader_
                : challengedHeaderBuilder_.build();
            to_bitField0_ |= 0x00000001;
          }
          result.bitField0_ |= to_bitField0_;
        }

        @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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header) {
            return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header other) {
          if (other == com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance()) return this;
          if (other.getChainId() != 0) {
            setChainId(other.getChainId());
          }
          if (other.getReference() != com.google.protobuf.ByteString.EMPTY) {
            setReference(other.getReference());
          }
          if (other.getBaseTarget() != 0L) {
            setBaseTarget(other.getBaseTarget());
          }
          if (other.getGenerationSignature() != com.google.protobuf.ByteString.EMPTY) {
            setGenerationSignature(other.getGenerationSignature());
          }
          if (!other.featureVotes_.isEmpty()) {
            if (featureVotes_.isEmpty()) {
              featureVotes_ = other.featureVotes_;
              featureVotes_.makeImmutable();
              bitField0_ |= 0x00000010;
            } else {
              ensureFeatureVotesIsMutable();
              featureVotes_.addAll(other.featureVotes_);
            }
            onChanged();
          }
          if (other.getTimestamp() != 0L) {
            setTimestamp(other.getTimestamp());
          }
          if (other.getVersion() != 0) {
            setVersion(other.getVersion());
          }
          if (other.getGenerator() != com.google.protobuf.ByteString.EMPTY) {
            setGenerator(other.getGenerator());
          }
          if (other.getRewardVote() != 0L) {
            setRewardVote(other.getRewardVote());
          }
          if (other.getTransactionsRoot() != com.google.protobuf.ByteString.EMPTY) {
            setTransactionsRoot(other.getTransactionsRoot());
          }
          if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) {
            setStateHash(other.getStateHash());
          }
          if (other.hasChallengedHeader()) {
            mergeChallengedHeader(other.getChallengedHeader());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          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 {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 8: {
                  chainId_ = input.readInt32();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
                case 18: {
                  reference_ = input.readBytes();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
                case 24: {
                  baseTarget_ = input.readInt64();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
                case 34: {
                  generationSignature_ = input.readBytes();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
                case 40: {
                  int v = input.readUInt32();
                  ensureFeatureVotesIsMutable();
                  featureVotes_.addInt(v);
                  break;
                } // case 40
                case 42: {
                  int length = input.readRawVarint32();
                  int limit = input.pushLimit(length);
                  ensureFeatureVotesIsMutable();
                  while (input.getBytesUntilLimit() > 0) {
                    featureVotes_.addInt(input.readUInt32());
                  }
                  input.popLimit(limit);
                  break;
                } // case 42
                case 48: {
                  timestamp_ = input.readInt64();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 48
                case 56: {
                  version_ = input.readInt32();
                  bitField0_ |= 0x00000040;
                  break;
                } // case 56
                case 66: {
                  generator_ = input.readBytes();
                  bitField0_ |= 0x00000080;
                  break;
                } // case 66
                case 72: {
                  rewardVote_ = input.readInt64();
                  bitField0_ |= 0x00000100;
                  break;
                } // case 72
                case 82: {
                  transactionsRoot_ = input.readBytes();
                  bitField0_ |= 0x00000200;
                  break;
                } // case 82
                case 90: {
                  stateHash_ = input.readBytes();
                  bitField0_ |= 0x00000400;
                  break;
                } // case 90
                case 98: {
                  input.readMessage(
                      getChallengedHeaderFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000800;
                  break;
                } // case 98
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private int chainId_ ;
        /**
         * int32 chain_id = 1;
         * @return The chainId.
         */
        @java.lang.Override
        public int getChainId() {
          return chainId_;
        }
        /**
         * int32 chain_id = 1;
         * @param value The chainId to set.
         * @return This builder for chaining.
         */
        public Builder setChainId(int value) {

          chainId_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * int32 chain_id = 1;
         * @return This builder for chaining.
         */
        public Builder clearChainId() {
          bitField0_ = (bitField0_ & ~0x00000001);
          chainId_ = 0;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes reference = 2;
         * @return The reference.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getReference() {
          return reference_;
        }
        /**
         * bytes reference = 2;
         * @param value The reference to set.
         * @return This builder for chaining.
         */
        public Builder setReference(com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          reference_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * bytes reference = 2;
         * @return This builder for chaining.
         */
        public Builder clearReference() {
          bitField0_ = (bitField0_ & ~0x00000002);
          reference_ = getDefaultInstance().getReference();
          onChanged();
          return this;
        }

        private long baseTarget_ ;
        /**
         * int64 base_target = 3;
         * @return The baseTarget.
         */
        @java.lang.Override
        public long getBaseTarget() {
          return baseTarget_;
        }
        /**
         * int64 base_target = 3;
         * @param value The baseTarget to set.
         * @return This builder for chaining.
         */
        public Builder setBaseTarget(long value) {

          baseTarget_ = value;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * int64 base_target = 3;
         * @return This builder for chaining.
         */
        public Builder clearBaseTarget() {
          bitField0_ = (bitField0_ & ~0x00000004);
          baseTarget_ = 0L;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString generationSignature_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes generation_signature = 4;
         * @return The generationSignature.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getGenerationSignature() {
          return generationSignature_;
        }
        /**
         * bytes generation_signature = 4;
         * @param value The generationSignature to set.
         * @return This builder for chaining.
         */
        public Builder setGenerationSignature(com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          generationSignature_ = value;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * bytes generation_signature = 4;
         * @return This builder for chaining.
         */
        public Builder clearGenerationSignature() {
          bitField0_ = (bitField0_ & ~0x00000008);
          generationSignature_ = getDefaultInstance().getGenerationSignature();
          onChanged();
          return this;
        }

        private com.google.protobuf.Internal.IntList featureVotes_ = emptyIntList();
        private void ensureFeatureVotesIsMutable() {
          if (!featureVotes_.isModifiable()) {
            featureVotes_ = makeMutableCopy(featureVotes_);
          }
          bitField0_ |= 0x00000010;
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @return A list containing the featureVotes.
         */
        public java.util.List
            getFeatureVotesList() {
          featureVotes_.makeImmutable();
          return featureVotes_;
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @return The count of featureVotes.
         */
        public int getFeatureVotesCount() {
          return featureVotes_.size();
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @param index The index of the element to return.
         * @return The featureVotes at the given index.
         */
        public int getFeatureVotes(int index) {
          return featureVotes_.getInt(index);
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @param index The index to set the value at.
         * @param value The featureVotes to set.
         * @return This builder for chaining.
         */
        public Builder setFeatureVotes(
            int index, int value) {

          ensureFeatureVotesIsMutable();
          featureVotes_.setInt(index, value);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @param value The featureVotes to add.
         * @return This builder for chaining.
         */
        public Builder addFeatureVotes(int value) {

          ensureFeatureVotesIsMutable();
          featureVotes_.addInt(value);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @param values The featureVotes to add.
         * @return This builder for chaining.
         */
        public Builder addAllFeatureVotes(
            java.lang.Iterable values) {
          ensureFeatureVotesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, featureVotes_);
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * repeated uint32 feature_votes = 5;
         * @return This builder for chaining.
         */
        public Builder clearFeatureVotes() {
          featureVotes_ = emptyIntList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
          return this;
        }

        private long timestamp_ ;
        /**
         * int64 timestamp = 6;
         * @return The timestamp.
         */
        @java.lang.Override
        public long getTimestamp() {
          return timestamp_;
        }
        /**
         * int64 timestamp = 6;
         * @param value The timestamp to set.
         * @return This builder for chaining.
         */
        public Builder setTimestamp(long value) {

          timestamp_ = value;
          bitField0_ |= 0x00000020;
          onChanged();
          return this;
        }
        /**
         * int64 timestamp = 6;
         * @return This builder for chaining.
         */
        public Builder clearTimestamp() {
          bitField0_ = (bitField0_ & ~0x00000020);
          timestamp_ = 0L;
          onChanged();
          return this;
        }

        private int version_ ;
        /**
         * int32 version = 7;
         * @return The version.
         */
        @java.lang.Override
        public int getVersion() {
          return version_;
        }
        /**
         * int32 version = 7;
         * @param value The version to set.
         * @return This builder for chaining.
         */
        public Builder setVersion(int value) {

          version_ = value;
          bitField0_ |= 0x00000040;
          onChanged();
          return this;
        }
        /**
         * int32 version = 7;
         * @return This builder for chaining.
         */
        public Builder clearVersion() {
          bitField0_ = (bitField0_ & ~0x00000040);
          version_ = 0;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString generator_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes generator = 8;
         * @return The generator.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getGenerator() {
          return generator_;
        }
        /**
         * bytes generator = 8;
         * @param value The generator to set.
         * @return This builder for chaining.
         */
        public Builder setGenerator(com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          generator_ = value;
          bitField0_ |= 0x00000080;
          onChanged();
          return this;
        }
        /**
         * bytes generator = 8;
         * @return This builder for chaining.
         */
        public Builder clearGenerator() {
          bitField0_ = (bitField0_ & ~0x00000080);
          generator_ = getDefaultInstance().getGenerator();
          onChanged();
          return this;
        }

        private long rewardVote_ ;
        /**
         * int64 reward_vote = 9;
         * @return The rewardVote.
         */
        @java.lang.Override
        public long getRewardVote() {
          return rewardVote_;
        }
        /**
         * int64 reward_vote = 9;
         * @param value The rewardVote to set.
         * @return This builder for chaining.
         */
        public Builder setRewardVote(long value) {

          rewardVote_ = value;
          bitField0_ |= 0x00000100;
          onChanged();
          return this;
        }
        /**
         * int64 reward_vote = 9;
         * @return This builder for chaining.
         */
        public Builder clearRewardVote() {
          bitField0_ = (bitField0_ & ~0x00000100);
          rewardVote_ = 0L;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes transactions_root = 10;
         * @return The transactionsRoot.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getTransactionsRoot() {
          return transactionsRoot_;
        }
        /**
         * bytes transactions_root = 10;
         * @param value The transactionsRoot to set.
         * @return This builder for chaining.
         */
        public Builder setTransactionsRoot(com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          transactionsRoot_ = value;
          bitField0_ |= 0x00000200;
          onChanged();
          return this;
        }
        /**
         * bytes transactions_root = 10;
         * @return This builder for chaining.
         */
        public Builder clearTransactionsRoot() {
          bitField0_ = (bitField0_ & ~0x00000200);
          transactionsRoot_ = getDefaultInstance().getTransactionsRoot();
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes state_hash = 11;
         * @return The stateHash.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getStateHash() {
          return stateHash_;
        }
        /**
         * bytes state_hash = 11;
         * @param value The stateHash to set.
         * @return This builder for chaining.
         */
        public Builder setStateHash(com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          stateHash_ = value;
          bitField0_ |= 0x00000400;
          onChanged();
          return this;
        }
        /**
         * bytes state_hash = 11;
         * @return This builder for chaining.
         */
        public Builder clearStateHash() {
          bitField0_ = (bitField0_ & ~0x00000400);
          stateHash_ = getDefaultInstance().getStateHash();
          onChanged();
          return this;
        }

        private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader challengedHeader_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder> challengedHeaderBuilder_;
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         * @return Whether the challengedHeader field is set.
         */
        public boolean hasChallengedHeader() {
          return ((bitField0_ & 0x00000800) != 0);
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         * @return The challengedHeader.
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader getChallengedHeader() {
          if (challengedHeaderBuilder_ == null) {
            return challengedHeader_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance() : challengedHeader_;
          } else {
            return challengedHeaderBuilder_.getMessage();
          }
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public Builder setChallengedHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader value) {
          if (challengedHeaderBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            challengedHeader_ = value;
          } else {
            challengedHeaderBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000800;
          onChanged();
          return this;
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public Builder setChallengedHeader(
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder builderForValue) {
          if (challengedHeaderBuilder_ == null) {
            challengedHeader_ = builderForValue.build();
          } else {
            challengedHeaderBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000800;
          onChanged();
          return this;
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public Builder mergeChallengedHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader value) {
          if (challengedHeaderBuilder_ == null) {
            if (((bitField0_ & 0x00000800) != 0) &&
              challengedHeader_ != null &&
              challengedHeader_ != com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance()) {
              getChallengedHeaderBuilder().mergeFrom(value);
            } else {
              challengedHeader_ = value;
            }
          } else {
            challengedHeaderBuilder_.mergeFrom(value);
          }
          if (challengedHeader_ != null) {
            bitField0_ |= 0x00000800;
            onChanged();
          }
          return this;
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public Builder clearChallengedHeader() {
          bitField0_ = (bitField0_ & ~0x00000800);
          challengedHeader_ = null;
          if (challengedHeaderBuilder_ != null) {
            challengedHeaderBuilder_.dispose();
            challengedHeaderBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder getChallengedHeaderBuilder() {
          bitField0_ |= 0x00000800;
          onChanged();
          return getChallengedHeaderFieldBuilder().getBuilder();
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder getChallengedHeaderOrBuilder() {
          if (challengedHeaderBuilder_ != null) {
            return challengedHeaderBuilder_.getMessageOrBuilder();
          } else {
            return challengedHeader_ == null ?
                com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.getDefaultInstance() : challengedHeader_;
          }
        }
        /**
         * .waves.Block.Header.ChallengedHeader challenged_header = 12;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder> 
            getChallengedHeaderFieldBuilder() {
          if (challengedHeaderBuilder_ == null) {
            challengedHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeader.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.ChallengedHeaderOrBuilder>(
                    getChallengedHeader(),
                    getParentForChildren(),
                    isClean());
            challengedHeader_ = null;
          }
          return challengedHeaderBuilder_;
        }
        @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:waves.Block.Header)
      }

      // @@protoc_insertion_point(class_scope:waves.Block.Header)
      private static final com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header();
      }

      public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header header_; /** * .waves.Block.Header header = 1; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return ((bitField0_ & 0x00000001) != 0); } /** * .waves.Block.Header header = 1; * @return The header. */ @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader() { return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_; } /** * .waves.Block.Header header = 1; */ @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder() { return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } public static final int TRANSACTIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List transactions_; /** * repeated .waves.SignedTransaction transactions = 3; */ @java.lang.Override public java.util.List getTransactionsList() { return transactions_; } /** * repeated .waves.SignedTransaction transactions = 3; */ @java.lang.Override public java.util.List getTransactionsOrBuilderList() { return transactions_; } /** * repeated .waves.SignedTransaction transactions = 3; */ @java.lang.Override public int getTransactionsCount() { return transactions_.size(); } /** * repeated .waves.SignedTransaction transactions = 3; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) { return transactions_.get(index); } /** * repeated .waves.SignedTransaction transactions = 3; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder( int index) { return transactions_.get(index); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHeader()); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } for (int i = 0; i < transactions_.size(); i++) { output.writeMessage(3, transactions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } for (int i = 0; i < transactions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, transactions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.protobuf.block.BlockOuterClass.Block)) { return super.equals(obj); } com.wavesplatform.protobuf.block.BlockOuterClass.Block other = (com.wavesplatform.protobuf.block.BlockOuterClass.Block) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (!getSignature() .equals(other.getSignature())) return false; if (!getTransactionsList() .equals(other.getTransactionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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(); } hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); if (getTransactionsCount() > 0) { hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.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 com.wavesplatform.protobuf.block.BlockOuterClass.Block parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.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 com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.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(com.wavesplatform.protobuf.block.BlockOuterClass.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 waves.Block} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.Block) com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.protobuf.block.BlockOuterClass.Block.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder.class); } // Construct using com.wavesplatform.protobuf.block.BlockOuterClass.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) { getHeaderFieldBuilder(); getTransactionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; header_ = null; if (headerBuilder_ != null) { headerBuilder_.dispose(); headerBuilder_ = null; } signature_ = com.google.protobuf.ByteString.EMPTY; if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); } else { transactions_ = null; transactionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstanceForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block build() { com.wavesplatform.protobuf.block.BlockOuterClass.Block result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block buildPartial() { com.wavesplatform.protobuf.block.BlockOuterClass.Block result = new com.wavesplatform.protobuf.block.BlockOuterClass.Block(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.protobuf.block.BlockOuterClass.Block result) { if (transactionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); bitField0_ = (bitField0_ & ~0x00000004); } result.transactions_ = transactions_; } else { result.transactions_ = transactionsBuilder_.build(); } } private void buildPartial0(com.wavesplatform.protobuf.block.BlockOuterClass.Block result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.signature_ = signature_; } result.bitField0_ |= to_bitField0_; } @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 com.wavesplatform.protobuf.block.BlockOuterClass.Block) { return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.Block)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.Block other) { if (other == com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } if (transactionsBuilder_ == null) { if (!other.transactions_.isEmpty()) { if (transactions_.isEmpty()) { transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTransactionsIsMutable(); transactions_.addAll(other.transactions_); } onChanged(); } } else { if (!other.transactions_.isEmpty()) { if (transactionsBuilder_.isEmpty()) { transactionsBuilder_.dispose(); transactionsBuilder_ = null; transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000004); transactionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionsFieldBuilder() : null; } else { transactionsBuilder_.addAllMessages(other.transactions_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getHeaderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { signature_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction m = input.readMessage( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.parser(), extensionRegistry); if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(m); } else { transactionsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header header_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder> headerBuilder_; /** * .waves.Block.Header header = 1; * @return Whether the header field is set. */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) != 0); } /** * .waves.Block.Header header = 1; * @return The header. */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .waves.Block.Header header = 1; */ public Builder setHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; } else { headerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .waves.Block.Header header = 1; */ public Builder setHeader( com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .waves.Block.Header header = 1; */ public Builder mergeHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && header_ != null && header_ != com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance()) { getHeaderBuilder().mergeFrom(value); } else { header_ = value; } } else { headerBuilder_.mergeFrom(value); } if (header_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .waves.Block.Header header = 1; */ public Builder clearHeader() { bitField0_ = (bitField0_ & ~0x00000001); header_ = null; if (headerBuilder_ != null) { headerBuilder_.dispose(); headerBuilder_ = null; } onChanged(); return this; } /** * .waves.Block.Header header = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder getHeaderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .waves.Block.Header header = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_; } } /** * .waves.Block.Header header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000002); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private java.util.List transactions_ = java.util.Collections.emptyList(); private void ensureTransactionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { transactions_ = new java.util.ArrayList(transactions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> transactionsBuilder_; /** * repeated .waves.SignedTransaction transactions = 3; */ public java.util.List getTransactionsList() { if (transactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transactions_); } else { return transactionsBuilder_.getMessageList(); } } /** * repeated .waves.SignedTransaction transactions = 3; */ public int getTransactionsCount() { if (transactionsBuilder_ == null) { return transactions_.size(); } else { return transactionsBuilder_.getCount(); } } /** * repeated .waves.SignedTransaction transactions = 3; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessage(index); } } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder setTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.set(index, value); onChanged(); } else { transactionsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder setTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.set(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder addTransactions(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(value); onChanged(); } else { transactionsBuilder_.addMessage(value); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder addTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(index, value); onChanged(); } else { transactionsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder addTransactions( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder addTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder addAllTransactions( java.lang.Iterable values) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactions_); onChanged(); } else { transactionsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder clearTransactions() { if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { transactionsBuilder_.clear(); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public Builder removeTransactions(int index) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.remove(index); onChanged(); } else { transactionsBuilder_.remove(index); } return this; } /** * repeated .waves.SignedTransaction transactions = 3; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder getTransactionsBuilder( int index) { return getTransactionsFieldBuilder().getBuilder(index); } /** * repeated .waves.SignedTransaction transactions = 3; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder( int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.SignedTransaction transactions = 3; */ public java.util.List getTransactionsOrBuilderList() { if (transactionsBuilder_ != null) { return transactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactions_); } } /** * repeated .waves.SignedTransaction transactions = 3; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder() { return getTransactionsFieldBuilder().addBuilder( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance()); } /** * repeated .waves.SignedTransaction transactions = 3; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder( int index) { return getTransactionsFieldBuilder().addBuilder( index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance()); } /** * repeated .waves.SignedTransaction transactions = 3; */ public java.util.List getTransactionsBuilderList() { return getTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> getTransactionsFieldBuilder() { if (transactionsBuilder_ == null) { transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>( transactions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); transactions_ = null; } return transactionsBuilder_; } @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:waves.Block) } // @@protoc_insertion_point(class_scope:waves.Block) private static final com.wavesplatform.protobuf.block.BlockOuterClass.Block DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.Block(); } public static com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Block parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MicroBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.MicroBlock) com.google.protobuf.MessageOrBuilder { /** * int32 version = 1; * @return The version. */ int getVersion(); /** * bytes reference = 2; * @return The reference. */ com.google.protobuf.ByteString getReference(); /** * bytes updated_block_signature = 3; * @return The updatedBlockSignature. */ com.google.protobuf.ByteString getUpdatedBlockSignature(); /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ com.google.protobuf.ByteString getSenderPublicKey(); /** * repeated .waves.SignedTransaction transactions = 5; */ java.util.List getTransactionsList(); /** * repeated .waves.SignedTransaction transactions = 5; */ com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index); /** * repeated .waves.SignedTransaction transactions = 5; */ int getTransactionsCount(); /** * repeated .waves.SignedTransaction transactions = 5; */ java.util.List getTransactionsOrBuilderList(); /** * repeated .waves.SignedTransaction transactions = 5; */ com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder( int index); /** * bytes state_hash = 6; * @return The stateHash. */ com.google.protobuf.ByteString getStateHash(); } /** * Protobuf type {@code waves.MicroBlock} */ public static final class MicroBlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.MicroBlock) MicroBlockOrBuilder { private static final long serialVersionUID = 0L; // Use MicroBlock.newBuilder() to construct. private MicroBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MicroBlock() { reference_ = com.google.protobuf.ByteString.EMPTY; updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY; senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; transactions_ = java.util.Collections.emptyList(); stateHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MicroBlock(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private int version_ = 0; /** * int32 version = 1; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int REFERENCE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY; /** * bytes reference = 2; * @return The reference. */ @java.lang.Override public com.google.protobuf.ByteString getReference() { return reference_; } public static final int UPDATED_BLOCK_SIGNATURE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes updated_block_signature = 3; * @return The updatedBlockSignature. */ @java.lang.Override public com.google.protobuf.ByteString getUpdatedBlockSignature() { return updatedBlockSignature_; } public static final int SENDER_PUBLIC_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ @java.lang.Override public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; } public static final int TRANSACTIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List transactions_; /** * repeated .waves.SignedTransaction transactions = 5; */ @java.lang.Override public java.util.List getTransactionsList() { return transactions_; } /** * repeated .waves.SignedTransaction transactions = 5; */ @java.lang.Override public java.util.List getTransactionsOrBuilderList() { return transactions_; } /** * repeated .waves.SignedTransaction transactions = 5; */ @java.lang.Override public int getTransactionsCount() { return transactions_.size(); } /** * repeated .waves.SignedTransaction transactions = 5; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) { return transactions_.get(index); } /** * repeated .waves.SignedTransaction transactions = 5; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder( int index) { return transactions_.get(index); } public static final int STATE_HASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes state_hash = 6; * @return The stateHash. */ @java.lang.Override public com.google.protobuf.ByteString getStateHash() { return stateHash_; } 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 (version_ != 0) { output.writeInt32(1, version_); } if (!reference_.isEmpty()) { output.writeBytes(2, reference_); } if (!updatedBlockSignature_.isEmpty()) { output.writeBytes(3, updatedBlockSignature_); } if (!senderPublicKey_.isEmpty()) { output.writeBytes(4, senderPublicKey_); } for (int i = 0; i < transactions_.size(); i++) { output.writeMessage(5, transactions_.get(i)); } if (!stateHash_.isEmpty()) { output.writeBytes(6, stateHash_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (!reference_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, reference_); } if (!updatedBlockSignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, updatedBlockSignature_); } if (!senderPublicKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, senderPublicKey_); } for (int i = 0; i < transactions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, transactions_.get(i)); } if (!stateHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, stateHash_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock)) { return super.equals(obj); } com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock other = (com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock) obj; if (getVersion() != other.getVersion()) return false; if (!getReference() .equals(other.getReference())) return false; if (!getUpdatedBlockSignature() .equals(other.getUpdatedBlockSignature())) return false; if (!getSenderPublicKey() .equals(other.getSenderPublicKey())) return false; if (!getTransactionsList() .equals(other.getTransactionsList())) return false; if (!getStateHash() .equals(other.getStateHash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); hash = (37 * hash) + UPDATED_BLOCK_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getUpdatedBlockSignature().hashCode(); hash = (37 * hash) + SENDER_PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getSenderPublicKey().hashCode(); if (getTransactionsCount() > 0) { hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransactionsList().hashCode(); } hash = (37 * hash) + STATE_HASH_FIELD_NUMBER; hash = (53 * hash) + getStateHash().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 waves.MicroBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.MicroBlock) com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder.class); } // Construct using com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = 0; reference_ = com.google.protobuf.ByteString.EMPTY; updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY; senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); } else { transactions_ = null; transactionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); stateHash_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstanceForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock build() { com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock buildPartial() { com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result = new com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result) { if (transactionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); bitField0_ = (bitField0_ & ~0x00000010); } result.transactions_ = transactions_; } else { result.transactions_ = transactionsBuilder_.build(); } } private void buildPartial0(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.reference_ = reference_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.updatedBlockSignature_ = updatedBlockSignature_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.senderPublicKey_ = senderPublicKey_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.stateHash_ = stateHash_; } } @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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock) { return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock other) { if (other == com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance()) return this; if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.getReference() != com.google.protobuf.ByteString.EMPTY) { setReference(other.getReference()); } if (other.getUpdatedBlockSignature() != com.google.protobuf.ByteString.EMPTY) { setUpdatedBlockSignature(other.getUpdatedBlockSignature()); } if (other.getSenderPublicKey() != com.google.protobuf.ByteString.EMPTY) { setSenderPublicKey(other.getSenderPublicKey()); } if (transactionsBuilder_ == null) { if (!other.transactions_.isEmpty()) { if (transactions_.isEmpty()) { transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTransactionsIsMutable(); transactions_.addAll(other.transactions_); } onChanged(); } } else { if (!other.transactions_.isEmpty()) { if (transactionsBuilder_.isEmpty()) { transactionsBuilder_.dispose(); transactionsBuilder_ = null; transactions_ = other.transactions_; bitField0_ = (bitField0_ & ~0x00000010); transactionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransactionsFieldBuilder() : null; } else { transactionsBuilder_.addAllMessages(other.transactions_); } } } if (other.getStateHash() != com.google.protobuf.ByteString.EMPTY) { setStateHash(other.getStateHash()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { version_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { reference_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { updatedBlockSignature_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { senderPublicKey_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction m = input.readMessage( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.parser(), extensionRegistry); if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(m); } else { transactionsBuilder_.addMessage(m); } break; } // case 42 case 50: { stateHash_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int version_ ; /** * int32 version = 1; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * int32 version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 version = 1; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY; /** * bytes reference = 2; * @return The reference. */ @java.lang.Override public com.google.protobuf.ByteString getReference() { return reference_; } /** * bytes reference = 2; * @param value The reference to set. * @return This builder for chaining. */ public Builder setReference(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } reference_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes reference = 2; * @return This builder for chaining. */ public Builder clearReference() { bitField0_ = (bitField0_ & ~0x00000002); reference_ = getDefaultInstance().getReference(); onChanged(); return this; } private com.google.protobuf.ByteString updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes updated_block_signature = 3; * @return The updatedBlockSignature. */ @java.lang.Override public com.google.protobuf.ByteString getUpdatedBlockSignature() { return updatedBlockSignature_; } /** * bytes updated_block_signature = 3; * @param value The updatedBlockSignature to set. * @return This builder for chaining. */ public Builder setUpdatedBlockSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } updatedBlockSignature_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes updated_block_signature = 3; * @return This builder for chaining. */ public Builder clearUpdatedBlockSignature() { bitField0_ = (bitField0_ & ~0x00000004); updatedBlockSignature_ = getDefaultInstance().getUpdatedBlockSignature(); onChanged(); return this; } private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ @java.lang.Override public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; } /** * bytes sender_public_key = 4; * @param value The senderPublicKey to set. * @return This builder for chaining. */ public Builder setSenderPublicKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } senderPublicKey_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bytes sender_public_key = 4; * @return This builder for chaining. */ public Builder clearSenderPublicKey() { bitField0_ = (bitField0_ & ~0x00000008); senderPublicKey_ = getDefaultInstance().getSenderPublicKey(); onChanged(); return this; } private java.util.List transactions_ = java.util.Collections.emptyList(); private void ensureTransactionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { transactions_ = new java.util.ArrayList(transactions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> transactionsBuilder_; /** * repeated .waves.SignedTransaction transactions = 5; */ public java.util.List getTransactionsList() { if (transactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transactions_); } else { return transactionsBuilder_.getMessageList(); } } /** * repeated .waves.SignedTransaction transactions = 5; */ public int getTransactionsCount() { if (transactionsBuilder_ == null) { return transactions_.size(); } else { return transactionsBuilder_.getCount(); } } /** * repeated .waves.SignedTransaction transactions = 5; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessage(index); } } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder setTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.set(index, value); onChanged(); } else { transactionsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder setTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.set(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder addTransactions(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(value); onChanged(); } else { transactionsBuilder_.addMessage(value); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder addTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) { if (transactionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionsIsMutable(); transactions_.add(index, value); onChanged(); } else { transactionsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder addTransactions( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder addTransactions( int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.add(index, builderForValue.build()); onChanged(); } else { transactionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder addAllTransactions( java.lang.Iterable values) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactions_); onChanged(); } else { transactionsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder clearTransactions() { if (transactionsBuilder_ == null) { transactions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { transactionsBuilder_.clear(); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public Builder removeTransactions(int index) { if (transactionsBuilder_ == null) { ensureTransactionsIsMutable(); transactions_.remove(index); onChanged(); } else { transactionsBuilder_.remove(index); } return this; } /** * repeated .waves.SignedTransaction transactions = 5; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder getTransactionsBuilder( int index) { return getTransactionsFieldBuilder().getBuilder(index); } /** * repeated .waves.SignedTransaction transactions = 5; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder( int index) { if (transactionsBuilder_ == null) { return transactions_.get(index); } else { return transactionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.SignedTransaction transactions = 5; */ public java.util.List getTransactionsOrBuilderList() { if (transactionsBuilder_ != null) { return transactionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactions_); } } /** * repeated .waves.SignedTransaction transactions = 5; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder() { return getTransactionsFieldBuilder().addBuilder( com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance()); } /** * repeated .waves.SignedTransaction transactions = 5; */ public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder( int index) { return getTransactionsFieldBuilder().addBuilder( index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance()); } /** * repeated .waves.SignedTransaction transactions = 5; */ public java.util.List getTransactionsBuilderList() { return getTransactionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> getTransactionsFieldBuilder() { if (transactionsBuilder_ == null) { transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>( transactions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); transactions_ = null; } return transactionsBuilder_; } private com.google.protobuf.ByteString stateHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes state_hash = 6; * @return The stateHash. */ @java.lang.Override public com.google.protobuf.ByteString getStateHash() { return stateHash_; } /** * bytes state_hash = 6; * @param value The stateHash to set. * @return This builder for chaining. */ public Builder setStateHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } stateHash_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes state_hash = 6; * @return This builder for chaining. */ public Builder clearStateHash() { bitField0_ = (bitField0_ & ~0x00000020); stateHash_ = getDefaultInstance().getStateHash(); 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:waves.MicroBlock) } // @@protoc_insertion_point(class_scope:waves.MicroBlock) private static final com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock(); } public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MicroBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignedMicroBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.SignedMicroBlock) com.google.protobuf.MessageOrBuilder { /** * .waves.MicroBlock micro_block = 1; * @return Whether the microBlock field is set. */ boolean hasMicroBlock(); /** * .waves.MicroBlock micro_block = 1; * @return The microBlock. */ com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock(); /** * .waves.MicroBlock micro_block = 1; */ com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder(); /** * bytes signature = 2; * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** * bytes total_block_id = 3; * @return The totalBlockId. */ com.google.protobuf.ByteString getTotalBlockId(); } /** * Protobuf type {@code waves.SignedMicroBlock} */ public static final class SignedMicroBlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.SignedMicroBlock) SignedMicroBlockOrBuilder { private static final long serialVersionUID = 0L; // Use SignedMicroBlock.newBuilder() to construct. private SignedMicroBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignedMicroBlock() { signature_ = com.google.protobuf.ByteString.EMPTY; totalBlockId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignedMicroBlock(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder.class); } private int bitField0_; public static final int MICRO_BLOCK_FIELD_NUMBER = 1; private com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock microBlock_; /** * .waves.MicroBlock micro_block = 1; * @return Whether the microBlock field is set. */ @java.lang.Override public boolean hasMicroBlock() { return ((bitField0_ & 0x00000001) != 0); } /** * .waves.MicroBlock micro_block = 1; * @return The microBlock. */ @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock() { return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_; } /** * .waves.MicroBlock micro_block = 1; */ @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder() { return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } public static final int TOTAL_BLOCK_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString totalBlockId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes total_block_id = 3; * @return The totalBlockId. */ @java.lang.Override public com.google.protobuf.ByteString getTotalBlockId() { return totalBlockId_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMicroBlock()); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } if (!totalBlockId_.isEmpty()) { output.writeBytes(3, totalBlockId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMicroBlock()); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } if (!totalBlockId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, totalBlockId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock)) { return super.equals(obj); } com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock other = (com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock) obj; if (hasMicroBlock() != other.hasMicroBlock()) return false; if (hasMicroBlock()) { if (!getMicroBlock() .equals(other.getMicroBlock())) return false; } if (!getSignature() .equals(other.getSignature())) return false; if (!getTotalBlockId() .equals(other.getTotalBlockId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMicroBlock()) { hash = (37 * hash) + MICRO_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getMicroBlock().hashCode(); } hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (37 * hash) + TOTAL_BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getTotalBlockId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 waves.SignedMicroBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.SignedMicroBlock) com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder.class); } // Construct using com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMicroBlockFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; microBlock_ = null; if (microBlockBuilder_ != null) { microBlockBuilder_.dispose(); microBlockBuilder_ = null; } signature_ = com.google.protobuf.ByteString.EMPTY; totalBlockId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstanceForType() { return com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock build() { com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock buildPartial() { com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock result = new com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.microBlock_ = microBlockBuilder_ == null ? microBlock_ : microBlockBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.signature_ = signature_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.totalBlockId_ = totalBlockId_; } result.bitField0_ |= to_bitField0_; } @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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock) { return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock other) { if (other == com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance()) return this; if (other.hasMicroBlock()) { mergeMicroBlock(other.getMicroBlock()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } if (other.getTotalBlockId() != com.google.protobuf.ByteString.EMPTY) { setTotalBlockId(other.getTotalBlockId()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMicroBlockFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { signature_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { totalBlockId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock microBlock_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder> microBlockBuilder_; /** * .waves.MicroBlock micro_block = 1; * @return Whether the microBlock field is set. */ public boolean hasMicroBlock() { return ((bitField0_ & 0x00000001) != 0); } /** * .waves.MicroBlock micro_block = 1; * @return The microBlock. */ public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock() { if (microBlockBuilder_ == null) { return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_; } else { return microBlockBuilder_.getMessage(); } } /** * .waves.MicroBlock micro_block = 1; */ public Builder setMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock value) { if (microBlockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } microBlock_ = value; } else { microBlockBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .waves.MicroBlock micro_block = 1; */ public Builder setMicroBlock( com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder builderForValue) { if (microBlockBuilder_ == null) { microBlock_ = builderForValue.build(); } else { microBlockBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .waves.MicroBlock micro_block = 1; */ public Builder mergeMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock value) { if (microBlockBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && microBlock_ != null && microBlock_ != com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance()) { getMicroBlockBuilder().mergeFrom(value); } else { microBlock_ = value; } } else { microBlockBuilder_.mergeFrom(value); } if (microBlock_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .waves.MicroBlock micro_block = 1; */ public Builder clearMicroBlock() { bitField0_ = (bitField0_ & ~0x00000001); microBlock_ = null; if (microBlockBuilder_ != null) { microBlockBuilder_.dispose(); microBlockBuilder_ = null; } onChanged(); return this; } /** * .waves.MicroBlock micro_block = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder getMicroBlockBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMicroBlockFieldBuilder().getBuilder(); } /** * .waves.MicroBlock micro_block = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder() { if (microBlockBuilder_ != null) { return microBlockBuilder_.getMessageOrBuilder(); } else { return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_; } } /** * .waves.MicroBlock micro_block = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder> getMicroBlockFieldBuilder() { if (microBlockBuilder_ == null) { microBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder>( getMicroBlock(), getParentForChildren(), isClean()); microBlock_ = null; } return microBlockBuilder_; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000002); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private com.google.protobuf.ByteString totalBlockId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes total_block_id = 3; * @return The totalBlockId. */ @java.lang.Override public com.google.protobuf.ByteString getTotalBlockId() { return totalBlockId_; } /** * bytes total_block_id = 3; * @param value The totalBlockId to set. * @return This builder for chaining. */ public Builder setTotalBlockId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } totalBlockId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes total_block_id = 3; * @return This builder for chaining. */ public Builder clearTotalBlockId() { bitField0_ = (bitField0_ & ~0x00000004); totalBlockId_ = getDefaultInstance().getTotalBlockId(); 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:waves.SignedMicroBlock) } // @@protoc_insertion_point(class_scope:waves.SignedMicroBlock) private static final com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock(); } public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignedMicroBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_Block_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_Block_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_Block_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_Block_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_Block_Header_ChallengedHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_Block_Header_ChallengedHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_MicroBlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_MicroBlock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_SignedMicroBlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_SignedMicroBlock_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\021waves/block.proto\022\005waves\032\027waves/transa" + "ction.proto\"\355\004\n\005Block\022#\n\006header\030\001 \001(\0132\023." + "waves.Block.Header\022\021\n\tsignature\030\002 \001(\014\022.\n" + "\014transactions\030\003 \003(\0132\030.waves.SignedTransa" + "ction\032\373\003\n\006Header\022\020\n\010chain_id\030\001 \001(\005\022\021\n\tre" + "ference\030\002 \001(\014\022\023\n\013base_target\030\003 \001(\003\022\034\n\024ge" + "neration_signature\030\004 \001(\014\022\025\n\rfeature_vote" + "s\030\005 \003(\r\022\021\n\ttimestamp\030\006 \001(\003\022\017\n\007version\030\007 " + "\001(\005\022\021\n\tgenerator\030\010 \001(\014\022\023\n\013reward_vote\030\t " + "\001(\003\022\031\n\021transactions_root\030\n \001(\014\022\022\n\nstate_" + "hash\030\013 \001(\014\022?\n\021challenged_header\030\014 \001(\0132$." + "waves.Block.Header.ChallengedHeader\032\305\001\n\020" + "ChallengedHeader\022\023\n\013base_target\030\001 \001(\003\022\034\n" + "\024generation_signature\030\002 \001(\014\022\025\n\rfeature_v" + "otes\030\003 \003(\r\022\021\n\ttimestamp\030\004 \001(\003\022\021\n\tgenerat" + "or\030\005 \001(\014\022\023\n\013reward_vote\030\006 \001(\003\022\022\n\nstate_h" + "ash\030\007 \001(\014\022\030\n\020header_signature\030\010 \001(\014\"\260\001\n\n" + "MicroBlock\022\017\n\007version\030\001 \001(\005\022\021\n\treference" + "\030\002 \001(\014\022\037\n\027updated_block_signature\030\003 \001(\014\022" + "\031\n\021sender_public_key\030\004 \001(\014\022.\n\014transactio" + "ns\030\005 \003(\0132\030.waves.SignedTransaction\022\022\n\nst" + "ate_hash\030\006 \001(\014\"e\n\020SignedMicroBlock\022&\n\013mi" + "cro_block\030\001 \001(\0132\021.waves.MicroBlock\022\021\n\tsi" + "gnature\030\002 \001(\014\022\026\n\016total_block_id\030\003 \001(\014Be\n" + " com.wavesplatform.protobuf.blockZ9githu" + "b.com/wavesplatform/gowaves/pkg/grpc/gen" + "erated/waves\252\002\005Wavesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(), }); internal_static_waves_Block_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_waves_Block_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_Block_descriptor, new java.lang.String[] { "Header", "Signature", "Transactions", }); internal_static_waves_Block_Header_descriptor = internal_static_waves_Block_descriptor.getNestedTypes().get(0); internal_static_waves_Block_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_Block_Header_descriptor, new java.lang.String[] { "ChainId", "Reference", "BaseTarget", "GenerationSignature", "FeatureVotes", "Timestamp", "Version", "Generator", "RewardVote", "TransactionsRoot", "StateHash", "ChallengedHeader", }); internal_static_waves_Block_Header_ChallengedHeader_descriptor = internal_static_waves_Block_Header_descriptor.getNestedTypes().get(0); internal_static_waves_Block_Header_ChallengedHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_Block_Header_ChallengedHeader_descriptor, new java.lang.String[] { "BaseTarget", "GenerationSignature", "FeatureVotes", "Timestamp", "Generator", "RewardVote", "StateHash", "HeaderSignature", }); internal_static_waves_MicroBlock_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_waves_MicroBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_MicroBlock_descriptor, new java.lang.String[] { "Version", "Reference", "UpdatedBlockSignature", "SenderPublicKey", "Transactions", "StateHash", }); internal_static_waves_SignedMicroBlock_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_waves_SignedMicroBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_SignedMicroBlock_descriptor, new java.lang.String[] { "MicroBlock", "Signature", "TotalBlockId", }); com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy