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

com.wavesplatform.protobuf.snapshot.StateSnapshot Maven / Gradle / Ivy

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

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

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

    /**
     * bytes block_id = 1;
     * @return The blockId.
     */
    com.google.protobuf.ByteString getBlockId();

    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    java.util.List 
        getSnapshotsList();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index);
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    int getSnapshotsCount();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    java.util.List 
        getSnapshotsOrBuilderList();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code waves.BlockSnapshot}
   */
  public static final class BlockSnapshot extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.BlockSnapshot)
      BlockSnapshotOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockSnapshot.newBuilder() to construct.
    private BlockSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BlockSnapshot() {
      blockId_ = com.google.protobuf.ByteString.EMPTY;
      snapshots_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_BlockSnapshot_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_BlockSnapshot_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.class, com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.Builder.class);
    }

    public static final int BLOCK_ID_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes block_id = 1;
     * @return The blockId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getBlockId() {
      return blockId_;
    }

    public static final int SNAPSHOTS_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private java.util.List snapshots_;
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public java.util.List getSnapshotsList() {
      return snapshots_;
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public java.util.List 
        getSnapshotsOrBuilderList() {
      return snapshots_;
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public int getSnapshotsCount() {
      return snapshots_.size();
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index) {
      return snapshots_.get(index);
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
        int index) {
      return snapshots_.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 (!blockId_.isEmpty()) {
        output.writeBytes(1, blockId_);
      }
      for (int i = 0; i < snapshots_.size(); i++) {
        output.writeMessage(2, snapshots_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!blockId_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, blockId_);
      }
      for (int i = 0; i < snapshots_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, snapshots_.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.snapshot.StateSnapshot.BlockSnapshot)) {
        return super.equals(obj);
      }
      com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot other = (com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot) obj;

      if (!getBlockId()
          .equals(other.getBlockId())) return false;
      if (!getSnapshotsList()
          .equals(other.getSnapshotsList())) 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) + BLOCK_ID_FIELD_NUMBER;
      hash = (53 * hash) + getBlockId().hashCode();
      if (getSnapshotsCount() > 0) {
        hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER;
        hash = (53 * hash) + getSnapshotsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_BlockSnapshot_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.class, com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.Builder.class);
      }

      // Construct using com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        blockId_ = com.google.protobuf.ByteString.EMPTY;
        if (snapshotsBuilder_ == null) {
          snapshots_ = java.util.Collections.emptyList();
        } else {
          snapshots_ = null;
          snapshotsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_BlockSnapshot_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot getDefaultInstanceForType() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot build() {
        com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot buildPartial() {
        com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot result = new com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot result) {
        if (snapshotsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.snapshots_ = snapshots_;
        } else {
          result.snapshots_ = snapshotsBuilder_.build();
        }
      }

      private void buildPartial0(com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.blockId_ = blockId_;
        }
      }

      @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.snapshot.StateSnapshot.BlockSnapshot) {
          return mergeFrom((com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot other) {
        if (other == com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot.getDefaultInstance()) return this;
        if (other.getBlockId() != com.google.protobuf.ByteString.EMPTY) {
          setBlockId(other.getBlockId());
        }
        if (snapshotsBuilder_ == null) {
          if (!other.snapshots_.isEmpty()) {
            if (snapshots_.isEmpty()) {
              snapshots_ = other.snapshots_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureSnapshotsIsMutable();
              snapshots_.addAll(other.snapshots_);
            }
            onChanged();
          }
        } else {
          if (!other.snapshots_.isEmpty()) {
            if (snapshotsBuilder_.isEmpty()) {
              snapshotsBuilder_.dispose();
              snapshotsBuilder_ = null;
              snapshots_ = other.snapshots_;
              bitField0_ = (bitField0_ & ~0x00000002);
              snapshotsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSnapshotsFieldBuilder() : null;
            } else {
              snapshotsBuilder_.addAllMessages(other.snapshots_);
            }
          }
        }
        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: {
                blockId_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot m =
                    input.readMessage(
                        com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.parser(),
                        extensionRegistry);
                if (snapshotsBuilder_ == null) {
                  ensureSnapshotsIsMutable();
                  snapshots_.add(m);
                } else {
                  snapshotsBuilder_.addMessage(m);
                }
                break;
              } // case 18
              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.google.protobuf.ByteString blockId_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes block_id = 1;
       * @return The blockId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getBlockId() {
        return blockId_;
      }
      /**
       * bytes block_id = 1;
       * @param value The blockId to set.
       * @return This builder for chaining.
       */
      public Builder setBlockId(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        blockId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * bytes block_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearBlockId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        blockId_ = getDefaultInstance().getBlockId();
        onChanged();
        return this;
      }

      private java.util.List snapshots_ =
        java.util.Collections.emptyList();
      private void ensureSnapshotsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          snapshots_ = new java.util.ArrayList(snapshots_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder> snapshotsBuilder_;

      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List getSnapshotsList() {
        if (snapshotsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(snapshots_);
        } else {
          return snapshotsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public int getSnapshotsCount() {
        if (snapshotsBuilder_ == null) {
          return snapshots_.size();
        } else {
          return snapshotsBuilder_.getCount();
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index) {
        if (snapshotsBuilder_ == null) {
          return snapshots_.get(index);
        } else {
          return snapshotsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder setSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.set(index, value);
          onChanged();
        } else {
          snapshotsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder setSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.set(index, builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.add(value);
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.add(index, value);
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.add(builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.add(index, builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addAllSnapshots(
          java.lang.Iterable values) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, snapshots_);
          onChanged();
        } else {
          snapshotsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder clearSnapshots() {
        if (snapshotsBuilder_ == null) {
          snapshots_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          snapshotsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder removeSnapshots(int index) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.remove(index);
          onChanged();
        } else {
          snapshotsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder getSnapshotsBuilder(
          int index) {
        return getSnapshotsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
          int index) {
        if (snapshotsBuilder_ == null) {
          return snapshots_.get(index);  } else {
          return snapshotsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List 
           getSnapshotsOrBuilderList() {
        if (snapshotsBuilder_ != null) {
          return snapshotsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(snapshots_);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder addSnapshotsBuilder() {
        return getSnapshotsFieldBuilder().addBuilder(
            com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.getDefaultInstance());
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder addSnapshotsBuilder(
          int index) {
        return getSnapshotsFieldBuilder().addBuilder(
            index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.getDefaultInstance());
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List 
           getSnapshotsBuilderList() {
        return getSnapshotsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder> 
          getSnapshotsFieldBuilder() {
        if (snapshotsBuilder_ == null) {
          snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder>(
                  snapshots_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          snapshots_ = null;
        }
        return snapshotsBuilder_;
      }
      @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.BlockSnapshot)
    }

    // @@protoc_insertion_point(class_scope:waves.BlockSnapshot)
    private static final com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot();
    }

    public static com.wavesplatform.protobuf.snapshot.StateSnapshot.BlockSnapshot getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BlockSnapshot 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.snapshot.StateSnapshot.BlockSnapshot getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MicroBlockSnapshotOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.MicroBlockSnapshot)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes total_block_id = 1;
     * @return The totalBlockId.
     */
    com.google.protobuf.ByteString getTotalBlockId();

    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    java.util.List 
        getSnapshotsList();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index);
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    int getSnapshotsCount();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    java.util.List 
        getSnapshotsOrBuilderList();
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code waves.MicroBlockSnapshot}
   */
  public static final class MicroBlockSnapshot extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.MicroBlockSnapshot)
      MicroBlockSnapshotOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MicroBlockSnapshot.newBuilder() to construct.
    private MicroBlockSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private MicroBlockSnapshot() {
      totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
      snapshots_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_MicroBlockSnapshot_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_MicroBlockSnapshot_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.class, com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.Builder.class);
    }

    public static final int TOTAL_BLOCK_ID_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes total_block_id = 1;
     * @return The totalBlockId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTotalBlockId() {
      return totalBlockId_;
    }

    public static final int SNAPSHOTS_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private java.util.List snapshots_;
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public java.util.List getSnapshotsList() {
      return snapshots_;
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public java.util.List 
        getSnapshotsOrBuilderList() {
      return snapshots_;
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public int getSnapshotsCount() {
      return snapshots_.size();
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index) {
      return snapshots_.get(index);
    }
    /**
     * repeated .waves.TransactionStateSnapshot snapshots = 2;
     */
    @java.lang.Override
    public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
        int index) {
      return snapshots_.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 (!totalBlockId_.isEmpty()) {
        output.writeBytes(1, totalBlockId_);
      }
      for (int i = 0; i < snapshots_.size(); i++) {
        output.writeMessage(2, snapshots_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!totalBlockId_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, totalBlockId_);
      }
      for (int i = 0; i < snapshots_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, snapshots_.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.snapshot.StateSnapshot.MicroBlockSnapshot)) {
        return super.equals(obj);
      }
      com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot other = (com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot) obj;

      if (!getTotalBlockId()
          .equals(other.getTotalBlockId())) return false;
      if (!getSnapshotsList()
          .equals(other.getSnapshotsList())) 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) + TOTAL_BLOCK_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTotalBlockId().hashCode();
      if (getSnapshotsCount() > 0) {
        hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER;
        hash = (53 * hash) + getSnapshotsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_MicroBlockSnapshot_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.class, com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.Builder.class);
      }

      // Construct using com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
        if (snapshotsBuilder_ == null) {
          snapshots_ = java.util.Collections.emptyList();
        } else {
          snapshots_ = null;
          snapshotsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.internal_static_waves_MicroBlockSnapshot_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot getDefaultInstanceForType() {
        return com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot build() {
        com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot buildPartial() {
        com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot result = new com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot result) {
        if (snapshotsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.snapshots_ = snapshots_;
        } else {
          result.snapshots_ = snapshotsBuilder_.build();
        }
      }

      private void buildPartial0(com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.totalBlockId_ = totalBlockId_;
        }
      }

      @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.snapshot.StateSnapshot.MicroBlockSnapshot) {
          return mergeFrom((com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot other) {
        if (other == com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot.getDefaultInstance()) return this;
        if (other.getTotalBlockId() != com.google.protobuf.ByteString.EMPTY) {
          setTotalBlockId(other.getTotalBlockId());
        }
        if (snapshotsBuilder_ == null) {
          if (!other.snapshots_.isEmpty()) {
            if (snapshots_.isEmpty()) {
              snapshots_ = other.snapshots_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureSnapshotsIsMutable();
              snapshots_.addAll(other.snapshots_);
            }
            onChanged();
          }
        } else {
          if (!other.snapshots_.isEmpty()) {
            if (snapshotsBuilder_.isEmpty()) {
              snapshotsBuilder_.dispose();
              snapshotsBuilder_ = null;
              snapshots_ = other.snapshots_;
              bitField0_ = (bitField0_ & ~0x00000002);
              snapshotsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSnapshotsFieldBuilder() : null;
            } else {
              snapshotsBuilder_.addAllMessages(other.snapshots_);
            }
          }
        }
        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: {
                totalBlockId_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot m =
                    input.readMessage(
                        com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.parser(),
                        extensionRegistry);
                if (snapshotsBuilder_ == null) {
                  ensureSnapshotsIsMutable();
                  snapshots_.add(m);
                } else {
                  snapshotsBuilder_.addMessage(m);
                }
                break;
              } // case 18
              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.google.protobuf.ByteString totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes total_block_id = 1;
       * @return The totalBlockId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTotalBlockId() {
        return totalBlockId_;
      }
      /**
       * bytes total_block_id = 1;
       * @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_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * bytes total_block_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTotalBlockId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        totalBlockId_ = getDefaultInstance().getTotalBlockId();
        onChanged();
        return this;
      }

      private java.util.List snapshots_ =
        java.util.Collections.emptyList();
      private void ensureSnapshotsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          snapshots_ = new java.util.ArrayList(snapshots_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder> snapshotsBuilder_;

      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List getSnapshotsList() {
        if (snapshotsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(snapshots_);
        } else {
          return snapshotsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public int getSnapshotsCount() {
        if (snapshotsBuilder_ == null) {
          return snapshots_.size();
        } else {
          return snapshotsBuilder_.getCount();
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot getSnapshots(int index) {
        if (snapshotsBuilder_ == null) {
          return snapshots_.get(index);
        } else {
          return snapshotsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder setSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.set(index, value);
          onChanged();
        } else {
          snapshotsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder setSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.set(index, builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.add(value);
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot value) {
        if (snapshotsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSnapshotsIsMutable();
          snapshots_.add(index, value);
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.add(builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addSnapshots(
          int index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder builderForValue) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.add(index, builderForValue.build());
          onChanged();
        } else {
          snapshotsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder addAllSnapshots(
          java.lang.Iterable values) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, snapshots_);
          onChanged();
        } else {
          snapshotsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder clearSnapshots() {
        if (snapshotsBuilder_ == null) {
          snapshots_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          snapshotsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public Builder removeSnapshots(int index) {
        if (snapshotsBuilder_ == null) {
          ensureSnapshotsIsMutable();
          snapshots_.remove(index);
          onChanged();
        } else {
          snapshotsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder getSnapshotsBuilder(
          int index) {
        return getSnapshotsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder getSnapshotsOrBuilder(
          int index) {
        if (snapshotsBuilder_ == null) {
          return snapshots_.get(index);  } else {
          return snapshotsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List 
           getSnapshotsOrBuilderList() {
        if (snapshotsBuilder_ != null) {
          return snapshotsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(snapshots_);
        }
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder addSnapshotsBuilder() {
        return getSnapshotsFieldBuilder().addBuilder(
            com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.getDefaultInstance());
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder addSnapshotsBuilder(
          int index) {
        return getSnapshotsFieldBuilder().addBuilder(
            index, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.getDefaultInstance());
      }
      /**
       * repeated .waves.TransactionStateSnapshot snapshots = 2;
       */
      public java.util.List 
           getSnapshotsBuilderList() {
        return getSnapshotsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder> 
          getSnapshotsFieldBuilder() {
        if (snapshotsBuilder_ == null) {
          snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshot.Builder, com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.TransactionStateSnapshotOrBuilder>(
                  snapshots_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          snapshots_ = null;
        }
        return snapshotsBuilder_;
      }
      @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.MicroBlockSnapshot)
    }

    // @@protoc_insertion_point(class_scope:waves.MicroBlockSnapshot)
    private static final com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot();
    }

    public static com.wavesplatform.protobuf.snapshot.StateSnapshot.MicroBlockSnapshot getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public MicroBlockSnapshot 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.snapshot.StateSnapshot.MicroBlockSnapshot getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_BlockSnapshot_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_BlockSnapshot_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_MicroBlockSnapshot_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_MicroBlockSnapshot_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\032waves/state_snapshot.proto\022\005waves\032&wav" +
      "es/transaction_state_snapshot.proto\"U\n\rB" +
      "lockSnapshot\022\020\n\010block_id\030\001 \001(\014\0222\n\tsnapsh" +
      "ots\030\002 \003(\0132\037.waves.TransactionStateSnapsh" +
      "ot\"`\n\022MicroBlockSnapshot\022\026\n\016total_block_" +
      "id\030\001 \001(\014\0222\n\tsnapshots\030\002 \003(\0132\037.waves.Tran" +
      "sactionStateSnapshotBh\n#com.wavesplatfor" +
      "m.protobuf.snapshotZ9github.com/wavespla" +
      "tform/gowaves/pkg/grpc/generated/waves\252\002" +
      "\005Wavesb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.getDescriptor(),
        });
    internal_static_waves_BlockSnapshot_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_waves_BlockSnapshot_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_BlockSnapshot_descriptor,
        new java.lang.String[] { "BlockId", "Snapshots", });
    internal_static_waves_MicroBlockSnapshot_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_waves_MicroBlockSnapshot_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_MicroBlockSnapshot_descriptor,
        new java.lang.String[] { "TotalBlockId", "Snapshots", });
    com.wavesplatform.protobuf.snapshot.TransactionStateSnapshotOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy