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

com.wavesplatform.events.protobuf.Events Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: waves/events/events.proto

package com.wavesplatform.events.protobuf;

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

    /**
     * bytes id = 1;
     * @return The id.
     */
    com.google.protobuf.ByteString getId();

    /**
     * int32 height = 2;
     * @return The height.
     */
    int getHeight();

    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     * @return Whether the append field is set.
     */
    boolean hasAppend();
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     * @return The append.
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append getAppend();
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder getAppendOrBuilder();

    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     * @return Whether the rollback field is set.
     */
    boolean hasRollback();
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     * @return The rollback.
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback getRollback();
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder getRollbackOrBuilder();

    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    java.util.List 
        getReferencedAssetsList();
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getReferencedAssets(int index);
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    int getReferencedAssetsCount();
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    java.util.List 
        getReferencedAssetsOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder getReferencedAssetsOrBuilder(
        int index);

    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.UpdateCase getUpdateCase();
  }
  /**
   * Protobuf type {@code waves.events.BlockchainUpdated}
   */
  public  static final class BlockchainUpdated extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.events.BlockchainUpdated)
      BlockchainUpdatedOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BlockchainUpdated.newBuilder() to construct.
    private BlockchainUpdated(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BlockchainUpdated() {
      id_ = com.google.protobuf.ByteString.EMPTY;
      referencedAssets_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BlockchainUpdated(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {

              id_ = input.readBytes();
              break;
            }
            case 16: {

              height_ = input.readInt32();
              break;
            }
            case 90: {
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder subBuilder = null;
              if (updateCase_ == 11) {
                subBuilder = ((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_).toBuilder();
              }
              update_ =
                  input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_);
                update_ = subBuilder.buildPartial();
              }
              updateCase_ = 11;
              break;
            }
            case 98: {
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder subBuilder = null;
              if (updateCase_ == 12) {
                subBuilder = ((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_).toBuilder();
              }
              update_ =
                  input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_);
                update_ = subBuilder.buildPartial();
              }
              updateCase_ = 12;
              break;
            }
            case 170: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                referencedAssets_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              referencedAssets_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          referencedAssets_ = java.util.Collections.unmodifiableList(referencedAssets_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder.class);
    }

    public interface AppendOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.BlockchainUpdated.Append)
        com.google.protobuf.MessageOrBuilder {

      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       * @return Whether the block field is set.
       */
      boolean hasBlock();
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       * @return The block.
       */
      com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getBlock();
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       */
      com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder getBlockOrBuilder();

      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       * @return Whether the microBlock field is set.
       */
      boolean hasMicroBlock();
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       * @return The microBlock.
       */
      com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getMicroBlock();
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       */
      com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder getMicroBlockOrBuilder();

      /**
       * repeated bytes transaction_ids = 3;
       * @return A list containing the transactionIds.
       */
      java.util.List getTransactionIdsList();
      /**
       * repeated bytes transaction_ids = 3;
       * @return The count of transactionIds.
       */
      int getTransactionIdsCount();
      /**
       * repeated bytes transaction_ids = 3;
       * @param index The index of the element to return.
       * @return The transactionIds at the given index.
       */
      com.google.protobuf.ByteString getTransactionIds(int index);

      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      java.util.List 
          getTransactionsMetadataList();
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      com.wavesplatform.events.protobuf.Events.TransactionMetadata getTransactionsMetadata(int index);
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      int getTransactionsMetadataCount();
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      java.util.List 
          getTransactionsMetadataOrBuilderList();
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder getTransactionsMetadataOrBuilder(
          int index);

      /**
       * .waves.events.StateUpdate state_update = 11;
       * @return Whether the stateUpdate field is set.
       */
      boolean hasStateUpdate();
      /**
       * .waves.events.StateUpdate state_update = 11;
       * @return The stateUpdate.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate getStateUpdate();
      /**
       * .waves.events.StateUpdate state_update = 11;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getStateUpdateOrBuilder();

      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      java.util.List 
          getTransactionStateUpdatesList();
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate getTransactionStateUpdates(int index);
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      int getTransactionStateUpdatesCount();
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      java.util.List 
          getTransactionStateUpdatesOrBuilderList();
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getTransactionStateUpdatesOrBuilder(
          int index);

      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BodyCase getBodyCase();
    }
    /**
     * Protobuf type {@code waves.events.BlockchainUpdated.Append}
     */
    public  static final class Append extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.BlockchainUpdated.Append)
        AppendOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Append.newBuilder() to construct.
      private Append(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private Append() {
        transactionIds_ = java.util.Collections.emptyList();
        transactionsMetadata_ = java.util.Collections.emptyList();
        transactionStateUpdates_ = java.util.Collections.emptyList();
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Append(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder subBuilder = null;
                if (bodyCase_ == 1) {
                  subBuilder = ((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_).toBuilder();
                }
                body_ =
                    input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_);
                  body_ = subBuilder.buildPartial();
                }
                bodyCase_ = 1;
                break;
              }
              case 18: {
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder subBuilder = null;
                if (bodyCase_ == 2) {
                  subBuilder = ((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_).toBuilder();
                }
                body_ =
                    input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_);
                  body_ = subBuilder.buildPartial();
                }
                bodyCase_ = 2;
                break;
              }
              case 26: {
                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                  transactionIds_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000001;
                }
                transactionIds_.add(input.readBytes());
                break;
              }
              case 34: {
                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                  transactionsMetadata_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000002;
                }
                transactionsMetadata_.add(
                    input.readMessage(com.wavesplatform.events.protobuf.Events.TransactionMetadata.parser(), extensionRegistry));
                break;
              }
              case 90: {
                com.wavesplatform.events.protobuf.Events.StateUpdate.Builder subBuilder = null;
                if (stateUpdate_ != null) {
                  subBuilder = stateUpdate_.toBuilder();
                }
                stateUpdate_ = input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(stateUpdate_);
                  stateUpdate_ = subBuilder.buildPartial();
                }

                break;
              }
              case 98: {
                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                  transactionStateUpdates_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000004;
                }
                transactionStateUpdates_.add(
                    input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.parser(), extensionRegistry));
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          if (((mutable_bitField0_ & 0x00000001) != 0)) {
            transactionIds_ = java.util.Collections.unmodifiableList(transactionIds_); // C
          }
          if (((mutable_bitField0_ & 0x00000002) != 0)) {
            transactionsMetadata_ = java.util.Collections.unmodifiableList(transactionsMetadata_);
          }
          if (((mutable_bitField0_ & 0x00000004) != 0)) {
            transactionStateUpdates_ = java.util.Collections.unmodifiableList(transactionStateUpdates_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder.class);
      }

      public interface BlockAppendOrBuilder extends
          // @@protoc_insertion_point(interface_extends:waves.events.BlockchainUpdated.Append.BlockAppend)
          com.google.protobuf.MessageOrBuilder {

        /**
         * .waves.Block block = 1;
         * @return Whether the block field is set.
         */
        boolean hasBlock();
        /**
         * .waves.Block block = 1;
         * @return The block.
         */
        com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock();
        /**
         * .waves.Block block = 1;
         */
        com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder();

        /**
         * int64 updated_waves_amount = 2;
         * @return The updatedWavesAmount.
         */
        long getUpdatedWavesAmount();
      }
      /**
       * Protobuf type {@code waves.events.BlockchainUpdated.Append.BlockAppend}
       */
      public  static final class BlockAppend extends
          com.google.protobuf.GeneratedMessageV3 implements
          // @@protoc_insertion_point(message_implements:waves.events.BlockchainUpdated.Append.BlockAppend)
          BlockAppendOrBuilder {
      private static final long serialVersionUID = 0L;
        // Use BlockAppend.newBuilder() to construct.
        private BlockAppend(com.google.protobuf.GeneratedMessageV3.Builder builder) {
          super(builder);
        }
        private BlockAppend() {
        }

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

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
          return this.unknownFields;
        }
        private BlockAppend(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          this();
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
              com.google.protobuf.UnknownFieldSet.newBuilder();
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder subBuilder = null;
                  if (block_ != null) {
                    subBuilder = block_.toBuilder();
                  }
                  block_ = input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.Block.parser(), extensionRegistry);
                  if (subBuilder != null) {
                    subBuilder.mergeFrom(block_);
                    block_ = subBuilder.buildPartial();
                  }

                  break;
                }
                case 16: {

                  updatedWavesAmount_ = input.readInt64();
                  break;
                }
                default: {
                  if (!parseUnknownField(
                      input, unknownFields, extensionRegistry, tag)) {
                    done = true;
                  }
                  break;
                }
              }
            }
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                e).setUnfinishedMessage(this);
          } finally {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
          }
        }
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder.class);
        }

        public static final int BLOCK_FIELD_NUMBER = 1;
        private com.wavesplatform.protobuf.block.BlockOuterClass.Block block_;
        /**
         * .waves.Block block = 1;
         * @return Whether the block field is set.
         */
        public boolean hasBlock() {
          return block_ != null;
        }
        /**
         * .waves.Block block = 1;
         * @return The block.
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock() {
          return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_;
        }
        /**
         * .waves.Block block = 1;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
          return getBlock();
        }

        public static final int UPDATED_WAVES_AMOUNT_FIELD_NUMBER = 2;
        private long updatedWavesAmount_;
        /**
         * int64 updated_waves_amount = 2;
         * @return The updatedWavesAmount.
         */
        public long getUpdatedWavesAmount() {
          return updatedWavesAmount_;
        }

        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 (block_ != null) {
            output.writeMessage(1, getBlock());
          }
          if (updatedWavesAmount_ != 0L) {
            output.writeInt64(2, updatedWavesAmount_);
          }
          unknownFields.writeTo(output);
        }

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

          size = 0;
          if (block_ != null) {
            size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(1, getBlock());
          }
          if (updatedWavesAmount_ != 0L) {
            size += com.google.protobuf.CodedOutputStream
              .computeInt64Size(2, updatedWavesAmount_);
          }
          size += unknownFields.getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
           return true;
          }
          if (!(obj instanceof com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend)) {
            return super.equals(obj);
          }
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend other = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) obj;

          if (hasBlock() != other.hasBlock()) return false;
          if (hasBlock()) {
            if (!getBlock()
                .equals(other.getBlock())) return false;
          }
          if (getUpdatedWavesAmount()
              != other.getUpdatedWavesAmount()) return false;
          if (!unknownFields.equals(other.unknownFields)) return false;
          return true;
        }

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

        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(
            java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(
            java.nio.ByteBuffer data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(java.io.InputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseDelimitedWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend 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.events.BlockchainUpdated.Append.BlockAppend}
         */
        public static final class Builder extends
            com.google.protobuf.GeneratedMessageV3.Builder implements
            // @@protoc_insertion_point(builder_implements:waves.events.BlockchainUpdated.Append.BlockAppend)
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor
              getDescriptor() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder.class);
          }

          // Construct using com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.newBuilder()
          private Builder() {
            maybeForceBuilderInitialization();
          }

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

            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor
              getDescriptorForType() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor;
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getDefaultInstanceForType() {
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend build() {
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend buildPartial() {
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend result = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend(this);
            if (blockBuilder_ == null) {
              result.block_ = block_;
            } else {
              result.block_ = blockBuilder_.build();
            }
            result.updatedWavesAmount_ = updatedWavesAmount_;
            onBuilt();
            return result;
          }

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

          public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend other) {
            if (other == com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance()) return this;
            if (other.hasBlock()) {
              mergeBlock(other.getBlock());
            }
            if (other.getUpdatedWavesAmount() != 0L) {
              setUpdatedWavesAmount(other.getUpdatedWavesAmount());
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
          }

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

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

          private com.wavesplatform.protobuf.block.BlockOuterClass.Block block_;
          private com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> blockBuilder_;
          /**
           * .waves.Block block = 1;
           * @return Whether the block field is set.
           */
          public boolean hasBlock() {
            return blockBuilder_ != null || block_ != null;
          }
          /**
           * .waves.Block block = 1;
           * @return The block.
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock() {
            if (blockBuilder_ == null) {
              return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_;
            } else {
              return blockBuilder_.getMessage();
            }
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder setBlock(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
            if (blockBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              block_ = value;
              onChanged();
            } else {
              blockBuilder_.setMessage(value);
            }

            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder setBlock(
              com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) {
            if (blockBuilder_ == null) {
              block_ = builderForValue.build();
              onChanged();
            } else {
              blockBuilder_.setMessage(builderForValue.build());
            }

            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder mergeBlock(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
            if (blockBuilder_ == null) {
              if (block_ != null) {
                block_ =
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block.newBuilder(block_).mergeFrom(value).buildPartial();
              } else {
                block_ = value;
              }
              onChanged();
            } else {
              blockBuilder_.mergeFrom(value);
            }

            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder clearBlock() {
            if (blockBuilder_ == null) {
              block_ = null;
              onChanged();
            } else {
              block_ = null;
              blockBuilder_ = null;
            }

            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder getBlockBuilder() {
            
            onChanged();
            return getBlockFieldBuilder().getBuilder();
          }
          /**
           * .waves.Block block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
            if (blockBuilder_ != null) {
              return blockBuilder_.getMessageOrBuilder();
            } else {
              return block_ == null ?
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_;
            }
          }
          /**
           * .waves.Block block = 1;
           */
          private com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> 
              getBlockFieldBuilder() {
            if (blockBuilder_ == null) {
              blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder>(
                      getBlock(),
                      getParentForChildren(),
                      isClean());
              block_ = null;
            }
            return blockBuilder_;
          }

          private long updatedWavesAmount_ ;
          /**
           * int64 updated_waves_amount = 2;
           * @return The updatedWavesAmount.
           */
          public long getUpdatedWavesAmount() {
            return updatedWavesAmount_;
          }
          /**
           * int64 updated_waves_amount = 2;
           * @param value The updatedWavesAmount to set.
           * @return This builder for chaining.
           */
          public Builder setUpdatedWavesAmount(long value) {
            
            updatedWavesAmount_ = value;
            onChanged();
            return this;
          }
          /**
           * int64 updated_waves_amount = 2;
           * @return This builder for chaining.
           */
          public Builder clearUpdatedWavesAmount() {
            
            updatedWavesAmount_ = 0L;
            onChanged();
            return this;
          }
          @java.lang.Override
          public final Builder setUnknownFields(
              final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.setUnknownFields(unknownFields);
          }

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


          // @@protoc_insertion_point(builder_scope:waves.events.BlockchainUpdated.Append.BlockAppend)
        }

        // @@protoc_insertion_point(class_scope:waves.events.BlockchainUpdated.Append.BlockAppend)
        private static final com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend DEFAULT_INSTANCE;
        static {
          DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend();
        }

        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

        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.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }

      }

      public interface MicroBlockAppendOrBuilder extends
          // @@protoc_insertion_point(interface_extends:waves.events.BlockchainUpdated.Append.MicroBlockAppend)
          com.google.protobuf.MessageOrBuilder {

        /**
         * .waves.SignedMicroBlock micro_block = 1;
         * @return Whether the microBlock field is set.
         */
        boolean hasMicroBlock();
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         * @return The microBlock.
         */
        com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getMicroBlock();
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         */
        com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder getMicroBlockOrBuilder();

        /**
         * bytes updated_transactions_root = 2;
         * @return The updatedTransactionsRoot.
         */
        com.google.protobuf.ByteString getUpdatedTransactionsRoot();
      }
      /**
       * Protobuf type {@code waves.events.BlockchainUpdated.Append.MicroBlockAppend}
       */
      public  static final class MicroBlockAppend extends
          com.google.protobuf.GeneratedMessageV3 implements
          // @@protoc_insertion_point(message_implements:waves.events.BlockchainUpdated.Append.MicroBlockAppend)
          MicroBlockAppendOrBuilder {
      private static final long serialVersionUID = 0L;
        // Use MicroBlockAppend.newBuilder() to construct.
        private MicroBlockAppend(com.google.protobuf.GeneratedMessageV3.Builder builder) {
          super(builder);
        }
        private MicroBlockAppend() {
          updatedTransactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
        }

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

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
          return this.unknownFields;
        }
        private MicroBlockAppend(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          this();
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
              com.google.protobuf.UnknownFieldSet.newBuilder();
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder subBuilder = null;
                  if (microBlock_ != null) {
                    subBuilder = microBlock_.toBuilder();
                  }
                  microBlock_ = input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.parser(), extensionRegistry);
                  if (subBuilder != null) {
                    subBuilder.mergeFrom(microBlock_);
                    microBlock_ = subBuilder.buildPartial();
                  }

                  break;
                }
                case 18: {

                  updatedTransactionsRoot_ = input.readBytes();
                  break;
                }
                default: {
                  if (!parseUnknownField(
                      input, unknownFields, extensionRegistry, tag)) {
                    done = true;
                  }
                  break;
                }
              }
            }
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                e).setUnfinishedMessage(this);
          } finally {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
          }
        }
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder.class);
        }

        public static final int MICRO_BLOCK_FIELD_NUMBER = 1;
        private com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock microBlock_;
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         * @return Whether the microBlock field is set.
         */
        public boolean hasMicroBlock() {
          return microBlock_ != null;
        }
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         * @return The microBlock.
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getMicroBlock() {
          return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance() : microBlock_;
        }
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder getMicroBlockOrBuilder() {
          return getMicroBlock();
        }

        public static final int UPDATED_TRANSACTIONS_ROOT_FIELD_NUMBER = 2;
        private com.google.protobuf.ByteString updatedTransactionsRoot_;
        /**
         * bytes updated_transactions_root = 2;
         * @return The updatedTransactionsRoot.
         */
        public com.google.protobuf.ByteString getUpdatedTransactionsRoot() {
          return updatedTransactionsRoot_;
        }

        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 (microBlock_ != null) {
            output.writeMessage(1, getMicroBlock());
          }
          if (!updatedTransactionsRoot_.isEmpty()) {
            output.writeBytes(2, updatedTransactionsRoot_);
          }
          unknownFields.writeTo(output);
        }

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

          size = 0;
          if (microBlock_ != null) {
            size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(1, getMicroBlock());
          }
          if (!updatedTransactionsRoot_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(2, updatedTransactionsRoot_);
          }
          size += unknownFields.getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
           return true;
          }
          if (!(obj instanceof com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend)) {
            return super.equals(obj);
          }
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend other = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) obj;

          if (hasMicroBlock() != other.hasMicroBlock()) return false;
          if (hasMicroBlock()) {
            if (!getMicroBlock()
                .equals(other.getMicroBlock())) return false;
          }
          if (!getUpdatedTransactionsRoot()
              .equals(other.getUpdatedTransactionsRoot())) return false;
          if (!unknownFields.equals(other.unknownFields)) return false;
          return true;
        }

        @java.lang.Override
        public int hashCode() {
          if (memoizedHashCode != 0) {
            return memoizedHashCode;
          }
          int hash = 41;
          hash = (19 * hash) + getDescriptor().hashCode();
          if (hasMicroBlock()) {
            hash = (37 * hash) + MICRO_BLOCK_FIELD_NUMBER;
            hash = (53 * hash) + getMicroBlock().hashCode();
          }
          hash = (37 * hash) + UPDATED_TRANSACTIONS_ROOT_FIELD_NUMBER;
          hash = (53 * hash) + getUpdatedTransactionsRoot().hashCode();
          hash = (29 * hash) + unknownFields.hashCode();
          memoizedHashCode = hash;
          return hash;
        }

        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(
            java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(
            java.nio.ByteBuffer data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return PARSER.parseFrom(data, extensionRegistry);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(java.io.InputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseDelimitedWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException {
          return com.google.protobuf.GeneratedMessageV3
              .parseWithIOException(PARSER, input);
        }
        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend 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.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend 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.events.BlockchainUpdated.Append.MicroBlockAppend}
         */
        public static final class Builder extends
            com.google.protobuf.GeneratedMessageV3.Builder implements
            // @@protoc_insertion_point(builder_implements:waves.events.BlockchainUpdated.Append.MicroBlockAppend)
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor
              getDescriptor() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor;
          }

          @java.lang.Override
          protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
              internalGetFieldAccessorTable() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder.class);
          }

          // Construct using com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.newBuilder()
          private Builder() {
            maybeForceBuilderInitialization();
          }

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

            return this;
          }

          @java.lang.Override
          public com.google.protobuf.Descriptors.Descriptor
              getDescriptorForType() {
            return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor;
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getDefaultInstanceForType() {
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend build() {
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }

          @java.lang.Override
          public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend buildPartial() {
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend result = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend(this);
            if (microBlockBuilder_ == null) {
              result.microBlock_ = microBlock_;
            } else {
              result.microBlock_ = microBlockBuilder_.build();
            }
            result.updatedTransactionsRoot_ = updatedTransactionsRoot_;
            onBuilt();
            return result;
          }

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

          public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend other) {
            if (other == com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance()) return this;
            if (other.hasMicroBlock()) {
              mergeMicroBlock(other.getMicroBlock());
            }
            if (other.getUpdatedTransactionsRoot() != com.google.protobuf.ByteString.EMPTY) {
              setUpdatedTransactionsRoot(other.getUpdatedTransactionsRoot());
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
          }

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

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

          private com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock microBlock_;
          private com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder> microBlockBuilder_;
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           * @return Whether the microBlock field is set.
           */
          public boolean hasMicroBlock() {
            return microBlockBuilder_ != null || microBlock_ != null;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           * @return The microBlock.
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getMicroBlock() {
            if (microBlockBuilder_ == null) {
              return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance() : microBlock_;
            } else {
              return microBlockBuilder_.getMessage();
            }
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder setMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock value) {
            if (microBlockBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              microBlock_ = value;
              onChanged();
            } else {
              microBlockBuilder_.setMessage(value);
            }

            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder setMicroBlock(
              com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder builderForValue) {
            if (microBlockBuilder_ == null) {
              microBlock_ = builderForValue.build();
              onChanged();
            } else {
              microBlockBuilder_.setMessage(builderForValue.build());
            }

            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder mergeMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock value) {
            if (microBlockBuilder_ == null) {
              if (microBlock_ != null) {
                microBlock_ =
                  com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.newBuilder(microBlock_).mergeFrom(value).buildPartial();
              } else {
                microBlock_ = value;
              }
              onChanged();
            } else {
              microBlockBuilder_.mergeFrom(value);
            }

            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder clearMicroBlock() {
            if (microBlockBuilder_ == null) {
              microBlock_ = null;
              onChanged();
            } else {
              microBlock_ = null;
              microBlockBuilder_ = null;
            }

            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder getMicroBlockBuilder() {
            
            onChanged();
            return getMicroBlockFieldBuilder().getBuilder();
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder getMicroBlockOrBuilder() {
            if (microBlockBuilder_ != null) {
              return microBlockBuilder_.getMessageOrBuilder();
            } else {
              return microBlock_ == null ?
                  com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance() : microBlock_;
            }
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          private com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder> 
              getMicroBlockFieldBuilder() {
            if (microBlockBuilder_ == null) {
              microBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                  com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder>(
                      getMicroBlock(),
                      getParentForChildren(),
                      isClean());
              microBlock_ = null;
            }
            return microBlockBuilder_;
          }

          private com.google.protobuf.ByteString updatedTransactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
          /**
           * bytes updated_transactions_root = 2;
           * @return The updatedTransactionsRoot.
           */
          public com.google.protobuf.ByteString getUpdatedTransactionsRoot() {
            return updatedTransactionsRoot_;
          }
          /**
           * bytes updated_transactions_root = 2;
           * @param value The updatedTransactionsRoot to set.
           * @return This builder for chaining.
           */
          public Builder setUpdatedTransactionsRoot(com.google.protobuf.ByteString value) {
            if (value == null) {
    throw new NullPointerException();
  }
  
            updatedTransactionsRoot_ = value;
            onChanged();
            return this;
          }
          /**
           * bytes updated_transactions_root = 2;
           * @return This builder for chaining.
           */
          public Builder clearUpdatedTransactionsRoot() {
            
            updatedTransactionsRoot_ = getDefaultInstance().getUpdatedTransactionsRoot();
            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.events.BlockchainUpdated.Append.MicroBlockAppend)
        }

        // @@protoc_insertion_point(class_scope:waves.events.BlockchainUpdated.Append.MicroBlockAppend)
        private static final com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend DEFAULT_INSTANCE;
        static {
          DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend();
        }

        public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getDefaultInstance() {
          return DEFAULT_INSTANCE;
        }

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

        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.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getDefaultInstanceForType() {
          return DEFAULT_INSTANCE;
        }

      }

      private int bodyCase_ = 0;
      private java.lang.Object body_;
      public enum BodyCase
          implements com.google.protobuf.Internal.EnumLite,
              com.google.protobuf.AbstractMessage.InternalOneOfEnum {
        BLOCK(1),
        MICRO_BLOCK(2),
        BODY_NOT_SET(0);
        private final int value;
        private BodyCase(int value) {
          this.value = value;
        }
        /**
         * @param value The number of the enum to look for.
         * @return The enum associated with the given number.
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static BodyCase valueOf(int value) {
          return forNumber(value);
        }

        public static BodyCase forNumber(int value) {
          switch (value) {
            case 1: return BLOCK;
            case 2: return MICRO_BLOCK;
            case 0: return BODY_NOT_SET;
            default: return null;
          }
        }
        public int getNumber() {
          return this.value;
        }
      };

      public BodyCase
      getBodyCase() {
        return BodyCase.forNumber(
            bodyCase_);
      }

      public static final int BLOCK_FIELD_NUMBER = 1;
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       * @return Whether the block field is set.
       */
      public boolean hasBlock() {
        return bodyCase_ == 1;
      }
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       * @return The block.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getBlock() {
        if (bodyCase_ == 1) {
           return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_;
        }
        return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
      }
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder getBlockOrBuilder() {
        if (bodyCase_ == 1) {
           return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_;
        }
        return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
      }

      public static final int MICRO_BLOCK_FIELD_NUMBER = 2;
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       * @return Whether the microBlock field is set.
       */
      public boolean hasMicroBlock() {
        return bodyCase_ == 2;
      }
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       * @return The microBlock.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getMicroBlock() {
        if (bodyCase_ == 2) {
           return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_;
        }
        return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
      }
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder getMicroBlockOrBuilder() {
        if (bodyCase_ == 2) {
           return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_;
        }
        return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
      }

      public static final int TRANSACTION_IDS_FIELD_NUMBER = 3;
      private java.util.List transactionIds_;
      /**
       * repeated bytes transaction_ids = 3;
       * @return A list containing the transactionIds.
       */
      public java.util.List
          getTransactionIdsList() {
        return transactionIds_;
      }
      /**
       * repeated bytes transaction_ids = 3;
       * @return The count of transactionIds.
       */
      public int getTransactionIdsCount() {
        return transactionIds_.size();
      }
      /**
       * repeated bytes transaction_ids = 3;
       * @param index The index of the element to return.
       * @return The transactionIds at the given index.
       */
      public com.google.protobuf.ByteString getTransactionIds(int index) {
        return transactionIds_.get(index);
      }

      public static final int TRANSACTIONS_METADATA_FIELD_NUMBER = 4;
      private java.util.List transactionsMetadata_;
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      public java.util.List getTransactionsMetadataList() {
        return transactionsMetadata_;
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      public java.util.List 
          getTransactionsMetadataOrBuilderList() {
        return transactionsMetadata_;
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      public int getTransactionsMetadataCount() {
        return transactionsMetadata_.size();
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      public com.wavesplatform.events.protobuf.Events.TransactionMetadata getTransactionsMetadata(int index) {
        return transactionsMetadata_.get(index);
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      public com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder getTransactionsMetadataOrBuilder(
          int index) {
        return transactionsMetadata_.get(index);
      }

      public static final int STATE_UPDATE_FIELD_NUMBER = 11;
      private com.wavesplatform.events.protobuf.Events.StateUpdate stateUpdate_;
      /**
       * .waves.events.StateUpdate state_update = 11;
       * @return Whether the stateUpdate field is set.
       */
      public boolean hasStateUpdate() {
        return stateUpdate_ != null;
      }
      /**
       * .waves.events.StateUpdate state_update = 11;
       * @return The stateUpdate.
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate getStateUpdate() {
        return stateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : stateUpdate_;
      }
      /**
       * .waves.events.StateUpdate state_update = 11;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getStateUpdateOrBuilder() {
        return getStateUpdate();
      }

      public static final int TRANSACTION_STATE_UPDATES_FIELD_NUMBER = 12;
      private java.util.List transactionStateUpdates_;
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      public java.util.List getTransactionStateUpdatesList() {
        return transactionStateUpdates_;
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      public java.util.List 
          getTransactionStateUpdatesOrBuilderList() {
        return transactionStateUpdates_;
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      public int getTransactionStateUpdatesCount() {
        return transactionStateUpdates_.size();
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate getTransactionStateUpdates(int index) {
        return transactionStateUpdates_.get(index);
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getTransactionStateUpdatesOrBuilder(
          int index) {
        return transactionStateUpdates_.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 (bodyCase_ == 1) {
          output.writeMessage(1, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_);
        }
        if (bodyCase_ == 2) {
          output.writeMessage(2, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_);
        }
        for (int i = 0; i < transactionIds_.size(); i++) {
          output.writeBytes(3, transactionIds_.get(i));
        }
        for (int i = 0; i < transactionsMetadata_.size(); i++) {
          output.writeMessage(4, transactionsMetadata_.get(i));
        }
        if (stateUpdate_ != null) {
          output.writeMessage(11, getStateUpdate());
        }
        for (int i = 0; i < transactionStateUpdates_.size(); i++) {
          output.writeMessage(12, transactionStateUpdates_.get(i));
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (bodyCase_ == 1) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_);
        }
        if (bodyCase_ == 2) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < transactionIds_.size(); i++) {
            dataSize += com.google.protobuf.CodedOutputStream
              .computeBytesSizeNoTag(transactionIds_.get(i));
          }
          size += dataSize;
          size += 1 * getTransactionIdsList().size();
        }
        for (int i = 0; i < transactionsMetadata_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(4, transactionsMetadata_.get(i));
        }
        if (stateUpdate_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(11, getStateUpdate());
        }
        for (int i = 0; i < transactionStateUpdates_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(12, transactionStateUpdates_.get(i));
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append other = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) obj;

        if (!getTransactionIdsList()
            .equals(other.getTransactionIdsList())) return false;
        if (!getTransactionsMetadataList()
            .equals(other.getTransactionsMetadataList())) return false;
        if (hasStateUpdate() != other.hasStateUpdate()) return false;
        if (hasStateUpdate()) {
          if (!getStateUpdate()
              .equals(other.getStateUpdate())) return false;
        }
        if (!getTransactionStateUpdatesList()
            .equals(other.getTransactionStateUpdatesList())) return false;
        if (!getBodyCase().equals(other.getBodyCase())) return false;
        switch (bodyCase_) {
          case 1:
            if (!getBlock()
                .equals(other.getBlock())) return false;
            break;
          case 2:
            if (!getMicroBlock()
                .equals(other.getMicroBlock())) return false;
            break;
          case 0:
          default:
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (getTransactionIdsCount() > 0) {
          hash = (37 * hash) + TRANSACTION_IDS_FIELD_NUMBER;
          hash = (53 * hash) + getTransactionIdsList().hashCode();
        }
        if (getTransactionsMetadataCount() > 0) {
          hash = (37 * hash) + TRANSACTIONS_METADATA_FIELD_NUMBER;
          hash = (53 * hash) + getTransactionsMetadataList().hashCode();
        }
        if (hasStateUpdate()) {
          hash = (37 * hash) + STATE_UPDATE_FIELD_NUMBER;
          hash = (53 * hash) + getStateUpdate().hashCode();
        }
        if (getTransactionStateUpdatesCount() > 0) {
          hash = (37 * hash) + TRANSACTION_STATE_UPDATES_FIELD_NUMBER;
          hash = (53 * hash) + getTransactionStateUpdatesList().hashCode();
        }
        switch (bodyCase_) {
          case 1:
            hash = (37 * hash) + BLOCK_FIELD_NUMBER;
            hash = (53 * hash) + getBlock().hashCode();
            break;
          case 2:
            hash = (37 * hash) + MICRO_BLOCK_FIELD_NUMBER;
            hash = (53 * hash) + getMicroBlock().hashCode();
            break;
          case 0:
          default:
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append 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.events.protobuf.Events.BlockchainUpdated.Append parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append 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.events.protobuf.Events.BlockchainUpdated.Append parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append 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.events.protobuf.Events.BlockchainUpdated.Append parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append 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.events.protobuf.Events.BlockchainUpdated.Append 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.events.BlockchainUpdated.Append}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.BlockchainUpdated.Append)
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
            getTransactionsMetadataFieldBuilder();
            getTransactionStateUpdatesFieldBuilder();
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          transactionIds_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          if (transactionsMetadataBuilder_ == null) {
            transactionsMetadata_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            transactionsMetadataBuilder_.clear();
          }
          if (stateUpdateBuilder_ == null) {
            stateUpdate_ = null;
          } else {
            stateUpdate_ = null;
            stateUpdateBuilder_ = null;
          }
          if (transactionStateUpdatesBuilder_ == null) {
            transactionStateUpdates_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            transactionStateUpdatesBuilder_.clear();
          }
          bodyCase_ = 0;
          body_ = null;
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Append_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append build() {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append buildPartial() {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append result = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append(this);
          int from_bitField0_ = bitField0_;
          if (bodyCase_ == 1) {
            if (blockBuilder_ == null) {
              result.body_ = body_;
            } else {
              result.body_ = blockBuilder_.build();
            }
          }
          if (bodyCase_ == 2) {
            if (microBlockBuilder_ == null) {
              result.body_ = body_;
            } else {
              result.body_ = microBlockBuilder_.build();
            }
          }
          if (((bitField0_ & 0x00000001) != 0)) {
            transactionIds_ = java.util.Collections.unmodifiableList(transactionIds_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.transactionIds_ = transactionIds_;
          if (transactionsMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              transactionsMetadata_ = java.util.Collections.unmodifiableList(transactionsMetadata_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.transactionsMetadata_ = transactionsMetadata_;
          } else {
            result.transactionsMetadata_ = transactionsMetadataBuilder_.build();
          }
          if (stateUpdateBuilder_ == null) {
            result.stateUpdate_ = stateUpdate_;
          } else {
            result.stateUpdate_ = stateUpdateBuilder_.build();
          }
          if (transactionStateUpdatesBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0)) {
              transactionStateUpdates_ = java.util.Collections.unmodifiableList(transactionStateUpdates_);
              bitField0_ = (bitField0_ & ~0x00000004);
            }
            result.transactionStateUpdates_ = transactionStateUpdates_;
          } else {
            result.transactionStateUpdates_ = transactionStateUpdatesBuilder_.build();
          }
          result.bodyCase_ = bodyCase_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append other) {
          if (other == com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance()) return this;
          if (!other.transactionIds_.isEmpty()) {
            if (transactionIds_.isEmpty()) {
              transactionIds_ = other.transactionIds_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTransactionIdsIsMutable();
              transactionIds_.addAll(other.transactionIds_);
            }
            onChanged();
          }
          if (transactionsMetadataBuilder_ == null) {
            if (!other.transactionsMetadata_.isEmpty()) {
              if (transactionsMetadata_.isEmpty()) {
                transactionsMetadata_ = other.transactionsMetadata_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureTransactionsMetadataIsMutable();
                transactionsMetadata_.addAll(other.transactionsMetadata_);
              }
              onChanged();
            }
          } else {
            if (!other.transactionsMetadata_.isEmpty()) {
              if (transactionsMetadataBuilder_.isEmpty()) {
                transactionsMetadataBuilder_.dispose();
                transactionsMetadataBuilder_ = null;
                transactionsMetadata_ = other.transactionsMetadata_;
                bitField0_ = (bitField0_ & ~0x00000002);
                transactionsMetadataBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getTransactionsMetadataFieldBuilder() : null;
              } else {
                transactionsMetadataBuilder_.addAllMessages(other.transactionsMetadata_);
              }
            }
          }
          if (other.hasStateUpdate()) {
            mergeStateUpdate(other.getStateUpdate());
          }
          if (transactionStateUpdatesBuilder_ == null) {
            if (!other.transactionStateUpdates_.isEmpty()) {
              if (transactionStateUpdates_.isEmpty()) {
                transactionStateUpdates_ = other.transactionStateUpdates_;
                bitField0_ = (bitField0_ & ~0x00000004);
              } else {
                ensureTransactionStateUpdatesIsMutable();
                transactionStateUpdates_.addAll(other.transactionStateUpdates_);
              }
              onChanged();
            }
          } else {
            if (!other.transactionStateUpdates_.isEmpty()) {
              if (transactionStateUpdatesBuilder_.isEmpty()) {
                transactionStateUpdatesBuilder_.dispose();
                transactionStateUpdatesBuilder_ = null;
                transactionStateUpdates_ = other.transactionStateUpdates_;
                bitField0_ = (bitField0_ & ~0x00000004);
                transactionStateUpdatesBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getTransactionStateUpdatesFieldBuilder() : null;
              } else {
                transactionStateUpdatesBuilder_.addAllMessages(other.transactionStateUpdates_);
              }
            }
          }
          switch (other.getBodyCase()) {
            case BLOCK: {
              mergeBlock(other.getBlock());
              break;
            }
            case MICRO_BLOCK: {
              mergeMicroBlock(other.getMicroBlock());
              break;
            }
            case BODY_NOT_SET: {
              break;
            }
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bodyCase_ = 0;
        private java.lang.Object body_;
        public BodyCase
            getBodyCase() {
          return BodyCase.forNumber(
              bodyCase_);
        }

        public Builder clearBody() {
          bodyCase_ = 0;
          body_ = null;
          onChanged();
          return this;
        }

        private int bitField0_;

        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder> blockBuilder_;
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         * @return Whether the block field is set.
         */
        public boolean hasBlock() {
          return bodyCase_ == 1;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         * @return The block.
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend getBlock() {
          if (blockBuilder_ == null) {
            if (bodyCase_ == 1) {
              return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_;
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
          } else {
            if (bodyCase_ == 1) {
              return blockBuilder_.getMessage();
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
          }
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public Builder setBlock(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend value) {
          if (blockBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            body_ = value;
            onChanged();
          } else {
            blockBuilder_.setMessage(value);
          }
          bodyCase_ = 1;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public Builder setBlock(
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder builderForValue) {
          if (blockBuilder_ == null) {
            body_ = builderForValue.build();
            onChanged();
          } else {
            blockBuilder_.setMessage(builderForValue.build());
          }
          bodyCase_ = 1;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public Builder mergeBlock(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend value) {
          if (blockBuilder_ == null) {
            if (bodyCase_ == 1 &&
                body_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance()) {
              body_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.newBuilder((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_)
                  .mergeFrom(value).buildPartial();
            } else {
              body_ = value;
            }
            onChanged();
          } else {
            if (bodyCase_ == 1) {
              blockBuilder_.mergeFrom(value);
            }
            blockBuilder_.setMessage(value);
          }
          bodyCase_ = 1;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public Builder clearBlock() {
          if (blockBuilder_ == null) {
            if (bodyCase_ == 1) {
              bodyCase_ = 0;
              body_ = null;
              onChanged();
            }
          } else {
            if (bodyCase_ == 1) {
              bodyCase_ = 0;
              body_ = null;
            }
            blockBuilder_.clear();
          }
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder getBlockBuilder() {
          return getBlockFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder getBlockOrBuilder() {
          if ((bodyCase_ == 1) && (blockBuilder_ != null)) {
            return blockBuilder_.getMessageOrBuilder();
          } else {
            if (bodyCase_ == 1) {
              return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_;
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
          }
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder> 
            getBlockFieldBuilder() {
          if (blockBuilder_ == null) {
            if (!(bodyCase_ == 1)) {
              body_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.getDefaultInstance();
            }
            blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppendOrBuilder>(
                    (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend) body_,
                    getParentForChildren(),
                    isClean());
            body_ = null;
          }
          bodyCase_ = 1;
          onChanged();;
          return blockBuilder_;
        }

        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder> microBlockBuilder_;
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         * @return Whether the microBlock field is set.
         */
        public boolean hasMicroBlock() {
          return bodyCase_ == 2;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         * @return The microBlock.
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend getMicroBlock() {
          if (microBlockBuilder_ == null) {
            if (bodyCase_ == 2) {
              return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_;
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
          } else {
            if (bodyCase_ == 2) {
              return microBlockBuilder_.getMessage();
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
          }
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public Builder setMicroBlock(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend value) {
          if (microBlockBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            body_ = value;
            onChanged();
          } else {
            microBlockBuilder_.setMessage(value);
          }
          bodyCase_ = 2;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public Builder setMicroBlock(
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder builderForValue) {
          if (microBlockBuilder_ == null) {
            body_ = builderForValue.build();
            onChanged();
          } else {
            microBlockBuilder_.setMessage(builderForValue.build());
          }
          bodyCase_ = 2;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public Builder mergeMicroBlock(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend value) {
          if (microBlockBuilder_ == null) {
            if (bodyCase_ == 2 &&
                body_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance()) {
              body_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.newBuilder((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_)
                  .mergeFrom(value).buildPartial();
            } else {
              body_ = value;
            }
            onChanged();
          } else {
            if (bodyCase_ == 2) {
              microBlockBuilder_.mergeFrom(value);
            }
            microBlockBuilder_.setMessage(value);
          }
          bodyCase_ = 2;
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public Builder clearMicroBlock() {
          if (microBlockBuilder_ == null) {
            if (bodyCase_ == 2) {
              bodyCase_ = 0;
              body_ = null;
              onChanged();
            }
          } else {
            if (bodyCase_ == 2) {
              bodyCase_ = 0;
              body_ = null;
            }
            microBlockBuilder_.clear();
          }
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder getMicroBlockBuilder() {
          return getMicroBlockFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder getMicroBlockOrBuilder() {
          if ((bodyCase_ == 2) && (microBlockBuilder_ != null)) {
            return microBlockBuilder_.getMessageOrBuilder();
          } else {
            if (bodyCase_ == 2) {
              return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_;
            }
            return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
          }
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder> 
            getMicroBlockFieldBuilder() {
          if (microBlockBuilder_ == null) {
            if (!(bodyCase_ == 2)) {
              body_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.getDefaultInstance();
            }
            microBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppendOrBuilder>(
                    (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend) body_,
                    getParentForChildren(),
                    isClean());
            body_ = null;
          }
          bodyCase_ = 2;
          onChanged();;
          return microBlockBuilder_;
        }

        private java.util.List transactionIds_ = java.util.Collections.emptyList();
        private void ensureTransactionIdsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            transactionIds_ = new java.util.ArrayList(transactionIds_);
            bitField0_ |= 0x00000001;
           }
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @return A list containing the transactionIds.
         */
        public java.util.List
            getTransactionIdsList() {
          return ((bitField0_ & 0x00000001) != 0) ?
                   java.util.Collections.unmodifiableList(transactionIds_) : transactionIds_;
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @return The count of transactionIds.
         */
        public int getTransactionIdsCount() {
          return transactionIds_.size();
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @param index The index of the element to return.
         * @return The transactionIds at the given index.
         */
        public com.google.protobuf.ByteString getTransactionIds(int index) {
          return transactionIds_.get(index);
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @param index The index to set the value at.
         * @param value The transactionIds to set.
         * @return This builder for chaining.
         */
        public Builder setTransactionIds(
            int index, com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  ensureTransactionIdsIsMutable();
          transactionIds_.set(index, value);
          onChanged();
          return this;
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @param value The transactionIds to add.
         * @return This builder for chaining.
         */
        public Builder addTransactionIds(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  ensureTransactionIdsIsMutable();
          transactionIds_.add(value);
          onChanged();
          return this;
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @param values The transactionIds to add.
         * @return This builder for chaining.
         */
        public Builder addAllTransactionIds(
            java.lang.Iterable values) {
          ensureTransactionIdsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, transactionIds_);
          onChanged();
          return this;
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @return This builder for chaining.
         */
        public Builder clearTransactionIds() {
          transactionIds_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }

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

        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.TransactionMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder> transactionsMetadataBuilder_;

        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public java.util.List getTransactionsMetadataList() {
          if (transactionsMetadataBuilder_ == null) {
            return java.util.Collections.unmodifiableList(transactionsMetadata_);
          } else {
            return transactionsMetadataBuilder_.getMessageList();
          }
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public int getTransactionsMetadataCount() {
          if (transactionsMetadataBuilder_ == null) {
            return transactionsMetadata_.size();
          } else {
            return transactionsMetadataBuilder_.getCount();
          }
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public com.wavesplatform.events.protobuf.Events.TransactionMetadata getTransactionsMetadata(int index) {
          if (transactionsMetadataBuilder_ == null) {
            return transactionsMetadata_.get(index);
          } else {
            return transactionsMetadataBuilder_.getMessage(index);
          }
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder setTransactionsMetadata(
            int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata value) {
          if (transactionsMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.set(index, value);
            onChanged();
          } else {
            transactionsMetadataBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder setTransactionsMetadata(
            int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder builderForValue) {
          if (transactionsMetadataBuilder_ == null) {
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.set(index, builderForValue.build());
            onChanged();
          } else {
            transactionsMetadataBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder addTransactionsMetadata(com.wavesplatform.events.protobuf.Events.TransactionMetadata value) {
          if (transactionsMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.add(value);
            onChanged();
          } else {
            transactionsMetadataBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder addTransactionsMetadata(
            int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata value) {
          if (transactionsMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.add(index, value);
            onChanged();
          } else {
            transactionsMetadataBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder addTransactionsMetadata(
            com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder builderForValue) {
          if (transactionsMetadataBuilder_ == null) {
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.add(builderForValue.build());
            onChanged();
          } else {
            transactionsMetadataBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder addTransactionsMetadata(
            int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder builderForValue) {
          if (transactionsMetadataBuilder_ == null) {
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.add(index, builderForValue.build());
            onChanged();
          } else {
            transactionsMetadataBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder addAllTransactionsMetadata(
            java.lang.Iterable values) {
          if (transactionsMetadataBuilder_ == null) {
            ensureTransactionsMetadataIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, transactionsMetadata_);
            onChanged();
          } else {
            transactionsMetadataBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder clearTransactionsMetadata() {
          if (transactionsMetadataBuilder_ == null) {
            transactionsMetadata_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            transactionsMetadataBuilder_.clear();
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public Builder removeTransactionsMetadata(int index) {
          if (transactionsMetadataBuilder_ == null) {
            ensureTransactionsMetadataIsMutable();
            transactionsMetadata_.remove(index);
            onChanged();
          } else {
            transactionsMetadataBuilder_.remove(index);
          }
          return this;
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder getTransactionsMetadataBuilder(
            int index) {
          return getTransactionsMetadataFieldBuilder().getBuilder(index);
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder getTransactionsMetadataOrBuilder(
            int index) {
          if (transactionsMetadataBuilder_ == null) {
            return transactionsMetadata_.get(index);  } else {
            return transactionsMetadataBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public java.util.List 
             getTransactionsMetadataOrBuilderList() {
          if (transactionsMetadataBuilder_ != null) {
            return transactionsMetadataBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(transactionsMetadata_);
          }
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder addTransactionsMetadataBuilder() {
          return getTransactionsMetadataFieldBuilder().addBuilder(
              com.wavesplatform.events.protobuf.Events.TransactionMetadata.getDefaultInstance());
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder addTransactionsMetadataBuilder(
            int index) {
          return getTransactionsMetadataFieldBuilder().addBuilder(
              index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.getDefaultInstance());
        }
        /**
         * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
         */
        public java.util.List 
             getTransactionsMetadataBuilderList() {
          return getTransactionsMetadataFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.TransactionMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder> 
            getTransactionsMetadataFieldBuilder() {
          if (transactionsMetadataBuilder_ == null) {
            transactionsMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.TransactionMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder>(
                    transactionsMetadata_,
                    ((bitField0_ & 0x00000002) != 0),
                    getParentForChildren(),
                    isClean());
            transactionsMetadata_ = null;
          }
          return transactionsMetadataBuilder_;
        }

        private com.wavesplatform.events.protobuf.Events.StateUpdate stateUpdate_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> stateUpdateBuilder_;
        /**
         * .waves.events.StateUpdate state_update = 11;
         * @return Whether the stateUpdate field is set.
         */
        public boolean hasStateUpdate() {
          return stateUpdateBuilder_ != null || stateUpdate_ != null;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         * @return The stateUpdate.
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate getStateUpdate() {
          if (stateUpdateBuilder_ == null) {
            return stateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : stateUpdate_;
          } else {
            return stateUpdateBuilder_.getMessage();
          }
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder setStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (stateUpdateBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            stateUpdate_ = value;
            onChanged();
          } else {
            stateUpdateBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder setStateUpdate(
            com.wavesplatform.events.protobuf.Events.StateUpdate.Builder builderForValue) {
          if (stateUpdateBuilder_ == null) {
            stateUpdate_ = builderForValue.build();
            onChanged();
          } else {
            stateUpdateBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder mergeStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (stateUpdateBuilder_ == null) {
            if (stateUpdate_ != null) {
              stateUpdate_ =
                com.wavesplatform.events.protobuf.Events.StateUpdate.newBuilder(stateUpdate_).mergeFrom(value).buildPartial();
            } else {
              stateUpdate_ = value;
            }
            onChanged();
          } else {
            stateUpdateBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder clearStateUpdate() {
          if (stateUpdateBuilder_ == null) {
            stateUpdate_ = null;
            onChanged();
          } else {
            stateUpdate_ = null;
            stateUpdateBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder getStateUpdateBuilder() {
          
          onChanged();
          return getStateUpdateFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getStateUpdateOrBuilder() {
          if (stateUpdateBuilder_ != null) {
            return stateUpdateBuilder_.getMessageOrBuilder();
          } else {
            return stateUpdate_ == null ?
                com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : stateUpdate_;
          }
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> 
            getStateUpdateFieldBuilder() {
          if (stateUpdateBuilder_ == null) {
            stateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder>(
                    getStateUpdate(),
                    getParentForChildren(),
                    isClean());
            stateUpdate_ = null;
          }
          return stateUpdateBuilder_;
        }

        private java.util.List transactionStateUpdates_ =
          java.util.Collections.emptyList();
        private void ensureTransactionStateUpdatesIsMutable() {
          if (!((bitField0_ & 0x00000004) != 0)) {
            transactionStateUpdates_ = new java.util.ArrayList(transactionStateUpdates_);
            bitField0_ |= 0x00000004;
           }
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> transactionStateUpdatesBuilder_;

        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public java.util.List getTransactionStateUpdatesList() {
          if (transactionStateUpdatesBuilder_ == null) {
            return java.util.Collections.unmodifiableList(transactionStateUpdates_);
          } else {
            return transactionStateUpdatesBuilder_.getMessageList();
          }
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public int getTransactionStateUpdatesCount() {
          if (transactionStateUpdatesBuilder_ == null) {
            return transactionStateUpdates_.size();
          } else {
            return transactionStateUpdatesBuilder_.getCount();
          }
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate getTransactionStateUpdates(int index) {
          if (transactionStateUpdatesBuilder_ == null) {
            return transactionStateUpdates_.get(index);
          } else {
            return transactionStateUpdatesBuilder_.getMessage(index);
          }
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder setTransactionStateUpdates(
            int index, com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (transactionStateUpdatesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.set(index, value);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder setTransactionStateUpdates(
            int index, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder builderForValue) {
          if (transactionStateUpdatesBuilder_ == null) {
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.set(index, builderForValue.build());
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder addTransactionStateUpdates(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (transactionStateUpdatesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.add(value);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder addTransactionStateUpdates(
            int index, com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (transactionStateUpdatesBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.add(index, value);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder addTransactionStateUpdates(
            com.wavesplatform.events.protobuf.Events.StateUpdate.Builder builderForValue) {
          if (transactionStateUpdatesBuilder_ == null) {
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.add(builderForValue.build());
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder addTransactionStateUpdates(
            int index, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder builderForValue) {
          if (transactionStateUpdatesBuilder_ == null) {
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.add(index, builderForValue.build());
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder addAllTransactionStateUpdates(
            java.lang.Iterable values) {
          if (transactionStateUpdatesBuilder_ == null) {
            ensureTransactionStateUpdatesIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, transactionStateUpdates_);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder clearTransactionStateUpdates() {
          if (transactionStateUpdatesBuilder_ == null) {
            transactionStateUpdates_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.clear();
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public Builder removeTransactionStateUpdates(int index) {
          if (transactionStateUpdatesBuilder_ == null) {
            ensureTransactionStateUpdatesIsMutable();
            transactionStateUpdates_.remove(index);
            onChanged();
          } else {
            transactionStateUpdatesBuilder_.remove(index);
          }
          return this;
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder getTransactionStateUpdatesBuilder(
            int index) {
          return getTransactionStateUpdatesFieldBuilder().getBuilder(index);
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getTransactionStateUpdatesOrBuilder(
            int index) {
          if (transactionStateUpdatesBuilder_ == null) {
            return transactionStateUpdates_.get(index);  } else {
            return transactionStateUpdatesBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public java.util.List 
             getTransactionStateUpdatesOrBuilderList() {
          if (transactionStateUpdatesBuilder_ != null) {
            return transactionStateUpdatesBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(transactionStateUpdates_);
          }
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder addTransactionStateUpdatesBuilder() {
          return getTransactionStateUpdatesFieldBuilder().addBuilder(
              com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance());
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder addTransactionStateUpdatesBuilder(
            int index) {
          return getTransactionStateUpdatesFieldBuilder().addBuilder(
              index, com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance());
        }
        /**
         * repeated .waves.events.StateUpdate transaction_state_updates = 12;
         */
        public java.util.List 
             getTransactionStateUpdatesBuilderList() {
          return getTransactionStateUpdatesFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> 
            getTransactionStateUpdatesFieldBuilder() {
          if (transactionStateUpdatesBuilder_ == null) {
            transactionStateUpdatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder>(
                    transactionStateUpdates_,
                    ((bitField0_ & 0x00000004) != 0),
                    getParentForChildren(),
                    isClean());
            transactionStateUpdates_ = null;
          }
          return transactionStateUpdatesBuilder_;
        }
        @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.events.BlockchainUpdated.Append)
      }

      // @@protoc_insertion_point(class_scope:waves.events.BlockchainUpdated.Append)
      private static final com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append();
      }

      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.BlockchainUpdated.Append getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface RollbackOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.BlockchainUpdated.Rollback)
        com.google.protobuf.MessageOrBuilder {

      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The enum numeric value on the wire for type.
       */
      int getTypeValue();
      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The type.
       */
      com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType getType();

      /**
       * repeated bytes removed_transaction_ids = 2;
       * @return A list containing the removedTransactionIds.
       */
      java.util.List getRemovedTransactionIdsList();
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @return The count of removedTransactionIds.
       */
      int getRemovedTransactionIdsCount();
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @param index The index of the element to return.
       * @return The removedTransactionIds at the given index.
       */
      com.google.protobuf.ByteString getRemovedTransactionIds(int index);

      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      java.util.List 
          getRemovedBlocksList();
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      com.wavesplatform.protobuf.block.BlockOuterClass.Block getRemovedBlocks(int index);
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      int getRemovedBlocksCount();
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      java.util.List 
          getRemovedBlocksOrBuilderList();
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getRemovedBlocksOrBuilder(
          int index);

      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       * @return Whether the rollbackStateUpdate field is set.
       */
      boolean hasRollbackStateUpdate();
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       * @return The rollbackStateUpdate.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate getRollbackStateUpdate();
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getRollbackStateUpdateOrBuilder();
    }
    /**
     * Protobuf type {@code waves.events.BlockchainUpdated.Rollback}
     */
    public  static final class Rollback extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.BlockchainUpdated.Rollback)
        RollbackOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Rollback.newBuilder() to construct.
      private Rollback(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private Rollback() {
        type_ = 0;
        removedTransactionIds_ = java.util.Collections.emptyList();
        removedBlocks_ = java.util.Collections.emptyList();
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Rollback(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                int rawValue = input.readEnum();

                type_ = rawValue;
                break;
              }
              case 18: {
                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                  removedTransactionIds_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000001;
                }
                removedTransactionIds_.add(input.readBytes());
                break;
              }
              case 26: {
                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                  removedBlocks_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000002;
                }
                removedBlocks_.add(
                    input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.Block.parser(), extensionRegistry));
                break;
              }
              case 34: {
                com.wavesplatform.events.protobuf.Events.StateUpdate.Builder subBuilder = null;
                if (rollbackStateUpdate_ != null) {
                  subBuilder = rollbackStateUpdate_.toBuilder();
                }
                rollbackStateUpdate_ = input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(rollbackStateUpdate_);
                  rollbackStateUpdate_ = subBuilder.buildPartial();
                }

                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          if (((mutable_bitField0_ & 0x00000001) != 0)) {
            removedTransactionIds_ = java.util.Collections.unmodifiableList(removedTransactionIds_); // C
          }
          if (((mutable_bitField0_ & 0x00000002) != 0)) {
            removedBlocks_ = java.util.Collections.unmodifiableList(removedBlocks_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Rollback_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Rollback_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder.class);
      }

      /**
       * Protobuf enum {@code waves.events.BlockchainUpdated.Rollback.RollbackType}
       */
      public enum RollbackType
          implements com.google.protobuf.ProtocolMessageEnum {
        /**
         * BLOCK = 0;
         */
        BLOCK(0),
        /**
         * MICROBLOCK = 1;
         */
        MICROBLOCK(1),
        UNRECOGNIZED(-1),
        ;

        /**
         * BLOCK = 0;
         */
        public static final int BLOCK_VALUE = 0;
        /**
         * MICROBLOCK = 1;
         */
        public static final int MICROBLOCK_VALUE = 1;


        public final int getNumber() {
          if (this == UNRECOGNIZED) {
            throw new java.lang.IllegalArgumentException(
                "Can't get the number of an unknown enum value.");
          }
          return value;
        }

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static RollbackType valueOf(int value) {
          return forNumber(value);
        }

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         */
        public static RollbackType forNumber(int value) {
          switch (value) {
            case 0: return BLOCK;
            case 1: return MICROBLOCK;
            default: return null;
          }
        }

        public static com.google.protobuf.Internal.EnumLiteMap
            internalGetValueMap() {
          return internalValueMap;
        }
        private static final com.google.protobuf.Internal.EnumLiteMap<
            RollbackType> internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap() {
                public RollbackType findValueByNumber(int number) {
                  return RollbackType.forNumber(number);
                }
              };

        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(ordinal());
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDescriptor().getEnumTypes().get(0);
        }

        private static final RollbackType[] VALUES = values();

        public static RollbackType valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          if (desc.getIndex() == -1) {
            return UNRECOGNIZED;
          }
          return VALUES[desc.getIndex()];
        }

        private final int value;

        private RollbackType(int value) {
          this.value = value;
        }

        // @@protoc_insertion_point(enum_scope:waves.events.BlockchainUpdated.Rollback.RollbackType)
      }

      public static final int TYPE_FIELD_NUMBER = 1;
      private int type_;
      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The enum numeric value on the wire for type.
       */
      public int getTypeValue() {
        return type_;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The type.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType getType() {
        @SuppressWarnings("deprecation")
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType result = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.valueOf(type_);
        return result == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.UNRECOGNIZED : result;
      }

      public static final int REMOVED_TRANSACTION_IDS_FIELD_NUMBER = 2;
      private java.util.List removedTransactionIds_;
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @return A list containing the removedTransactionIds.
       */
      public java.util.List
          getRemovedTransactionIdsList() {
        return removedTransactionIds_;
      }
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @return The count of removedTransactionIds.
       */
      public int getRemovedTransactionIdsCount() {
        return removedTransactionIds_.size();
      }
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @param index The index of the element to return.
       * @return The removedTransactionIds at the given index.
       */
      public com.google.protobuf.ByteString getRemovedTransactionIds(int index) {
        return removedTransactionIds_.get(index);
      }

      public static final int REMOVED_BLOCKS_FIELD_NUMBER = 3;
      private java.util.List removedBlocks_;
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      public java.util.List getRemovedBlocksList() {
        return removedBlocks_;
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      public java.util.List 
          getRemovedBlocksOrBuilderList() {
        return removedBlocks_;
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      public int getRemovedBlocksCount() {
        return removedBlocks_.size();
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      public com.wavesplatform.protobuf.block.BlockOuterClass.Block getRemovedBlocks(int index) {
        return removedBlocks_.get(index);
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getRemovedBlocksOrBuilder(
          int index) {
        return removedBlocks_.get(index);
      }

      public static final int ROLLBACK_STATE_UPDATE_FIELD_NUMBER = 4;
      private com.wavesplatform.events.protobuf.Events.StateUpdate rollbackStateUpdate_;
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       * @return Whether the rollbackStateUpdate field is set.
       */
      public boolean hasRollbackStateUpdate() {
        return rollbackStateUpdate_ != null;
      }
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       * @return The rollbackStateUpdate.
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate getRollbackStateUpdate() {
        return rollbackStateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : rollbackStateUpdate_;
      }
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getRollbackStateUpdateOrBuilder() {
        return getRollbackStateUpdate();
      }

      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 (type_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.BLOCK.getNumber()) {
          output.writeEnum(1, type_);
        }
        for (int i = 0; i < removedTransactionIds_.size(); i++) {
          output.writeBytes(2, removedTransactionIds_.get(i));
        }
        for (int i = 0; i < removedBlocks_.size(); i++) {
          output.writeMessage(3, removedBlocks_.get(i));
        }
        if (rollbackStateUpdate_ != null) {
          output.writeMessage(4, getRollbackStateUpdate());
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (type_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.BLOCK.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(1, type_);
        }
        {
          int dataSize = 0;
          for (int i = 0; i < removedTransactionIds_.size(); i++) {
            dataSize += com.google.protobuf.CodedOutputStream
              .computeBytesSizeNoTag(removedTransactionIds_.get(i));
          }
          size += dataSize;
          size += 1 * getRemovedTransactionIdsList().size();
        }
        for (int i = 0; i < removedBlocks_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(3, removedBlocks_.get(i));
        }
        if (rollbackStateUpdate_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(4, getRollbackStateUpdate());
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback other = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) obj;

        if (type_ != other.type_) return false;
        if (!getRemovedTransactionIdsList()
            .equals(other.getRemovedTransactionIdsList())) return false;
        if (!getRemovedBlocksList()
            .equals(other.getRemovedBlocksList())) return false;
        if (hasRollbackStateUpdate() != other.hasRollbackStateUpdate()) return false;
        if (hasRollbackStateUpdate()) {
          if (!getRollbackStateUpdate()
              .equals(other.getRollbackStateUpdate())) return false;
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + type_;
        if (getRemovedTransactionIdsCount() > 0) {
          hash = (37 * hash) + REMOVED_TRANSACTION_IDS_FIELD_NUMBER;
          hash = (53 * hash) + getRemovedTransactionIdsList().hashCode();
        }
        if (getRemovedBlocksCount() > 0) {
          hash = (37 * hash) + REMOVED_BLOCKS_FIELD_NUMBER;
          hash = (53 * hash) + getRemovedBlocksList().hashCode();
        }
        if (hasRollbackStateUpdate()) {
          hash = (37 * hash) + ROLLBACK_STATE_UPDATE_FIELD_NUMBER;
          hash = (53 * hash) + getRollbackStateUpdate().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback 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.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback 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.events.protobuf.Events.BlockchainUpdated.Rollback parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback 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.events.protobuf.Events.BlockchainUpdated.Rollback parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback 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.events.protobuf.Events.BlockchainUpdated.Rollback 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.events.BlockchainUpdated.Rollback}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.BlockchainUpdated.Rollback)
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Rollback_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Rollback_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          removedTransactionIds_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          if (removedBlocksBuilder_ == null) {
            removedBlocks_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            removedBlocksBuilder_.clear();
          }
          if (rollbackStateUpdateBuilder_ == null) {
            rollbackStateUpdate_ = null;
          } else {
            rollbackStateUpdate_ = null;
            rollbackStateUpdateBuilder_ = null;
          }
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_Rollback_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback build() {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback buildPartial() {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback result = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback(this);
          int from_bitField0_ = bitField0_;
          result.type_ = type_;
          if (((bitField0_ & 0x00000001) != 0)) {
            removedTransactionIds_ = java.util.Collections.unmodifiableList(removedTransactionIds_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.removedTransactionIds_ = removedTransactionIds_;
          if (removedBlocksBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0)) {
              removedBlocks_ = java.util.Collections.unmodifiableList(removedBlocks_);
              bitField0_ = (bitField0_ & ~0x00000002);
            }
            result.removedBlocks_ = removedBlocks_;
          } else {
            result.removedBlocks_ = removedBlocksBuilder_.build();
          }
          if (rollbackStateUpdateBuilder_ == null) {
            result.rollbackStateUpdate_ = rollbackStateUpdate_;
          } else {
            result.rollbackStateUpdate_ = rollbackStateUpdateBuilder_.build();
          }
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback other) {
          if (other == com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance()) return this;
          if (other.type_ != 0) {
            setTypeValue(other.getTypeValue());
          }
          if (!other.removedTransactionIds_.isEmpty()) {
            if (removedTransactionIds_.isEmpty()) {
              removedTransactionIds_ = other.removedTransactionIds_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRemovedTransactionIdsIsMutable();
              removedTransactionIds_.addAll(other.removedTransactionIds_);
            }
            onChanged();
          }
          if (removedBlocksBuilder_ == null) {
            if (!other.removedBlocks_.isEmpty()) {
              if (removedBlocks_.isEmpty()) {
                removedBlocks_ = other.removedBlocks_;
                bitField0_ = (bitField0_ & ~0x00000002);
              } else {
                ensureRemovedBlocksIsMutable();
                removedBlocks_.addAll(other.removedBlocks_);
              }
              onChanged();
            }
          } else {
            if (!other.removedBlocks_.isEmpty()) {
              if (removedBlocksBuilder_.isEmpty()) {
                removedBlocksBuilder_.dispose();
                removedBlocksBuilder_ = null;
                removedBlocks_ = other.removedBlocks_;
                bitField0_ = (bitField0_ & ~0x00000002);
                removedBlocksBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getRemovedBlocksFieldBuilder() : null;
              } else {
                removedBlocksBuilder_.addAllMessages(other.removedBlocks_);
              }
            }
          }
          if (other.hasRollbackStateUpdate()) {
            mergeRollbackStateUpdate(other.getRollbackStateUpdate());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private int type_ = 0;
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return The enum numeric value on the wire for type.
         */
        public int getTypeValue() {
          return type_;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @param value The enum numeric value on the wire for type to set.
         * @return This builder for chaining.
         */
        public Builder setTypeValue(int value) {
          type_ = value;
          onChanged();
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return The type.
         */
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType getType() {
          @SuppressWarnings("deprecation")
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType result = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.valueOf(type_);
          return result == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.UNRECOGNIZED : result;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @param value The type to set.
         * @return This builder for chaining.
         */
        public Builder setType(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType value) {
          if (value == null) {
            throw new NullPointerException();
          }
          
          type_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return This builder for chaining.
         */
        public Builder clearType() {
          
          type_ = 0;
          onChanged();
          return this;
        }

        private java.util.List removedTransactionIds_ = java.util.Collections.emptyList();
        private void ensureRemovedTransactionIdsIsMutable() {
          if (!((bitField0_ & 0x00000001) != 0)) {
            removedTransactionIds_ = new java.util.ArrayList(removedTransactionIds_);
            bitField0_ |= 0x00000001;
           }
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @return A list containing the removedTransactionIds.
         */
        public java.util.List
            getRemovedTransactionIdsList() {
          return ((bitField0_ & 0x00000001) != 0) ?
                   java.util.Collections.unmodifiableList(removedTransactionIds_) : removedTransactionIds_;
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @return The count of removedTransactionIds.
         */
        public int getRemovedTransactionIdsCount() {
          return removedTransactionIds_.size();
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @param index The index of the element to return.
         * @return The removedTransactionIds at the given index.
         */
        public com.google.protobuf.ByteString getRemovedTransactionIds(int index) {
          return removedTransactionIds_.get(index);
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @param index The index to set the value at.
         * @param value The removedTransactionIds to set.
         * @return This builder for chaining.
         */
        public Builder setRemovedTransactionIds(
            int index, com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  ensureRemovedTransactionIdsIsMutable();
          removedTransactionIds_.set(index, value);
          onChanged();
          return this;
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @param value The removedTransactionIds to add.
         * @return This builder for chaining.
         */
        public Builder addRemovedTransactionIds(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  ensureRemovedTransactionIdsIsMutable();
          removedTransactionIds_.add(value);
          onChanged();
          return this;
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @param values The removedTransactionIds to add.
         * @return This builder for chaining.
         */
        public Builder addAllRemovedTransactionIds(
            java.lang.Iterable values) {
          ensureRemovedTransactionIdsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, removedTransactionIds_);
          onChanged();
          return this;
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @return This builder for chaining.
         */
        public Builder clearRemovedTransactionIds() {
          removedTransactionIds_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }

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

        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> removedBlocksBuilder_;

        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public java.util.List getRemovedBlocksList() {
          if (removedBlocksBuilder_ == null) {
            return java.util.Collections.unmodifiableList(removedBlocks_);
          } else {
            return removedBlocksBuilder_.getMessageList();
          }
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public int getRemovedBlocksCount() {
          if (removedBlocksBuilder_ == null) {
            return removedBlocks_.size();
          } else {
            return removedBlocksBuilder_.getCount();
          }
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block getRemovedBlocks(int index) {
          if (removedBlocksBuilder_ == null) {
            return removedBlocks_.get(index);
          } else {
            return removedBlocksBuilder_.getMessage(index);
          }
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder setRemovedBlocks(
            int index, com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
          if (removedBlocksBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRemovedBlocksIsMutable();
            removedBlocks_.set(index, value);
            onChanged();
          } else {
            removedBlocksBuilder_.setMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder setRemovedBlocks(
            int index, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) {
          if (removedBlocksBuilder_ == null) {
            ensureRemovedBlocksIsMutable();
            removedBlocks_.set(index, builderForValue.build());
            onChanged();
          } else {
            removedBlocksBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder addRemovedBlocks(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
          if (removedBlocksBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRemovedBlocksIsMutable();
            removedBlocks_.add(value);
            onChanged();
          } else {
            removedBlocksBuilder_.addMessage(value);
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder addRemovedBlocks(
            int index, com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
          if (removedBlocksBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureRemovedBlocksIsMutable();
            removedBlocks_.add(index, value);
            onChanged();
          } else {
            removedBlocksBuilder_.addMessage(index, value);
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder addRemovedBlocks(
            com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) {
          if (removedBlocksBuilder_ == null) {
            ensureRemovedBlocksIsMutable();
            removedBlocks_.add(builderForValue.build());
            onChanged();
          } else {
            removedBlocksBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder addRemovedBlocks(
            int index, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) {
          if (removedBlocksBuilder_ == null) {
            ensureRemovedBlocksIsMutable();
            removedBlocks_.add(index, builderForValue.build());
            onChanged();
          } else {
            removedBlocksBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder addAllRemovedBlocks(
            java.lang.Iterable values) {
          if (removedBlocksBuilder_ == null) {
            ensureRemovedBlocksIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, removedBlocks_);
            onChanged();
          } else {
            removedBlocksBuilder_.addAllMessages(values);
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder clearRemovedBlocks() {
          if (removedBlocksBuilder_ == null) {
            removedBlocks_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000002);
            onChanged();
          } else {
            removedBlocksBuilder_.clear();
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public Builder removeRemovedBlocks(int index) {
          if (removedBlocksBuilder_ == null) {
            ensureRemovedBlocksIsMutable();
            removedBlocks_.remove(index);
            onChanged();
          } else {
            removedBlocksBuilder_.remove(index);
          }
          return this;
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder getRemovedBlocksBuilder(
            int index) {
          return getRemovedBlocksFieldBuilder().getBuilder(index);
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getRemovedBlocksOrBuilder(
            int index) {
          if (removedBlocksBuilder_ == null) {
            return removedBlocks_.get(index);  } else {
            return removedBlocksBuilder_.getMessageOrBuilder(index);
          }
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public java.util.List 
             getRemovedBlocksOrBuilderList() {
          if (removedBlocksBuilder_ != null) {
            return removedBlocksBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(removedBlocks_);
          }
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder addRemovedBlocksBuilder() {
          return getRemovedBlocksFieldBuilder().addBuilder(
              com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance());
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder addRemovedBlocksBuilder(
            int index) {
          return getRemovedBlocksFieldBuilder().addBuilder(
              index, com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance());
        }
        /**
         * repeated .waves.Block removed_blocks = 3;
         */
        public java.util.List 
             getRemovedBlocksBuilderList() {
          return getRemovedBlocksFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilderV3<
            com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> 
            getRemovedBlocksFieldBuilder() {
          if (removedBlocksBuilder_ == null) {
            removedBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder>(
                    removedBlocks_,
                    ((bitField0_ & 0x00000002) != 0),
                    getParentForChildren(),
                    isClean());
            removedBlocks_ = null;
          }
          return removedBlocksBuilder_;
        }

        private com.wavesplatform.events.protobuf.Events.StateUpdate rollbackStateUpdate_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> rollbackStateUpdateBuilder_;
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         * @return Whether the rollbackStateUpdate field is set.
         */
        public boolean hasRollbackStateUpdate() {
          return rollbackStateUpdateBuilder_ != null || rollbackStateUpdate_ != null;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         * @return The rollbackStateUpdate.
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate getRollbackStateUpdate() {
          if (rollbackStateUpdateBuilder_ == null) {
            return rollbackStateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : rollbackStateUpdate_;
          } else {
            return rollbackStateUpdateBuilder_.getMessage();
          }
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder setRollbackStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (rollbackStateUpdateBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            rollbackStateUpdate_ = value;
            onChanged();
          } else {
            rollbackStateUpdateBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder setRollbackStateUpdate(
            com.wavesplatform.events.protobuf.Events.StateUpdate.Builder builderForValue) {
          if (rollbackStateUpdateBuilder_ == null) {
            rollbackStateUpdate_ = builderForValue.build();
            onChanged();
          } else {
            rollbackStateUpdateBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder mergeRollbackStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (rollbackStateUpdateBuilder_ == null) {
            if (rollbackStateUpdate_ != null) {
              rollbackStateUpdate_ =
                com.wavesplatform.events.protobuf.Events.StateUpdate.newBuilder(rollbackStateUpdate_).mergeFrom(value).buildPartial();
            } else {
              rollbackStateUpdate_ = value;
            }
            onChanged();
          } else {
            rollbackStateUpdateBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder clearRollbackStateUpdate() {
          if (rollbackStateUpdateBuilder_ == null) {
            rollbackStateUpdate_ = null;
            onChanged();
          } else {
            rollbackStateUpdate_ = null;
            rollbackStateUpdateBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder getRollbackStateUpdateBuilder() {
          
          onChanged();
          return getRollbackStateUpdateFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getRollbackStateUpdateOrBuilder() {
          if (rollbackStateUpdateBuilder_ != null) {
            return rollbackStateUpdateBuilder_.getMessageOrBuilder();
          } else {
            return rollbackStateUpdate_ == null ?
                com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : rollbackStateUpdate_;
          }
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder> 
            getRollbackStateUpdateFieldBuilder() {
          if (rollbackStateUpdateBuilder_ == null) {
            rollbackStateUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.StateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder>(
                    getRollbackStateUpdate(),
                    getParentForChildren(),
                    isClean());
            rollbackStateUpdate_ = null;
          }
          return rollbackStateUpdateBuilder_;
        }
        @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.events.BlockchainUpdated.Rollback)
      }

      // @@protoc_insertion_point(class_scope:waves.events.BlockchainUpdated.Rollback)
      private static final com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback();
      }

      public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.BlockchainUpdated.Rollback getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int updateCase_ = 0;
    private java.lang.Object update_;
    public enum UpdateCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      APPEND(11),
      ROLLBACK(12),
      UPDATE_NOT_SET(0);
      private final int value;
      private UpdateCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static UpdateCase valueOf(int value) {
        return forNumber(value);
      }

      public static UpdateCase forNumber(int value) {
        switch (value) {
          case 11: return APPEND;
          case 12: return ROLLBACK;
          case 0: return UPDATE_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public UpdateCase
    getUpdateCase() {
      return UpdateCase.forNumber(
          updateCase_);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString id_;
    /**
     * bytes id = 1;
     * @return The id.
     */
    public com.google.protobuf.ByteString getId() {
      return id_;
    }

    public static final int HEIGHT_FIELD_NUMBER = 2;
    private int height_;
    /**
     * int32 height = 2;
     * @return The height.
     */
    public int getHeight() {
      return height_;
    }

    public static final int APPEND_FIELD_NUMBER = 11;
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     * @return Whether the append field is set.
     */
    public boolean hasAppend() {
      return updateCase_ == 11;
    }
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     * @return The append.
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append getAppend() {
      if (updateCase_ == 11) {
         return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_;
      }
      return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
    }
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder getAppendOrBuilder() {
      if (updateCase_ == 11) {
         return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_;
      }
      return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
    }

    public static final int ROLLBACK_FIELD_NUMBER = 12;
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     * @return Whether the rollback field is set.
     */
    public boolean hasRollback() {
      return updateCase_ == 12;
    }
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     * @return The rollback.
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback getRollback() {
      if (updateCase_ == 12) {
         return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_;
      }
      return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
    }
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder getRollbackOrBuilder() {
      if (updateCase_ == 12) {
         return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_;
      }
      return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
    }

    public static final int REFERENCED_ASSETS_FIELD_NUMBER = 21;
    private java.util.List referencedAssets_;
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    public java.util.List getReferencedAssetsList() {
      return referencedAssets_;
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    public java.util.List 
        getReferencedAssetsOrBuilderList() {
      return referencedAssets_;
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    public int getReferencedAssetsCount() {
      return referencedAssets_.size();
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getReferencedAssets(int index) {
      return referencedAssets_.get(index);
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder getReferencedAssetsOrBuilder(
        int index) {
      return referencedAssets_.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 (!id_.isEmpty()) {
        output.writeBytes(1, id_);
      }
      if (height_ != 0) {
        output.writeInt32(2, height_);
      }
      if (updateCase_ == 11) {
        output.writeMessage(11, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_);
      }
      if (updateCase_ == 12) {
        output.writeMessage(12, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_);
      }
      for (int i = 0; i < referencedAssets_.size(); i++) {
        output.writeMessage(21, referencedAssets_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!id_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, id_);
      }
      if (height_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, height_);
      }
      if (updateCase_ == 11) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_);
      }
      if (updateCase_ == 12) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_);
      }
      for (int i = 0; i < referencedAssets_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(21, referencedAssets_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (!getId()
          .equals(other.getId())) return false;
      if (getHeight()
          != other.getHeight()) return false;
      if (!getReferencedAssetsList()
          .equals(other.getReferencedAssetsList())) return false;
      if (!getUpdateCase().equals(other.getUpdateCase())) return false;
      switch (updateCase_) {
        case 11:
          if (!getAppend()
              .equals(other.getAppend())) return false;
          break;
        case 12:
          if (!getRollback()
              .equals(other.getRollback())) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
      hash = (53 * hash) + getHeight();
      if (getReferencedAssetsCount() > 0) {
        hash = (37 * hash) + REFERENCED_ASSETS_FIELD_NUMBER;
        hash = (53 * hash) + getReferencedAssetsList().hashCode();
      }
      switch (updateCase_) {
        case 11:
          hash = (37 * hash) + APPEND_FIELD_NUMBER;
          hash = (53 * hash) + getAppend().hashCode();
          break;
        case 12:
          hash = (37 * hash) + ROLLBACK_FIELD_NUMBER;
          hash = (53 * hash) + getRollback().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.BlockchainUpdated.class, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder.class);
      }

      // Construct using com.wavesplatform.events.protobuf.Events.BlockchainUpdated.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        height_ = 0;

        if (referencedAssetsBuilder_ == null) {
          referencedAssets_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          referencedAssetsBuilder_.clear();
        }
        updateCase_ = 0;
        update_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_BlockchainUpdated_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getDefaultInstanceForType() {
        return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance();
      }

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

      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated buildPartial() {
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated result = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated(this);
        int from_bitField0_ = bitField0_;
        result.id_ = id_;
        result.height_ = height_;
        if (updateCase_ == 11) {
          if (appendBuilder_ == null) {
            result.update_ = update_;
          } else {
            result.update_ = appendBuilder_.build();
          }
        }
        if (updateCase_ == 12) {
          if (rollbackBuilder_ == null) {
            result.update_ = update_;
          } else {
            result.update_ = rollbackBuilder_.build();
          }
        }
        if (referencedAssetsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            referencedAssets_ = java.util.Collections.unmodifiableList(referencedAssets_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.referencedAssets_ = referencedAssets_;
        } else {
          result.referencedAssets_ = referencedAssetsBuilder_.build();
        }
        result.updateCase_ = updateCase_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.BlockchainUpdated other) {
        if (other == com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance()) return this;
        if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
          setId(other.getId());
        }
        if (other.getHeight() != 0) {
          setHeight(other.getHeight());
        }
        if (referencedAssetsBuilder_ == null) {
          if (!other.referencedAssets_.isEmpty()) {
            if (referencedAssets_.isEmpty()) {
              referencedAssets_ = other.referencedAssets_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureReferencedAssetsIsMutable();
              referencedAssets_.addAll(other.referencedAssets_);
            }
            onChanged();
          }
        } else {
          if (!other.referencedAssets_.isEmpty()) {
            if (referencedAssetsBuilder_.isEmpty()) {
              referencedAssetsBuilder_.dispose();
              referencedAssetsBuilder_ = null;
              referencedAssets_ = other.referencedAssets_;
              bitField0_ = (bitField0_ & ~0x00000001);
              referencedAssetsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getReferencedAssetsFieldBuilder() : null;
            } else {
              referencedAssetsBuilder_.addAllMessages(other.referencedAssets_);
            }
          }
        }
        switch (other.getUpdateCase()) {
          case APPEND: {
            mergeAppend(other.getAppend());
            break;
          }
          case ROLLBACK: {
            mergeRollback(other.getRollback());
            break;
          }
          case UPDATE_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.wavesplatform.events.protobuf.Events.BlockchainUpdated) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int updateCase_ = 0;
      private java.lang.Object update_;
      public UpdateCase
          getUpdateCase() {
        return UpdateCase.forNumber(
            updateCase_);
      }

      public Builder clearUpdate() {
        updateCase_ = 0;
        update_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes id = 1;
       * @return The id.
       */
      public com.google.protobuf.ByteString getId() {
        return id_;
      }
      /**
       * bytes id = 1;
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes id = 1;
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }

      private int height_ ;
      /**
       * int32 height = 2;
       * @return The height.
       */
      public int getHeight() {
        return height_;
      }
      /**
       * int32 height = 2;
       * @param value The height to set.
       * @return This builder for chaining.
       */
      public Builder setHeight(int value) {
        
        height_ = value;
        onChanged();
        return this;
      }
      /**
       * int32 height = 2;
       * @return This builder for chaining.
       */
      public Builder clearHeight() {
        
        height_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder> appendBuilder_;
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       * @return Whether the append field is set.
       */
      public boolean hasAppend() {
        return updateCase_ == 11;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       * @return The append.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append getAppend() {
        if (appendBuilder_ == null) {
          if (updateCase_ == 11) {
            return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_;
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
        } else {
          if (updateCase_ == 11) {
            return appendBuilder_.getMessage();
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
        }
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public Builder setAppend(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append value) {
        if (appendBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          update_ = value;
          onChanged();
        } else {
          appendBuilder_.setMessage(value);
        }
        updateCase_ = 11;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public Builder setAppend(
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder builderForValue) {
        if (appendBuilder_ == null) {
          update_ = builderForValue.build();
          onChanged();
        } else {
          appendBuilder_.setMessage(builderForValue.build());
        }
        updateCase_ = 11;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public Builder mergeAppend(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append value) {
        if (appendBuilder_ == null) {
          if (updateCase_ == 11 &&
              update_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance()) {
            update_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.newBuilder((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_)
                .mergeFrom(value).buildPartial();
          } else {
            update_ = value;
          }
          onChanged();
        } else {
          if (updateCase_ == 11) {
            appendBuilder_.mergeFrom(value);
          }
          appendBuilder_.setMessage(value);
        }
        updateCase_ = 11;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public Builder clearAppend() {
        if (appendBuilder_ == null) {
          if (updateCase_ == 11) {
            updateCase_ = 0;
            update_ = null;
            onChanged();
          }
        } else {
          if (updateCase_ == 11) {
            updateCase_ = 0;
            update_ = null;
          }
          appendBuilder_.clear();
        }
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder getAppendBuilder() {
        return getAppendFieldBuilder().getBuilder();
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder getAppendOrBuilder() {
        if ((updateCase_ == 11) && (appendBuilder_ != null)) {
          return appendBuilder_.getMessageOrBuilder();
        } else {
          if (updateCase_ == 11) {
            return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_;
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
        }
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder> 
          getAppendFieldBuilder() {
        if (appendBuilder_ == null) {
          if (!(updateCase_ == 11)) {
            update_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.getDefaultInstance();
          }
          appendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.AppendOrBuilder>(
                  (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append) update_,
                  getParentForChildren(),
                  isClean());
          update_ = null;
        }
        updateCase_ = 11;
        onChanged();;
        return appendBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder> rollbackBuilder_;
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       * @return Whether the rollback field is set.
       */
      public boolean hasRollback() {
        return updateCase_ == 12;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       * @return The rollback.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback getRollback() {
        if (rollbackBuilder_ == null) {
          if (updateCase_ == 12) {
            return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_;
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
        } else {
          if (updateCase_ == 12) {
            return rollbackBuilder_.getMessage();
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
        }
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public Builder setRollback(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback value) {
        if (rollbackBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          update_ = value;
          onChanged();
        } else {
          rollbackBuilder_.setMessage(value);
        }
        updateCase_ = 12;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public Builder setRollback(
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder builderForValue) {
        if (rollbackBuilder_ == null) {
          update_ = builderForValue.build();
          onChanged();
        } else {
          rollbackBuilder_.setMessage(builderForValue.build());
        }
        updateCase_ = 12;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public Builder mergeRollback(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback value) {
        if (rollbackBuilder_ == null) {
          if (updateCase_ == 12 &&
              update_ != com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance()) {
            update_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.newBuilder((com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_)
                .mergeFrom(value).buildPartial();
          } else {
            update_ = value;
          }
          onChanged();
        } else {
          if (updateCase_ == 12) {
            rollbackBuilder_.mergeFrom(value);
          }
          rollbackBuilder_.setMessage(value);
        }
        updateCase_ = 12;
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public Builder clearRollback() {
        if (rollbackBuilder_ == null) {
          if (updateCase_ == 12) {
            updateCase_ = 0;
            update_ = null;
            onChanged();
          }
        } else {
          if (updateCase_ == 12) {
            updateCase_ = 0;
            update_ = null;
          }
          rollbackBuilder_.clear();
        }
        return this;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder getRollbackBuilder() {
        return getRollbackFieldBuilder().getBuilder();
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder getRollbackOrBuilder() {
        if ((updateCase_ == 12) && (rollbackBuilder_ != null)) {
          return rollbackBuilder_.getMessageOrBuilder();
        } else {
          if (updateCase_ == 12) {
            return (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_;
          }
          return com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
        }
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder> 
          getRollbackFieldBuilder() {
        if (rollbackBuilder_ == null) {
          if (!(updateCase_ == 12)) {
            update_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.getDefaultInstance();
          }
          rollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.RollbackOrBuilder>(
                  (com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback) update_,
                  getParentForChildren(),
                  isClean());
          update_ = null;
        }
        updateCase_ = 12;
        onChanged();;
        return rollbackBuilder_;
      }

      private java.util.List referencedAssets_ =
        java.util.Collections.emptyList();
      private void ensureReferencedAssetsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          referencedAssets_ = new java.util.ArrayList(referencedAssets_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder> referencedAssetsBuilder_;

      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public java.util.List getReferencedAssetsList() {
        if (referencedAssetsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(referencedAssets_);
        } else {
          return referencedAssetsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public int getReferencedAssetsCount() {
        if (referencedAssetsBuilder_ == null) {
          return referencedAssets_.size();
        } else {
          return referencedAssetsBuilder_.getCount();
        }
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getReferencedAssets(int index) {
        if (referencedAssetsBuilder_ == null) {
          return referencedAssets_.get(index);
        } else {
          return referencedAssetsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder setReferencedAssets(
          int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo value) {
        if (referencedAssetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencedAssetsIsMutable();
          referencedAssets_.set(index, value);
          onChanged();
        } else {
          referencedAssetsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder setReferencedAssets(
          int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder builderForValue) {
        if (referencedAssetsBuilder_ == null) {
          ensureReferencedAssetsIsMutable();
          referencedAssets_.set(index, builderForValue.build());
          onChanged();
        } else {
          referencedAssetsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder addReferencedAssets(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo value) {
        if (referencedAssetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencedAssetsIsMutable();
          referencedAssets_.add(value);
          onChanged();
        } else {
          referencedAssetsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder addReferencedAssets(
          int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo value) {
        if (referencedAssetsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencedAssetsIsMutable();
          referencedAssets_.add(index, value);
          onChanged();
        } else {
          referencedAssetsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder addReferencedAssets(
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder builderForValue) {
        if (referencedAssetsBuilder_ == null) {
          ensureReferencedAssetsIsMutable();
          referencedAssets_.add(builderForValue.build());
          onChanged();
        } else {
          referencedAssetsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder addReferencedAssets(
          int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder builderForValue) {
        if (referencedAssetsBuilder_ == null) {
          ensureReferencedAssetsIsMutable();
          referencedAssets_.add(index, builderForValue.build());
          onChanged();
        } else {
          referencedAssetsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder addAllReferencedAssets(
          java.lang.Iterable values) {
        if (referencedAssetsBuilder_ == null) {
          ensureReferencedAssetsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, referencedAssets_);
          onChanged();
        } else {
          referencedAssetsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder clearReferencedAssets() {
        if (referencedAssetsBuilder_ == null) {
          referencedAssets_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          referencedAssetsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public Builder removeReferencedAssets(int index) {
        if (referencedAssetsBuilder_ == null) {
          ensureReferencedAssetsIsMutable();
          referencedAssets_.remove(index);
          onChanged();
        } else {
          referencedAssetsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder getReferencedAssetsBuilder(
          int index) {
        return getReferencedAssetsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder getReferencedAssetsOrBuilder(
          int index) {
        if (referencedAssetsBuilder_ == null) {
          return referencedAssets_.get(index);  } else {
          return referencedAssetsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public java.util.List 
           getReferencedAssetsOrBuilderList() {
        if (referencedAssetsBuilder_ != null) {
          return referencedAssetsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(referencedAssets_);
        }
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder addReferencedAssetsBuilder() {
        return getReferencedAssetsFieldBuilder().addBuilder(
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.getDefaultInstance());
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder addReferencedAssetsBuilder(
          int index) {
        return getReferencedAssetsFieldBuilder().addBuilder(
            index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.getDefaultInstance());
      }
      /**
       * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
       */
      public java.util.List 
           getReferencedAssetsBuilderList() {
        return getReferencedAssetsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder> 
          getReferencedAssetsFieldBuilder() {
        if (referencedAssetsBuilder_ == null) {
          referencedAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder>(
                  referencedAssets_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          referencedAssets_ = null;
        }
        return referencedAssetsBuilder_;
      }
      @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.events.BlockchainUpdated)
    }

    // @@protoc_insertion_point(class_scope:waves.events.BlockchainUpdated)
    private static final com.wavesplatform.events.protobuf.Events.BlockchainUpdated DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.BlockchainUpdated();
    }

    public static com.wavesplatform.events.protobuf.Events.BlockchainUpdated getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    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.events.protobuf.Events.BlockchainUpdated getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface StateUpdateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1;
     */
    java.util.List 
        getBalancesList();
    /**
     * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getBalances(int index);
    /**
     * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1;
     */
    int getBalancesCount();
    /**
     * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1;
     */
    java.util.List 
        getBalancesOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder getBalancesOrBuilder(
        int index);

    /**
     * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2;
     */
    java.util.List 
        getLeasingForAddressList();
    /**
     * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getLeasingForAddress(int index);
    /**
     * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2;
     */
    int getLeasingForAddressCount();
    /**
     * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2;
     */
    java.util.List 
        getLeasingForAddressOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder getLeasingForAddressOrBuilder(
        int index);

    /**
     * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3;
     */
    java.util.List 
        getDataEntriesList();
    /**
     * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDataEntries(int index);
    /**
     * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3;
     */
    int getDataEntriesCount();
    /**
     * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3;
     */
    java.util.List 
        getDataEntriesOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder getDataEntriesOrBuilder(
        int index);

    /**
     * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4;
     */
    java.util.List 
        getAssetsList();
    /**
     * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getAssets(int index);
    /**
     * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4;
     */
    int getAssetsCount();
    /**
     * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4;
     */
    java.util.List 
        getAssetsOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder getAssetsOrBuilder(
        int index);

    /**
     * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5;
     */
    java.util.List 
        getIndividualLeasesList();
    /**
     * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getIndividualLeases(int index);
    /**
     * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5;
     */
    int getIndividualLeasesCount();
    /**
     * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5;
     */
    java.util.List 
        getIndividualLeasesOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder getIndividualLeasesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code waves.events.StateUpdate}
   */
  public  static final class StateUpdate extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.events.StateUpdate)
      StateUpdateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use StateUpdate.newBuilder() to construct.
    private StateUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private StateUpdate() {
      balances_ = java.util.Collections.emptyList();
      leasingForAddress_ = java.util.Collections.emptyList();
      dataEntries_ = java.util.Collections.emptyList();
      assets_ = java.util.Collections.emptyList();
      individualLeases_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private StateUpdate(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                balances_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              balances_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.parser(), extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                leasingForAddress_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              leasingForAddress_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.parser(), extensionRegistry));
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                dataEntries_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              dataEntries_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.parser(), extensionRegistry));
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                assets_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              assets_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.parser(), extensionRegistry));
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
                individualLeases_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000010;
              }
              individualLeases_.add(
                  input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          balances_ = java.util.Collections.unmodifiableList(balances_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          leasingForAddress_ = java.util.Collections.unmodifiableList(leasingForAddress_);
        }
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          dataEntries_ = java.util.Collections.unmodifiableList(dataEntries_);
        }
        if (((mutable_bitField0_ & 0x00000008) != 0)) {
          assets_ = java.util.Collections.unmodifiableList(assets_);
        }
        if (((mutable_bitField0_ & 0x00000010) != 0)) {
          individualLeases_ = java.util.Collections.unmodifiableList(individualLeases_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.events.protobuf.Events.StateUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder.class);
    }

    public interface BalanceUpdateOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.BalanceUpdate)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bytes address = 1;
       * @return The address.
       */
      com.google.protobuf.ByteString getAddress();

      /**
       * .waves.Amount amount_after = 2;
       * @return Whether the amountAfter field is set.
       */
      boolean hasAmountAfter();
      /**
       * .waves.Amount amount_after = 2;
       * @return The amountAfter.
       */
      com.wavesplatform.protobuf.AmountOuterClass.Amount getAmountAfter();
      /**
       * .waves.Amount amount_after = 2;
       */
      com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountAfterOrBuilder();

      /**
       * int64 amount_before = 3;
       * @return The amountBefore.
       */
      long getAmountBefore();
    }
    /**
     * Protobuf type {@code waves.events.StateUpdate.BalanceUpdate}
     */
    public  static final class BalanceUpdate extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.BalanceUpdate)
        BalanceUpdateOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use BalanceUpdate.newBuilder() to construct.
      private BalanceUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private BalanceUpdate() {
        address_ = com.google.protobuf.ByteString.EMPTY;
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private BalanceUpdate(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {

                address_ = input.readBytes();
                break;
              }
              case 18: {
                com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder subBuilder = null;
                if (amountAfter_ != null) {
                  subBuilder = amountAfter_.toBuilder();
                }
                amountAfter_ = input.readMessage(com.wavesplatform.protobuf.AmountOuterClass.Amount.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(amountAfter_);
                  amountAfter_ = subBuilder.buildPartial();
                }

                break;
              }
              case 24: {

                amountBefore_ = input.readInt64();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_BalanceUpdate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder.class);
      }

      public static final int ADDRESS_FIELD_NUMBER = 1;
      private com.google.protobuf.ByteString address_;
      /**
       * bytes address = 1;
       * @return The address.
       */
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }

      public static final int AMOUNT_AFTER_FIELD_NUMBER = 2;
      private com.wavesplatform.protobuf.AmountOuterClass.Amount amountAfter_;
      /**
       * .waves.Amount amount_after = 2;
       * @return Whether the amountAfter field is set.
       */
      public boolean hasAmountAfter() {
        return amountAfter_ != null;
      }
      /**
       * .waves.Amount amount_after = 2;
       * @return The amountAfter.
       */
      public com.wavesplatform.protobuf.AmountOuterClass.Amount getAmountAfter() {
        return amountAfter_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amountAfter_;
      }
      /**
       * .waves.Amount amount_after = 2;
       */
      public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountAfterOrBuilder() {
        return getAmountAfter();
      }

      public static final int AMOUNT_BEFORE_FIELD_NUMBER = 3;
      private long amountBefore_;
      /**
       * int64 amount_before = 3;
       * @return The amountBefore.
       */
      public long getAmountBefore() {
        return amountBefore_;
      }

      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 (!address_.isEmpty()) {
          output.writeBytes(1, address_);
        }
        if (amountAfter_ != null) {
          output.writeMessage(2, getAmountAfter());
        }
        if (amountBefore_ != 0L) {
          output.writeInt64(3, amountBefore_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!address_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(1, address_);
        }
        if (amountAfter_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, getAmountAfter());
        }
        if (amountBefore_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(3, amountBefore_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate) obj;

        if (!getAddress()
            .equals(other.getAddress())) return false;
        if (hasAmountAfter() != other.hasAmountAfter()) return false;
        if (hasAmountAfter()) {
          if (!getAmountAfter()
              .equals(other.getAmountAfter())) return false;
        }
        if (getAmountBefore()
            != other.getAmountBefore()) return false;
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
        hash = (53 * hash) + getAddress().hashCode();
        if (hasAmountAfter()) {
          hash = (37 * hash) + AMOUNT_AFTER_FIELD_NUMBER;
          hash = (53 * hash) + getAmountAfter().hashCode();
        }
        hash = (37 * hash) + AMOUNT_BEFORE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getAmountBefore());
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate 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.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate 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.events.protobuf.Events.StateUpdate.BalanceUpdate parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate 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.events.protobuf.Events.StateUpdate.BalanceUpdate parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate 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.events.protobuf.Events.StateUpdate.BalanceUpdate 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.events.StateUpdate.BalanceUpdate}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.BalanceUpdate)
          com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_BalanceUpdate_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          if (amountAfterBuilder_ == null) {
            amountAfter_ = null;
          } else {
            amountAfter_ = null;
            amountAfterBuilder_ = null;
          }
          amountBefore_ = 0L;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate build() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate buildPartial() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate(this);
          result.address_ = address_;
          if (amountAfterBuilder_ == null) {
            result.amountAfter_ = amountAfter_;
          } else {
            result.amountAfter_ = amountAfterBuilder_.build();
          }
          result.amountBefore_ = amountBefore_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate other) {
          if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.getDefaultInstance()) return this;
          if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
            setAddress(other.getAddress());
          }
          if (other.hasAmountAfter()) {
            mergeAmountAfter(other.getAmountAfter());
          }
          if (other.getAmountBefore() != 0L) {
            setAmountBefore(other.getAmountBefore());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        public com.google.protobuf.ByteString getAddress() {
          return address_;
        }
        /**
         * bytes address = 1;
         * @param value The address to set.
         * @return This builder for chaining.
         */
        public Builder setAddress(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          address_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          
          address_ = getDefaultInstance().getAddress();
          onChanged();
          return this;
        }

        private com.wavesplatform.protobuf.AmountOuterClass.Amount amountAfter_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> amountAfterBuilder_;
        /**
         * .waves.Amount amount_after = 2;
         * @return Whether the amountAfter field is set.
         */
        public boolean hasAmountAfter() {
          return amountAfterBuilder_ != null || amountAfter_ != null;
        }
        /**
         * .waves.Amount amount_after = 2;
         * @return The amountAfter.
         */
        public com.wavesplatform.protobuf.AmountOuterClass.Amount getAmountAfter() {
          if (amountAfterBuilder_ == null) {
            return amountAfter_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amountAfter_;
          } else {
            return amountAfterBuilder_.getMessage();
          }
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder setAmountAfter(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
          if (amountAfterBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            amountAfter_ = value;
            onChanged();
          } else {
            amountAfterBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder setAmountAfter(
            com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
          if (amountAfterBuilder_ == null) {
            amountAfter_ = builderForValue.build();
            onChanged();
          } else {
            amountAfterBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder mergeAmountAfter(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
          if (amountAfterBuilder_ == null) {
            if (amountAfter_ != null) {
              amountAfter_ =
                com.wavesplatform.protobuf.AmountOuterClass.Amount.newBuilder(amountAfter_).mergeFrom(value).buildPartial();
            } else {
              amountAfter_ = value;
            }
            onChanged();
          } else {
            amountAfterBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder clearAmountAfter() {
          if (amountAfterBuilder_ == null) {
            amountAfter_ = null;
            onChanged();
          } else {
            amountAfter_ = null;
            amountAfterBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getAmountAfterBuilder() {
          
          onChanged();
          return getAmountAfterFieldBuilder().getBuilder();
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountAfterOrBuilder() {
          if (amountAfterBuilder_ != null) {
            return amountAfterBuilder_.getMessageOrBuilder();
          } else {
            return amountAfter_ == null ?
                com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amountAfter_;
          }
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> 
            getAmountAfterFieldBuilder() {
          if (amountAfterBuilder_ == null) {
            amountAfterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>(
                    getAmountAfter(),
                    getParentForChildren(),
                    isClean());
            amountAfter_ = null;
          }
          return amountAfterBuilder_;
        }

        private long amountBefore_ ;
        /**
         * int64 amount_before = 3;
         * @return The amountBefore.
         */
        public long getAmountBefore() {
          return amountBefore_;
        }
        /**
         * int64 amount_before = 3;
         * @param value The amountBefore to set.
         * @return This builder for chaining.
         */
        public Builder setAmountBefore(long value) {
          
          amountBefore_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 amount_before = 3;
         * @return This builder for chaining.
         */
        public Builder clearAmountBefore() {
          
          amountBefore_ = 0L;
          onChanged();
          return this;
        }
        @java.lang.Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFields(unknownFields);
        }

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


        // @@protoc_insertion_point(builder_scope:waves.events.StateUpdate.BalanceUpdate)
      }

      // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.BalanceUpdate)
      private static final com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate();
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.StateUpdate.BalanceUpdate getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface LeasingUpdateOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.LeasingUpdate)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bytes address = 1;
       * @return The address.
       */
      com.google.protobuf.ByteString getAddress();

      /**
       * int64 in_after = 2;
       * @return The inAfter.
       */
      long getInAfter();

      /**
       * int64 out_after = 3;
       * @return The outAfter.
       */
      long getOutAfter();

      /**
       * int64 in_before = 4;
       * @return The inBefore.
       */
      long getInBefore();

      /**
       * int64 out_before = 5;
       * @return The outBefore.
       */
      long getOutBefore();
    }
    /**
     * Protobuf type {@code waves.events.StateUpdate.LeasingUpdate}
     */
    public  static final class LeasingUpdate extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.LeasingUpdate)
        LeasingUpdateOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use LeasingUpdate.newBuilder() to construct.
      private LeasingUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private LeasingUpdate() {
        address_ = com.google.protobuf.ByteString.EMPTY;
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private LeasingUpdate(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {

                address_ = input.readBytes();
                break;
              }
              case 16: {

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

                outAfter_ = input.readInt64();
                break;
              }
              case 32: {

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

                outBefore_ = input.readInt64();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeasingUpdate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder.class);
      }

      public static final int ADDRESS_FIELD_NUMBER = 1;
      private com.google.protobuf.ByteString address_;
      /**
       * bytes address = 1;
       * @return The address.
       */
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }

      public static final int IN_AFTER_FIELD_NUMBER = 2;
      private long inAfter_;
      /**
       * int64 in_after = 2;
       * @return The inAfter.
       */
      public long getInAfter() {
        return inAfter_;
      }

      public static final int OUT_AFTER_FIELD_NUMBER = 3;
      private long outAfter_;
      /**
       * int64 out_after = 3;
       * @return The outAfter.
       */
      public long getOutAfter() {
        return outAfter_;
      }

      public static final int IN_BEFORE_FIELD_NUMBER = 4;
      private long inBefore_;
      /**
       * int64 in_before = 4;
       * @return The inBefore.
       */
      public long getInBefore() {
        return inBefore_;
      }

      public static final int OUT_BEFORE_FIELD_NUMBER = 5;
      private long outBefore_;
      /**
       * int64 out_before = 5;
       * @return The outBefore.
       */
      public long getOutBefore() {
        return outBefore_;
      }

      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 (!address_.isEmpty()) {
          output.writeBytes(1, address_);
        }
        if (inAfter_ != 0L) {
          output.writeInt64(2, inAfter_);
        }
        if (outAfter_ != 0L) {
          output.writeInt64(3, outAfter_);
        }
        if (inBefore_ != 0L) {
          output.writeInt64(4, inBefore_);
        }
        if (outBefore_ != 0L) {
          output.writeInt64(5, outBefore_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!address_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(1, address_);
        }
        if (inAfter_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(2, inAfter_);
        }
        if (outAfter_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(3, outAfter_);
        }
        if (inBefore_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(4, inBefore_);
        }
        if (outBefore_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(5, outBefore_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate) obj;

        if (!getAddress()
            .equals(other.getAddress())) return false;
        if (getInAfter()
            != other.getInAfter()) return false;
        if (getOutAfter()
            != other.getOutAfter()) return false;
        if (getInBefore()
            != other.getInBefore()) return false;
        if (getOutBefore()
            != other.getOutBefore()) return false;
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
        hash = (53 * hash) + getAddress().hashCode();
        hash = (37 * hash) + IN_AFTER_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getInAfter());
        hash = (37 * hash) + OUT_AFTER_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getOutAfter());
        hash = (37 * hash) + IN_BEFORE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getInBefore());
        hash = (37 * hash) + OUT_BEFORE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getOutBefore());
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate 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.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate 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.events.protobuf.Events.StateUpdate.LeasingUpdate parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate 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.events.protobuf.Events.StateUpdate.LeasingUpdate parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate 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.events.protobuf.Events.StateUpdate.LeasingUpdate 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.events.StateUpdate.LeasingUpdate}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.LeasingUpdate)
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeasingUpdate_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          inAfter_ = 0L;

          outAfter_ = 0L;

          inBefore_ = 0L;

          outBefore_ = 0L;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate build() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate buildPartial() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate(this);
          result.address_ = address_;
          result.inAfter_ = inAfter_;
          result.outAfter_ = outAfter_;
          result.inBefore_ = inBefore_;
          result.outBefore_ = outBefore_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate other) {
          if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.getDefaultInstance()) return this;
          if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
            setAddress(other.getAddress());
          }
          if (other.getInAfter() != 0L) {
            setInAfter(other.getInAfter());
          }
          if (other.getOutAfter() != 0L) {
            setOutAfter(other.getOutAfter());
          }
          if (other.getInBefore() != 0L) {
            setInBefore(other.getInBefore());
          }
          if (other.getOutBefore() != 0L) {
            setOutBefore(other.getOutBefore());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        public com.google.protobuf.ByteString getAddress() {
          return address_;
        }
        /**
         * bytes address = 1;
         * @param value The address to set.
         * @return This builder for chaining.
         */
        public Builder setAddress(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          address_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          
          address_ = getDefaultInstance().getAddress();
          onChanged();
          return this;
        }

        private long inAfter_ ;
        /**
         * int64 in_after = 2;
         * @return The inAfter.
         */
        public long getInAfter() {
          return inAfter_;
        }
        /**
         * int64 in_after = 2;
         * @param value The inAfter to set.
         * @return This builder for chaining.
         */
        public Builder setInAfter(long value) {
          
          inAfter_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 in_after = 2;
         * @return This builder for chaining.
         */
        public Builder clearInAfter() {
          
          inAfter_ = 0L;
          onChanged();
          return this;
        }

        private long outAfter_ ;
        /**
         * int64 out_after = 3;
         * @return The outAfter.
         */
        public long getOutAfter() {
          return outAfter_;
        }
        /**
         * int64 out_after = 3;
         * @param value The outAfter to set.
         * @return This builder for chaining.
         */
        public Builder setOutAfter(long value) {
          
          outAfter_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 out_after = 3;
         * @return This builder for chaining.
         */
        public Builder clearOutAfter() {
          
          outAfter_ = 0L;
          onChanged();
          return this;
        }

        private long inBefore_ ;
        /**
         * int64 in_before = 4;
         * @return The inBefore.
         */
        public long getInBefore() {
          return inBefore_;
        }
        /**
         * int64 in_before = 4;
         * @param value The inBefore to set.
         * @return This builder for chaining.
         */
        public Builder setInBefore(long value) {
          
          inBefore_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 in_before = 4;
         * @return This builder for chaining.
         */
        public Builder clearInBefore() {
          
          inBefore_ = 0L;
          onChanged();
          return this;
        }

        private long outBefore_ ;
        /**
         * int64 out_before = 5;
         * @return The outBefore.
         */
        public long getOutBefore() {
          return outBefore_;
        }
        /**
         * int64 out_before = 5;
         * @param value The outBefore to set.
         * @return This builder for chaining.
         */
        public Builder setOutBefore(long value) {
          
          outBefore_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 out_before = 5;
         * @return This builder for chaining.
         */
        public Builder clearOutBefore() {
          
          outBefore_ = 0L;
          onChanged();
          return this;
        }
        @java.lang.Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFields(unknownFields);
        }

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


        // @@protoc_insertion_point(builder_scope:waves.events.StateUpdate.LeasingUpdate)
      }

      // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.LeasingUpdate)
      private static final com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate();
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.StateUpdate.LeasingUpdate getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface LeaseUpdateOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.LeaseUpdate)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bytes lease_id = 1;
       * @return The leaseId.
       */
      com.google.protobuf.ByteString getLeaseId();

      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The enum numeric value on the wire for statusAfter.
       */
      int getStatusAfterValue();
      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The statusAfter.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus getStatusAfter();

      /**
       * int64 amount = 10;
       * @return The amount.
       */
      long getAmount();

      /**
       * bytes sender = 11;
       * @return The sender.
       */
      com.google.protobuf.ByteString getSender();

      /**
       * bytes recipient = 12;
       * @return The recipient.
       */
      com.google.protobuf.ByteString getRecipient();

      /**
       * bytes origin_transaction_id = 13;
       * @return The originTransactionId.
       */
      com.google.protobuf.ByteString getOriginTransactionId();
    }
    /**
     * Protobuf type {@code waves.events.StateUpdate.LeaseUpdate}
     */
    public  static final class LeaseUpdate extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.LeaseUpdate)
        LeaseUpdateOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use LeaseUpdate.newBuilder() to construct.
      private LeaseUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private LeaseUpdate() {
        leaseId_ = com.google.protobuf.ByteString.EMPTY;
        statusAfter_ = 0;
        sender_ = com.google.protobuf.ByteString.EMPTY;
        recipient_ = com.google.protobuf.ByteString.EMPTY;
        originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private LeaseUpdate(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {

                leaseId_ = input.readBytes();
                break;
              }
              case 16: {
                int rawValue = input.readEnum();

                statusAfter_ = rawValue;
                break;
              }
              case 80: {

                amount_ = input.readInt64();
                break;
              }
              case 90: {

                sender_ = input.readBytes();
                break;
              }
              case 98: {

                recipient_ = input.readBytes();
                break;
              }
              case 106: {

                originTransactionId_ = input.readBytes();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeaseUpdate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder.class);
      }

      /**
       * Protobuf enum {@code waves.events.StateUpdate.LeaseUpdate.LeaseStatus}
       */
      public enum LeaseStatus
          implements com.google.protobuf.ProtocolMessageEnum {
        /**
         * INACTIVE = 0;
         */
        INACTIVE(0),
        /**
         * ACTIVE = 1;
         */
        ACTIVE(1),
        UNRECOGNIZED(-1),
        ;

        /**
         * INACTIVE = 0;
         */
        public static final int INACTIVE_VALUE = 0;
        /**
         * ACTIVE = 1;
         */
        public static final int ACTIVE_VALUE = 1;


        public final int getNumber() {
          if (this == UNRECOGNIZED) {
            throw new java.lang.IllegalArgumentException(
                "Can't get the number of an unknown enum value.");
          }
          return value;
        }

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static LeaseStatus valueOf(int value) {
          return forNumber(value);
        }

        /**
         * @param value The numeric wire value of the corresponding enum entry.
         * @return The enum associated with the given numeric wire value.
         */
        public static LeaseStatus forNumber(int value) {
          switch (value) {
            case 0: return INACTIVE;
            case 1: return ACTIVE;
            default: return null;
          }
        }

        public static com.google.protobuf.Internal.EnumLiteMap
            internalGetValueMap() {
          return internalValueMap;
        }
        private static final com.google.protobuf.Internal.EnumLiteMap<
            LeaseStatus> internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap() {
                public LeaseStatus findValueByNumber(int number) {
                  return LeaseStatus.forNumber(number);
                }
              };

        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(ordinal());
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.getDescriptor().getEnumTypes().get(0);
        }

        private static final LeaseStatus[] VALUES = values();

        public static LeaseStatus valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          if (desc.getIndex() == -1) {
            return UNRECOGNIZED;
          }
          return VALUES[desc.getIndex()];
        }

        private final int value;

        private LeaseStatus(int value) {
          this.value = value;
        }

        // @@protoc_insertion_point(enum_scope:waves.events.StateUpdate.LeaseUpdate.LeaseStatus)
      }

      public static final int LEASE_ID_FIELD_NUMBER = 1;
      private com.google.protobuf.ByteString leaseId_;
      /**
       * bytes lease_id = 1;
       * @return The leaseId.
       */
      public com.google.protobuf.ByteString getLeaseId() {
        return leaseId_;
      }

      public static final int STATUS_AFTER_FIELD_NUMBER = 2;
      private int statusAfter_;
      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The enum numeric value on the wire for statusAfter.
       */
      public int getStatusAfterValue() {
        return statusAfter_;
      }
      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The statusAfter.
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus getStatusAfter() {
        @SuppressWarnings("deprecation")
        com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus result = com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.valueOf(statusAfter_);
        return result == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.UNRECOGNIZED : result;
      }

      public static final int AMOUNT_FIELD_NUMBER = 10;
      private long amount_;
      /**
       * int64 amount = 10;
       * @return The amount.
       */
      public long getAmount() {
        return amount_;
      }

      public static final int SENDER_FIELD_NUMBER = 11;
      private com.google.protobuf.ByteString sender_;
      /**
       * bytes sender = 11;
       * @return The sender.
       */
      public com.google.protobuf.ByteString getSender() {
        return sender_;
      }

      public static final int RECIPIENT_FIELD_NUMBER = 12;
      private com.google.protobuf.ByteString recipient_;
      /**
       * bytes recipient = 12;
       * @return The recipient.
       */
      public com.google.protobuf.ByteString getRecipient() {
        return recipient_;
      }

      public static final int ORIGIN_TRANSACTION_ID_FIELD_NUMBER = 13;
      private com.google.protobuf.ByteString originTransactionId_;
      /**
       * bytes origin_transaction_id = 13;
       * @return The originTransactionId.
       */
      public com.google.protobuf.ByteString getOriginTransactionId() {
        return originTransactionId_;
      }

      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 (!leaseId_.isEmpty()) {
          output.writeBytes(1, leaseId_);
        }
        if (statusAfter_ != com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.INACTIVE.getNumber()) {
          output.writeEnum(2, statusAfter_);
        }
        if (amount_ != 0L) {
          output.writeInt64(10, amount_);
        }
        if (!sender_.isEmpty()) {
          output.writeBytes(11, sender_);
        }
        if (!recipient_.isEmpty()) {
          output.writeBytes(12, recipient_);
        }
        if (!originTransactionId_.isEmpty()) {
          output.writeBytes(13, originTransactionId_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!leaseId_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(1, leaseId_);
        }
        if (statusAfter_ != com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.INACTIVE.getNumber()) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(2, statusAfter_);
        }
        if (amount_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(10, amount_);
        }
        if (!sender_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(11, sender_);
        }
        if (!recipient_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(12, recipient_);
        }
        if (!originTransactionId_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(13, originTransactionId_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate) obj;

        if (!getLeaseId()
            .equals(other.getLeaseId())) return false;
        if (statusAfter_ != other.statusAfter_) return false;
        if (getAmount()
            != other.getAmount()) return false;
        if (!getSender()
            .equals(other.getSender())) return false;
        if (!getRecipient()
            .equals(other.getRecipient())) return false;
        if (!getOriginTransactionId()
            .equals(other.getOriginTransactionId())) return false;
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + LEASE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getLeaseId().hashCode();
        hash = (37 * hash) + STATUS_AFTER_FIELD_NUMBER;
        hash = (53 * hash) + statusAfter_;
        hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getAmount());
        hash = (37 * hash) + SENDER_FIELD_NUMBER;
        hash = (53 * hash) + getSender().hashCode();
        hash = (37 * hash) + RECIPIENT_FIELD_NUMBER;
        hash = (53 * hash) + getRecipient().hashCode();
        hash = (37 * hash) + ORIGIN_TRANSACTION_ID_FIELD_NUMBER;
        hash = (53 * hash) + getOriginTransactionId().hashCode();
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate 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.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate 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.events.protobuf.Events.StateUpdate.LeaseUpdate parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate 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.events.protobuf.Events.StateUpdate.LeaseUpdate parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate 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.events.protobuf.Events.StateUpdate.LeaseUpdate 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.events.StateUpdate.LeaseUpdate}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.LeaseUpdate)
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeaseUpdate_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          statusAfter_ = 0;

          amount_ = 0L;

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

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

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

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate build() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate buildPartial() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate(this);
          result.leaseId_ = leaseId_;
          result.statusAfter_ = statusAfter_;
          result.amount_ = amount_;
          result.sender_ = sender_;
          result.recipient_ = recipient_;
          result.originTransactionId_ = originTransactionId_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate other) {
          if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.getDefaultInstance()) return this;
          if (other.getLeaseId() != com.google.protobuf.ByteString.EMPTY) {
            setLeaseId(other.getLeaseId());
          }
          if (other.statusAfter_ != 0) {
            setStatusAfterValue(other.getStatusAfterValue());
          }
          if (other.getAmount() != 0L) {
            setAmount(other.getAmount());
          }
          if (other.getSender() != com.google.protobuf.ByteString.EMPTY) {
            setSender(other.getSender());
          }
          if (other.getRecipient() != com.google.protobuf.ByteString.EMPTY) {
            setRecipient(other.getRecipient());
          }
          if (other.getOriginTransactionId() != com.google.protobuf.ByteString.EMPTY) {
            setOriginTransactionId(other.getOriginTransactionId());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private com.google.protobuf.ByteString leaseId_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes lease_id = 1;
         * @return The leaseId.
         */
        public com.google.protobuf.ByteString getLeaseId() {
          return leaseId_;
        }
        /**
         * bytes lease_id = 1;
         * @param value The leaseId to set.
         * @return This builder for chaining.
         */
        public Builder setLeaseId(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          leaseId_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes lease_id = 1;
         * @return This builder for chaining.
         */
        public Builder clearLeaseId() {
          
          leaseId_ = getDefaultInstance().getLeaseId();
          onChanged();
          return this;
        }

        private int statusAfter_ = 0;
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @return The enum numeric value on the wire for statusAfter.
         */
        public int getStatusAfterValue() {
          return statusAfter_;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @param value The enum numeric value on the wire for statusAfter to set.
         * @return This builder for chaining.
         */
        public Builder setStatusAfterValue(int value) {
          statusAfter_ = value;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @return The statusAfter.
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus getStatusAfter() {
          @SuppressWarnings("deprecation")
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus result = com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.valueOf(statusAfter_);
          return result == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.UNRECOGNIZED : result;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @param value The statusAfter to set.
         * @return This builder for chaining.
         */
        public Builder setStatusAfter(com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus value) {
          if (value == null) {
            throw new NullPointerException();
          }
          
          statusAfter_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @return This builder for chaining.
         */
        public Builder clearStatusAfter() {
          
          statusAfter_ = 0;
          onChanged();
          return this;
        }

        private long amount_ ;
        /**
         * int64 amount = 10;
         * @return The amount.
         */
        public long getAmount() {
          return amount_;
        }
        /**
         * int64 amount = 10;
         * @param value The amount to set.
         * @return This builder for chaining.
         */
        public Builder setAmount(long value) {
          
          amount_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 amount = 10;
         * @return This builder for chaining.
         */
        public Builder clearAmount() {
          
          amount_ = 0L;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString sender_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes sender = 11;
         * @return The sender.
         */
        public com.google.protobuf.ByteString getSender() {
          return sender_;
        }
        /**
         * bytes sender = 11;
         * @param value The sender to set.
         * @return This builder for chaining.
         */
        public Builder setSender(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          sender_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes sender = 11;
         * @return This builder for chaining.
         */
        public Builder clearSender() {
          
          sender_ = getDefaultInstance().getSender();
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString recipient_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes recipient = 12;
         * @return The recipient.
         */
        public com.google.protobuf.ByteString getRecipient() {
          return recipient_;
        }
        /**
         * bytes recipient = 12;
         * @param value The recipient to set.
         * @return This builder for chaining.
         */
        public Builder setRecipient(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          recipient_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes recipient = 12;
         * @return This builder for chaining.
         */
        public Builder clearRecipient() {
          
          recipient_ = getDefaultInstance().getRecipient();
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes origin_transaction_id = 13;
         * @return The originTransactionId.
         */
        public com.google.protobuf.ByteString getOriginTransactionId() {
          return originTransactionId_;
        }
        /**
         * bytes origin_transaction_id = 13;
         * @param value The originTransactionId to set.
         * @return This builder for chaining.
         */
        public Builder setOriginTransactionId(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          originTransactionId_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes origin_transaction_id = 13;
         * @return This builder for chaining.
         */
        public Builder clearOriginTransactionId() {
          
          originTransactionId_ = getDefaultInstance().getOriginTransactionId();
          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.events.StateUpdate.LeaseUpdate)
      }

      // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.LeaseUpdate)
      private static final com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate();
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.StateUpdate.LeaseUpdate getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface DataEntryUpdateOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.DataEntryUpdate)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bytes address = 1;
       * @return The address.
       */
      com.google.protobuf.ByteString getAddress();

      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       * @return Whether the dataEntry field is set.
       */
      boolean hasDataEntry();
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       * @return The dataEntry.
       */
      com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntry();
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       */
      com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryOrBuilder();

      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       * @return Whether the dataEntryBefore field is set.
       */
      boolean hasDataEntryBefore();
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       * @return The dataEntryBefore.
       */
      com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntryBefore();
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       */
      com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryBeforeOrBuilder();
    }
    /**
     * Protobuf type {@code waves.events.StateUpdate.DataEntryUpdate}
     */
    public  static final class DataEntryUpdate extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.DataEntryUpdate)
        DataEntryUpdateOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use DataEntryUpdate.newBuilder() to construct.
      private DataEntryUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private DataEntryUpdate() {
        address_ = com.google.protobuf.ByteString.EMPTY;
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private DataEntryUpdate(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {

                address_ = input.readBytes();
                break;
              }
              case 18: {
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder subBuilder = null;
                if (dataEntry_ != null) {
                  subBuilder = dataEntry_.toBuilder();
                }
                dataEntry_ = input.readMessage(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(dataEntry_);
                  dataEntry_ = subBuilder.buildPartial();
                }

                break;
              }
              case 82: {
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder subBuilder = null;
                if (dataEntryBefore_ != null) {
                  subBuilder = dataEntryBefore_.toBuilder();
                }
                dataEntryBefore_ = input.readMessage(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(dataEntryBefore_);
                  dataEntryBefore_ = subBuilder.buildPartial();
                }

                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_DataEntryUpdate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder.class);
      }

      public static final int ADDRESS_FIELD_NUMBER = 1;
      private com.google.protobuf.ByteString address_;
      /**
       * bytes address = 1;
       * @return The address.
       */
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }

      public static final int DATA_ENTRY_FIELD_NUMBER = 2;
      private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry dataEntry_;
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       * @return Whether the dataEntry field is set.
       */
      public boolean hasDataEntry() {
        return dataEntry_ != null;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       * @return The dataEntry.
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntry() {
        return dataEntry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntry_;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryOrBuilder() {
        return getDataEntry();
      }

      public static final int DATA_ENTRY_BEFORE_FIELD_NUMBER = 10;
      private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry dataEntryBefore_;
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       * @return Whether the dataEntryBefore field is set.
       */
      public boolean hasDataEntryBefore() {
        return dataEntryBefore_ != null;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       * @return The dataEntryBefore.
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntryBefore() {
        return dataEntryBefore_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntryBefore_;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryBeforeOrBuilder() {
        return getDataEntryBefore();
      }

      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 (!address_.isEmpty()) {
          output.writeBytes(1, address_);
        }
        if (dataEntry_ != null) {
          output.writeMessage(2, getDataEntry());
        }
        if (dataEntryBefore_ != null) {
          output.writeMessage(10, getDataEntryBefore());
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (!address_.isEmpty()) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(1, address_);
        }
        if (dataEntry_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, getDataEntry());
        }
        if (dataEntryBefore_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(10, getDataEntryBefore());
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate) obj;

        if (!getAddress()
            .equals(other.getAddress())) return false;
        if (hasDataEntry() != other.hasDataEntry()) return false;
        if (hasDataEntry()) {
          if (!getDataEntry()
              .equals(other.getDataEntry())) return false;
        }
        if (hasDataEntryBefore() != other.hasDataEntryBefore()) return false;
        if (hasDataEntryBefore()) {
          if (!getDataEntryBefore()
              .equals(other.getDataEntryBefore())) return false;
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
        hash = (53 * hash) + getAddress().hashCode();
        if (hasDataEntry()) {
          hash = (37 * hash) + DATA_ENTRY_FIELD_NUMBER;
          hash = (53 * hash) + getDataEntry().hashCode();
        }
        if (hasDataEntryBefore()) {
          hash = (37 * hash) + DATA_ENTRY_BEFORE_FIELD_NUMBER;
          hash = (53 * hash) + getDataEntryBefore().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate 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.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate 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.events.protobuf.Events.StateUpdate.DataEntryUpdate parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate 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.events.protobuf.Events.StateUpdate.DataEntryUpdate parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate 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.events.protobuf.Events.StateUpdate.DataEntryUpdate 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.events.StateUpdate.DataEntryUpdate}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.DataEntryUpdate)
          com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_DataEntryUpdate_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          if (dataEntryBuilder_ == null) {
            dataEntry_ = null;
          } else {
            dataEntry_ = null;
            dataEntryBuilder_ = null;
          }
          if (dataEntryBeforeBuilder_ == null) {
            dataEntryBefore_ = null;
          } else {
            dataEntryBefore_ = null;
            dataEntryBeforeBuilder_ = null;
          }
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate build() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate buildPartial() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate(this);
          result.address_ = address_;
          if (dataEntryBuilder_ == null) {
            result.dataEntry_ = dataEntry_;
          } else {
            result.dataEntry_ = dataEntryBuilder_.build();
          }
          if (dataEntryBeforeBuilder_ == null) {
            result.dataEntryBefore_ = dataEntryBefore_;
          } else {
            result.dataEntryBefore_ = dataEntryBeforeBuilder_.build();
          }
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate other) {
          if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.getDefaultInstance()) return this;
          if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
            setAddress(other.getAddress());
          }
          if (other.hasDataEntry()) {
            mergeDataEntry(other.getDataEntry());
          }
          if (other.hasDataEntryBefore()) {
            mergeDataEntryBefore(other.getDataEntryBefore());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        public com.google.protobuf.ByteString getAddress() {
          return address_;
        }
        /**
         * bytes address = 1;
         * @param value The address to set.
         * @return This builder for chaining.
         */
        public Builder setAddress(com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  
          address_ = value;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          
          address_ = getDefaultInstance().getAddress();
          onChanged();
          return this;
        }

        private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry dataEntry_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder> dataEntryBuilder_;
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         * @return Whether the dataEntry field is set.
         */
        public boolean hasDataEntry() {
          return dataEntryBuilder_ != null || dataEntry_ != null;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         * @return The dataEntry.
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntry() {
          if (dataEntryBuilder_ == null) {
            return dataEntry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntry_;
          } else {
            return dataEntryBuilder_.getMessage();
          }
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder setDataEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            dataEntry_ = value;
            onChanged();
          } else {
            dataEntryBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder setDataEntry(
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder builderForValue) {
          if (dataEntryBuilder_ == null) {
            dataEntry_ = builderForValue.build();
            onChanged();
          } else {
            dataEntryBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder mergeDataEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBuilder_ == null) {
            if (dataEntry_ != null) {
              dataEntry_ =
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.newBuilder(dataEntry_).mergeFrom(value).buildPartial();
            } else {
              dataEntry_ = value;
            }
            onChanged();
          } else {
            dataEntryBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder clearDataEntry() {
          if (dataEntryBuilder_ == null) {
            dataEntry_ = null;
            onChanged();
          } else {
            dataEntry_ = null;
            dataEntryBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getDataEntryBuilder() {
          
          onChanged();
          return getDataEntryFieldBuilder().getBuilder();
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryOrBuilder() {
          if (dataEntryBuilder_ != null) {
            return dataEntryBuilder_.getMessageOrBuilder();
          } else {
            return dataEntry_ == null ?
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntry_;
          }
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder> 
            getDataEntryFieldBuilder() {
          if (dataEntryBuilder_ == null) {
            dataEntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder>(
                    getDataEntry(),
                    getParentForChildren(),
                    isClean());
            dataEntry_ = null;
          }
          return dataEntryBuilder_;
        }

        private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry dataEntryBefore_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder> dataEntryBeforeBuilder_;
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         * @return Whether the dataEntryBefore field is set.
         */
        public boolean hasDataEntryBefore() {
          return dataEntryBeforeBuilder_ != null || dataEntryBefore_ != null;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         * @return The dataEntryBefore.
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getDataEntryBefore() {
          if (dataEntryBeforeBuilder_ == null) {
            return dataEntryBefore_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntryBefore_;
          } else {
            return dataEntryBeforeBuilder_.getMessage();
          }
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder setDataEntryBefore(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBeforeBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            dataEntryBefore_ = value;
            onChanged();
          } else {
            dataEntryBeforeBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder setDataEntryBefore(
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder builderForValue) {
          if (dataEntryBeforeBuilder_ == null) {
            dataEntryBefore_ = builderForValue.build();
            onChanged();
          } else {
            dataEntryBeforeBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder mergeDataEntryBefore(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBeforeBuilder_ == null) {
            if (dataEntryBefore_ != null) {
              dataEntryBefore_ =
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.newBuilder(dataEntryBefore_).mergeFrom(value).buildPartial();
            } else {
              dataEntryBefore_ = value;
            }
            onChanged();
          } else {
            dataEntryBeforeBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder clearDataEntryBefore() {
          if (dataEntryBeforeBuilder_ == null) {
            dataEntryBefore_ = null;
            onChanged();
          } else {
            dataEntryBefore_ = null;
            dataEntryBeforeBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getDataEntryBeforeBuilder() {
          
          onChanged();
          return getDataEntryBeforeFieldBuilder().getBuilder();
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryBeforeOrBuilder() {
          if (dataEntryBeforeBuilder_ != null) {
            return dataEntryBeforeBuilder_.getMessageOrBuilder();
          } else {
            return dataEntryBefore_ == null ?
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntryBefore_;
          }
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder> 
            getDataEntryBeforeFieldBuilder() {
          if (dataEntryBeforeBuilder_ == null) {
            dataEntryBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder>(
                    getDataEntryBefore(),
                    getParentForChildren(),
                    isClean());
            dataEntryBefore_ = null;
          }
          return dataEntryBeforeBuilder_;
        }
        @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.events.StateUpdate.DataEntryUpdate)
      }

      // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.DataEntryUpdate)
      private static final com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate();
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.StateUpdate.DataEntryUpdate getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface AssetStateUpdateOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.AssetStateUpdate)
        com.google.protobuf.MessageOrBuilder {

      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       * @return Whether the before field is set.
       */
      boolean hasBefore();
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       * @return The before.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getBefore();
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getBeforeOrBuilder();

      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       * @return Whether the after field is set.
       */
      boolean hasAfter();
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       * @return The after.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getAfter();
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getAfterOrBuilder();
    }
    /**
     * Protobuf type {@code waves.events.StateUpdate.AssetStateUpdate}
     */
    public  static final class AssetStateUpdate extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.AssetStateUpdate)
        AssetStateUpdateOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use AssetStateUpdate.newBuilder() to construct.
      private AssetStateUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private AssetStateUpdate() {
      }

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

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private AssetStateUpdate(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder subBuilder = null;
                if (before_ != null) {
                  subBuilder = before_.toBuilder();
                }
                before_ = input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(before_);
                  before_ = subBuilder.buildPartial();
                }

                break;
              }
              case 18: {
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder subBuilder = null;
                if (after_ != null) {
                  subBuilder = after_.toBuilder();
                }
                after_ = input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(after_);
                  after_ = subBuilder.buildPartial();
                }

                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetStateUpdate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder.class);
      }

      public static final int BEFORE_FIELD_NUMBER = 1;
      private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails before_;
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       * @return Whether the before field is set.
       */
      public boolean hasBefore() {
        return before_ != null;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       * @return The before.
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getBefore() {
        return before_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : before_;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getBeforeOrBuilder() {
        return getBefore();
      }

      public static final int AFTER_FIELD_NUMBER = 2;
      private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails after_;
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       * @return Whether the after field is set.
       */
      public boolean hasAfter() {
        return after_ != null;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       * @return The after.
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getAfter() {
        return after_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : after_;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       */
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getAfterOrBuilder() {
        return getAfter();
      }

      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 (before_ != null) {
          output.writeMessage(1, getBefore());
        }
        if (after_ != null) {
          output.writeMessage(2, getAfter());
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (before_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, getBefore());
        }
        if (after_ != null) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, getAfter());
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate)) {
          return super.equals(obj);
        }
        com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate) obj;

        if (hasBefore() != other.hasBefore()) return false;
        if (hasBefore()) {
          if (!getBefore()
              .equals(other.getBefore())) return false;
        }
        if (hasAfter() != other.hasAfter()) return false;
        if (hasAfter()) {
          if (!getAfter()
              .equals(other.getAfter())) return false;
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasBefore()) {
          hash = (37 * hash) + BEFORE_FIELD_NUMBER;
          hash = (53 * hash) + getBefore().hashCode();
        }
        if (hasAfter()) {
          hash = (37 * hash) + AFTER_FIELD_NUMBER;
          hash = (53 * hash) + getAfter().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate 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.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate 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.events.protobuf.Events.StateUpdate.AssetStateUpdate parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate 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.events.protobuf.Events.StateUpdate.AssetStateUpdate parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate 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.events.protobuf.Events.StateUpdate.AssetStateUpdate 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.events.StateUpdate.AssetStateUpdate}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.AssetStateUpdate)
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetStateUpdate_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder.class);
        }

        // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          if (beforeBuilder_ == null) {
            before_ = null;
          } else {
            before_ = null;
            beforeBuilder_ = null;
          }
          if (afterBuilder_ == null) {
            after_ = null;
          } else {
            after_ = null;
            afterBuilder_ = null;
          }
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getDefaultInstanceForType() {
          return com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate build() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate buildPartial() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate(this);
          if (beforeBuilder_ == null) {
            result.before_ = before_;
          } else {
            result.before_ = beforeBuilder_.build();
          }
          if (afterBuilder_ == null) {
            result.after_ = after_;
          } else {
            result.after_ = afterBuilder_.build();
          }
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate other) {
          if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.getDefaultInstance()) return this;
          if (other.hasBefore()) {
            mergeBefore(other.getBefore());
          }
          if (other.hasAfter()) {
            mergeAfter(other.getAfter());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails before_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder> beforeBuilder_;
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         * @return Whether the before field is set.
         */
        public boolean hasBefore() {
          return beforeBuilder_ != null || before_ != null;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         * @return The before.
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getBefore() {
          if (beforeBuilder_ == null) {
            return before_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : before_;
          } else {
            return beforeBuilder_.getMessage();
          }
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder setBefore(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (beforeBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            before_ = value;
            onChanged();
          } else {
            beforeBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder setBefore(
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder builderForValue) {
          if (beforeBuilder_ == null) {
            before_ = builderForValue.build();
            onChanged();
          } else {
            beforeBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder mergeBefore(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (beforeBuilder_ == null) {
            if (before_ != null) {
              before_ =
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.newBuilder(before_).mergeFrom(value).buildPartial();
            } else {
              before_ = value;
            }
            onChanged();
          } else {
            beforeBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder clearBefore() {
          if (beforeBuilder_ == null) {
            before_ = null;
            onChanged();
          } else {
            before_ = null;
            beforeBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder getBeforeBuilder() {
          
          onChanged();
          return getBeforeFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getBeforeOrBuilder() {
          if (beforeBuilder_ != null) {
            return beforeBuilder_.getMessageOrBuilder();
          } else {
            return before_ == null ?
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : before_;
          }
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder> 
            getBeforeFieldBuilder() {
          if (beforeBuilder_ == null) {
            beforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder>(
                    getBefore(),
                    getParentForChildren(),
                    isClean());
            before_ = null;
          }
          return beforeBuilder_;
        }

        private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails after_;
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder> afterBuilder_;
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         * @return Whether the after field is set.
         */
        public boolean hasAfter() {
          return afterBuilder_ != null || after_ != null;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         * @return The after.
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getAfter() {
          if (afterBuilder_ == null) {
            return after_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : after_;
          } else {
            return afterBuilder_.getMessage();
          }
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder setAfter(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (afterBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            after_ = value;
            onChanged();
          } else {
            afterBuilder_.setMessage(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder setAfter(
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder builderForValue) {
          if (afterBuilder_ == null) {
            after_ = builderForValue.build();
            onChanged();
          } else {
            afterBuilder_.setMessage(builderForValue.build());
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder mergeAfter(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (afterBuilder_ == null) {
            if (after_ != null) {
              after_ =
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.newBuilder(after_).mergeFrom(value).buildPartial();
            } else {
              after_ = value;
            }
            onChanged();
          } else {
            afterBuilder_.mergeFrom(value);
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder clearAfter() {
          if (afterBuilder_ == null) {
            after_ = null;
            onChanged();
          } else {
            after_ = null;
            afterBuilder_ = null;
          }

          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder getAfterBuilder() {
          
          onChanged();
          return getAfterFieldBuilder().getBuilder();
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getAfterOrBuilder() {
          if (afterBuilder_ != null) {
            return afterBuilder_.getMessageOrBuilder();
          } else {
            return after_ == null ?
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : after_;
          }
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        private com.google.protobuf.SingleFieldBuilderV3<
            com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder> 
            getAfterFieldBuilder() {
          if (afterBuilder_ == null) {
            afterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder>(
                    getAfter(),
                    getParentForChildren(),
                    isClean());
            after_ = null;
          }
          return afterBuilder_;
        }
        @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.events.StateUpdate.AssetStateUpdate)
      }

      // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.AssetStateUpdate)
      private static final com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate();
      }

      public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

      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.events.protobuf.Events.StateUpdate.AssetStateUpdate getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    public interface AssetDetailsOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.AssetDetails)
        com.google.protobuf.MessageOrBuilder {

      /**
       * bytes asset_id = 1;
       * @return The assetId.
       */
      com.google.protobuf.ByteString getAssetId();

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

      /**
       * int32 decimals = 3;
       * @return The decimals.
       */
      int getDecimals();

      /**
       * string name = 4;
       * @return The name.
       */
      java.lang.String getName();
      /**
       * string name = 4;
       * @return The bytes for name.
       */
      com.google.protobuf.ByteString
          getNameBytes();

      /**
       * string description = 5;
       * @return The description.
       */
      java.lang.String getDescription();
      /**
       * string description = 5;
       * @return The bytes for description.
       */
      com.google.protobuf.ByteString
          getDescriptionBytes();

      /**
       * bool reissuable = 6;
       * @return The reissuable.
       */
      boolean getReissuable();

      /**
       * int64 volume = 7;
       * @return The volume.
       */
      long getVolume();

      /**
       * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8;
       * @return Whether the scriptInfo field is set.
       */
      boolean hasScriptInfo();
      /**
       * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8;
       * @return The scriptInfo.
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getScriptInfo();
      /**
       * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8;
       */
      com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder getScriptInfoOrBuilder();

      /**
       * int64 sponsorship = 9;
       * @return The sponsorship.
       */
      long getSponsorship();

      /**
       * bool nft = 10;
       * @return The nft.
       */
      boolean getNft();

      /**
       * int32 last_updated = 11;
       * @return The lastUpdated.
       */
      int getLastUpdated();

      /**
       * 
       *Related to a past behavior in the blockchain when it was possible to reissue
       *assets so that the total volume became more then int64 max value.
       *This field represents accurate volume even for those assets.
       *Can be ignored if the target system does not need such accuracy.
       *Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray()
       * 
* * bytes safe_volume = 20; * @return The safeVolume. */ com.google.protobuf.ByteString getSafeVolume(); } /** * Protobuf type {@code waves.events.StateUpdate.AssetDetails} */ public static final class AssetDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.AssetDetails) AssetDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use AssetDetails.newBuilder() to construct. private AssetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetDetails() { assetId_ = com.google.protobuf.ByteString.EMPTY; issuer_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; description_ = ""; safeVolume_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssetDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { assetId_ = input.readBytes(); break; } case 18: { issuer_ = input.readBytes(); break; } case 24: { decimals_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 48: { reissuable_ = input.readBool(); break; } case 56: { volume_ = input.readInt64(); break; } case 66: { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder subBuilder = null; if (scriptInfo_ != null) { subBuilder = scriptInfo_.toBuilder(); } scriptInfo_ = input.readMessage(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scriptInfo_); scriptInfo_ = subBuilder.buildPartial(); } break; } case 72: { sponsorship_ = input.readInt64(); break; } case 80: { nft_ = input.readBool(); break; } case 88: { lastUpdated_ = input.readInt32(); break; } case 162: { safeVolume_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder.class); } public interface AssetScriptInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.AssetDetails.AssetScriptInfo) com.google.protobuf.MessageOrBuilder { /** * bytes script = 1; * @return The script. */ com.google.protobuf.ByteString getScript(); /** * int64 complexity = 2; * @return The complexity. */ long getComplexity(); } /** * Protobuf type {@code waves.events.StateUpdate.AssetDetails.AssetScriptInfo} */ public static final class AssetScriptInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.AssetDetails.AssetScriptInfo) AssetScriptInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AssetScriptInfo.newBuilder() to construct. private AssetScriptInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetScriptInfo() { script_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetScriptInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssetScriptInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { script_ = input.readBytes(); break; } case 16: { complexity_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder.class); } public static final int SCRIPT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString script_; /** * bytes script = 1; * @return The script. */ public com.google.protobuf.ByteString getScript() { return script_; } public static final int COMPLEXITY_FIELD_NUMBER = 2; private long complexity_; /** * int64 complexity = 2; * @return The complexity. */ public long getComplexity() { return complexity_; } 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 (!script_.isEmpty()) { output.writeBytes(1, script_); } if (complexity_ != 0L) { output.writeInt64(2, complexity_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!script_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, script_); } if (complexity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, complexity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo other = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo) obj; if (!getScript() .equals(other.getScript())) return false; if (getComplexity() != other.getComplexity()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); hash = (37 * hash) + COMPLEXITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getComplexity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo 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.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo 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.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo 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.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo 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.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo 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.events.StateUpdate.AssetDetails.AssetScriptInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.AssetDetails.AssetScriptInfo) com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); script_ = com.google.protobuf.ByteString.EMPTY; complexity_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo build() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo buildPartial() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo result = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo(this); result.script_ = script_; result.complexity_ = complexity_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo) { return mergeFrom((com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo other) { if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance()) return this; if (other.getScript() != com.google.protobuf.ByteString.EMPTY) { setScript(other.getScript()); } if (other.getComplexity() != 0L) { setComplexity(other.getComplexity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 1; * @return The script. */ public com.google.protobuf.ByteString getScript() { return script_; } /** * bytes script = 1; * @param value The script to set. * @return This builder for chaining. */ public Builder setScript(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } script_ = value; onChanged(); return this; } /** * bytes script = 1; * @return This builder for chaining. */ public Builder clearScript() { script_ = getDefaultInstance().getScript(); onChanged(); return this; } private long complexity_ ; /** * int64 complexity = 2; * @return The complexity. */ public long getComplexity() { return complexity_; } /** * int64 complexity = 2; * @param value The complexity to set. * @return This builder for chaining. */ public Builder setComplexity(long value) { complexity_ = value; onChanged(); return this; } /** * int64 complexity = 2; * @return This builder for chaining. */ public Builder clearComplexity() { complexity_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:waves.events.StateUpdate.AssetDetails.AssetScriptInfo) } // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.AssetDetails.AssetScriptInfo) private static final com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo(); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetScriptInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssetScriptInfo(input, extensionRegistry); } }; 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.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ASSET_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString assetId_; /** * bytes asset_id = 1; * @return The assetId. */ public com.google.protobuf.ByteString getAssetId() { return assetId_; } public static final int ISSUER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString issuer_; /** * bytes issuer = 2; * @return The issuer. */ public com.google.protobuf.ByteString getIssuer() { return issuer_; } public static final int DECIMALS_FIELD_NUMBER = 3; private int decimals_; /** * int32 decimals = 3; * @return The decimals. */ public int getDecimals() { return decimals_; } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REISSUABLE_FIELD_NUMBER = 6; private boolean reissuable_; /** * bool reissuable = 6; * @return The reissuable. */ public boolean getReissuable() { return reissuable_; } public static final int VOLUME_FIELD_NUMBER = 7; private long volume_; /** * int64 volume = 7; * @return The volume. */ public long getVolume() { return volume_; } public static final int SCRIPT_INFO_FIELD_NUMBER = 8; private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo scriptInfo_; /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; * @return Whether the scriptInfo field is set. */ public boolean hasScriptInfo() { return scriptInfo_ != null; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; * @return The scriptInfo. */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getScriptInfo() { return scriptInfo_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance() : scriptInfo_; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder getScriptInfoOrBuilder() { return getScriptInfo(); } public static final int SPONSORSHIP_FIELD_NUMBER = 9; private long sponsorship_; /** * int64 sponsorship = 9; * @return The sponsorship. */ public long getSponsorship() { return sponsorship_; } public static final int NFT_FIELD_NUMBER = 10; private boolean nft_; /** * bool nft = 10; * @return The nft. */ public boolean getNft() { return nft_; } public static final int LAST_UPDATED_FIELD_NUMBER = 11; private int lastUpdated_; /** * int32 last_updated = 11; * @return The lastUpdated. */ public int getLastUpdated() { return lastUpdated_; } public static final int SAFE_VOLUME_FIELD_NUMBER = 20; private com.google.protobuf.ByteString safeVolume_; /** *
       *Related to a past behavior in the blockchain when it was possible to reissue
       *assets so that the total volume became more then int64 max value.
       *This field represents accurate volume even for those assets.
       *Can be ignored if the target system does not need such accuracy.
       *Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray()
       * 
* * bytes safe_volume = 20; * @return The safeVolume. */ public com.google.protobuf.ByteString getSafeVolume() { return safeVolume_; } 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 (!assetId_.isEmpty()) { output.writeBytes(1, assetId_); } if (!issuer_.isEmpty()) { output.writeBytes(2, issuer_); } if (decimals_ != 0) { output.writeInt32(3, decimals_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (reissuable_ != false) { output.writeBool(6, reissuable_); } if (volume_ != 0L) { output.writeInt64(7, volume_); } if (scriptInfo_ != null) { output.writeMessage(8, getScriptInfo()); } if (sponsorship_ != 0L) { output.writeInt64(9, sponsorship_); } if (nft_ != false) { output.writeBool(10, nft_); } if (lastUpdated_ != 0) { output.writeInt32(11, lastUpdated_); } if (!safeVolume_.isEmpty()) { output.writeBytes(20, safeVolume_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!assetId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, assetId_); } if (!issuer_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, issuer_); } if (decimals_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, decimals_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (reissuable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, reissuable_); } if (volume_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, volume_); } if (scriptInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScriptInfo()); } if (sponsorship_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, sponsorship_); } if (nft_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, nft_); } if (lastUpdated_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, lastUpdated_); } if (!safeVolume_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, safeVolume_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails other = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails) obj; if (!getAssetId() .equals(other.getAssetId())) return false; if (!getIssuer() .equals(other.getIssuer())) return false; if (getDecimals() != other.getDecimals()) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (getReissuable() != other.getReissuable()) return false; if (getVolume() != other.getVolume()) return false; if (hasScriptInfo() != other.hasScriptInfo()) return false; if (hasScriptInfo()) { if (!getScriptInfo() .equals(other.getScriptInfo())) return false; } if (getSponsorship() != other.getSponsorship()) return false; if (getNft() != other.getNft()) return false; if (getLastUpdated() != other.getLastUpdated()) return false; if (!getSafeVolume() .equals(other.getSafeVolume())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ASSET_ID_FIELD_NUMBER; hash = (53 * hash) + getAssetId().hashCode(); hash = (37 * hash) + ISSUER_FIELD_NUMBER; hash = (53 * hash) + getIssuer().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + getDecimals(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + REISSUABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReissuable()); hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVolume()); if (hasScriptInfo()) { hash = (37 * hash) + SCRIPT_INFO_FIELD_NUMBER; hash = (53 * hash) + getScriptInfo().hashCode(); } hash = (37 * hash) + SPONSORSHIP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSponsorship()); hash = (37 * hash) + NFT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNft()); hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER; hash = (53 * hash) + getLastUpdated(); hash = (37 * hash) + SAFE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getSafeVolume().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails 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.events.protobuf.Events.StateUpdate.AssetDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails 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.events.protobuf.Events.StateUpdate.AssetDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails 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.events.protobuf.Events.StateUpdate.AssetDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails 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.events.protobuf.Events.StateUpdate.AssetDetails 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.events.StateUpdate.AssetDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.AssetDetails) com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); assetId_ = com.google.protobuf.ByteString.EMPTY; issuer_ = com.google.protobuf.ByteString.EMPTY; decimals_ = 0; name_ = ""; description_ = ""; reissuable_ = false; volume_ = 0L; if (scriptInfoBuilder_ == null) { scriptInfo_ = null; } else { scriptInfo_ = null; scriptInfoBuilder_ = null; } sponsorship_ = 0L; nft_ = false; lastUpdated_ = 0; safeVolume_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetDetails_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails build() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails buildPartial() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails result = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails(this); result.assetId_ = assetId_; result.issuer_ = issuer_; result.decimals_ = decimals_; result.name_ = name_; result.description_ = description_; result.reissuable_ = reissuable_; result.volume_ = volume_; if (scriptInfoBuilder_ == null) { result.scriptInfo_ = scriptInfo_; } else { result.scriptInfo_ = scriptInfoBuilder_.build(); } result.sponsorship_ = sponsorship_; result.nft_ = nft_; result.lastUpdated_ = lastUpdated_; result.safeVolume_ = safeVolume_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails) { return mergeFrom((com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails other) { if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance()) return this; if (other.getAssetId() != com.google.protobuf.ByteString.EMPTY) { setAssetId(other.getAssetId()); } if (other.getIssuer() != com.google.protobuf.ByteString.EMPTY) { setIssuer(other.getIssuer()); } if (other.getDecimals() != 0) { setDecimals(other.getDecimals()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.getReissuable() != false) { setReissuable(other.getReissuable()); } if (other.getVolume() != 0L) { setVolume(other.getVolume()); } if (other.hasScriptInfo()) { mergeScriptInfo(other.getScriptInfo()); } if (other.getSponsorship() != 0L) { setSponsorship(other.getSponsorship()); } if (other.getNft() != false) { setNft(other.getNft()); } if (other.getLastUpdated() != 0) { setLastUpdated(other.getLastUpdated()); } if (other.getSafeVolume() != com.google.protobuf.ByteString.EMPTY) { setSafeVolume(other.getSafeVolume()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString assetId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes asset_id = 1; * @return The assetId. */ public com.google.protobuf.ByteString getAssetId() { return assetId_; } /** * bytes asset_id = 1; * @param value The assetId to set. * @return This builder for chaining. */ public Builder setAssetId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } assetId_ = value; onChanged(); return this; } /** * bytes asset_id = 1; * @return This builder for chaining. */ public Builder clearAssetId() { assetId_ = getDefaultInstance().getAssetId(); onChanged(); return this; } private com.google.protobuf.ByteString issuer_ = com.google.protobuf.ByteString.EMPTY; /** * bytes issuer = 2; * @return The issuer. */ public com.google.protobuf.ByteString getIssuer() { return issuer_; } /** * bytes issuer = 2; * @param value The issuer to set. * @return This builder for chaining. */ public Builder setIssuer(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } issuer_ = value; onChanged(); return this; } /** * bytes issuer = 2; * @return This builder for chaining. */ public Builder clearIssuer() { issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } private int decimals_ ; /** * int32 decimals = 3; * @return The decimals. */ public int getDecimals() { return decimals_; } /** * int32 decimals = 3; * @param value The decimals to set. * @return This builder for chaining. */ public Builder setDecimals(int value) { decimals_ = value; onChanged(); return this; } /** * int32 decimals = 3; * @return This builder for chaining. */ public Builder clearDecimals() { decimals_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private boolean reissuable_ ; /** * bool reissuable = 6; * @return The reissuable. */ public boolean getReissuable() { return reissuable_; } /** * bool reissuable = 6; * @param value The reissuable to set. * @return This builder for chaining. */ public Builder setReissuable(boolean value) { reissuable_ = value; onChanged(); return this; } /** * bool reissuable = 6; * @return This builder for chaining. */ public Builder clearReissuable() { reissuable_ = false; onChanged(); return this; } private long volume_ ; /** * int64 volume = 7; * @return The volume. */ public long getVolume() { return volume_; } /** * int64 volume = 7; * @param value The volume to set. * @return This builder for chaining. */ public Builder setVolume(long value) { volume_ = value; onChanged(); return this; } /** * int64 volume = 7; * @return This builder for chaining. */ public Builder clearVolume() { volume_ = 0L; onChanged(); return this; } private com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo scriptInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder> scriptInfoBuilder_; /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; * @return Whether the scriptInfo field is set. */ public boolean hasScriptInfo() { return scriptInfoBuilder_ != null || scriptInfo_ != null; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; * @return The scriptInfo. */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo getScriptInfo() { if (scriptInfoBuilder_ == null) { return scriptInfo_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance() : scriptInfo_; } else { return scriptInfoBuilder_.getMessage(); } } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public Builder setScriptInfo(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo value) { if (scriptInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scriptInfo_ = value; onChanged(); } else { scriptInfoBuilder_.setMessage(value); } return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public Builder setScriptInfo( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder builderForValue) { if (scriptInfoBuilder_ == null) { scriptInfo_ = builderForValue.build(); onChanged(); } else { scriptInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public Builder mergeScriptInfo(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo value) { if (scriptInfoBuilder_ == null) { if (scriptInfo_ != null) { scriptInfo_ = com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.newBuilder(scriptInfo_).mergeFrom(value).buildPartial(); } else { scriptInfo_ = value; } onChanged(); } else { scriptInfoBuilder_.mergeFrom(value); } return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public Builder clearScriptInfo() { if (scriptInfoBuilder_ == null) { scriptInfo_ = null; onChanged(); } else { scriptInfo_ = null; scriptInfoBuilder_ = null; } return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder getScriptInfoBuilder() { onChanged(); return getScriptInfoFieldBuilder().getBuilder(); } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder getScriptInfoOrBuilder() { if (scriptInfoBuilder_ != null) { return scriptInfoBuilder_.getMessageOrBuilder(); } else { return scriptInfo_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance() : scriptInfo_; } } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder> getScriptInfoFieldBuilder() { if (scriptInfoBuilder_ == null) { scriptInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder>( getScriptInfo(), getParentForChildren(), isClean()); scriptInfo_ = null; } return scriptInfoBuilder_; } private long sponsorship_ ; /** * int64 sponsorship = 9; * @return The sponsorship. */ public long getSponsorship() { return sponsorship_; } /** * int64 sponsorship = 9; * @param value The sponsorship to set. * @return This builder for chaining. */ public Builder setSponsorship(long value) { sponsorship_ = value; onChanged(); return this; } /** * int64 sponsorship = 9; * @return This builder for chaining. */ public Builder clearSponsorship() { sponsorship_ = 0L; onChanged(); return this; } private boolean nft_ ; /** * bool nft = 10; * @return The nft. */ public boolean getNft() { return nft_; } /** * bool nft = 10; * @param value The nft to set. * @return This builder for chaining. */ public Builder setNft(boolean value) { nft_ = value; onChanged(); return this; } /** * bool nft = 10; * @return This builder for chaining. */ public Builder clearNft() { nft_ = false; onChanged(); return this; } private int lastUpdated_ ; /** * int32 last_updated = 11; * @return The lastUpdated. */ public int getLastUpdated() { return lastUpdated_; } /** * int32 last_updated = 11; * @param value The lastUpdated to set. * @return This builder for chaining. */ public Builder setLastUpdated(int value) { lastUpdated_ = value; onChanged(); return this; } /** * int32 last_updated = 11; * @return This builder for chaining. */ public Builder clearLastUpdated() { lastUpdated_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString safeVolume_ = com.google.protobuf.ByteString.EMPTY; /** *
         *Related to a past behavior in the blockchain when it was possible to reissue
         *assets so that the total volume became more then int64 max value.
         *This field represents accurate volume even for those assets.
         *Can be ignored if the target system does not need such accuracy.
         *Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray()
         * 
* * bytes safe_volume = 20; * @return The safeVolume. */ public com.google.protobuf.ByteString getSafeVolume() { return safeVolume_; } /** *
         *Related to a past behavior in the blockchain when it was possible to reissue
         *assets so that the total volume became more then int64 max value.
         *This field represents accurate volume even for those assets.
         *Can be ignored if the target system does not need such accuracy.
         *Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray()
         * 
* * bytes safe_volume = 20; * @param value The safeVolume to set. * @return This builder for chaining. */ public Builder setSafeVolume(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } safeVolume_ = value; onChanged(); return this; } /** *
         *Related to a past behavior in the blockchain when it was possible to reissue
         *assets so that the total volume became more then int64 max value.
         *This field represents accurate volume even for those assets.
         *Can be ignored if the target system does not need such accuracy.
         *Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray()
         * 
* * bytes safe_volume = 20; * @return This builder for chaining. */ public Builder clearSafeVolume() { safeVolume_ = getDefaultInstance().getSafeVolume(); 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.events.StateUpdate.AssetDetails) } // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.AssetDetails) private static final com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails(); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssetDetails(input, extensionRegistry); } }; 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.events.protobuf.Events.StateUpdate.AssetDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssetInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.AssetInfo) com.google.protobuf.MessageOrBuilder { /** * bytes id = 1; * @return The id. */ com.google.protobuf.ByteString getId(); /** * int32 decimals = 2; * @return The decimals. */ int getDecimals(); /** * string name = 3; * @return The name. */ java.lang.String getName(); /** * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code waves.events.StateUpdate.AssetInfo} */ public static final class AssetInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.AssetInfo) AssetInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AssetInfo.newBuilder() to construct. private AssetInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetInfo() { id_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssetInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readBytes(); break; } case 16: { decimals_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString id_; /** * bytes id = 1; * @return The id. */ public com.google.protobuf.ByteString getId() { return id_; } public static final int DECIMALS_FIELD_NUMBER = 2; private int decimals_; /** * int32 decimals = 2; * @return The decimals. */ public int getDecimals() { return decimals_; } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!id_.isEmpty()) { output.writeBytes(1, id_); } if (decimals_ != 0) { output.writeInt32(2, decimals_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!id_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, id_); } if (decimals_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, decimals_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo other = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo) obj; if (!getId() .equals(other.getId())) return false; if (getDecimals() != other.getDecimals()) return false; if (!getName() .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + getDecimals(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo 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.events.protobuf.Events.StateUpdate.AssetInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo 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.events.protobuf.Events.StateUpdate.AssetInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo 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.events.protobuf.Events.StateUpdate.AssetInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo 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.events.protobuf.Events.StateUpdate.AssetInfo 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.events.StateUpdate.AssetInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.AssetInfo) com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.class, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = com.google.protobuf.ByteString.EMPTY; decimals_ = 0; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_AssetInfo_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo build() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo buildPartial() { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo result = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo(this); result.id_ = id_; result.decimals_ = decimals_; result.name_ = name_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo) { return mergeFrom((com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo other) { if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.getDefaultInstance()) return this; if (other.getId() != com.google.protobuf.ByteString.EMPTY) { setId(other.getId()); } if (other.getDecimals() != 0) { setDecimals(other.getDecimals()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ public com.google.protobuf.ByteString getId() { return id_; } /** * bytes id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * bytes id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } private int decimals_ ; /** * int32 decimals = 2; * @return The decimals. */ public int getDecimals() { return decimals_; } /** * int32 decimals = 2; * @param value The decimals to set. * @return This builder for chaining. */ public Builder setDecimals(int value) { decimals_ = value; onChanged(); return this; } /** * int32 decimals = 2; * @return This builder for chaining. */ public Builder clearDecimals() { decimals_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; 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.events.StateUpdate.AssetInfo) } // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.AssetInfo) private static final com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo(); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssetInfo(input, extensionRegistry); } }; 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.events.protobuf.Events.StateUpdate.AssetInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int BALANCES_FIELD_NUMBER = 1; private java.util.List balances_; /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public java.util.List getBalancesList() { return balances_; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public java.util.List getBalancesOrBuilderList() { return balances_; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public int getBalancesCount() { return balances_.size(); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getBalances(int index) { return balances_.get(index); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder getBalancesOrBuilder( int index) { return balances_.get(index); } public static final int LEASING_FOR_ADDRESS_FIELD_NUMBER = 2; private java.util.List leasingForAddress_; /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public java.util.List getLeasingForAddressList() { return leasingForAddress_; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public java.util.List getLeasingForAddressOrBuilderList() { return leasingForAddress_; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public int getLeasingForAddressCount() { return leasingForAddress_.size(); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getLeasingForAddress(int index) { return leasingForAddress_.get(index); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder getLeasingForAddressOrBuilder( int index) { return leasingForAddress_.get(index); } public static final int DATA_ENTRIES_FIELD_NUMBER = 3; private java.util.List dataEntries_; /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public java.util.List getDataEntriesList() { return dataEntries_; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public java.util.List getDataEntriesOrBuilderList() { return dataEntries_; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public int getDataEntriesCount() { return dataEntries_.size(); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDataEntries(int index) { return dataEntries_.get(index); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder getDataEntriesOrBuilder( int index) { return dataEntries_.get(index); } public static final int ASSETS_FIELD_NUMBER = 4; private java.util.List assets_; /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public java.util.List getAssetsList() { return assets_; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public java.util.List getAssetsOrBuilderList() { return assets_; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public int getAssetsCount() { return assets_.size(); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getAssets(int index) { return assets_.get(index); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder getAssetsOrBuilder( int index) { return assets_.get(index); } public static final int INDIVIDUAL_LEASES_FIELD_NUMBER = 5; private java.util.List individualLeases_; /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public java.util.List getIndividualLeasesList() { return individualLeases_; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public java.util.List getIndividualLeasesOrBuilderList() { return individualLeases_; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public int getIndividualLeasesCount() { return individualLeases_.size(); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getIndividualLeases(int index) { return individualLeases_.get(index); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder getIndividualLeasesOrBuilder( int index) { return individualLeases_.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 { for (int i = 0; i < balances_.size(); i++) { output.writeMessage(1, balances_.get(i)); } for (int i = 0; i < leasingForAddress_.size(); i++) { output.writeMessage(2, leasingForAddress_.get(i)); } for (int i = 0; i < dataEntries_.size(); i++) { output.writeMessage(3, dataEntries_.get(i)); } for (int i = 0; i < assets_.size(); i++) { output.writeMessage(4, assets_.get(i)); } for (int i = 0; i < individualLeases_.size(); i++) { output.writeMessage(5, individualLeases_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < balances_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, balances_.get(i)); } for (int i = 0; i < leasingForAddress_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, leasingForAddress_.get(i)); } for (int i = 0; i < dataEntries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dataEntries_.get(i)); } for (int i = 0; i < assets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, assets_.get(i)); } for (int i = 0; i < individualLeases_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, individualLeases_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.StateUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate) obj; if (!getBalancesList() .equals(other.getBalancesList())) return false; if (!getLeasingForAddressList() .equals(other.getLeasingForAddressList())) return false; if (!getDataEntriesList() .equals(other.getDataEntriesList())) return false; if (!getAssetsList() .equals(other.getAssetsList())) return false; if (!getIndividualLeasesList() .equals(other.getIndividualLeasesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBalancesCount() > 0) { hash = (37 * hash) + BALANCES_FIELD_NUMBER; hash = (53 * hash) + getBalancesList().hashCode(); } if (getLeasingForAddressCount() > 0) { hash = (37 * hash) + LEASING_FOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getLeasingForAddressList().hashCode(); } if (getDataEntriesCount() > 0) { hash = (37 * hash) + DATA_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getDataEntriesList().hashCode(); } if (getAssetsCount() > 0) { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } if (getIndividualLeasesCount() > 0) { hash = (37 * hash) + INDIVIDUAL_LEASES_FIELD_NUMBER; hash = (53 * hash) + getIndividualLeasesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.StateUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate 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.events.protobuf.Events.StateUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.StateUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate 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.events.protobuf.Events.StateUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate 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.events.protobuf.Events.StateUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.StateUpdate 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.events.protobuf.Events.StateUpdate 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.events.StateUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate) com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBalancesFieldBuilder(); getLeasingForAddressFieldBuilder(); getDataEntriesFieldBuilder(); getAssetsFieldBuilder(); getIndividualLeasesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (balancesBuilder_ == null) { balances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { balancesBuilder_.clear(); } if (leasingForAddressBuilder_ == null) { leasingForAddress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { leasingForAddressBuilder_.clear(); } if (dataEntriesBuilder_ == null) { dataEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { dataEntriesBuilder_.clear(); } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { assetsBuilder_.clear(); } if (individualLeasesBuilder_ == null) { individualLeases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { individualLeasesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate build() { com.wavesplatform.events.protobuf.Events.StateUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate buildPartial() { com.wavesplatform.events.protobuf.Events.StateUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate(this); int from_bitField0_ = bitField0_; if (balancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { balances_ = java.util.Collections.unmodifiableList(balances_); bitField0_ = (bitField0_ & ~0x00000001); } result.balances_ = balances_; } else { result.balances_ = balancesBuilder_.build(); } if (leasingForAddressBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { leasingForAddress_ = java.util.Collections.unmodifiableList(leasingForAddress_); bitField0_ = (bitField0_ & ~0x00000002); } result.leasingForAddress_ = leasingForAddress_; } else { result.leasingForAddress_ = leasingForAddressBuilder_.build(); } if (dataEntriesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { dataEntries_ = java.util.Collections.unmodifiableList(dataEntries_); bitField0_ = (bitField0_ & ~0x00000004); } result.dataEntries_ = dataEntries_; } else { result.dataEntries_ = dataEntriesBuilder_.build(); } if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { assets_ = java.util.Collections.unmodifiableList(assets_); bitField0_ = (bitField0_ & ~0x00000008); } result.assets_ = assets_; } else { result.assets_ = assetsBuilder_.build(); } if (individualLeasesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { individualLeases_ = java.util.Collections.unmodifiableList(individualLeases_); bitField0_ = (bitField0_ & ~0x00000010); } result.individualLeases_ = individualLeases_; } else { result.individualLeases_ = individualLeasesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.StateUpdate) { return mergeFrom((com.wavesplatform.events.protobuf.Events.StateUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate other) { if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance()) return this; if (balancesBuilder_ == null) { if (!other.balances_.isEmpty()) { if (balances_.isEmpty()) { balances_ = other.balances_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBalancesIsMutable(); balances_.addAll(other.balances_); } onChanged(); } } else { if (!other.balances_.isEmpty()) { if (balancesBuilder_.isEmpty()) { balancesBuilder_.dispose(); balancesBuilder_ = null; balances_ = other.balances_; bitField0_ = (bitField0_ & ~0x00000001); balancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBalancesFieldBuilder() : null; } else { balancesBuilder_.addAllMessages(other.balances_); } } } if (leasingForAddressBuilder_ == null) { if (!other.leasingForAddress_.isEmpty()) { if (leasingForAddress_.isEmpty()) { leasingForAddress_ = other.leasingForAddress_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLeasingForAddressIsMutable(); leasingForAddress_.addAll(other.leasingForAddress_); } onChanged(); } } else { if (!other.leasingForAddress_.isEmpty()) { if (leasingForAddressBuilder_.isEmpty()) { leasingForAddressBuilder_.dispose(); leasingForAddressBuilder_ = null; leasingForAddress_ = other.leasingForAddress_; bitField0_ = (bitField0_ & ~0x00000002); leasingForAddressBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLeasingForAddressFieldBuilder() : null; } else { leasingForAddressBuilder_.addAllMessages(other.leasingForAddress_); } } } if (dataEntriesBuilder_ == null) { if (!other.dataEntries_.isEmpty()) { if (dataEntries_.isEmpty()) { dataEntries_ = other.dataEntries_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDataEntriesIsMutable(); dataEntries_.addAll(other.dataEntries_); } onChanged(); } } else { if (!other.dataEntries_.isEmpty()) { if (dataEntriesBuilder_.isEmpty()) { dataEntriesBuilder_.dispose(); dataEntriesBuilder_ = null; dataEntries_ = other.dataEntries_; bitField0_ = (bitField0_ & ~0x00000004); dataEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataEntriesFieldBuilder() : null; } else { dataEntriesBuilder_.addAllMessages(other.dataEntries_); } } } if (assetsBuilder_ == null) { if (!other.assets_.isEmpty()) { if (assets_.isEmpty()) { assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAssetsIsMutable(); assets_.addAll(other.assets_); } onChanged(); } } else { if (!other.assets_.isEmpty()) { if (assetsBuilder_.isEmpty()) { assetsBuilder_.dispose(); assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000008); assetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } } } if (individualLeasesBuilder_ == null) { if (!other.individualLeases_.isEmpty()) { if (individualLeases_.isEmpty()) { individualLeases_ = other.individualLeases_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIndividualLeasesIsMutable(); individualLeases_.addAll(other.individualLeases_); } onChanged(); } } else { if (!other.individualLeases_.isEmpty()) { if (individualLeasesBuilder_.isEmpty()) { individualLeasesBuilder_.dispose(); individualLeasesBuilder_ = null; individualLeases_ = other.individualLeases_; bitField0_ = (bitField0_ & ~0x00000010); individualLeasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIndividualLeasesFieldBuilder() : null; } else { individualLeasesBuilder_.addAllMessages(other.individualLeases_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.StateUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.StateUpdate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List balances_ = java.util.Collections.emptyList(); private void ensureBalancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { balances_ = new java.util.ArrayList(balances_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder> balancesBuilder_; /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public java.util.List getBalancesList() { if (balancesBuilder_ == null) { return java.util.Collections.unmodifiableList(balances_); } else { return balancesBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public int getBalancesCount() { if (balancesBuilder_ == null) { return balances_.size(); } else { return balancesBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getBalances(int index) { if (balancesBuilder_ == null) { return balances_.get(index); } else { return balancesBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder setBalances( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.set(index, value); onChanged(); } else { balancesBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder setBalances( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.set(index, builderForValue.build()); onChanged(); } else { balancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder addBalances(com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.add(value); onChanged(); } else { balancesBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder addBalances( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.add(index, value); onChanged(); } else { balancesBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder addBalances( com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.add(builderForValue.build()); onChanged(); } else { balancesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder addBalances( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.add(index, builderForValue.build()); onChanged(); } else { balancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder addAllBalances( java.lang.Iterable values) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, balances_); onChanged(); } else { balancesBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder clearBalances() { if (balancesBuilder_ == null) { balances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { balancesBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public Builder removeBalances(int index) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.remove(index); onChanged(); } else { balancesBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder getBalancesBuilder( int index) { return getBalancesFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder getBalancesOrBuilder( int index) { if (balancesBuilder_ == null) { return balances_.get(index); } else { return balancesBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public java.util.List getBalancesOrBuilderList() { if (balancesBuilder_ != null) { return balancesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(balances_); } } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder addBalancesBuilder() { return getBalancesFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder addBalancesBuilder( int index) { return getBalancesFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ public java.util.List getBalancesBuilderList() { return getBalancesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder> getBalancesFieldBuilder() { if (balancesBuilder_ == null) { balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdateOrBuilder>( balances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); balances_ = null; } return balancesBuilder_; } private java.util.List leasingForAddress_ = java.util.Collections.emptyList(); private void ensureLeasingForAddressIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { leasingForAddress_ = new java.util.ArrayList(leasingForAddress_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder> leasingForAddressBuilder_; /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public java.util.List getLeasingForAddressList() { if (leasingForAddressBuilder_ == null) { return java.util.Collections.unmodifiableList(leasingForAddress_); } else { return leasingForAddressBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public int getLeasingForAddressCount() { if (leasingForAddressBuilder_ == null) { return leasingForAddress_.size(); } else { return leasingForAddressBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getLeasingForAddress(int index) { if (leasingForAddressBuilder_ == null) { return leasingForAddress_.get(index); } else { return leasingForAddressBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder setLeasingForAddress( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate value) { if (leasingForAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeasingForAddressIsMutable(); leasingForAddress_.set(index, value); onChanged(); } else { leasingForAddressBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder setLeasingForAddress( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder builderForValue) { if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); leasingForAddress_.set(index, builderForValue.build()); onChanged(); } else { leasingForAddressBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder addLeasingForAddress(com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate value) { if (leasingForAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeasingForAddressIsMutable(); leasingForAddress_.add(value); onChanged(); } else { leasingForAddressBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder addLeasingForAddress( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate value) { if (leasingForAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeasingForAddressIsMutable(); leasingForAddress_.add(index, value); onChanged(); } else { leasingForAddressBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder addLeasingForAddress( com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder builderForValue) { if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); leasingForAddress_.add(builderForValue.build()); onChanged(); } else { leasingForAddressBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder addLeasingForAddress( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder builderForValue) { if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); leasingForAddress_.add(index, builderForValue.build()); onChanged(); } else { leasingForAddressBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder addAllLeasingForAddress( java.lang.Iterable values) { if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, leasingForAddress_); onChanged(); } else { leasingForAddressBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder clearLeasingForAddress() { if (leasingForAddressBuilder_ == null) { leasingForAddress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { leasingForAddressBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public Builder removeLeasingForAddress(int index) { if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); leasingForAddress_.remove(index); onChanged(); } else { leasingForAddressBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder getLeasingForAddressBuilder( int index) { return getLeasingForAddressFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder getLeasingForAddressOrBuilder( int index) { if (leasingForAddressBuilder_ == null) { return leasingForAddress_.get(index); } else { return leasingForAddressBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public java.util.List getLeasingForAddressOrBuilderList() { if (leasingForAddressBuilder_ != null) { return leasingForAddressBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(leasingForAddress_); } } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder addLeasingForAddressBuilder() { return getLeasingForAddressFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder addLeasingForAddressBuilder( int index) { return getLeasingForAddressFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ public java.util.List getLeasingForAddressBuilderList() { return getLeasingForAddressFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder> getLeasingForAddressFieldBuilder() { if (leasingForAddressBuilder_ == null) { leasingForAddressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder>( leasingForAddress_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); leasingForAddress_ = null; } return leasingForAddressBuilder_; } private java.util.List dataEntries_ = java.util.Collections.emptyList(); private void ensureDataEntriesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { dataEntries_ = new java.util.ArrayList(dataEntries_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder> dataEntriesBuilder_; /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public java.util.List getDataEntriesList() { if (dataEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataEntries_); } else { return dataEntriesBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public int getDataEntriesCount() { if (dataEntriesBuilder_ == null) { return dataEntries_.size(); } else { return dataEntriesBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDataEntries(int index) { if (dataEntriesBuilder_ == null) { return dataEntries_.get(index); } else { return dataEntriesBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder setDataEntries( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate value) { if (dataEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataEntriesIsMutable(); dataEntries_.set(index, value); onChanged(); } else { dataEntriesBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder setDataEntries( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder builderForValue) { if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); dataEntries_.set(index, builderForValue.build()); onChanged(); } else { dataEntriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder addDataEntries(com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate value) { if (dataEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataEntriesIsMutable(); dataEntries_.add(value); onChanged(); } else { dataEntriesBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder addDataEntries( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate value) { if (dataEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataEntriesIsMutable(); dataEntries_.add(index, value); onChanged(); } else { dataEntriesBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder addDataEntries( com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder builderForValue) { if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); dataEntries_.add(builderForValue.build()); onChanged(); } else { dataEntriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder addDataEntries( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder builderForValue) { if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); dataEntries_.add(index, builderForValue.build()); onChanged(); } else { dataEntriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder addAllDataEntries( java.lang.Iterable values) { if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataEntries_); onChanged(); } else { dataEntriesBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder clearDataEntries() { if (dataEntriesBuilder_ == null) { dataEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dataEntriesBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public Builder removeDataEntries(int index) { if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); dataEntries_.remove(index); onChanged(); } else { dataEntriesBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder getDataEntriesBuilder( int index) { return getDataEntriesFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder getDataEntriesOrBuilder( int index) { if (dataEntriesBuilder_ == null) { return dataEntries_.get(index); } else { return dataEntriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public java.util.List getDataEntriesOrBuilderList() { if (dataEntriesBuilder_ != null) { return dataEntriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataEntries_); } } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder addDataEntriesBuilder() { return getDataEntriesFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder addDataEntriesBuilder( int index) { return getDataEntriesFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ public java.util.List getDataEntriesBuilderList() { return getDataEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder> getDataEntriesFieldBuilder() { if (dataEntriesBuilder_ == null) { dataEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder>( dataEntries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dataEntries_ = null; } return dataEntriesBuilder_; } private java.util.List assets_ = java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder> assetsBuilder_; /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public java.util.List getAssetsList() { if (assetsBuilder_ == null) { return java.util.Collections.unmodifiableList(assets_); } else { return assetsBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public int getAssetsCount() { if (assetsBuilder_ == null) { return assets_.size(); } else { return assetsBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getAssets(int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder setAssets( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.set(index, value); onChanged(); } else { assetsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder setAssets( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.set(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder addAssets(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(value); onChanged(); } else { assetsBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder addAssets( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(index, value); onChanged(); } else { assetsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder addAssets( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder addAssets( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder clearAssets() { if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { assetsBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public Builder removeAssets(int index) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.remove(index); onChanged(); } else { assetsBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder getAssetsBuilder( int index) { return getAssetsFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder getAssetsOrBuilder( int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public java.util.List getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assets_); } } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder addAssetsBuilder() { return getAssetsFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder addAssetsBuilder( int index) { return getAssetsFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder>( assets_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } private java.util.List individualLeases_ = java.util.Collections.emptyList(); private void ensureIndividualLeasesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { individualLeases_ = new java.util.ArrayList(individualLeases_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder> individualLeasesBuilder_; /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public java.util.List getIndividualLeasesList() { if (individualLeasesBuilder_ == null) { return java.util.Collections.unmodifiableList(individualLeases_); } else { return individualLeasesBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public int getIndividualLeasesCount() { if (individualLeasesBuilder_ == null) { return individualLeases_.size(); } else { return individualLeasesBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getIndividualLeases(int index) { if (individualLeasesBuilder_ == null) { return individualLeases_.get(index); } else { return individualLeasesBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder setIndividualLeases( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate value) { if (individualLeasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndividualLeasesIsMutable(); individualLeases_.set(index, value); onChanged(); } else { individualLeasesBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder setIndividualLeases( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder builderForValue) { if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); individualLeases_.set(index, builderForValue.build()); onChanged(); } else { individualLeasesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder addIndividualLeases(com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate value) { if (individualLeasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndividualLeasesIsMutable(); individualLeases_.add(value); onChanged(); } else { individualLeasesBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder addIndividualLeases( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate value) { if (individualLeasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndividualLeasesIsMutable(); individualLeases_.add(index, value); onChanged(); } else { individualLeasesBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder addIndividualLeases( com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder builderForValue) { if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); individualLeases_.add(builderForValue.build()); onChanged(); } else { individualLeasesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder addIndividualLeases( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder builderForValue) { if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); individualLeases_.add(index, builderForValue.build()); onChanged(); } else { individualLeasesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder addAllIndividualLeases( java.lang.Iterable values) { if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, individualLeases_); onChanged(); } else { individualLeasesBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder clearIndividualLeases() { if (individualLeasesBuilder_ == null) { individualLeases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { individualLeasesBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public Builder removeIndividualLeases(int index) { if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); individualLeases_.remove(index); onChanged(); } else { individualLeasesBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder getIndividualLeasesBuilder( int index) { return getIndividualLeasesFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder getIndividualLeasesOrBuilder( int index) { if (individualLeasesBuilder_ == null) { return individualLeases_.get(index); } else { return individualLeasesBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public java.util.List getIndividualLeasesOrBuilderList() { if (individualLeasesBuilder_ != null) { return individualLeasesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(individualLeases_); } } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder addIndividualLeasesBuilder() { return getIndividualLeasesFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder addIndividualLeasesBuilder( int index) { return getIndividualLeasesFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ public java.util.List getIndividualLeasesBuilderList() { return getIndividualLeasesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder> getIndividualLeasesFieldBuilder() { if (individualLeasesBuilder_ == null) { individualLeasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder>( individualLeases_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); individualLeases_ = null; } return individualLeasesBuilder_; } @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.events.StateUpdate) } // @@protoc_insertion_point(class_scope:waves.events.StateUpdate) private static final com.wavesplatform.events.protobuf.Events.StateUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate(); } public static com.wavesplatform.events.protobuf.Events.StateUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StateUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateUpdate(input, extensionRegistry); } }; 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.events.protobuf.Events.StateUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ boolean hasTransfer(); /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getTransfer(); /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder getTransferOrBuilder(); /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return Whether the massTransfer field is set. */ boolean hasMassTransfer(); /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return The massTransfer. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getMassTransfer(); /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder getMassTransferOrBuilder(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return Whether the invokeScript field is set. */ boolean hasInvokeScript(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return The invokeScript. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvokeScript(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeScriptOrBuilder(); /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return Whether the leaseMeta field is set. */ boolean hasLeaseMeta(); /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return The leaseMeta. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLeaseMeta(); /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseMetaOrBuilder(); public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MetadataCase getMetadataCase(); } /** * Protobuf type {@code waves.events.TransactionMetadata} */ public static final class TransactionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata) TransactionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionMetadata.newBuilder() to construct. private TransactionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionMetadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 834: { com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder subBuilder = null; if (metadataCase_ == 104) { subBuilder = ((com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_).toBuilder(); } metadata_ = input.readMessage(com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_); metadata_ = subBuilder.buildPartial(); } metadataCase_ = 104; break; } case 890: { com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder subBuilder = null; if (metadataCase_ == 111) { subBuilder = ((com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_).toBuilder(); } metadata_ = input.readMessage(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_); metadata_ = subBuilder.buildPartial(); } metadataCase_ = 111; break; } case 930: { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder subBuilder = null; if (metadataCase_ == 116) { subBuilder = ((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_).toBuilder(); } metadata_ = input.readMessage(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_); metadata_ = subBuilder.buildPartial(); } metadataCase_ = 116; break; } case 938: { com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder subBuilder = null; if (metadataCase_ == 117) { subBuilder = ((com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_).toBuilder(); } metadata_ = input.readMessage(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_); metadata_ = subBuilder.buildPartial(); } metadataCase_ = 117; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder.class); } public interface TransferMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.TransferMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes recipient_address = 1; * @return The recipientAddress. */ com.google.protobuf.ByteString getRecipientAddress(); } /** *
     * message <TransactionName>Metadata { ... }
     * 
* * Protobuf type {@code waves.events.TransactionMetadata.TransferMetadata} */ public static final class TransferMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.TransferMetadata) TransferMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use TransferMetadata.newBuilder() to construct. private TransferMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferMetadata() { recipientAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransferMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { recipientAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_TransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder.class); } public static final int RECIPIENT_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString recipientAddress_; /** * bytes recipient_address = 1; * @return The recipientAddress. */ public com.google.protobuf.ByteString getRecipientAddress() { return recipientAddress_; } 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 (!recipientAddress_.isEmpty()) { output.writeBytes(1, recipientAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!recipientAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, recipientAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) obj; if (!getRecipientAddress() .equals(other.getRecipientAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECIPIENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRecipientAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata 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.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata 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.events.protobuf.Events.TransactionMetadata.TransferMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata 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.events.protobuf.Events.TransactionMetadata.TransferMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata 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.events.protobuf.Events.TransactionMetadata.TransferMetadata 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; } /** *
       * message <TransactionName>Metadata { ... }
       * 
* * Protobuf type {@code waves.events.TransactionMetadata.TransferMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.TransferMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_TransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); recipientAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata(this); result.recipientAddress_ = recipientAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance()) return this; if (other.getRecipientAddress() != com.google.protobuf.ByteString.EMPTY) { setRecipientAddress(other.getRecipientAddress()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ public com.google.protobuf.ByteString getRecipientAddress() { return recipientAddress_; } /** * bytes recipient_address = 1; * @param value The recipientAddress to set. * @return This builder for chaining. */ public Builder setRecipientAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recipientAddress_ = value; onChanged(); return this; } /** * bytes recipient_address = 1; * @return This builder for chaining. */ public Builder clearRecipientAddress() { recipientAddress_ = getDefaultInstance().getRecipientAddress(); 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.events.TransactionMetadata.TransferMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.TransferMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransferMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferMetadata(input, extensionRegistry); } }; 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.events.protobuf.Events.TransactionMetadata.TransferMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MassTransferMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.MassTransferMetadata) com.google.protobuf.MessageOrBuilder { /** * repeated bytes recipients_addresses = 1; * @return A list containing the recipientsAddresses. */ java.util.List getRecipientsAddressesList(); /** * repeated bytes recipients_addresses = 1; * @return The count of recipientsAddresses. */ int getRecipientsAddressesCount(); /** * repeated bytes recipients_addresses = 1; * @param index The index of the element to return. * @return The recipientsAddresses at the given index. */ com.google.protobuf.ByteString getRecipientsAddresses(int index); } /** * Protobuf type {@code waves.events.TransactionMetadata.MassTransferMetadata} */ public static final class MassTransferMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.MassTransferMetadata) MassTransferMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use MassTransferMetadata.newBuilder() to construct. private MassTransferMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MassTransferMetadata() { recipientsAddresses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MassTransferMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MassTransferMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { recipientsAddresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } recipientsAddresses_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { recipientsAddresses_ = java.util.Collections.unmodifiableList(recipientsAddresses_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_MassTransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder.class); } public static final int RECIPIENTS_ADDRESSES_FIELD_NUMBER = 1; private java.util.List recipientsAddresses_; /** * repeated bytes recipients_addresses = 1; * @return A list containing the recipientsAddresses. */ public java.util.List getRecipientsAddressesList() { return recipientsAddresses_; } /** * repeated bytes recipients_addresses = 1; * @return The count of recipientsAddresses. */ public int getRecipientsAddressesCount() { return recipientsAddresses_.size(); } /** * repeated bytes recipients_addresses = 1; * @param index The index of the element to return. * @return The recipientsAddresses at the given index. */ public com.google.protobuf.ByteString getRecipientsAddresses(int index) { return recipientsAddresses_.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 { for (int i = 0; i < recipientsAddresses_.size(); i++) { output.writeBytes(1, recipientsAddresses_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < recipientsAddresses_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(recipientsAddresses_.get(i)); } size += dataSize; size += 1 * getRecipientsAddressesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) obj; if (!getRecipientsAddressesList() .equals(other.getRecipientsAddressesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRecipientsAddressesCount() > 0) { hash = (37 * hash) + RECIPIENTS_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getRecipientsAddressesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata 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.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata 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.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata 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.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata 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.events.protobuf.Events.TransactionMetadata.MassTransferMetadata 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.events.TransactionMetadata.MassTransferMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.MassTransferMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_MassTransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); recipientsAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { recipientsAddresses_ = java.util.Collections.unmodifiableList(recipientsAddresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.recipientsAddresses_ = recipientsAddresses_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance()) return this; if (!other.recipientsAddresses_.isEmpty()) { if (recipientsAddresses_.isEmpty()) { recipientsAddresses_ = other.recipientsAddresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRecipientsAddressesIsMutable(); recipientsAddresses_.addAll(other.recipientsAddresses_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List recipientsAddresses_ = java.util.Collections.emptyList(); private void ensureRecipientsAddressesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { recipientsAddresses_ = new java.util.ArrayList(recipientsAddresses_); bitField0_ |= 0x00000001; } } /** * repeated bytes recipients_addresses = 1; * @return A list containing the recipientsAddresses. */ public java.util.List getRecipientsAddressesList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(recipientsAddresses_) : recipientsAddresses_; } /** * repeated bytes recipients_addresses = 1; * @return The count of recipientsAddresses. */ public int getRecipientsAddressesCount() { return recipientsAddresses_.size(); } /** * repeated bytes recipients_addresses = 1; * @param index The index of the element to return. * @return The recipientsAddresses at the given index. */ public com.google.protobuf.ByteString getRecipientsAddresses(int index) { return recipientsAddresses_.get(index); } /** * repeated bytes recipients_addresses = 1; * @param index The index to set the value at. * @param value The recipientsAddresses to set. * @return This builder for chaining. */ public Builder setRecipientsAddresses( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRecipientsAddressesIsMutable(); recipientsAddresses_.set(index, value); onChanged(); return this; } /** * repeated bytes recipients_addresses = 1; * @param value The recipientsAddresses to add. * @return This builder for chaining. */ public Builder addRecipientsAddresses(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRecipientsAddressesIsMutable(); recipientsAddresses_.add(value); onChanged(); return this; } /** * repeated bytes recipients_addresses = 1; * @param values The recipientsAddresses to add. * @return This builder for chaining. */ public Builder addAllRecipientsAddresses( java.lang.Iterable values) { ensureRecipientsAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recipientsAddresses_); onChanged(); return this; } /** * repeated bytes recipients_addresses = 1; * @return This builder for chaining. */ public Builder clearRecipientsAddresses() { recipientsAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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.events.TransactionMetadata.MassTransferMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.MassTransferMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MassTransferMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MassTransferMetadata(input, extensionRegistry); } }; 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.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InvokeScriptMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.InvokeScriptMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes d_app_address = 1; * @return The dAppAddress. */ com.google.protobuf.ByteString getDAppAddress(); /** * string function_name = 2; * @return The functionName. */ java.lang.String getFunctionName(); /** * string function_name = 2; * @return The bytes for functionName. */ com.google.protobuf.ByteString getFunctionNameBytes(); /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ java.util.List getArgumentsList(); /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument getArguments(int index); /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ int getArgumentsCount(); /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ java.util.List getArgumentsOrBuilderList(); /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder getArgumentsOrBuilder( int index); /** * repeated .waves.Amount payments = 4; */ java.util.List getPaymentsList(); /** * repeated .waves.Amount payments = 4; */ com.wavesplatform.protobuf.AmountOuterClass.Amount getPayments(int index); /** * repeated .waves.Amount payments = 4; */ int getPaymentsCount(); /** * repeated .waves.Amount payments = 4; */ java.util.List getPaymentsOrBuilderList(); /** * repeated .waves.Amount payments = 4; */ com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getPaymentsOrBuilder( int index); /** * .waves.InvokeScriptResult result = 5; * @return Whether the result field is set. */ boolean hasResult(); /** * .waves.InvokeScriptResult result = 5; * @return The result. */ com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult getResult(); /** * .waves.InvokeScriptResult result = 5; */ com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder getResultOrBuilder(); } /** * Protobuf type {@code waves.events.TransactionMetadata.InvokeScriptMetadata} */ public static final class InvokeScriptMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.InvokeScriptMetadata) InvokeScriptMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use InvokeScriptMetadata.newBuilder() to construct. private InvokeScriptMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InvokeScriptMetadata() { dAppAddress_ = com.google.protobuf.ByteString.EMPTY; functionName_ = ""; arguments_ = java.util.Collections.emptyList(); payments_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InvokeScriptMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InvokeScriptMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { dAppAddress_ = input.readBytes(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); functionName_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { arguments_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } arguments_.add( input.readMessage(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { payments_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } payments_.add( input.readMessage(com.wavesplatform.protobuf.AmountOuterClass.Amount.parser(), extensionRegistry)); break; } case 42: { com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { payments_ = java.util.Collections.unmodifiableList(payments_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder.class); } public static final int D_APP_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString dAppAddress_; /** * bytes d_app_address = 1; * @return The dAppAddress. */ public com.google.protobuf.ByteString getDAppAddress() { return dAppAddress_; } public static final int FUNCTION_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object functionName_; /** * string function_name = 2; * @return The functionName. */ public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionName_ = s; return s; } } /** * string function_name = 2; * @return The bytes for functionName. */ public com.google.protobuf.ByteString getFunctionNameBytes() { java.lang.Object ref = functionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENTS_FIELD_NUMBER = 3; private java.util.List arguments_; /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public java.util.List getArgumentsList() { return arguments_; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public java.util.List getArgumentsOrBuilderList() { return arguments_; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public int getArgumentsCount() { return arguments_.size(); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument getArguments(int index) { return arguments_.get(index); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder getArgumentsOrBuilder( int index) { return arguments_.get(index); } public static final int PAYMENTS_FIELD_NUMBER = 4; private java.util.List payments_; /** * repeated .waves.Amount payments = 4; */ public java.util.List getPaymentsList() { return payments_; } /** * repeated .waves.Amount payments = 4; */ public java.util.List getPaymentsOrBuilderList() { return payments_; } /** * repeated .waves.Amount payments = 4; */ public int getPaymentsCount() { return payments_.size(); } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount getPayments(int index) { return payments_.get(index); } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getPaymentsOrBuilder( int index) { return payments_.get(index); } public static final int RESULT_FIELD_NUMBER = 5; private com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult result_; /** * .waves.InvokeScriptResult result = 5; * @return Whether the result field is set. */ public boolean hasResult() { return result_ != null; } /** * .waves.InvokeScriptResult result = 5; * @return The result. */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult getResult() { return result_ == null ? com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance() : result_; } /** * .waves.InvokeScriptResult result = 5; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder getResultOrBuilder() { return getResult(); } 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 (!dAppAddress_.isEmpty()) { output.writeBytes(1, dAppAddress_); } if (!getFunctionNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionName_); } for (int i = 0; i < arguments_.size(); i++) { output.writeMessage(3, arguments_.get(i)); } for (int i = 0; i < payments_.size(); i++) { output.writeMessage(4, payments_.get(i)); } if (result_ != null) { output.writeMessage(5, getResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!dAppAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, dAppAddress_); } if (!getFunctionNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionName_); } for (int i = 0; i < arguments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, arguments_.get(i)); } for (int i = 0; i < payments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, payments_.get(i)); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getResult()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) obj; if (!getDAppAddress() .equals(other.getDAppAddress())) return false; if (!getFunctionName() .equals(other.getFunctionName())) return false; if (!getArgumentsList() .equals(other.getArgumentsList())) return false; if (!getPaymentsList() .equals(other.getPaymentsList())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + D_APP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDAppAddress().hashCode(); hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getFunctionName().hashCode(); if (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } if (getPaymentsCount() > 0) { hash = (37 * hash) + PAYMENTS_FIELD_NUMBER; hash = (53 * hash) + getPaymentsList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata 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.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata 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.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata 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.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata 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.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata 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.events.TransactionMetadata.InvokeScriptMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.InvokeScriptMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgumentsFieldBuilder(); getPaymentsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); dAppAddress_ = com.google.protobuf.ByteString.EMPTY; functionName_ = ""; if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argumentsBuilder_.clear(); } if (paymentsBuilder_ == null) { payments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { paymentsBuilder_.clear(); } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata(this); int from_bitField0_ = bitField0_; result.dAppAddress_ = dAppAddress_; result.functionName_ = functionName_; if (argumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); bitField0_ = (bitField0_ & ~0x00000001); } result.arguments_ = arguments_; } else { result.arguments_ = argumentsBuilder_.build(); } if (paymentsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { payments_ = java.util.Collections.unmodifiableList(payments_); bitField0_ = (bitField0_ & ~0x00000002); } result.payments_ = payments_; } else { result.payments_ = paymentsBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance()) return this; if (other.getDAppAddress() != com.google.protobuf.ByteString.EMPTY) { setDAppAddress(other.getDAppAddress()); } if (!other.getFunctionName().isEmpty()) { functionName_ = other.functionName_; onChanged(); } if (argumentsBuilder_ == null) { if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } } else { if (!other.arguments_.isEmpty()) { if (argumentsBuilder_.isEmpty()) { argumentsBuilder_.dispose(); argumentsBuilder_ = null; arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); argumentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgumentsFieldBuilder() : null; } else { argumentsBuilder_.addAllMessages(other.arguments_); } } } if (paymentsBuilder_ == null) { if (!other.payments_.isEmpty()) { if (payments_.isEmpty()) { payments_ = other.payments_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePaymentsIsMutable(); payments_.addAll(other.payments_); } onChanged(); } } else { if (!other.payments_.isEmpty()) { if (paymentsBuilder_.isEmpty()) { paymentsBuilder_.dispose(); paymentsBuilder_ = null; payments_ = other.payments_; bitField0_ = (bitField0_ & ~0x00000002); paymentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPaymentsFieldBuilder() : null; } else { paymentsBuilder_.addAllMessages(other.payments_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString dAppAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d_app_address = 1; * @return The dAppAddress. */ public com.google.protobuf.ByteString getDAppAddress() { return dAppAddress_; } /** * bytes d_app_address = 1; * @param value The dAppAddress to set. * @return This builder for chaining. */ public Builder setDAppAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } dAppAddress_ = value; onChanged(); return this; } /** * bytes d_app_address = 1; * @return This builder for chaining. */ public Builder clearDAppAddress() { dAppAddress_ = getDefaultInstance().getDAppAddress(); onChanged(); return this; } private java.lang.Object functionName_ = ""; /** * string function_name = 2; * @return The functionName. */ public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string function_name = 2; * @return The bytes for functionName. */ public com.google.protobuf.ByteString getFunctionNameBytes() { java.lang.Object ref = functionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string function_name = 2; * @param value The functionName to set. * @return This builder for chaining. */ public Builder setFunctionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionName_ = value; onChanged(); return this; } /** * string function_name = 2; * @return This builder for chaining. */ public Builder clearFunctionName() { functionName_ = getDefaultInstance().getFunctionName(); onChanged(); return this; } /** * string function_name = 2; * @param value The bytes for functionName to set. * @return This builder for chaining. */ public Builder setFunctionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionName_ = value; onChanged(); return this; } private java.util.List arguments_ = java.util.Collections.emptyList(); private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { arguments_ = new java.util.ArrayList(arguments_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder> argumentsBuilder_; /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public java.util.List getArgumentsList() { if (argumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(arguments_); } else { return argumentsBuilder_.getMessageList(); } } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public int getArgumentsCount() { if (argumentsBuilder_ == null) { return arguments_.size(); } else { return argumentsBuilder_.getCount(); } } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument getArguments(int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessage(index); } } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder setArguments( int index, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.set(index, value); onChanged(); } else { argumentsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder setArguments( int index, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.set(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder addArguments(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); } else { argumentsBuilder_.addMessage(value); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder addArguments( int index, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(index, value); onChanged(); } else { argumentsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder addArguments( com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder addArguments( int index, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder addAllArguments( java.lang.Iterable values) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arguments_); onChanged(); } else { argumentsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder clearArguments() { if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argumentsBuilder_.clear(); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public Builder removeArguments(int index) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.remove(index); onChanged(); } else { argumentsBuilder_.remove(index); } return this; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder getArgumentsBuilder( int index) { return getArgumentsFieldBuilder().getBuilder(index); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder getArgumentsOrBuilder( int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public java.util.List getArgumentsOrBuilderList() { if (argumentsBuilder_ != null) { return argumentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(arguments_); } } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder addArgumentsBuilder() { return getArgumentsFieldBuilder().addBuilder( com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.getDefaultInstance()); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder addArgumentsBuilder( int index) { return getArgumentsFieldBuilder().addBuilder( index, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.getDefaultInstance()); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ public java.util.List getArgumentsBuilderList() { return getArgumentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder> getArgumentsFieldBuilder() { if (argumentsBuilder_ == null) { argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder>( arguments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); arguments_ = null; } return argumentsBuilder_; } private java.util.List payments_ = java.util.Collections.emptyList(); private void ensurePaymentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { payments_ = new java.util.ArrayList(payments_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> paymentsBuilder_; /** * repeated .waves.Amount payments = 4; */ public java.util.List getPaymentsList() { if (paymentsBuilder_ == null) { return java.util.Collections.unmodifiableList(payments_); } else { return paymentsBuilder_.getMessageList(); } } /** * repeated .waves.Amount payments = 4; */ public int getPaymentsCount() { if (paymentsBuilder_ == null) { return payments_.size(); } else { return paymentsBuilder_.getCount(); } } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount getPayments(int index) { if (paymentsBuilder_ == null) { return payments_.get(index); } else { return paymentsBuilder_.getMessage(index); } } /** * repeated .waves.Amount payments = 4; */ public Builder setPayments( int index, com.wavesplatform.protobuf.AmountOuterClass.Amount value) { if (paymentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePaymentsIsMutable(); payments_.set(index, value); onChanged(); } else { paymentsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder setPayments( int index, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) { if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); payments_.set(index, builderForValue.build()); onChanged(); } else { paymentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder addPayments(com.wavesplatform.protobuf.AmountOuterClass.Amount value) { if (paymentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePaymentsIsMutable(); payments_.add(value); onChanged(); } else { paymentsBuilder_.addMessage(value); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder addPayments( int index, com.wavesplatform.protobuf.AmountOuterClass.Amount value) { if (paymentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePaymentsIsMutable(); payments_.add(index, value); onChanged(); } else { paymentsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder addPayments( com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) { if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); payments_.add(builderForValue.build()); onChanged(); } else { paymentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder addPayments( int index, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) { if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); payments_.add(index, builderForValue.build()); onChanged(); } else { paymentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder addAllPayments( java.lang.Iterable values) { if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, payments_); onChanged(); } else { paymentsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder clearPayments() { if (paymentsBuilder_ == null) { payments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { paymentsBuilder_.clear(); } return this; } /** * repeated .waves.Amount payments = 4; */ public Builder removePayments(int index) { if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); payments_.remove(index); onChanged(); } else { paymentsBuilder_.remove(index); } return this; } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getPaymentsBuilder( int index) { return getPaymentsFieldBuilder().getBuilder(index); } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getPaymentsOrBuilder( int index) { if (paymentsBuilder_ == null) { return payments_.get(index); } else { return paymentsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.Amount payments = 4; */ public java.util.List getPaymentsOrBuilderList() { if (paymentsBuilder_ != null) { return paymentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(payments_); } } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder addPaymentsBuilder() { return getPaymentsFieldBuilder().addBuilder( com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()); } /** * repeated .waves.Amount payments = 4; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder addPaymentsBuilder( int index) { return getPaymentsFieldBuilder().addBuilder( index, com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()); } /** * repeated .waves.Amount payments = 4; */ public java.util.List getPaymentsBuilderList() { return getPaymentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> getPaymentsFieldBuilder() { if (paymentsBuilder_ == null) { paymentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>( payments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); payments_ = null; } return paymentsBuilder_; } private com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult result_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder> resultBuilder_; /** * .waves.InvokeScriptResult result = 5; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .waves.InvokeScriptResult result = 5; * @return The result. */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult getResult() { if (resultBuilder_ == null) { return result_ == null ? com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .waves.InvokeScriptResult result = 5; */ public Builder setResult(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder setResult( com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder mergeResult(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .waves.InvokeScriptResult result = 5; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .waves.InvokeScriptResult result = 5; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance() : result_; } } /** * .waves.InvokeScriptResult result = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder, com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @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.events.TransactionMetadata.InvokeScriptMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.InvokeScriptMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InvokeScriptMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InvokeScriptMetadata(input, extensionRegistry); } }; 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.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.LeaseMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes recipient_address = 1; * @return The recipientAddress. */ com.google.protobuf.ByteString getRecipientAddress(); } /** * Protobuf type {@code waves.events.TransactionMetadata.LeaseMetadata} */ public static final class LeaseMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.LeaseMetadata) LeaseMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use LeaseMetadata.newBuilder() to construct. private LeaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaseMetadata() { recipientAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LeaseMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaseMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { recipientAddress_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_LeaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder.class); } public static final int RECIPIENT_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString recipientAddress_; /** * bytes recipient_address = 1; * @return The recipientAddress. */ public com.google.protobuf.ByteString getRecipientAddress() { return recipientAddress_; } 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 (!recipientAddress_.isEmpty()) { output.writeBytes(1, recipientAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!recipientAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, recipientAddress_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) obj; if (!getRecipientAddress() .equals(other.getRecipientAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECIPIENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRecipientAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata 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.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata 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.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata 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.events.protobuf.Events.TransactionMetadata.LeaseMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata 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.events.protobuf.Events.TransactionMetadata.LeaseMetadata 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.events.TransactionMetadata.LeaseMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.LeaseMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_LeaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); recipientAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata(this); result.recipientAddress_ = recipientAddress_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance()) return this; if (other.getRecipientAddress() != com.google.protobuf.ByteString.EMPTY) { setRecipientAddress(other.getRecipientAddress()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ public com.google.protobuf.ByteString getRecipientAddress() { return recipientAddress_; } /** * bytes recipient_address = 1; * @param value The recipientAddress to set. * @return This builder for chaining. */ public Builder setRecipientAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } recipientAddress_ = value; onChanged(); return this; } /** * bytes recipient_address = 1; * @return This builder for chaining. */ public Builder clearRecipientAddress() { recipientAddress_ = getDefaultInstance().getRecipientAddress(); 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.events.TransactionMetadata.LeaseMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.LeaseMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LeaseMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaseMetadata(input, extensionRegistry); } }; 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.events.protobuf.Events.TransactionMetadata.LeaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int metadataCase_ = 0; private java.lang.Object metadata_; public enum MetadataCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSFER(104), MASS_TRANSFER(111), INVOKE_SCRIPT(116), LEASE_META(117), METADATA_NOT_SET(0); private final int value; private MetadataCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MetadataCase valueOf(int value) { return forNumber(value); } public static MetadataCase forNumber(int value) { switch (value) { case 104: return TRANSFER; case 111: return MASS_TRANSFER; case 116: return INVOKE_SCRIPT; case 117: return LEASE_META; case 0: return METADATA_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MetadataCase getMetadataCase() { return MetadataCase.forNumber( metadataCase_); } public static final int TRANSFER_FIELD_NUMBER = 104; /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ public boolean hasTransfer() { return metadataCase_ == 104; } /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getTransfer() { if (metadataCase_ == 104) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } /** *
     * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
     * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder getTransferOrBuilder() { if (metadataCase_ == 104) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } public static final int MASS_TRANSFER_FIELD_NUMBER = 111; /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return Whether the massTransfer field is set. */ public boolean hasMassTransfer() { return metadataCase_ == 111; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return The massTransfer. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getMassTransfer() { if (metadataCase_ == 111) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder getMassTransferOrBuilder() { if (metadataCase_ == 111) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } public static final int INVOKE_SCRIPT_FIELD_NUMBER = 116; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return Whether the invokeScript field is set. */ public boolean hasInvokeScript() { return metadataCase_ == 116; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return The invokeScript. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvokeScript() { if (metadataCase_ == 116) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeScriptOrBuilder() { if (metadataCase_ == 116) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } public static final int LEASE_META_FIELD_NUMBER = 117; /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return Whether the leaseMeta field is set. */ public boolean hasLeaseMeta() { return metadataCase_ == 117; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return The leaseMeta. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLeaseMeta() { if (metadataCase_ == 117) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseMetaOrBuilder() { if (metadataCase_ == 117) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } 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 (metadataCase_ == 104) { output.writeMessage(104, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_); } if (metadataCase_ == 111) { output.writeMessage(111, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_); } if (metadataCase_ == 116) { output.writeMessage(116, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_); } if (metadataCase_ == 117) { output.writeMessage(117, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metadataCase_ == 104) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(104, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_); } if (metadataCase_ == 111) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(111, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_); } if (metadataCase_ == 116) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(116, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_); } if (metadataCase_ == 117) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(117, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata) obj; if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 104: if (!getTransfer() .equals(other.getTransfer())) return false; break; case 111: if (!getMassTransfer() .equals(other.getMassTransfer())) return false; break; case 116: if (!getInvokeScript() .equals(other.getInvokeScript())) return false; break; case 117: if (!getLeaseMeta() .equals(other.getLeaseMeta())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (metadataCase_) { case 104: hash = (37 * hash) + TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getTransfer().hashCode(); break; case 111: hash = (37 * hash) + MASS_TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getMassTransfer().hashCode(); break; case 116: hash = (37 * hash) + INVOKE_SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getInvokeScript().hashCode(); break; case 117: hash = (37 * hash) + LEASE_META_FIELD_NUMBER; hash = (53 * hash) + getLeaseMeta().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata 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.events.protobuf.Events.TransactionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata 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.events.protobuf.Events.TransactionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata 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.events.protobuf.Events.TransactionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata 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.events.protobuf.Events.TransactionMetadata 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.events.TransactionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); metadataCase_ = 0; metadata_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata(this); if (metadataCase_ == 104) { if (transferBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = transferBuilder_.build(); } } if (metadataCase_ == 111) { if (massTransferBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = massTransferBuilder_.build(); } } if (metadataCase_ == 116) { if (invokeScriptBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = invokeScriptBuilder_.build(); } } if (metadataCase_ == 117) { if (leaseMetaBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = leaseMetaBuilder_.build(); } } result.metadataCase_ = metadataCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.getDefaultInstance()) return this; switch (other.getMetadataCase()) { case TRANSFER: { mergeTransfer(other.getTransfer()); break; } case MASS_TRANSFER: { mergeMassTransfer(other.getMassTransfer()); break; } case INVOKE_SCRIPT: { mergeInvokeScript(other.getInvokeScript()); break; } case LEASE_META: { mergeLeaseMeta(other.getLeaseMeta()); break; } case METADATA_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.protobuf.Events.TransactionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.protobuf.Events.TransactionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int metadataCase_ = 0; private java.lang.Object metadata_; public MetadataCase getMetadataCase() { return MetadataCase.forNumber( metadataCase_); } public Builder clearMetadata() { metadataCase_ = 0; metadata_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder> transferBuilder_; /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ public boolean hasTransfer() { return metadataCase_ == 104; } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getTransfer() { if (transferBuilder_ == null) { if (metadataCase_ == 104) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } else { if (metadataCase_ == 104) { return transferBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public Builder setTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata value) { if (transferBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { transferBuilder_.setMessage(value); } metadataCase_ = 104; return this; } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public Builder setTransfer( com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder builderForValue) { if (transferBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { transferBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 104; return this; } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public Builder mergeTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata value) { if (transferBuilder_ == null) { if (metadataCase_ == 104 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 104) { transferBuilder_.mergeFrom(value); } transferBuilder_.setMessage(value); } metadataCase_ = 104; return this; } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public Builder clearTransfer() { if (transferBuilder_ == null) { if (metadataCase_ == 104) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 104) { metadataCase_ = 0; metadata_ = null; } transferBuilder_.clear(); } return this; } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder getTransferBuilder() { return getTransferFieldBuilder().getBuilder(); } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder getTransferOrBuilder() { if ((metadataCase_ == 104) && (transferBuilder_ != null)) { return transferBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 104) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } } /** *
       * <TransactionName>Metadata <transaction_name> = 1<TransactionNumber>
       * 
* * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder> getTransferFieldBuilder() { if (transferBuilder_ == null) { if (!(metadataCase_ == 104)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.getDefaultInstance(); } transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 104; onChanged();; return transferBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder> massTransferBuilder_; /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return Whether the massTransfer field is set. */ public boolean hasMassTransfer() { return metadataCase_ == 111; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return The massTransfer. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getMassTransfer() { if (massTransferBuilder_ == null) { if (metadataCase_ == 111) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } else { if (metadataCase_ == 111) { return massTransferBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public Builder setMassTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata value) { if (massTransferBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { massTransferBuilder_.setMessage(value); } metadataCase_ = 111; return this; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public Builder setMassTransfer( com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder builderForValue) { if (massTransferBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { massTransferBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 111; return this; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public Builder mergeMassTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata value) { if (massTransferBuilder_ == null) { if (metadataCase_ == 111 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 111) { massTransferBuilder_.mergeFrom(value); } massTransferBuilder_.setMessage(value); } metadataCase_ = 111; return this; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public Builder clearMassTransfer() { if (massTransferBuilder_ == null) { if (metadataCase_ == 111) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 111) { metadataCase_ = 0; metadata_ = null; } massTransferBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder getMassTransferBuilder() { return getMassTransferFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder getMassTransferOrBuilder() { if ((metadataCase_ == 111) && (massTransferBuilder_ != null)) { return massTransferBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 111) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder> getMassTransferFieldBuilder() { if (massTransferBuilder_ == null) { if (!(metadataCase_ == 111)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.getDefaultInstance(); } massTransferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 111; onChanged();; return massTransferBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder> invokeScriptBuilder_; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return Whether the invokeScript field is set. */ public boolean hasInvokeScript() { return metadataCase_ == 116; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return The invokeScript. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvokeScript() { if (invokeScriptBuilder_ == null) { if (metadataCase_ == 116) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } else { if (metadataCase_ == 116) { return invokeScriptBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public Builder setInvokeScript(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata value) { if (invokeScriptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { invokeScriptBuilder_.setMessage(value); } metadataCase_ = 116; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public Builder setInvokeScript( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder builderForValue) { if (invokeScriptBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { invokeScriptBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 116; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public Builder mergeInvokeScript(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata value) { if (invokeScriptBuilder_ == null) { if (metadataCase_ == 116 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 116) { invokeScriptBuilder_.mergeFrom(value); } invokeScriptBuilder_.setMessage(value); } metadataCase_ = 116; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public Builder clearInvokeScript() { if (invokeScriptBuilder_ == null) { if (metadataCase_ == 116) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 116) { metadataCase_ = 0; metadata_ = null; } invokeScriptBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder getInvokeScriptBuilder() { return getInvokeScriptFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeScriptOrBuilder() { if ((metadataCase_ == 116) && (invokeScriptBuilder_ != null)) { return invokeScriptBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 116) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder> getInvokeScriptFieldBuilder() { if (invokeScriptBuilder_ == null) { if (!(metadataCase_ == 116)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } invokeScriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 116; onChanged();; return invokeScriptBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder> leaseMetaBuilder_; /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return Whether the leaseMeta field is set. */ public boolean hasLeaseMeta() { return metadataCase_ == 117; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; * @return The leaseMeta. */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLeaseMeta() { if (leaseMetaBuilder_ == null) { if (metadataCase_ == 117) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } else { if (metadataCase_ == 117) { return leaseMetaBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public Builder setLeaseMeta(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata value) { if (leaseMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { leaseMetaBuilder_.setMessage(value); } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public Builder setLeaseMeta( com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder builderForValue) { if (leaseMetaBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { leaseMetaBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public Builder mergeLeaseMeta(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata value) { if (leaseMetaBuilder_ == null) { if (metadataCase_ == 117 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 117) { leaseMetaBuilder_.mergeFrom(value); } leaseMetaBuilder_.setMessage(value); } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public Builder clearLeaseMeta() { if (leaseMetaBuilder_ == null) { if (metadataCase_ == 117) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 117) { metadataCase_ = 0; metadata_ = null; } leaseMetaBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder getLeaseMetaBuilder() { return getLeaseMetaFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseMetaOrBuilder() { if ((metadataCase_ == 117) && (leaseMetaBuilder_ != null)) { return leaseMetaBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 117) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.LeaseMetadata lease_meta = 117; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder> getLeaseMetaFieldBuilder() { if (leaseMetaBuilder_ == null) { if (!(metadataCase_ == 117)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } leaseMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 117; onChanged();; return leaseMetaBuilder_; } @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.events.TransactionMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionMetadata(input, extensionRegistry); } }; 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.events.protobuf.Events.TransactionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_BlockchainUpdated_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_BlockchainUpdated_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_BlockchainUpdated_Append_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_BlockchainUpdated_Append_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_BlockchainUpdated_Rollback_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_BlockchainUpdated_Rollback_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_BalanceUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_LeasingUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_LeaseUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_DataEntryUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_AssetStateUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_AssetDetails_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_AssetDetails_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_StateUpdate_AssetInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_AssetInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_TransferMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_MassTransferMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_LeaseMetadata_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\031waves/events/events.proto\022\014waves.event" + "s\032\021waves/block.proto\032\022waves/amount.proto" + "\032\027waves/transaction.proto\032 waves/invoke_" + "script_result.proto\"\220\010\n\021BlockchainUpdate" + "d\022\n\n\002id\030\001 \001(\014\022\016\n\006height\030\002 \001(\005\0228\n\006append\030" + "\013 \001(\0132&.waves.events.BlockchainUpdated.A" + "ppendH\000\022<\n\010rollback\030\014 \001(\0132(.waves.events" + ".BlockchainUpdated.RollbackH\000\022>\n\021referen" + "ced_assets\030\025 \003(\0132#.waves.events.StateUpd" + "ate.AssetInfo\032\236\004\n\006Append\022C\n\005block\030\001 \001(\0132" + "2.waves.events.BlockchainUpdated.Append." + "BlockAppendH\000\022N\n\013micro_block\030\002 \001(\01327.wav" + "es.events.BlockchainUpdated.Append.Micro" + "BlockAppendH\000\022\027\n\017transaction_ids\030\003 \003(\014\022@" + "\n\025transactions_metadata\030\004 \003(\0132!.waves.ev" + "ents.TransactionMetadata\022/\n\014state_update" + "\030\013 \001(\0132\031.waves.events.StateUpdate\022<\n\031tra" + "nsaction_state_updates\030\014 \003(\0132\031.waves.eve" + "nts.StateUpdate\032H\n\013BlockAppend\022\033\n\005block\030" + "\001 \001(\0132\014.waves.Block\022\034\n\024updated_waves_amo" + "unt\030\002 \001(\003\032c\n\020MicroBlockAppend\022,\n\013micro_b" + "lock\030\001 \001(\0132\027.waves.SignedMicroBlock\022!\n\031u" + "pdated_transactions_root\030\002 \001(\014B\006\n\004body\032\373" + "\001\n\010Rollback\022C\n\004type\030\001 \001(\01625.waves.events" + ".BlockchainUpdated.Rollback.RollbackType" + "\022\037\n\027removed_transaction_ids\030\002 \003(\014\022$\n\016rem" + "oved_blocks\030\003 \003(\0132\014.waves.Block\0228\n\025rollb" + "ack_state_update\030\004 \001(\0132\031.waves.events.St" + "ateUpdate\")\n\014RollbackType\022\t\n\005BLOCK\020\000\022\016\n\n" + "MICROBLOCK\020\001B\010\n\006update\"\271\013\n\013StateUpdate\0229" + "\n\010balances\030\001 \003(\0132\'.waves.events.StateUpd" + "ate.BalanceUpdate\022D\n\023leasing_for_address" + "\030\002 \003(\0132\'.waves.events.StateUpdate.Leasin" + "gUpdate\022?\n\014data_entries\030\003 \003(\0132).waves.ev" + "ents.StateUpdate.DataEntryUpdate\022:\n\006asse" + "ts\030\004 \003(\0132*.waves.events.StateUpdate.Asse" + "tStateUpdate\022@\n\021individual_leases\030\005 \003(\0132" + "%.waves.events.StateUpdate.LeaseUpdate\032\\" + "\n\rBalanceUpdate\022\017\n\007address\030\001 \001(\014\022#\n\014amou" + "nt_after\030\002 \001(\0132\r.waves.Amount\022\025\n\ramount_" + "before\030\003 \001(\003\032l\n\rLeasingUpdate\022\017\n\007address" + "\030\001 \001(\014\022\020\n\010in_after\030\002 \001(\003\022\021\n\tout_after\030\003 " + "\001(\003\022\021\n\tin_before\030\004 \001(\003\022\022\n\nout_before\030\005 \001" + "(\003\032\343\001\n\013LeaseUpdate\022\020\n\010lease_id\030\001 \001(\014\022G\n\014" + "status_after\030\002 \001(\01621.waves.events.StateU" + "pdate.LeaseUpdate.LeaseStatus\022\016\n\006amount\030" + "\n \001(\003\022\016\n\006sender\030\013 \001(\014\022\021\n\trecipient\030\014 \001(\014" + "\022\035\n\025origin_transaction_id\030\r \001(\014\"\'\n\013Lease" + "Status\022\014\n\010INACTIVE\020\000\022\n\n\006ACTIVE\020\001\032\235\001\n\017Dat" + "aEntryUpdate\022\017\n\007address\030\001 \001(\014\0228\n\ndata_en" + "try\030\002 \001(\0132$.waves.DataTransactionData.Da" + "taEntry\022?\n\021data_entry_before\030\n \001(\0132$.wav" + "es.DataTransactionData.DataEntry\032\201\001\n\020Ass" + "etStateUpdate\0226\n\006before\030\001 \001(\0132&.waves.ev" + "ents.StateUpdate.AssetDetails\0225\n\005after\030\002" + " \001(\0132&.waves.events.StateUpdate.AssetDet" + "ails\032\332\002\n\014AssetDetails\022\020\n\010asset_id\030\001 \001(\014\022" + "\016\n\006issuer\030\002 \001(\014\022\020\n\010decimals\030\003 \001(\005\022\014\n\004nam" + "e\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\022\n\nreissuab" + "le\030\006 \001(\010\022\016\n\006volume\030\007 \001(\003\022K\n\013script_info\030" + "\010 \001(\01326.waves.events.StateUpdate.AssetDe" + "tails.AssetScriptInfo\022\023\n\013sponsorship\030\t \001" + "(\003\022\013\n\003nft\030\n \001(\010\022\024\n\014last_updated\030\013 \001(\005\022\023\n" + "\013safe_volume\030\024 \001(\014\0325\n\017AssetScriptInfo\022\016\n" + "\006script\030\001 \001(\014\022\022\n\ncomplexity\030\002 \001(\003\0327\n\tAss" + "etInfo\022\n\n\002id\030\001 \001(\014\022\020\n\010decimals\030\002 \001(\005\022\014\n\004" + "name\030\003 \001(\t\"\262\005\n\023TransactionMetadata\022F\n\010tr" + "ansfer\030h \001(\01322.waves.events.TransactionM" + "etadata.TransferMetadataH\000\022O\n\rmass_trans" + "fer\030o \001(\01326.waves.events.TransactionMeta" + "data.MassTransferMetadataH\000\022O\n\rinvoke_sc" + "ript\030t \001(\01326.waves.events.TransactionMet" + "adata.InvokeScriptMetadataH\000\022E\n\nlease_me" + "ta\030u \001(\0132/.waves.events.TransactionMetad" + "ata.LeaseMetadataH\000\032-\n\020TransferMetadata\022" + "\031\n\021recipient_address\030\001 \001(\014\0324\n\024MassTransf" + "erMetadata\022\034\n\024recipients_addresses\030\001 \003(\014" + "\032\314\001\n\024InvokeScriptMetadata\022\025\n\rd_app_addre" + "ss\030\001 \001(\014\022\025\n\rfunction_name\030\002 \001(\t\022:\n\targum" + "ents\030\003 \003(\0132\'.waves.InvokeScriptResult.Ca" + "ll.Argument\022\037\n\010payments\030\004 \003(\0132\r.waves.Am" + "ount\022)\n\006result\030\005 \001(\0132\031.waves.InvokeScrip" + "tResult\032*\n\rLeaseMetadata\022\031\n\021recipient_ad" + "dress\030\001 \001(\014B\n\n\010metadataBe\n!com.wavesplat" + "[email protected]/wavespl" + "atform/gowaves/pkg/grpc/generated/waves/" + "eventsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.wavesplatform.protobuf.block.BlockOuterClass.getDescriptor(), com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(), com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(), com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.getDescriptor(), }); internal_static_waves_events_BlockchainUpdated_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_waves_events_BlockchainUpdated_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_BlockchainUpdated_descriptor, new java.lang.String[] { "Id", "Height", "Append", "Rollback", "ReferencedAssets", "Update", }); internal_static_waves_events_BlockchainUpdated_Append_descriptor = internal_static_waves_events_BlockchainUpdated_descriptor.getNestedTypes().get(0); internal_static_waves_events_BlockchainUpdated_Append_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_BlockchainUpdated_Append_descriptor, new java.lang.String[] { "Block", "MicroBlock", "TransactionIds", "TransactionsMetadata", "StateUpdate", "TransactionStateUpdates", "Body", }); internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor = internal_static_waves_events_BlockchainUpdated_Append_descriptor.getNestedTypes().get(0); internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_BlockchainUpdated_Append_BlockAppend_descriptor, new java.lang.String[] { "Block", "UpdatedWavesAmount", }); internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor = internal_static_waves_events_BlockchainUpdated_Append_descriptor.getNestedTypes().get(1); internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_BlockchainUpdated_Append_MicroBlockAppend_descriptor, new java.lang.String[] { "MicroBlock", "UpdatedTransactionsRoot", }); internal_static_waves_events_BlockchainUpdated_Rollback_descriptor = internal_static_waves_events_BlockchainUpdated_descriptor.getNestedTypes().get(1); internal_static_waves_events_BlockchainUpdated_Rollback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_BlockchainUpdated_Rollback_descriptor, new java.lang.String[] { "Type", "RemovedTransactionIds", "RemovedBlocks", "RollbackStateUpdate", }); internal_static_waves_events_StateUpdate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_waves_events_StateUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_descriptor, new java.lang.String[] { "Balances", "LeasingForAddress", "DataEntries", "Assets", "IndividualLeases", }); internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(0); internal_static_waves_events_StateUpdate_BalanceUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_BalanceUpdate_descriptor, new java.lang.String[] { "Address", "AmountAfter", "AmountBefore", }); internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(1); internal_static_waves_events_StateUpdate_LeasingUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_LeasingUpdate_descriptor, new java.lang.String[] { "Address", "InAfter", "OutAfter", "InBefore", "OutBefore", }); internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(2); internal_static_waves_events_StateUpdate_LeaseUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_LeaseUpdate_descriptor, new java.lang.String[] { "LeaseId", "StatusAfter", "Amount", "Sender", "Recipient", "OriginTransactionId", }); internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(3); internal_static_waves_events_StateUpdate_DataEntryUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_DataEntryUpdate_descriptor, new java.lang.String[] { "Address", "DataEntry", "DataEntryBefore", }); internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(4); internal_static_waves_events_StateUpdate_AssetStateUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_AssetStateUpdate_descriptor, new java.lang.String[] { "Before", "After", }); internal_static_waves_events_StateUpdate_AssetDetails_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(5); internal_static_waves_events_StateUpdate_AssetDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_AssetDetails_descriptor, new java.lang.String[] { "AssetId", "Issuer", "Decimals", "Name", "Description", "Reissuable", "Volume", "ScriptInfo", "Sponsorship", "Nft", "LastUpdated", "SafeVolume", }); internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor = internal_static_waves_events_StateUpdate_AssetDetails_descriptor.getNestedTypes().get(0); internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_AssetDetails_AssetScriptInfo_descriptor, new java.lang.String[] { "Script", "Complexity", }); internal_static_waves_events_StateUpdate_AssetInfo_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(6); internal_static_waves_events_StateUpdate_AssetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_AssetInfo_descriptor, new java.lang.String[] { "Id", "Decimals", "Name", }); internal_static_waves_events_TransactionMetadata_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_waves_events_TransactionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_descriptor, new java.lang.String[] { "Transfer", "MassTransfer", "InvokeScript", "LeaseMeta", "Metadata", }); internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(0); internal_static_waves_events_TransactionMetadata_TransferMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_TransferMetadata_descriptor, new java.lang.String[] { "RecipientAddress", }); internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(1); internal_static_waves_events_TransactionMetadata_MassTransferMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_MassTransferMetadata_descriptor, new java.lang.String[] { "RecipientsAddresses", }); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(2); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor, new java.lang.String[] { "DAppAddress", "FunctionName", "Arguments", "Payments", "Result", }); internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(3); internal_static_waves_events_TransactionMetadata_LeaseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor, new java.lang.String[] { "RecipientAddress", }); com.wavesplatform.protobuf.block.BlockOuterClass.getDescriptor(); com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(); com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(); com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy