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

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

// 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);

    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();
    }

    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);

      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();
      }

      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();

        /**
         * repeated int32 activated_features = 3;
         * @return A list containing the activatedFeatures.
         */
        java.util.List getActivatedFeaturesList();
        /**
         * repeated int32 activated_features = 3;
         * @return The count of activatedFeatures.
         */
        int getActivatedFeaturesCount();
        /**
         * repeated int32 activated_features = 3;
         * @param index The index of the element to return.
         * @return The activatedFeatures at the given index.
         */
        int getActivatedFeatures(int index);

        /**
         * bytes vrf = 4;
         * @return The vrf.
         */
        com.google.protobuf.ByteString getVrf();

        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        java.util.List 
            getRewardSharesList();
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare getRewardShares(int index);
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        int getRewardSharesCount();
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        java.util.List 
            getRewardSharesOrBuilderList();
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder getRewardSharesOrBuilder(
            int index);
      }
      /**
       * 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() {
          activatedFeatures_ = emptyIntList();
          vrf_ = com.google.protobuf.ByteString.EMPTY;
          rewardShares_ = java.util.Collections.emptyList();
        }

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

        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.
         */
        @java.lang.Override
        public boolean hasBlock() {
          return block_ != null;
        }
        /**
         * .waves.Block block = 1;
         * @return The block.
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock() {
          return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_;
        }
        /**
         * .waves.Block block = 1;
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() {
          return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_;
        }

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

        public static final int ACTIVATED_FEATURES_FIELD_NUMBER = 3;
        @SuppressWarnings("serial")
        private com.google.protobuf.Internal.IntList activatedFeatures_;
        /**
         * repeated int32 activated_features = 3;
         * @return A list containing the activatedFeatures.
         */
        @java.lang.Override
        public java.util.List
            getActivatedFeaturesList() {
          return activatedFeatures_;
        }
        /**
         * repeated int32 activated_features = 3;
         * @return The count of activatedFeatures.
         */
        public int getActivatedFeaturesCount() {
          return activatedFeatures_.size();
        }
        /**
         * repeated int32 activated_features = 3;
         * @param index The index of the element to return.
         * @return The activatedFeatures at the given index.
         */
        public int getActivatedFeatures(int index) {
          return activatedFeatures_.getInt(index);
        }
        private int activatedFeaturesMemoizedSerializedSize = -1;

        public static final int VRF_FIELD_NUMBER = 4;
        private com.google.protobuf.ByteString vrf_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes vrf = 4;
         * @return The vrf.
         */
        @java.lang.Override
        public com.google.protobuf.ByteString getVrf() {
          return vrf_;
        }

        public static final int REWARD_SHARES_FIELD_NUMBER = 5;
        @SuppressWarnings("serial")
        private java.util.List rewardShares_;
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        @java.lang.Override
        public java.util.List getRewardSharesList() {
          return rewardShares_;
        }
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        @java.lang.Override
        public java.util.List 
            getRewardSharesOrBuilderList() {
          return rewardShares_;
        }
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        @java.lang.Override
        public int getRewardSharesCount() {
          return rewardShares_.size();
        }
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare getRewardShares(int index) {
          return rewardShares_.get(index);
        }
        /**
         * repeated .waves.RewardShare reward_shares = 5;
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder getRewardSharesOrBuilder(
            int index) {
          return rewardShares_.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 {
          getSerializedSize();
          if (block_ != null) {
            output.writeMessage(1, getBlock());
          }
          if (updatedWavesAmount_ != 0L) {
            output.writeInt64(2, updatedWavesAmount_);
          }
          if (getActivatedFeaturesList().size() > 0) {
            output.writeUInt32NoTag(26);
            output.writeUInt32NoTag(activatedFeaturesMemoizedSerializedSize);
          }
          for (int i = 0; i < activatedFeatures_.size(); i++) {
            output.writeInt32NoTag(activatedFeatures_.getInt(i));
          }
          if (!vrf_.isEmpty()) {
            output.writeBytes(4, vrf_);
          }
          for (int i = 0; i < rewardShares_.size(); i++) {
            output.writeMessage(5, rewardShares_.get(i));
          }
          getUnknownFields().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_);
          }
          {
            int dataSize = 0;
            for (int i = 0; i < activatedFeatures_.size(); i++) {
              dataSize += com.google.protobuf.CodedOutputStream
                .computeInt32SizeNoTag(activatedFeatures_.getInt(i));
            }
            size += dataSize;
            if (!getActivatedFeaturesList().isEmpty()) {
              size += 1;
              size += com.google.protobuf.CodedOutputStream
                  .computeInt32SizeNoTag(dataSize);
            }
            activatedFeaturesMemoizedSerializedSize = dataSize;
          }
          if (!vrf_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
              .computeBytesSize(4, vrf_);
          }
          for (int i = 0; i < rewardShares_.size(); i++) {
            size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(5, rewardShares_.get(i));
          }
          size += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
           return true;
          }
          if (!(obj instanceof com.wavesplatform.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 (!getActivatedFeaturesList()
              .equals(other.getActivatedFeaturesList())) return false;
          if (!getVrf()
              .equals(other.getVrf())) return false;
          if (!getRewardSharesList()
              .equals(other.getRewardSharesList())) return false;
          if (!getUnknownFields().equals(other.getUnknownFields())) return false;
          return true;
        }

        @java.lang.Override
        public int hashCode() {
          if (memoizedHashCode != 0) {
            return memoizedHashCode;
          }
          int hash = 41;
          hash = (19 * hash) + getDescriptor().hashCode();
          if (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());
          if (getActivatedFeaturesCount() > 0) {
            hash = (37 * hash) + ACTIVATED_FEATURES_FIELD_NUMBER;
            hash = (53 * hash) + getActivatedFeaturesList().hashCode();
          }
          hash = (37 * hash) + VRF_FIELD_NUMBER;
          hash = (53 * hash) + getVrf().hashCode();
          if (getRewardSharesCount() > 0) {
            hash = (37 * hash) + REWARD_SHARES_FIELD_NUMBER;
            hash = (53 * hash) + getRewardSharesList().hashCode();
          }
          hash = (29 * hash) + getUnknownFields().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() {

          }

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

          }
          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            block_ = null;
            if (blockBuilder_ != null) {
              blockBuilder_.dispose();
              blockBuilder_ = null;
            }
            updatedWavesAmount_ = 0L;
            activatedFeatures_ = emptyIntList();
            vrf_ = com.google.protobuf.ByteString.EMPTY;
            if (rewardSharesBuilder_ == null) {
              rewardShares_ = java.util.Collections.emptyList();
            } else {
              rewardShares_ = null;
              rewardSharesBuilder_.clear();
            }
            bitField0_ = (bitField0_ & ~0x00000010);
            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);
            buildPartialRepeatedFields(result);
            if (bitField0_ != 0) { buildPartial0(result); }
            onBuilt();
            return result;
          }

          private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend result) {
            if (((bitField0_ & 0x00000004) != 0)) {
              activatedFeatures_.makeImmutable();
              bitField0_ = (bitField0_ & ~0x00000004);
            }
            result.activatedFeatures_ = activatedFeatures_;
            if (rewardSharesBuilder_ == null) {
              if (((bitField0_ & 0x00000010) != 0)) {
                rewardShares_ = java.util.Collections.unmodifiableList(rewardShares_);
                bitField0_ = (bitField0_ & ~0x00000010);
              }
              result.rewardShares_ = rewardShares_;
            } else {
              result.rewardShares_ = rewardSharesBuilder_.build();
            }
          }

          private void buildPartial0(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.BlockAppend result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.block_ = blockBuilder_ == null
                  ? block_
                  : blockBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.updatedWavesAmount_ = updatedWavesAmount_;
            }
            if (((from_bitField0_ & 0x00000008) != 0)) {
              result.vrf_ = vrf_;
            }
          }

          @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());
            }
            if (!other.activatedFeatures_.isEmpty()) {
              if (activatedFeatures_.isEmpty()) {
                activatedFeatures_ = other.activatedFeatures_;
                bitField0_ = (bitField0_ & ~0x00000004);
              } else {
                ensureActivatedFeaturesIsMutable();
                activatedFeatures_.addAll(other.activatedFeatures_);
              }
              onChanged();
            }
            if (other.getVrf() != com.google.protobuf.ByteString.EMPTY) {
              setVrf(other.getVrf());
            }
            if (rewardSharesBuilder_ == null) {
              if (!other.rewardShares_.isEmpty()) {
                if (rewardShares_.isEmpty()) {
                  rewardShares_ = other.rewardShares_;
                  bitField0_ = (bitField0_ & ~0x00000010);
                } else {
                  ensureRewardSharesIsMutable();
                  rewardShares_.addAll(other.rewardShares_);
                }
                onChanged();
              }
            } else {
              if (!other.rewardShares_.isEmpty()) {
                if (rewardSharesBuilder_.isEmpty()) {
                  rewardSharesBuilder_.dispose();
                  rewardSharesBuilder_ = null;
                  rewardShares_ = other.rewardShares_;
                  bitField0_ = (bitField0_ & ~0x00000010);
                  rewardSharesBuilder_ = 
                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                       getRewardSharesFieldBuilder() : null;
                } else {
                  rewardSharesBuilder_.addAllMessages(other.rewardShares_);
                }
              }
            }
            this.mergeUnknownFields(other.getUnknownFields());
            onChanged();
            return this;
          }

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

          @java.lang.Override
          public Builder mergeFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
            if (extensionRegistry == null) {
              throw new java.lang.NullPointerException();
            }
            try {
              boolean done = false;
              while (!done) {
                int tag = input.readTag();
                switch (tag) {
                  case 0:
                    done = true;
                    break;
                  case 10: {
                    input.readMessage(
                        getBlockFieldBuilder().getBuilder(),
                        extensionRegistry);
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                  case 16: {
                    updatedWavesAmount_ = input.readInt64();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 16
                  case 24: {
                    int v = input.readInt32();
                    ensureActivatedFeaturesIsMutable();
                    activatedFeatures_.addInt(v);
                    break;
                  } // case 24
                  case 26: {
                    int length = input.readRawVarint32();
                    int limit = input.pushLimit(length);
                    ensureActivatedFeaturesIsMutable();
                    while (input.getBytesUntilLimit() > 0) {
                      activatedFeatures_.addInt(input.readInt32());
                    }
                    input.popLimit(limit);
                    break;
                  } // case 26
                  case 34: {
                    vrf_ = input.readBytes();
                    bitField0_ |= 0x00000008;
                    break;
                  } // case 34
                  case 42: {
                    com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare m =
                        input.readMessage(
                            com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.parser(),
                            extensionRegistry);
                    if (rewardSharesBuilder_ == null) {
                      ensureRewardSharesIsMutable();
                      rewardShares_.add(m);
                    } else {
                      rewardSharesBuilder_.addMessage(m);
                    }
                    break;
                  } // case 42
                  default: {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
                } // switch (tag)
              } // while (!done)
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.unwrapIOException();
            } finally {
              onChanged();
            } // finally
            return this;
          }
          private int bitField0_;

          private com.wavesplatform.protobuf.block.BlockOuterClass.Block 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 ((bitField0_ & 0x00000001) != 0);
          }
          /**
           * .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;
            } else {
              blockBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder setBlock(
              com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) {
            if (blockBuilder_ == null) {
              block_ = builderForValue.build();
            } else {
              blockBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder mergeBlock(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) {
            if (blockBuilder_ == null) {
              if (((bitField0_ & 0x00000001) != 0) &&
                block_ != null &&
                block_ != com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance()) {
                getBlockBuilder().mergeFrom(value);
              } else {
                block_ = value;
              }
            } else {
              blockBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public Builder clearBlock() {
            bitField0_ = (bitField0_ & ~0x00000001);
            block_ = null;
            if (blockBuilder_ != null) {
              blockBuilder_.dispose();
              blockBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           * .waves.Block block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder getBlockBuilder() {
            bitField0_ |= 0x00000001;
            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.
           */
          @java.lang.Override
          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;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           * int64 updated_waves_amount = 2;
           * @return This builder for chaining.
           */
          public Builder clearUpdatedWavesAmount() {
            bitField0_ = (bitField0_ & ~0x00000002);
            updatedWavesAmount_ = 0L;
            onChanged();
            return this;
          }

          private com.google.protobuf.Internal.IntList activatedFeatures_ = emptyIntList();
          private void ensureActivatedFeaturesIsMutable() {
            if (!((bitField0_ & 0x00000004) != 0)) {
              activatedFeatures_ = mutableCopy(activatedFeatures_);
              bitField0_ |= 0x00000004;
            }
          }
          /**
           * repeated int32 activated_features = 3;
           * @return A list containing the activatedFeatures.
           */
          public java.util.List
              getActivatedFeaturesList() {
            return ((bitField0_ & 0x00000004) != 0) ?
                     java.util.Collections.unmodifiableList(activatedFeatures_) : activatedFeatures_;
          }
          /**
           * repeated int32 activated_features = 3;
           * @return The count of activatedFeatures.
           */
          public int getActivatedFeaturesCount() {
            return activatedFeatures_.size();
          }
          /**
           * repeated int32 activated_features = 3;
           * @param index The index of the element to return.
           * @return The activatedFeatures at the given index.
           */
          public int getActivatedFeatures(int index) {
            return activatedFeatures_.getInt(index);
          }
          /**
           * repeated int32 activated_features = 3;
           * @param index The index to set the value at.
           * @param value The activatedFeatures to set.
           * @return This builder for chaining.
           */
          public Builder setActivatedFeatures(
              int index, int value) {

            ensureActivatedFeaturesIsMutable();
            activatedFeatures_.setInt(index, value);
            onChanged();
            return this;
          }
          /**
           * repeated int32 activated_features = 3;
           * @param value The activatedFeatures to add.
           * @return This builder for chaining.
           */
          public Builder addActivatedFeatures(int value) {

            ensureActivatedFeaturesIsMutable();
            activatedFeatures_.addInt(value);
            onChanged();
            return this;
          }
          /**
           * repeated int32 activated_features = 3;
           * @param values The activatedFeatures to add.
           * @return This builder for chaining.
           */
          public Builder addAllActivatedFeatures(
              java.lang.Iterable values) {
            ensureActivatedFeaturesIsMutable();
            com.google.protobuf.AbstractMessageLite.Builder.addAll(
                values, activatedFeatures_);
            onChanged();
            return this;
          }
          /**
           * repeated int32 activated_features = 3;
           * @return This builder for chaining.
           */
          public Builder clearActivatedFeatures() {
            activatedFeatures_ = emptyIntList();
            bitField0_ = (bitField0_ & ~0x00000004);
            onChanged();
            return this;
          }

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

          private java.util.List rewardShares_ =
            java.util.Collections.emptyList();
          private void ensureRewardSharesIsMutable() {
            if (!((bitField0_ & 0x00000010) != 0)) {
              rewardShares_ = new java.util.ArrayList(rewardShares_);
              bitField0_ |= 0x00000010;
             }
          }

          private com.google.protobuf.RepeatedFieldBuilderV3<
              com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder> rewardSharesBuilder_;

          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public java.util.List getRewardSharesList() {
            if (rewardSharesBuilder_ == null) {
              return java.util.Collections.unmodifiableList(rewardShares_);
            } else {
              return rewardSharesBuilder_.getMessageList();
            }
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public int getRewardSharesCount() {
            if (rewardSharesBuilder_ == null) {
              return rewardShares_.size();
            } else {
              return rewardSharesBuilder_.getCount();
            }
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare getRewardShares(int index) {
            if (rewardSharesBuilder_ == null) {
              return rewardShares_.get(index);
            } else {
              return rewardSharesBuilder_.getMessage(index);
            }
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder setRewardShares(
              int index, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare value) {
            if (rewardSharesBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              ensureRewardSharesIsMutable();
              rewardShares_.set(index, value);
              onChanged();
            } else {
              rewardSharesBuilder_.setMessage(index, value);
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder setRewardShares(
              int index, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder builderForValue) {
            if (rewardSharesBuilder_ == null) {
              ensureRewardSharesIsMutable();
              rewardShares_.set(index, builderForValue.build());
              onChanged();
            } else {
              rewardSharesBuilder_.setMessage(index, builderForValue.build());
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder addRewardShares(com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare value) {
            if (rewardSharesBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              ensureRewardSharesIsMutable();
              rewardShares_.add(value);
              onChanged();
            } else {
              rewardSharesBuilder_.addMessage(value);
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder addRewardShares(
              int index, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare value) {
            if (rewardSharesBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              ensureRewardSharesIsMutable();
              rewardShares_.add(index, value);
              onChanged();
            } else {
              rewardSharesBuilder_.addMessage(index, value);
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder addRewardShares(
              com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder builderForValue) {
            if (rewardSharesBuilder_ == null) {
              ensureRewardSharesIsMutable();
              rewardShares_.add(builderForValue.build());
              onChanged();
            } else {
              rewardSharesBuilder_.addMessage(builderForValue.build());
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder addRewardShares(
              int index, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder builderForValue) {
            if (rewardSharesBuilder_ == null) {
              ensureRewardSharesIsMutable();
              rewardShares_.add(index, builderForValue.build());
              onChanged();
            } else {
              rewardSharesBuilder_.addMessage(index, builderForValue.build());
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder addAllRewardShares(
              java.lang.Iterable values) {
            if (rewardSharesBuilder_ == null) {
              ensureRewardSharesIsMutable();
              com.google.protobuf.AbstractMessageLite.Builder.addAll(
                  values, rewardShares_);
              onChanged();
            } else {
              rewardSharesBuilder_.addAllMessages(values);
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder clearRewardShares() {
            if (rewardSharesBuilder_ == null) {
              rewardShares_ = java.util.Collections.emptyList();
              bitField0_ = (bitField0_ & ~0x00000010);
              onChanged();
            } else {
              rewardSharesBuilder_.clear();
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public Builder removeRewardShares(int index) {
            if (rewardSharesBuilder_ == null) {
              ensureRewardSharesIsMutable();
              rewardShares_.remove(index);
              onChanged();
            } else {
              rewardSharesBuilder_.remove(index);
            }
            return this;
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder getRewardSharesBuilder(
              int index) {
            return getRewardSharesFieldBuilder().getBuilder(index);
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder getRewardSharesOrBuilder(
              int index) {
            if (rewardSharesBuilder_ == null) {
              return rewardShares_.get(index);  } else {
              return rewardSharesBuilder_.getMessageOrBuilder(index);
            }
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public java.util.List 
               getRewardSharesOrBuilderList() {
            if (rewardSharesBuilder_ != null) {
              return rewardSharesBuilder_.getMessageOrBuilderList();
            } else {
              return java.util.Collections.unmodifiableList(rewardShares_);
            }
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder addRewardSharesBuilder() {
            return getRewardSharesFieldBuilder().addBuilder(
                com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.getDefaultInstance());
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder addRewardSharesBuilder(
              int index) {
            return getRewardSharesFieldBuilder().addBuilder(
                index, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.getDefaultInstance());
          }
          /**
           * repeated .waves.RewardShare reward_shares = 5;
           */
          public java.util.List 
               getRewardSharesBuilderList() {
            return getRewardSharesFieldBuilder().getBuilderList();
          }
          private com.google.protobuf.RepeatedFieldBuilderV3<
              com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder> 
              getRewardSharesFieldBuilder() {
            if (rewardSharesBuilder_ == null) {
              rewardSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                  com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShare.Builder, com.wavesplatform.protobuf.RewardShareOuterClass.RewardShareOrBuilder>(
                      rewardShares_,
                      ((bitField0_ & 0x00000010) != 0),
                      getParentForChildren(),
                      isClean());
              rewardShares_ = null;
            }
            return rewardSharesBuilder_;
          }
          @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 {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

        @java.lang.Override
        public com.wavesplatform.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();
        }

        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.
         */
        @java.lang.Override
        public boolean hasMicroBlock() {
          return microBlock_ != null;
        }
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         * @return The microBlock.
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getMicroBlock() {
          return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance() : microBlock_;
        }
        /**
         * .waves.SignedMicroBlock micro_block = 1;
         */
        @java.lang.Override
        public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder getMicroBlockOrBuilder() {
          return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance() : microBlock_;
        }

        public static final int UPDATED_TRANSACTIONS_ROOT_FIELD_NUMBER = 2;
        private com.google.protobuf.ByteString updatedTransactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes updated_transactions_root = 2;
         * @return The updatedTransactionsRoot.
         */
        @java.lang.Override
        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_);
          }
          getUnknownFields().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 += getUnknownFields().getSerializedSize();
          memoizedSize = size;
          return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
          if (obj == this) {
           return true;
          }
          if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
          return true;
        }

        @java.lang.Override
        public int hashCode() {
          if (memoizedHashCode != 0) {
            return memoizedHashCode;
          }
          int hash = 41;
          hash = (19 * hash) + getDescriptor().hashCode();
          if (hasMicroBlock()) {
            hash = (37 * hash) + MICRO_BLOCK_FIELD_NUMBER;
            hash = (53 * hash) + getMicroBlock().hashCode();
          }
          hash = (37 * hash) + UPDATED_TRANSACTIONS_ROOT_FIELD_NUMBER;
          hash = (53 * hash) + getUpdatedTransactionsRoot().hashCode();
          hash = (29 * hash) + getUnknownFields().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() {

          }

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

          }
          @java.lang.Override
          public Builder clear() {
            super.clear();
            bitField0_ = 0;
            microBlock_ = null;
            if (microBlockBuilder_ != null) {
              microBlockBuilder_.dispose();
              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 (bitField0_ != 0) { buildPartial0(result); }
            onBuilt();
            return result;
          }

          private void buildPartial0(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append.MicroBlockAppend result) {
            int from_bitField0_ = bitField0_;
            if (((from_bitField0_ & 0x00000001) != 0)) {
              result.microBlock_ = microBlockBuilder_ == null
                  ? microBlock_
                  : microBlockBuilder_.build();
            }
            if (((from_bitField0_ & 0x00000002) != 0)) {
              result.updatedTransactionsRoot_ = updatedTransactionsRoot_;
            }
          }

          @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.getUnknownFields());
            onChanged();
            return this;
          }

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

          @java.lang.Override
          public Builder mergeFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws java.io.IOException {
            if (extensionRegistry == null) {
              throw new java.lang.NullPointerException();
            }
            try {
              boolean done = false;
              while (!done) {
                int tag = input.readTag();
                switch (tag) {
                  case 0:
                    done = true;
                    break;
                  case 10: {
                    input.readMessage(
                        getMicroBlockFieldBuilder().getBuilder(),
                        extensionRegistry);
                    bitField0_ |= 0x00000001;
                    break;
                  } // case 10
                  case 18: {
                    updatedTransactionsRoot_ = input.readBytes();
                    bitField0_ |= 0x00000002;
                    break;
                  } // case 18
                  default: {
                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                      done = true; // was an endgroup tag
                    }
                    break;
                  } // default:
                } // switch (tag)
              } // while (!done)
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.unwrapIOException();
            } finally {
              onChanged();
            } // finally
            return this;
          }
          private int bitField0_;

          private com.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 ((bitField0_ & 0x00000001) != 0);
          }
          /**
           * .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;
            } else {
              microBlockBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder setMicroBlock(
              com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder builderForValue) {
            if (microBlockBuilder_ == null) {
              microBlock_ = builderForValue.build();
            } else {
              microBlockBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder mergeMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock value) {
            if (microBlockBuilder_ == null) {
              if (((bitField0_ & 0x00000001) != 0) &&
                microBlock_ != null &&
                microBlock_ != com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance()) {
                getMicroBlockBuilder().mergeFrom(value);
              } else {
                microBlock_ = value;
              }
            } else {
              microBlockBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000001;
            onChanged();
            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public Builder clearMicroBlock() {
            bitField0_ = (bitField0_ & ~0x00000001);
            microBlock_ = null;
            if (microBlockBuilder_ != null) {
              microBlockBuilder_.dispose();
              microBlockBuilder_ = null;
            }
            onChanged();
            return this;
          }
          /**
           * .waves.SignedMicroBlock micro_block = 1;
           */
          public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder getMicroBlockBuilder() {
            bitField0_ |= 0x00000001;
            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.
           */
          @java.lang.Override
          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;
            bitField0_ |= 0x00000002;
            onChanged();
            return this;
          }
          /**
           * bytes updated_transactions_root = 2;
           * @return This builder for chaining.
           */
          public Builder clearUpdatedTransactionsRoot() {
            bitField0_ = (bitField0_ & ~0x00000002);
            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 {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

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

      }

      private int bodyCase_ = 0;
      @SuppressWarnings("serial")
      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.
       */
      @java.lang.Override
      public boolean hasBlock() {
        return bodyCase_ == 1;
      }
      /**
       * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
       * @return The block.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasMicroBlock() {
        return bodyCase_ == 2;
      }
      /**
       * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
       * @return The microBlock.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      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;
      @SuppressWarnings("serial")
      private java.util.List transactionIds_;
      /**
       * repeated bytes transaction_ids = 3;
       * @return A list containing the transactionIds.
       */
      @java.lang.Override
      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;
      @SuppressWarnings("serial")
      private java.util.List transactionsMetadata_;
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      @java.lang.Override
      public java.util.List getTransactionsMetadataList() {
        return transactionsMetadata_;
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      @java.lang.Override
      public java.util.List 
          getTransactionsMetadataOrBuilderList() {
        return transactionsMetadata_;
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      @java.lang.Override
      public int getTransactionsMetadataCount() {
        return transactionsMetadata_.size();
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.TransactionMetadata getTransactionsMetadata(int index) {
        return transactionsMetadata_.get(index);
      }
      /**
       * repeated .waves.events.TransactionMetadata transactions_metadata = 4;
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasStateUpdate() {
        return stateUpdate_ != null;
      }
      /**
       * .waves.events.StateUpdate state_update = 11;
       * @return The stateUpdate.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getStateUpdateOrBuilder() {
        return stateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : stateUpdate_;
      }

      public static final int TRANSACTION_STATE_UPDATES_FIELD_NUMBER = 12;
      @SuppressWarnings("serial")
      private java.util.List transactionStateUpdates_;
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      @java.lang.Override
      public java.util.List getTransactionStateUpdatesList() {
        return transactionStateUpdates_;
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      @java.lang.Override
      public java.util.List 
          getTransactionStateUpdatesOrBuilderList() {
        return transactionStateUpdates_;
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      @java.lang.Override
      public int getTransactionStateUpdatesCount() {
        return transactionStateUpdates_.size();
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.StateUpdate getTransactionStateUpdates(int index) {
        return transactionStateUpdates_.get(index);
      }
      /**
       * repeated .waves.events.StateUpdate transaction_state_updates = 12;
       */
      @java.lang.Override
      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));
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          if (blockBuilder_ != null) {
            blockBuilder_.clear();
          }
          if (microBlockBuilder_ != null) {
            microBlockBuilder_.clear();
          }
          transactionIds_ = java.util.Collections.emptyList();
          if (transactionsMetadataBuilder_ == null) {
            transactionsMetadata_ = java.util.Collections.emptyList();
          } else {
            transactionsMetadata_ = null;
            transactionsMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000008);
          stateUpdate_ = null;
          if (stateUpdateBuilder_ != null) {
            stateUpdateBuilder_.dispose();
            stateUpdateBuilder_ = null;
          }
          if (transactionStateUpdatesBuilder_ == null) {
            transactionStateUpdates_ = java.util.Collections.emptyList();
          } else {
            transactionStateUpdates_ = null;
            transactionStateUpdatesBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000020);
          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);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) { buildPartial0(result); }
          buildPartialOneofs(result);
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append result) {
          if (((bitField0_ & 0x00000004) != 0)) {
            transactionIds_ = java.util.Collections.unmodifiableList(transactionIds_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.transactionIds_ = transactionIds_;
          if (transactionsMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0)) {
              transactionsMetadata_ = java.util.Collections.unmodifiableList(transactionsMetadata_);
              bitField0_ = (bitField0_ & ~0x00000008);
            }
            result.transactionsMetadata_ = transactionsMetadata_;
          } else {
            result.transactionsMetadata_ = transactionsMetadataBuilder_.build();
          }
          if (transactionStateUpdatesBuilder_ == null) {
            if (((bitField0_ & 0x00000020) != 0)) {
              transactionStateUpdates_ = java.util.Collections.unmodifiableList(transactionStateUpdates_);
              bitField0_ = (bitField0_ & ~0x00000020);
            }
            result.transactionStateUpdates_ = transactionStateUpdates_;
          } else {
            result.transactionStateUpdates_ = transactionStateUpdatesBuilder_.build();
          }
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000010) != 0)) {
            result.stateUpdate_ = stateUpdateBuilder_ == null
                ? stateUpdate_
                : stateUpdateBuilder_.build();
          }
        }

        private void buildPartialOneofs(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Append result) {
          result.bodyCase_ = bodyCase_;
          result.body_ = this.body_;
          if (bodyCase_ == 1 &&
              blockBuilder_ != null) {
            result.body_ = blockBuilder_.build();
          }
          if (bodyCase_ == 2 &&
              microBlockBuilder_ != null) {
            result.body_ = microBlockBuilder_.build();
          }
        }

        @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_ & ~0x00000004);
            } else {
              ensureTransactionIdsIsMutable();
              transactionIds_.addAll(other.transactionIds_);
            }
            onChanged();
          }
          if (transactionsMetadataBuilder_ == null) {
            if (!other.transactionsMetadata_.isEmpty()) {
              if (transactionsMetadata_.isEmpty()) {
                transactionsMetadata_ = other.transactionsMetadata_;
                bitField0_ = (bitField0_ & ~0x00000008);
              } else {
                ensureTransactionsMetadataIsMutable();
                transactionsMetadata_.addAll(other.transactionsMetadata_);
              }
              onChanged();
            }
          } else {
            if (!other.transactionsMetadata_.isEmpty()) {
              if (transactionsMetadataBuilder_.isEmpty()) {
                transactionsMetadataBuilder_.dispose();
                transactionsMetadataBuilder_ = null;
                transactionsMetadata_ = other.transactionsMetadata_;
                bitField0_ = (bitField0_ & ~0x00000008);
                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_ & ~0x00000020);
              } else {
                ensureTransactionStateUpdatesIsMutable();
                transactionStateUpdates_.addAll(other.transactionStateUpdates_);
              }
              onChanged();
            }
          } else {
            if (!other.transactionStateUpdates_.isEmpty()) {
              if (transactionStateUpdatesBuilder_.isEmpty()) {
                transactionStateUpdatesBuilder_.dispose();
                transactionStateUpdatesBuilder_ = null;
                transactionStateUpdates_ = other.transactionStateUpdates_;
                bitField0_ = (bitField0_ & ~0x00000020);
                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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  input.readMessage(
                      getBlockFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bodyCase_ = 1;
                  break;
                } // case 10
                case 18: {
                  input.readMessage(
                      getMicroBlockFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bodyCase_ = 2;
                  break;
                } // case 18
                case 26: {
                  com.google.protobuf.ByteString v = input.readBytes();
                  ensureTransactionIdsIsMutable();
                  transactionIds_.add(v);
                  break;
                } // case 26
                case 34: {
                  com.wavesplatform.events.protobuf.Events.TransactionMetadata m =
                      input.readMessage(
                          com.wavesplatform.events.protobuf.Events.TransactionMetadata.parser(),
                          extensionRegistry);
                  if (transactionsMetadataBuilder_ == null) {
                    ensureTransactionsMetadataIsMutable();
                    transactionsMetadata_.add(m);
                  } else {
                    transactionsMetadataBuilder_.addMessage(m);
                  }
                  break;
                } // case 34
                case 90: {
                  input.readMessage(
                      getStateUpdateFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000010;
                  break;
                } // case 90
                case 98: {
                  com.wavesplatform.events.protobuf.Events.StateUpdate m =
                      input.readMessage(
                          com.wavesplatform.events.protobuf.Events.StateUpdate.parser(),
                          extensionRegistry);
                  if (transactionStateUpdatesBuilder_ == null) {
                    ensureTransactionStateUpdatesIsMutable();
                    transactionStateUpdates_.add(m);
                  } else {
                    transactionStateUpdatesBuilder_.addMessage(m);
                  }
                  break;
                } // case 98
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int 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.
         */
        @java.lang.Override
        public boolean hasBlock() {
          return bodyCase_ == 1;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.BlockAppend block = 1;
         * @return The block.
         */
        @java.lang.Override
        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);
            } else {
              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;
         */
        @java.lang.Override
        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.
         */
        @java.lang.Override
        public boolean hasMicroBlock() {
          return bodyCase_ == 2;
        }
        /**
         * .waves.events.BlockchainUpdated.Append.MicroBlockAppend micro_block = 2;
         * @return The microBlock.
         */
        @java.lang.Override
        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);
            } else {
              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;
         */
        @java.lang.Override
        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_ & 0x00000004) != 0)) {
            transactionIds_ = new java.util.ArrayList(transactionIds_);
            bitField0_ |= 0x00000004;
          }
        }
        /**
         * repeated bytes transaction_ids = 3;
         * @return A list containing the transactionIds.
         */
        public java.util.List
            getTransactionIdsList() {
          return ((bitField0_ & 0x00000004) != 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_ & ~0x00000004);
          onChanged();
          return this;
        }

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

        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_ & ~0x00000008);
            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_ & 0x00000008) != 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 ((bitField0_ & 0x00000010) != 0);
        }
        /**
         * .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;
          } else {
            stateUpdateBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000010;
          onChanged();
          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();
          } else {
            stateUpdateBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder mergeStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (stateUpdateBuilder_ == null) {
            if (((bitField0_ & 0x00000010) != 0) &&
              stateUpdate_ != null &&
              stateUpdate_ != com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance()) {
              getStateUpdateBuilder().mergeFrom(value);
            } else {
              stateUpdate_ = value;
            }
          } else {
            stateUpdateBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public Builder clearStateUpdate() {
          bitField0_ = (bitField0_ & ~0x00000010);
          stateUpdate_ = null;
          if (stateUpdateBuilder_ != null) {
            stateUpdateBuilder_.dispose();
            stateUpdateBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate state_update = 11;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder getStateUpdateBuilder() {
          bitField0_ |= 0x00000010;
          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_ & 0x00000020) != 0)) {
            transactionStateUpdates_ = new java.util.ArrayList(transactionStateUpdates_);
            bitField0_ |= 0x00000020;
           }
        }

        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_ & ~0x00000020);
            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_ & 0x00000020) != 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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();

      /**
       * repeated int32 deactivated_features = 5;
       * @return A list containing the deactivatedFeatures.
       */
      java.util.List getDeactivatedFeaturesList();
      /**
       * repeated int32 deactivated_features = 5;
       * @return The count of deactivatedFeatures.
       */
      int getDeactivatedFeaturesCount();
      /**
       * repeated int32 deactivated_features = 5;
       * @param index The index of the element to return.
       * @return The deactivatedFeatures at the given index.
       */
      int getDeactivatedFeatures(int index);
    }
    /**
     * 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();
        deactivatedFeatures_ = emptyIntList();
      }

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

      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() {
          if (this == UNRECOGNIZED) {
            throw new java.lang.IllegalStateException(
                "Can't get the descriptor of an unrecognized enum value.");
          }
          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_ = 0;
      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override public int getTypeValue() {
        return type_;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
       * @return The type.
       */
      @java.lang.Override public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType getType() {
        com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType result = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.forNumber(type_);
        return result == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.UNRECOGNIZED : result;
      }

      public static final int REMOVED_TRANSACTION_IDS_FIELD_NUMBER = 2;
      @SuppressWarnings("serial")
      private java.util.List removedTransactionIds_;
      /**
       * repeated bytes removed_transaction_ids = 2;
       * @return A list containing the removedTransactionIds.
       */
      @java.lang.Override
      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;
      @SuppressWarnings("serial")
      private java.util.List removedBlocks_;
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      @java.lang.Override
      public java.util.List getRemovedBlocksList() {
        return removedBlocks_;
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      @java.lang.Override
      public java.util.List 
          getRemovedBlocksOrBuilderList() {
        return removedBlocks_;
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      @java.lang.Override
      public int getRemovedBlocksCount() {
        return removedBlocks_.size();
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.block.BlockOuterClass.Block getRemovedBlocks(int index) {
        return removedBlocks_.get(index);
      }
      /**
       * repeated .waves.Block removed_blocks = 3;
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasRollbackStateUpdate() {
        return rollbackStateUpdate_ != null;
      }
      /**
       * .waves.events.StateUpdate rollback_state_update = 4;
       * @return The rollbackStateUpdate.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.StateUpdateOrBuilder getRollbackStateUpdateOrBuilder() {
        return rollbackStateUpdate_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance() : rollbackStateUpdate_;
      }

      public static final int DEACTIVATED_FEATURES_FIELD_NUMBER = 5;
      @SuppressWarnings("serial")
      private com.google.protobuf.Internal.IntList deactivatedFeatures_;
      /**
       * repeated int32 deactivated_features = 5;
       * @return A list containing the deactivatedFeatures.
       */
      @java.lang.Override
      public java.util.List
          getDeactivatedFeaturesList() {
        return deactivatedFeatures_;
      }
      /**
       * repeated int32 deactivated_features = 5;
       * @return The count of deactivatedFeatures.
       */
      public int getDeactivatedFeaturesCount() {
        return deactivatedFeatures_.size();
      }
      /**
       * repeated int32 deactivated_features = 5;
       * @param index The index of the element to return.
       * @return The deactivatedFeatures at the given index.
       */
      public int getDeactivatedFeatures(int index) {
        return deactivatedFeatures_.getInt(index);
      }
      private int deactivatedFeaturesMemoizedSerializedSize = -1;

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

        memoizedIsInitialized = 1;
        return true;
      }

      @java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (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());
        }
        if (getDeactivatedFeaturesList().size() > 0) {
          output.writeUInt32NoTag(42);
          output.writeUInt32NoTag(deactivatedFeaturesMemoizedSerializedSize);
        }
        for (int i = 0; i < deactivatedFeatures_.size(); i++) {
          output.writeInt32NoTag(deactivatedFeatures_.getInt(i));
        }
        getUnknownFields().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());
        }
        {
          int dataSize = 0;
          for (int i = 0; i < deactivatedFeatures_.size(); i++) {
            dataSize += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(deactivatedFeatures_.getInt(i));
          }
          size += dataSize;
          if (!getDeactivatedFeaturesList().isEmpty()) {
            size += 1;
            size += com.google.protobuf.CodedOutputStream
                .computeInt32SizeNoTag(dataSize);
          }
          deactivatedFeaturesMemoizedSerializedSize = dataSize;
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getDeactivatedFeaturesList()
            .equals(other.getDeactivatedFeaturesList())) return false;
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + 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();
        }
        if (getDeactivatedFeaturesCount() > 0) {
          hash = (37 * hash) + DEACTIVATED_FEATURES_FIELD_NUMBER;
          hash = (53 * hash) + getDeactivatedFeaturesList().hashCode();
        }
        hash = (29 * hash) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          type_ = 0;
          removedTransactionIds_ = java.util.Collections.emptyList();
          if (removedBlocksBuilder_ == null) {
            removedBlocks_ = java.util.Collections.emptyList();
          } else {
            removedBlocks_ = null;
            removedBlocksBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000004);
          rollbackStateUpdate_ = null;
          if (rollbackStateUpdateBuilder_ != null) {
            rollbackStateUpdateBuilder_.dispose();
            rollbackStateUpdateBuilder_ = null;
          }
          deactivatedFeatures_ = emptyIntList();
          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);
          buildPartialRepeatedFields(result);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback result) {
          if (((bitField0_ & 0x00000002) != 0)) {
            removedTransactionIds_ = java.util.Collections.unmodifiableList(removedTransactionIds_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.removedTransactionIds_ = removedTransactionIds_;
          if (removedBlocksBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0)) {
              removedBlocks_ = java.util.Collections.unmodifiableList(removedBlocks_);
              bitField0_ = (bitField0_ & ~0x00000004);
            }
            result.removedBlocks_ = removedBlocks_;
          } else {
            result.removedBlocks_ = removedBlocksBuilder_.build();
          }
          if (((bitField0_ & 0x00000010) != 0)) {
            deactivatedFeatures_.makeImmutable();
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.deactivatedFeatures_ = deactivatedFeatures_;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.type_ = type_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.rollbackStateUpdate_ = rollbackStateUpdateBuilder_ == null
                ? rollbackStateUpdate_
                : rollbackStateUpdateBuilder_.build();
          }
        }

        @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_ & ~0x00000002);
            } else {
              ensureRemovedTransactionIdsIsMutable();
              removedTransactionIds_.addAll(other.removedTransactionIds_);
            }
            onChanged();
          }
          if (removedBlocksBuilder_ == null) {
            if (!other.removedBlocks_.isEmpty()) {
              if (removedBlocks_.isEmpty()) {
                removedBlocks_ = other.removedBlocks_;
                bitField0_ = (bitField0_ & ~0x00000004);
              } else {
                ensureRemovedBlocksIsMutable();
                removedBlocks_.addAll(other.removedBlocks_);
              }
              onChanged();
            }
          } else {
            if (!other.removedBlocks_.isEmpty()) {
              if (removedBlocksBuilder_.isEmpty()) {
                removedBlocksBuilder_.dispose();
                removedBlocksBuilder_ = null;
                removedBlocks_ = other.removedBlocks_;
                bitField0_ = (bitField0_ & ~0x00000004);
                removedBlocksBuilder_ = 
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                     getRemovedBlocksFieldBuilder() : null;
              } else {
                removedBlocksBuilder_.addAllMessages(other.removedBlocks_);
              }
            }
          }
          if (other.hasRollbackStateUpdate()) {
            mergeRollbackStateUpdate(other.getRollbackStateUpdate());
          }
          if (!other.deactivatedFeatures_.isEmpty()) {
            if (deactivatedFeatures_.isEmpty()) {
              deactivatedFeatures_ = other.deactivatedFeatures_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureDeactivatedFeaturesIsMutable();
              deactivatedFeatures_.addAll(other.deactivatedFeatures_);
            }
            onChanged();
          }
          this.mergeUnknownFields(other.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 8: {
                  type_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
                case 18: {
                  com.google.protobuf.ByteString v = input.readBytes();
                  ensureRemovedTransactionIdsIsMutable();
                  removedTransactionIds_.add(v);
                  break;
                } // case 18
                case 26: {
                  com.wavesplatform.protobuf.block.BlockOuterClass.Block m =
                      input.readMessage(
                          com.wavesplatform.protobuf.block.BlockOuterClass.Block.parser(),
                          extensionRegistry);
                  if (removedBlocksBuilder_ == null) {
                    ensureRemovedBlocksIsMutable();
                    removedBlocks_.add(m);
                  } else {
                    removedBlocksBuilder_.addMessage(m);
                  }
                  break;
                } // case 26
                case 34: {
                  input.readMessage(
                      getRollbackStateUpdateFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
                case 40: {
                  int v = input.readInt32();
                  ensureDeactivatedFeaturesIsMutable();
                  deactivatedFeatures_.addInt(v);
                  break;
                } // case 40
                case 42: {
                  int length = input.readRawVarint32();
                  int limit = input.pushLimit(length);
                  ensureDeactivatedFeaturesIsMutable();
                  while (input.getBytesUntilLimit() > 0) {
                    deactivatedFeatures_.addInt(input.readInt32());
                  }
                  input.popLimit(limit);
                  break;
                } // case 42
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private int type_ = 0;
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return The enum numeric value on the wire for type.
         */
        @java.lang.Override 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;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return The type.
         */
        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType getType() {
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType result = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Rollback.RollbackType.forNumber(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();
          }
          bitField0_ |= 0x00000001;
          type_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * .waves.events.BlockchainUpdated.Rollback.RollbackType type = 1;
         * @return This builder for chaining.
         */
        public Builder clearType() {
          bitField0_ = (bitField0_ & ~0x00000001);
          type_ = 0;
          onChanged();
          return this;
        }

        private java.util.List removedTransactionIds_ = java.util.Collections.emptyList();
        private void ensureRemovedTransactionIdsIsMutable() {
          if (!((bitField0_ & 0x00000002) != 0)) {
            removedTransactionIds_ = new java.util.ArrayList(removedTransactionIds_);
            bitField0_ |= 0x00000002;
          }
        }
        /**
         * repeated bytes removed_transaction_ids = 2;
         * @return A list containing the removedTransactionIds.
         */
        public java.util.List
            getRemovedTransactionIdsList() {
          return ((bitField0_ & 0x00000002) != 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_ & ~0x00000002);
          onChanged();
          return this;
        }

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

        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_ & ~0x00000004);
            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_ & 0x00000004) != 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 ((bitField0_ & 0x00000008) != 0);
        }
        /**
         * .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;
          } else {
            rollbackStateUpdateBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000008;
          onChanged();
          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();
          } else {
            rollbackStateUpdateBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder mergeRollbackStateUpdate(com.wavesplatform.events.protobuf.Events.StateUpdate value) {
          if (rollbackStateUpdateBuilder_ == null) {
            if (((bitField0_ & 0x00000008) != 0) &&
              rollbackStateUpdate_ != null &&
              rollbackStateUpdate_ != com.wavesplatform.events.protobuf.Events.StateUpdate.getDefaultInstance()) {
              getRollbackStateUpdateBuilder().mergeFrom(value);
            } else {
              rollbackStateUpdate_ = value;
            }
          } else {
            rollbackStateUpdateBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public Builder clearRollbackStateUpdate() {
          bitField0_ = (bitField0_ & ~0x00000008);
          rollbackStateUpdate_ = null;
          if (rollbackStateUpdateBuilder_ != null) {
            rollbackStateUpdateBuilder_.dispose();
            rollbackStateUpdateBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate rollback_state_update = 4;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.Builder getRollbackStateUpdateBuilder() {
          bitField0_ |= 0x00000008;
          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_;
        }

        private com.google.protobuf.Internal.IntList deactivatedFeatures_ = emptyIntList();
        private void ensureDeactivatedFeaturesIsMutable() {
          if (!((bitField0_ & 0x00000010) != 0)) {
            deactivatedFeatures_ = mutableCopy(deactivatedFeatures_);
            bitField0_ |= 0x00000010;
          }
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @return A list containing the deactivatedFeatures.
         */
        public java.util.List
            getDeactivatedFeaturesList() {
          return ((bitField0_ & 0x00000010) != 0) ?
                   java.util.Collections.unmodifiableList(deactivatedFeatures_) : deactivatedFeatures_;
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @return The count of deactivatedFeatures.
         */
        public int getDeactivatedFeaturesCount() {
          return deactivatedFeatures_.size();
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @param index The index of the element to return.
         * @return The deactivatedFeatures at the given index.
         */
        public int getDeactivatedFeatures(int index) {
          return deactivatedFeatures_.getInt(index);
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @param index The index to set the value at.
         * @param value The deactivatedFeatures to set.
         * @return This builder for chaining.
         */
        public Builder setDeactivatedFeatures(
            int index, int value) {

          ensureDeactivatedFeaturesIsMutable();
          deactivatedFeatures_.setInt(index, value);
          onChanged();
          return this;
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @param value The deactivatedFeatures to add.
         * @return This builder for chaining.
         */
        public Builder addDeactivatedFeatures(int value) {

          ensureDeactivatedFeaturesIsMutable();
          deactivatedFeatures_.addInt(value);
          onChanged();
          return this;
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @param values The deactivatedFeatures to add.
         * @return This builder for chaining.
         */
        public Builder addAllDeactivatedFeatures(
            java.lang.Iterable values) {
          ensureDeactivatedFeaturesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, deactivatedFeatures_);
          onChanged();
          return this;
        }
        /**
         * repeated int32 deactivated_features = 5;
         * @return This builder for chaining.
         */
        public Builder clearDeactivatedFeatures() {
          deactivatedFeatures_ = emptyIntList();
          bitField0_ = (bitField0_ & ~0x00000010);
          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.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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

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

    }

    private int updateCase_ = 0;
    @SuppressWarnings("serial")
    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_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes id = 1;
     * @return The id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getId() {
      return id_;
    }

    public static final int HEIGHT_FIELD_NUMBER = 2;
    private int height_ = 0;
    /**
     * int32 height = 2;
     * @return The height.
     */
    @java.lang.Override
    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.
     */
    @java.lang.Override
    public boolean hasAppend() {
      return updateCase_ == 11;
    }
    /**
     * .waves.events.BlockchainUpdated.Append append = 11;
     * @return The append.
     */
    @java.lang.Override
    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;
     */
    @java.lang.Override
    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.
     */
    @java.lang.Override
    public boolean hasRollback() {
      return updateCase_ == 12;
    }
    /**
     * .waves.events.BlockchainUpdated.Rollback rollback = 12;
     * @return The rollback.
     */
    @java.lang.Override
    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;
     */
    @java.lang.Override
    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;
    @SuppressWarnings("serial")
    private java.util.List referencedAssets_;
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    @java.lang.Override
    public java.util.List getReferencedAssetsList() {
      return referencedAssets_;
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    @java.lang.Override
    public java.util.List 
        getReferencedAssetsOrBuilderList() {
      return referencedAssets_;
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    @java.lang.Override
    public int getReferencedAssetsCount() {
      return referencedAssets_.size();
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    @java.lang.Override
    public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getReferencedAssets(int index) {
      return referencedAssets_.get(index);
    }
    /**
     * repeated .waves.events.StateUpdate.AssetInfo referenced_assets = 21;
     */
    @java.lang.Override
    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));
      }
      getUnknownFields().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 += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + 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) + getUnknownFields().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() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        id_ = com.google.protobuf.ByteString.EMPTY;
        height_ = 0;
        if (appendBuilder_ != null) {
          appendBuilder_.clear();
        }
        if (rollbackBuilder_ != null) {
          rollbackBuilder_.clear();
        }
        if (referencedAssetsBuilder_ == null) {
          referencedAssets_ = java.util.Collections.emptyList();
        } else {
          referencedAssets_ = null;
          referencedAssetsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        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);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        buildPartialOneofs(result);
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.BlockchainUpdated result) {
        if (referencedAssetsBuilder_ == null) {
          if (((bitField0_ & 0x00000010) != 0)) {
            referencedAssets_ = java.util.Collections.unmodifiableList(referencedAssets_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.referencedAssets_ = referencedAssets_;
        } else {
          result.referencedAssets_ = referencedAssetsBuilder_.build();
        }
      }

      private void buildPartial0(com.wavesplatform.events.protobuf.Events.BlockchainUpdated result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.id_ = id_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.height_ = height_;
        }
      }

      private void buildPartialOneofs(com.wavesplatform.events.protobuf.Events.BlockchainUpdated result) {
        result.updateCase_ = updateCase_;
        result.update_ = this.update_;
        if (updateCase_ == 11 &&
            appendBuilder_ != null) {
          result.update_ = appendBuilder_.build();
        }
        if (updateCase_ == 12 &&
            rollbackBuilder_ != null) {
          result.update_ = rollbackBuilder_.build();
        }
      }

      @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_ & ~0x00000010);
            } else {
              ensureReferencedAssetsIsMutable();
              referencedAssets_.addAll(other.referencedAssets_);
            }
            onChanged();
          }
        } else {
          if (!other.referencedAssets_.isEmpty()) {
            if (referencedAssetsBuilder_.isEmpty()) {
              referencedAssetsBuilder_.dispose();
              referencedAssetsBuilder_ = null;
              referencedAssets_ = other.referencedAssets_;
              bitField0_ = (bitField0_ & ~0x00000010);
              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.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                id_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 16: {
                height_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 90: {
                input.readMessage(
                    getAppendFieldBuilder().getBuilder(),
                    extensionRegistry);
                updateCase_ = 11;
                break;
              } // case 90
              case 98: {
                input.readMessage(
                    getRollbackFieldBuilder().getBuilder(),
                    extensionRegistry);
                updateCase_ = 12;
                break;
              } // case 98
              case 170: {
                com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo m =
                    input.readMessage(
                        com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo.parser(),
                        extensionRegistry);
                if (referencedAssetsBuilder_ == null) {
                  ensureReferencedAssetsIsMutable();
                  referencedAssets_.add(m);
                } else {
                  referencedAssetsBuilder_.addMessage(m);
                }
                break;
              } // case 170
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int 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.
       */
      @java.lang.Override
      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;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * bytes id = 1;
       * @return This builder for chaining.
       */
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }

      private int height_ ;
      /**
       * int32 height = 2;
       * @return The height.
       */
      @java.lang.Override
      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;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * int32 height = 2;
       * @return This builder for chaining.
       */
      public Builder clearHeight() {
        bitField0_ = (bitField0_ & ~0x00000002);
        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.
       */
      @java.lang.Override
      public boolean hasAppend() {
        return updateCase_ == 11;
      }
      /**
       * .waves.events.BlockchainUpdated.Append append = 11;
       * @return The append.
       */
      @java.lang.Override
      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);
          } else {
            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;
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasRollback() {
        return updateCase_ == 12;
      }
      /**
       * .waves.events.BlockchainUpdated.Rollback rollback = 12;
       * @return The rollback.
       */
      @java.lang.Override
      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);
          } else {
            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;
       */
      @java.lang.Override
      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_ & 0x00000010) != 0)) {
          referencedAssets_ = new java.util.ArrayList(referencedAssets_);
          bitField0_ |= 0x00000010;
         }
      }

      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_ & ~0x00000010);
          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_ & 0x00000010) != 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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.wavesplatform.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);

    /**
     * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6;
     */
    java.util.List 
        getScriptsList();
    /**
     * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getScripts(int index);
    /**
     * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6;
     */
    int getScriptsCount();
    /**
     * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6;
     */
    java.util.List 
        getScriptsOrBuilderList();
    /**
     * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6;
     */
    com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder getScriptsOrBuilder(
        int index);

    /**
     * repeated string deleted_aliases = 7;
     * @return A list containing the deletedAliases.
     */
    java.util.List
        getDeletedAliasesList();
    /**
     * repeated string deleted_aliases = 7;
     * @return The count of deletedAliases.
     */
    int getDeletedAliasesCount();
    /**
     * repeated string deleted_aliases = 7;
     * @param index The index of the element to return.
     * @return The deletedAliases at the given index.
     */
    java.lang.String getDeletedAliases(int index);
    /**
     * repeated string deleted_aliases = 7;
     * @param index The index of the value to return.
     * @return The bytes of the deletedAliases at the given index.
     */
    com.google.protobuf.ByteString
        getDeletedAliasesBytes(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();
      scripts_ = java.util.Collections.emptyList();
      deletedAliases_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

    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();
      }

      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_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes address = 1;
       * @return The address.
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasAmountAfter() {
        return amountAfter_ != null;
      }
      /**
       * .waves.Amount amount_after = 2;
       * @return The amountAfter.
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.AmountOuterClass.Amount getAmountAfter() {
        return amountAfter_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amountAfter_;
      }
      /**
       * .waves.Amount amount_after = 2;
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountAfterOrBuilder() {
        return amountAfter_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amountAfter_;
      }

      public static final int AMOUNT_BEFORE_FIELD_NUMBER = 3;
      private long amountBefore_ = 0L;
      /**
       * int64 amount_before = 3;
       * @return The amountBefore.
       */
      @java.lang.Override
      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_);
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + 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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          address_ = com.google.protobuf.ByteString.EMPTY;
          amountAfter_ = null;
          if (amountAfterBuilder_ != null) {
            amountAfterBuilder_.dispose();
            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);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.address_ = address_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.amountAfter_ = amountAfterBuilder_ == null
                ? amountAfter_
                : amountAfterBuilder_.build();
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.amountBefore_ = amountBefore_;
          }
        }

        @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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  address_ = input.readBytes();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 18: {
                  input.readMessage(
                      getAmountAfterFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
                case 24: {
                  amountBefore_ = input.readInt64();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          bitField0_ = (bitField0_ & ~0x00000001);
          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 ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * .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;
          } else {
            amountAfterBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder setAmountAfter(
            com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
          if (amountAfterBuilder_ == null) {
            amountAfter_ = builderForValue.build();
          } else {
            amountAfterBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder mergeAmountAfter(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
          if (amountAfterBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0) &&
              amountAfter_ != null &&
              amountAfter_ != com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()) {
              getAmountAfterBuilder().mergeFrom(value);
            } else {
              amountAfter_ = value;
            }
          } else {
            amountAfterBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public Builder clearAmountAfter() {
          bitField0_ = (bitField0_ & ~0x00000002);
          amountAfter_ = null;
          if (amountAfterBuilder_ != null) {
            amountAfterBuilder_.dispose();
            amountAfterBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.Amount amount_after = 2;
         */
        public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getAmountAfterBuilder() {
          bitField0_ |= 0x00000002;
          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.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * int64 amount_before = 3;
         * @return This builder for chaining.
         */
        public Builder clearAmountBefore() {
          bitField0_ = (bitField0_ & ~0x00000004);
          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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();
      }

      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_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes address = 1;
       * @return The address.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }

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

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

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

      public static final int OUT_BEFORE_FIELD_NUMBER = 5;
      private long outBefore_ = 0L;
      /**
       * int64 out_before = 5;
       * @return The outBefore.
       */
      @java.lang.Override
      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_);
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + 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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          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);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.address_ = address_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.inAfter_ = inAfter_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.outAfter_ = outAfter_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.inBefore_ = inBefore_;
          }
          if (((from_bitField0_ & 0x00000010) != 0)) {
            result.outBefore_ = outBefore_;
          }
        }

        @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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  address_ = input.readBytes();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 16: {
                  inAfter_ = input.readInt64();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
                case 24: {
                  outAfter_ = input.readInt64();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
                case 32: {
                  inBefore_ = input.readInt64();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 32
                case 40: {
                  outBefore_ = input.readInt64();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 40
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          bitField0_ = (bitField0_ & ~0x00000001);
          address_ = getDefaultInstance().getAddress();
          onChanged();
          return this;
        }

        private long inAfter_ ;
        /**
         * int64 in_after = 2;
         * @return The inAfter.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * int64 in_after = 2;
         * @return This builder for chaining.
         */
        public Builder clearInAfter() {
          bitField0_ = (bitField0_ & ~0x00000002);
          inAfter_ = 0L;
          onChanged();
          return this;
        }

        private long outAfter_ ;
        /**
         * int64 out_after = 3;
         * @return The outAfter.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * int64 out_after = 3;
         * @return This builder for chaining.
         */
        public Builder clearOutAfter() {
          bitField0_ = (bitField0_ & ~0x00000004);
          outAfter_ = 0L;
          onChanged();
          return this;
        }

        private long inBefore_ ;
        /**
         * int64 in_before = 4;
         * @return The inBefore.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * int64 in_before = 4;
         * @return This builder for chaining.
         */
        public Builder clearInBefore() {
          bitField0_ = (bitField0_ & ~0x00000008);
          inBefore_ = 0L;
          onChanged();
          return this;
        }

        private long outBefore_ ;
        /**
         * int64 out_before = 5;
         * @return The outBefore.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * int64 out_before = 5;
         * @return This builder for chaining.
         */
        public Builder clearOutBefore() {
          bitField0_ = (bitField0_ & ~0x00000010);
          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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();
      }

      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() {
          if (this == UNRECOGNIZED) {
            throw new java.lang.IllegalStateException(
                "Can't get the descriptor of an unrecognized enum value.");
          }
          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_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes lease_id = 1;
       * @return The leaseId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getLeaseId() {
        return leaseId_;
      }

      public static final int STATUS_AFTER_FIELD_NUMBER = 2;
      private int statusAfter_ = 0;
      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The enum numeric value on the wire for statusAfter.
       */
      @java.lang.Override public int getStatusAfterValue() {
        return statusAfter_;
      }
      /**
       * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
       * @return The statusAfter.
       */
      @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus getStatusAfter() {
        com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus result = com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.forNumber(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_ = 0L;
      /**
       * int64 amount = 10;
       * @return The amount.
       */
      @java.lang.Override
      public long getAmount() {
        return amount_;
      }

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

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

      public static final int ORIGIN_TRANSACTION_ID_FIELD_NUMBER = 13;
      private com.google.protobuf.ByteString originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes origin_transaction_id = 13;
       * @return The originTransactionId.
       */
      @java.lang.Override
      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_);
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + 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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          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);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.leaseId_ = leaseId_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.statusAfter_ = statusAfter_;
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.amount_ = amount_;
          }
          if (((from_bitField0_ & 0x00000008) != 0)) {
            result.sender_ = sender_;
          }
          if (((from_bitField0_ & 0x00000010) != 0)) {
            result.recipient_ = recipient_;
          }
          if (((from_bitField0_ & 0x00000020) != 0)) {
            result.originTransactionId_ = originTransactionId_;
          }
        }

        @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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  leaseId_ = input.readBytes();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 16: {
                  statusAfter_ = input.readEnum();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
                case 80: {
                  amount_ = input.readInt64();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 80
                case 90: {
                  sender_ = input.readBytes();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 90
                case 98: {
                  recipient_ = input.readBytes();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 98
                case 106: {
                  originTransactionId_ = input.readBytes();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 106
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private com.google.protobuf.ByteString leaseId_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes lease_id = 1;
         * @return The leaseId.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * bytes lease_id = 1;
         * @return This builder for chaining.
         */
        public Builder clearLeaseId() {
          bitField0_ = (bitField0_ & ~0x00000001);
          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.
         */
        @java.lang.Override 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;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @return The statusAfter.
         */
        @java.lang.Override
        public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus getStatusAfter() {
          com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus result = com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.LeaseStatus.forNumber(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();
          }
          bitField0_ |= 0x00000002;
          statusAfter_ = value.getNumber();
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.LeaseUpdate.LeaseStatus status_after = 2;
         * @return This builder for chaining.
         */
        public Builder clearStatusAfter() {
          bitField0_ = (bitField0_ & ~0x00000002);
          statusAfter_ = 0;
          onChanged();
          return this;
        }

        private long amount_ ;
        /**
         * int64 amount = 10;
         * @return The amount.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * int64 amount = 10;
         * @return This builder for chaining.
         */
        public Builder clearAmount() {
          bitField0_ = (bitField0_ & ~0x00000004);
          amount_ = 0L;
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString sender_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes sender = 11;
         * @return The sender.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000008;
          onChanged();
          return this;
        }
        /**
         * bytes sender = 11;
         * @return This builder for chaining.
         */
        public Builder clearSender() {
          bitField0_ = (bitField0_ & ~0x00000008);
          sender_ = getDefaultInstance().getSender();
          onChanged();
          return this;
        }

        private com.google.protobuf.ByteString recipient_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes recipient = 12;
         * @return The recipient.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000010;
          onChanged();
          return this;
        }
        /**
         * bytes recipient = 12;
         * @return This builder for chaining.
         */
        public Builder clearRecipient() {
          bitField0_ = (bitField0_ & ~0x00000010);
          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.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000020;
          onChanged();
          return this;
        }
        /**
         * bytes origin_transaction_id = 13;
         * @return This builder for chaining.
         */
        public Builder clearOriginTransactionId() {
          bitField0_ = (bitField0_ & ~0x00000020);
          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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();
      }

      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_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes address = 1;
       * @return The address.
       */
      @java.lang.Override
      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.
       */
      @java.lang.Override
      public boolean hasDataEntry() {
        return dataEntry_ != null;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry = 2;
       * @return The dataEntry.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryOrBuilder() {
        return dataEntry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntry_;
      }

      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.
       */
      @java.lang.Override
      public boolean hasDataEntryBefore() {
        return dataEntryBefore_ != null;
      }
      /**
       * .waves.DataTransactionData.DataEntry data_entry_before = 10;
       * @return The dataEntryBefore.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getDataEntryBeforeOrBuilder() {
        return dataEntryBefore_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : dataEntryBefore_;
      }

      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());
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + 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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          address_ = com.google.protobuf.ByteString.EMPTY;
          dataEntry_ = null;
          if (dataEntryBuilder_ != null) {
            dataEntryBuilder_.dispose();
            dataEntryBuilder_ = null;
          }
          dataEntryBefore_ = null;
          if (dataEntryBeforeBuilder_ != null) {
            dataEntryBeforeBuilder_.dispose();
            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);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.address_ = address_;
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.dataEntry_ = dataEntryBuilder_ == null
                ? dataEntry_
                : dataEntryBuilder_.build();
          }
          if (((from_bitField0_ & 0x00000004) != 0)) {
            result.dataEntryBefore_ = dataEntryBeforeBuilder_ == null
                ? dataEntryBefore_
                : dataEntryBeforeBuilder_.build();
          }
        }

        @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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  address_ = input.readBytes();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 18: {
                  input.readMessage(
                      getDataEntryFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
                case 82: {
                  input.readMessage(
                      getDataEntryBeforeFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000004;
                  break;
                } // case 82
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
        /**
         * bytes address = 1;
         * @return The address.
         */
        @java.lang.Override
        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;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * bytes address = 1;
         * @return This builder for chaining.
         */
        public Builder clearAddress() {
          bitField0_ = (bitField0_ & ~0x00000001);
          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 ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * .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;
          } else {
            dataEntryBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          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();
          } else {
            dataEntryBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder mergeDataEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0) &&
              dataEntry_ != null &&
              dataEntry_ != com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance()) {
              getDataEntryBuilder().mergeFrom(value);
            } else {
              dataEntry_ = value;
            }
          } else {
            dataEntryBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public Builder clearDataEntry() {
          bitField0_ = (bitField0_ & ~0x00000002);
          dataEntry_ = null;
          if (dataEntryBuilder_ != null) {
            dataEntryBuilder_.dispose();
            dataEntryBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry = 2;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getDataEntryBuilder() {
          bitField0_ |= 0x00000002;
          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 ((bitField0_ & 0x00000004) != 0);
        }
        /**
         * .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;
          } else {
            dataEntryBeforeBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          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();
          } else {
            dataEntryBeforeBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder mergeDataEntryBefore(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
          if (dataEntryBeforeBuilder_ == null) {
            if (((bitField0_ & 0x00000004) != 0) &&
              dataEntryBefore_ != null &&
              dataEntryBefore_ != com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance()) {
              getDataEntryBeforeBuilder().mergeFrom(value);
            } else {
              dataEntryBefore_ = value;
            }
          } else {
            dataEntryBeforeBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000004;
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public Builder clearDataEntryBefore() {
          bitField0_ = (bitField0_ & ~0x00000004);
          dataEntryBefore_ = null;
          if (dataEntryBeforeBuilder_ != null) {
            dataEntryBeforeBuilder_.dispose();
            dataEntryBeforeBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.DataTransactionData.DataEntry data_entry_before = 10;
         */
        public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getDataEntryBeforeBuilder() {
          bitField0_ |= 0x00000004;
          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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();
      }

      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.
       */
      @java.lang.Override
      public boolean hasBefore() {
        return before_ != null;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails before = 1;
       * @return The before.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getBeforeOrBuilder() {
        return before_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : before_;
      }

      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.
       */
      @java.lang.Override
      public boolean hasAfter() {
        return after_ != null;
      }
      /**
       * .waves.events.StateUpdate.AssetDetails after = 2;
       * @return The after.
       */
      @java.lang.Override
      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;
       */
      @java.lang.Override
      public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetailsOrBuilder getAfterOrBuilder() {
        return after_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance() : after_;
      }

      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());
        }
        getUnknownFields().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 += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (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) + getUnknownFields().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() {

        }

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

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          before_ = null;
          if (beforeBuilder_ != null) {
            beforeBuilder_.dispose();
            beforeBuilder_ = null;
          }
          after_ = null;
          if (afterBuilder_ != null) {
            afterBuilder_.dispose();
            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 (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.before_ = beforeBuilder_ == null
                ? before_
                : beforeBuilder_.build();
          }
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.after_ = afterBuilder_ == null
                ? after_
                : afterBuilder_.build();
          }
        }

        @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.getUnknownFields());
          onChanged();
          return this;
        }

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

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
          }
          try {
            boolean done = false;
            while (!done) {
              int tag = input.readTag();
              switch (tag) {
                case 0:
                  done = true;
                  break;
                case 10: {
                  input.readMessage(
                      getBeforeFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                case 18: {
                  input.readMessage(
                      getAfterFieldBuilder().getBuilder(),
                      extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
                default: {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
              } // switch (tag)
            } // while (!done)
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.unwrapIOException();
          } finally {
            onChanged();
          } // finally
          return this;
        }
        private int bitField0_;

        private com.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 ((bitField0_ & 0x00000001) != 0);
        }
        /**
         * .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;
          } else {
            beforeBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          onChanged();
          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();
          } else {
            beforeBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder mergeBefore(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (beforeBuilder_ == null) {
            if (((bitField0_ & 0x00000001) != 0) &&
              before_ != null &&
              before_ != com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance()) {
              getBeforeBuilder().mergeFrom(value);
            } else {
              before_ = value;
            }
          } else {
            beforeBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public Builder clearBefore() {
          bitField0_ = (bitField0_ & ~0x00000001);
          before_ = null;
          if (beforeBuilder_ != null) {
            beforeBuilder_.dispose();
            beforeBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails before = 1;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder getBeforeBuilder() {
          bitField0_ |= 0x00000001;
          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 ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * .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;
          } else {
            afterBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          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();
          } else {
            afterBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder mergeAfter(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails value) {
          if (afterBuilder_ == null) {
            if (((bitField0_ & 0x00000002) != 0) &&
              after_ != null &&
              after_ != com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.getDefaultInstance()) {
              getAfterBuilder().mergeFrom(value);
            } else {
              after_ = value;
            }
          } else {
            afterBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public Builder clearAfter() {
          bitField0_ = (bitField0_ & ~0x00000002);
          after_ = null;
          if (afterBuilder_ != null) {
            afterBuilder_.dispose();
            afterBuilder_ = null;
          }
          onChanged();
          return this;
        }
        /**
         * .waves.events.StateUpdate.AssetDetails after = 2;
         */
        public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.Builder getAfterBuilder() {
          bitField0_ |= 0x00000002;
          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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

      @java.lang.Override
      public com.wavesplatform.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();

      /**
       * int32 sequence_in_block = 12;
       * @return The sequenceInBlock.
       */
      int getSequenceInBlock();

      /**
       * int32 issue_height = 13;
       * @return The issueHeight.
       */
      int getIssueHeight();

      /**
       * 
       *
       *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(); } 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(); } 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_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 1; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } public static final int COMPLEXITY_FIELD_NUMBER = 2; private long complexity_ = 0L; /** * int64 complexity = 2; * @return The complexity. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.script_ = script_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.complexity_ = complexity_; } } @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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { script_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { complexity_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 1; * @return The script. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes script = 1; * @return This builder for chaining. */ public Builder clearScript() { bitField0_ = (bitField0_ & ~0x00000001); script_ = getDefaultInstance().getScript(); onChanged(); return this; } private long complexity_ ; /** * int64 complexity = 2; * @return The complexity. */ @java.lang.Override 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 complexity = 2; * @return This builder for chaining. */ public Builder clearComplexity() { bitField0_ = (bitField0_ & ~0x00000002); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.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_ = com.google.protobuf.ByteString.EMPTY; /** * bytes asset_id = 1; * @return The assetId. */ @java.lang.Override public com.google.protobuf.ByteString getAssetId() { return assetId_; } public static final int ISSUER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString issuer_ = com.google.protobuf.ByteString.EMPTY; /** * bytes issuer = 2; * @return The issuer. */ @java.lang.Override public com.google.protobuf.ByteString getIssuer() { return issuer_; } public static final int DECIMALS_FIELD_NUMBER = 3; private int decimals_ = 0; /** * int32 decimals = 3; * @return The decimals. */ @java.lang.Override public int getDecimals() { return decimals_; } public static final int NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 4; * @return The name. */ @java.lang.Override 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. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * string description = 5; * @return The description. */ @java.lang.Override 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. */ @java.lang.Override 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_ = false; /** * bool reissuable = 6; * @return The reissuable. */ @java.lang.Override public boolean getReissuable() { return reissuable_; } public static final int VOLUME_FIELD_NUMBER = 7; private long volume_ = 0L; /** * int64 volume = 7; * @return The volume. */ @java.lang.Override 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. */ @java.lang.Override public boolean hasScriptInfo() { return scriptInfo_ != null; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; * @return The scriptInfo. */ @java.lang.Override 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; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfoOrBuilder getScriptInfoOrBuilder() { return scriptInfo_ == null ? com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance() : scriptInfo_; } public static final int SPONSORSHIP_FIELD_NUMBER = 9; private long sponsorship_ = 0L; /** * int64 sponsorship = 9; * @return The sponsorship. */ @java.lang.Override public long getSponsorship() { return sponsorship_; } public static final int NFT_FIELD_NUMBER = 10; private boolean nft_ = false; /** * bool nft = 10; * @return The nft. */ @java.lang.Override public boolean getNft() { return nft_; } public static final int LAST_UPDATED_FIELD_NUMBER = 11; private int lastUpdated_ = 0; /** * int32 last_updated = 11; * @return The lastUpdated. */ @java.lang.Override public int getLastUpdated() { return lastUpdated_; } public static final int SEQUENCE_IN_BLOCK_FIELD_NUMBER = 12; private int sequenceInBlock_ = 0; /** * int32 sequence_in_block = 12; * @return The sequenceInBlock. */ @java.lang.Override public int getSequenceInBlock() { return sequenceInBlock_; } public static final int ISSUE_HEIGHT_FIELD_NUMBER = 13; private int issueHeight_ = 0; /** * int32 issue_height = 13; * @return The issueHeight. */ @java.lang.Override public int getIssueHeight() { return issueHeight_; } public static final int SAFE_VOLUME_FIELD_NUMBER = 20; 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. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 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 (sequenceInBlock_ != 0) { output.writeInt32(12, sequenceInBlock_); } if (issueHeight_ != 0) { output.writeInt32(13, issueHeight_); } if (!safeVolume_.isEmpty()) { output.writeBytes(20, safeVolume_); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 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 (sequenceInBlock_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, sequenceInBlock_); } if (issueHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, issueHeight_); } if (!safeVolume_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, safeVolume_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (getSequenceInBlock() != other.getSequenceInBlock()) return false; if (getIssueHeight() != other.getIssueHeight()) return false; if (!getSafeVolume() .equals(other.getSafeVolume())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + SEQUENCE_IN_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getSequenceInBlock(); hash = (37 * hash) + ISSUE_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getIssueHeight(); hash = (37 * hash) + SAFE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getSafeVolume().hashCode(); hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; assetId_ = com.google.protobuf.ByteString.EMPTY; issuer_ = com.google.protobuf.ByteString.EMPTY; decimals_ = 0; name_ = ""; description_ = ""; reissuable_ = false; volume_ = 0L; scriptInfo_ = null; if (scriptInfoBuilder_ != null) { scriptInfoBuilder_.dispose(); scriptInfoBuilder_ = null; } sponsorship_ = 0L; nft_ = false; lastUpdated_ = 0; sequenceInBlock_ = 0; issueHeight_ = 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.assetId_ = assetId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.issuer_ = issuer_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.decimals_ = decimals_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.reissuable_ = reissuable_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.volume_ = volume_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.scriptInfo_ = scriptInfoBuilder_ == null ? scriptInfo_ : scriptInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.sponsorship_ = sponsorship_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.nft_ = nft_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.lastUpdated_ = lastUpdated_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.sequenceInBlock_ = sequenceInBlock_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.issueHeight_ = issueHeight_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.safeVolume_ = safeVolume_; } } @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_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000010; 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.getSequenceInBlock() != 0) { setSequenceInBlock(other.getSequenceInBlock()); } if (other.getIssueHeight() != 0) { setIssueHeight(other.getIssueHeight()); } if (other.getSafeVolume() != com.google.protobuf.ByteString.EMPTY) { setSafeVolume(other.getSafeVolume()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { assetId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { issuer_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { decimals_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { reissuable_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { volume_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getScriptInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 72: { sponsorship_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { nft_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { lastUpdated_ = input.readInt32(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { sequenceInBlock_ = input.readInt32(); bitField0_ |= 0x00000800; break; } // case 96 case 104: { issueHeight_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 104 case 162: { safeVolume_ = input.readBytes(); bitField0_ |= 0x00002000; break; } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString assetId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes asset_id = 1; * @return The assetId. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes asset_id = 1; * @return This builder for chaining. */ public Builder clearAssetId() { bitField0_ = (bitField0_ & ~0x00000001); assetId_ = getDefaultInstance().getAssetId(); onChanged(); return this; } private com.google.protobuf.ByteString issuer_ = com.google.protobuf.ByteString.EMPTY; /** * bytes issuer = 2; * @return The issuer. */ @java.lang.Override 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes issuer = 2; * @return This builder for chaining. */ public Builder clearIssuer() { bitField0_ = (bitField0_ & ~0x00000002); issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } private int decimals_ ; /** * int32 decimals = 3; * @return The decimals. */ @java.lang.Override 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 decimals = 3; * @return This builder for chaining. */ public Builder clearDecimals() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000010; onChanged(); return this; } private boolean reissuable_ ; /** * bool reissuable = 6; * @return The reissuable. */ @java.lang.Override 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool reissuable = 6; * @return This builder for chaining. */ public Builder clearReissuable() { bitField0_ = (bitField0_ & ~0x00000020); reissuable_ = false; onChanged(); return this; } private long volume_ ; /** * int64 volume = 7; * @return The volume. */ @java.lang.Override 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int64 volume = 7; * @return This builder for chaining. */ public Builder clearVolume() { bitField0_ = (bitField0_ & ~0x00000040); 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 ((bitField0_ & 0x00000080) != 0); } /** * .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; } else { scriptInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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(); } else { scriptInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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 (((bitField0_ & 0x00000080) != 0) && scriptInfo_ != null && scriptInfo_ != com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.getDefaultInstance()) { getScriptInfoBuilder().mergeFrom(value); } else { scriptInfo_ = value; } } else { scriptInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public Builder clearScriptInfo() { bitField0_ = (bitField0_ & ~0x00000080); scriptInfo_ = null; if (scriptInfoBuilder_ != null) { scriptInfoBuilder_.dispose(); scriptInfoBuilder_ = null; } onChanged(); return this; } /** * .waves.events.StateUpdate.AssetDetails.AssetScriptInfo script_info = 8; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetDetails.AssetScriptInfo.Builder getScriptInfoBuilder() { bitField0_ |= 0x00000080; 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. */ @java.lang.Override 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; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 sponsorship = 9; * @return This builder for chaining. */ public Builder clearSponsorship() { bitField0_ = (bitField0_ & ~0x00000100); sponsorship_ = 0L; onChanged(); return this; } private boolean nft_ ; /** * bool nft = 10; * @return The nft. */ @java.lang.Override 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; bitField0_ |= 0x00000200; onChanged(); return this; } /** * bool nft = 10; * @return This builder for chaining. */ public Builder clearNft() { bitField0_ = (bitField0_ & ~0x00000200); nft_ = false; onChanged(); return this; } private int lastUpdated_ ; /** * int32 last_updated = 11; * @return The lastUpdated. */ @java.lang.Override 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; bitField0_ |= 0x00000400; onChanged(); return this; } /** * int32 last_updated = 11; * @return This builder for chaining. */ public Builder clearLastUpdated() { bitField0_ = (bitField0_ & ~0x00000400); lastUpdated_ = 0; onChanged(); return this; } private int sequenceInBlock_ ; /** * int32 sequence_in_block = 12; * @return The sequenceInBlock. */ @java.lang.Override public int getSequenceInBlock() { return sequenceInBlock_; } /** * int32 sequence_in_block = 12; * @param value The sequenceInBlock to set. * @return This builder for chaining. */ public Builder setSequenceInBlock(int value) { sequenceInBlock_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * int32 sequence_in_block = 12; * @return This builder for chaining. */ public Builder clearSequenceInBlock() { bitField0_ = (bitField0_ & ~0x00000800); sequenceInBlock_ = 0; onChanged(); return this; } private int issueHeight_ ; /** * int32 issue_height = 13; * @return The issueHeight. */ @java.lang.Override public int getIssueHeight() { return issueHeight_; } /** * int32 issue_height = 13; * @param value The issueHeight to set. * @return This builder for chaining. */ public Builder setIssueHeight(int value) { issueHeight_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * int32 issue_height = 13; * @return This builder for chaining. */ public Builder clearIssueHeight() { bitField0_ = (bitField0_ & ~0x00001000); issueHeight_ = 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. */ @java.lang.Override 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; bitField0_ |= 0x00002000; 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() { bitField0_ = (bitField0_ & ~0x00002000); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.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(); } 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_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.ByteString getId() { return id_; } public static final int DECIMALS_FIELD_NUMBER = 2; private int decimals_ = 0; /** * int32 decimals = 2; * @return The decimals. */ @java.lang.Override public int getDecimals() { return decimals_; } public static final int NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 3; * @return The name. */ @java.lang.Override 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. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.decimals_ = decimals_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } } @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_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { decimals_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; /** * bytes id = 1; * @return The id. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } private int decimals_ ; /** * int32 decimals = 2; * @return The decimals. */ @java.lang.Override 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 decimals = 2; * @return This builder for chaining. */ public Builder clearDecimals() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScriptUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.StateUpdate.ScriptUpdate) com.google.protobuf.MessageOrBuilder { /** * bytes address = 1; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** * bytes before = 2; * @return The before. */ com.google.protobuf.ByteString getBefore(); /** * bytes after = 3; * @return The after. */ com.google.protobuf.ByteString getAfter(); } /** * Protobuf type {@code waves.events.StateUpdate.ScriptUpdate} */ public static final class ScriptUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.StateUpdate.ScriptUpdate) ScriptUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use ScriptUpdate.newBuilder() to construct. private ScriptUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScriptUpdate() { address_ = com.google.protobuf.ByteString.EMPTY; before_ = com.google.protobuf.ByteString.EMPTY; after_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScriptUpdate(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_ScriptUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_ScriptUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int BEFORE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString before_ = com.google.protobuf.ByteString.EMPTY; /** * bytes before = 2; * @return The before. */ @java.lang.Override public com.google.protobuf.ByteString getBefore() { return before_; } public static final int AFTER_FIELD_NUMBER = 3; private com.google.protobuf.ByteString after_ = com.google.protobuf.ByteString.EMPTY; /** * bytes after = 3; * @return The after. */ @java.lang.Override public com.google.protobuf.ByteString getAfter() { return after_; } 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 (!before_.isEmpty()) { output.writeBytes(2, before_); } if (!after_.isEmpty()) { output.writeBytes(3, after_); } getUnknownFields().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 (!before_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, before_); } if (!after_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, after_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate other = (com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getBefore() .equals(other.getBefore())) return false; if (!getAfter() .equals(other.getAfter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + BEFORE_FIELD_NUMBER; hash = (53 * hash) + getBefore().hashCode(); hash = (37 * hash) + AFTER_FIELD_NUMBER; hash = (53 * hash) + getAfter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate 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.ScriptUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate 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.ScriptUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate 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.ScriptUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.StateUpdate.ScriptUpdate) com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_ScriptUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_StateUpdate_ScriptUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.class, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; before_ = com.google.protobuf.ByteString.EMPTY; after_ = 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_ScriptUpdate_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate build() { com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate buildPartial() { com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate result = new com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.before_ = before_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.after_ = after_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate) { return mergeFrom((com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate other) { if (other == com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.getDefaultInstance()) return this; if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (other.getBefore() != com.google.protobuf.ByteString.EMPTY) { setBefore(other.getBefore()); } if (other.getAfter() != com.google.protobuf.ByteString.EMPTY) { setAfter(other.getAfter()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { address_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { before_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { after_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 1; * @return The address. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes address = 1; * @return This builder for chaining. */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private com.google.protobuf.ByteString before_ = com.google.protobuf.ByteString.EMPTY; /** * bytes before = 2; * @return The before. */ @java.lang.Override public com.google.protobuf.ByteString getBefore() { return before_; } /** * bytes before = 2; * @param value The before to set. * @return This builder for chaining. */ public Builder setBefore(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } before_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes before = 2; * @return This builder for chaining. */ public Builder clearBefore() { bitField0_ = (bitField0_ & ~0x00000002); before_ = getDefaultInstance().getBefore(); onChanged(); return this; } private com.google.protobuf.ByteString after_ = com.google.protobuf.ByteString.EMPTY; /** * bytes after = 3; * @return The after. */ @java.lang.Override public com.google.protobuf.ByteString getAfter() { return after_; } /** * bytes after = 3; * @param value The after to set. * @return This builder for chaining. */ public Builder setAfter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } after_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes after = 3; * @return This builder for chaining. */ public Builder clearAfter() { bitField0_ = (bitField0_ & ~0x00000004); after_ = getDefaultInstance().getAfter(); 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.ScriptUpdate) } // @@protoc_insertion_point(class_scope:waves.events.StateUpdate.ScriptUpdate) private static final com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate(); } public static com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScriptUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int BALANCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List balances_; /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ @java.lang.Override public java.util.List getBalancesList() { return balances_; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ @java.lang.Override public java.util.List getBalancesOrBuilderList() { return balances_; } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ @java.lang.Override public int getBalancesCount() { return balances_.size(); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate getBalances(int index) { return balances_.get(index); } /** * repeated .waves.events.StateUpdate.BalanceUpdate balances = 1; */ @java.lang.Override 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; @SuppressWarnings("serial") private java.util.List leasingForAddress_; /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ @java.lang.Override public java.util.List getLeasingForAddressList() { return leasingForAddress_; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ @java.lang.Override public java.util.List getLeasingForAddressOrBuilderList() { return leasingForAddress_; } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ @java.lang.Override public int getLeasingForAddressCount() { return leasingForAddress_.size(); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate getLeasingForAddress(int index) { return leasingForAddress_.get(index); } /** * repeated .waves.events.StateUpdate.LeasingUpdate leasing_for_address = 2; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdateOrBuilder getLeasingForAddressOrBuilder( int index) { return leasingForAddress_.get(index); } public static final int DATA_ENTRIES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List dataEntries_; /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ @java.lang.Override public java.util.List getDataEntriesList() { return dataEntries_; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ @java.lang.Override public java.util.List getDataEntriesOrBuilderList() { return dataEntries_; } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ @java.lang.Override public int getDataEntriesCount() { return dataEntries_.size(); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate getDataEntries(int index) { return dataEntries_.get(index); } /** * repeated .waves.events.StateUpdate.DataEntryUpdate data_entries = 3; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdateOrBuilder getDataEntriesOrBuilder( int index) { return dataEntries_.get(index); } public static final int ASSETS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List assets_; /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ @java.lang.Override public java.util.List getAssetsList() { return assets_; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ @java.lang.Override public java.util.List getAssetsOrBuilderList() { return assets_; } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ @java.lang.Override public int getAssetsCount() { return assets_.size(); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate getAssets(int index) { return assets_.get(index); } /** * repeated .waves.events.StateUpdate.AssetStateUpdate assets = 4; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdateOrBuilder getAssetsOrBuilder( int index) { return assets_.get(index); } public static final int INDIVIDUAL_LEASES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List individualLeases_; /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ @java.lang.Override public java.util.List getIndividualLeasesList() { return individualLeases_; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ @java.lang.Override public java.util.List getIndividualLeasesOrBuilderList() { return individualLeases_; } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ @java.lang.Override public int getIndividualLeasesCount() { return individualLeases_.size(); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate getIndividualLeases(int index) { return individualLeases_.get(index); } /** * repeated .waves.events.StateUpdate.LeaseUpdate individual_leases = 5; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdateOrBuilder getIndividualLeasesOrBuilder( int index) { return individualLeases_.get(index); } public static final int SCRIPTS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List scripts_; /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ @java.lang.Override public java.util.List getScriptsList() { return scripts_; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ @java.lang.Override public java.util.List getScriptsOrBuilderList() { return scripts_; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ @java.lang.Override public int getScriptsCount() { return scripts_.size(); } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getScripts(int index) { return scripts_.get(index); } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder getScriptsOrBuilder( int index) { return scripts_.get(index); } public static final int DELETED_ALIASES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList deletedAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string deleted_aliases = 7; * @return A list containing the deletedAliases. */ public com.google.protobuf.ProtocolStringList getDeletedAliasesList() { return deletedAliases_; } /** * repeated string deleted_aliases = 7; * @return The count of deletedAliases. */ public int getDeletedAliasesCount() { return deletedAliases_.size(); } /** * repeated string deleted_aliases = 7; * @param index The index of the element to return. * @return The deletedAliases at the given index. */ public java.lang.String getDeletedAliases(int index) { return deletedAliases_.get(index); } /** * repeated string deleted_aliases = 7; * @param index The index of the value to return. * @return The bytes of the deletedAliases at the given index. */ public com.google.protobuf.ByteString getDeletedAliasesBytes(int index) { return deletedAliases_.getByteString(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)); } for (int i = 0; i < scripts_.size(); i++) { output.writeMessage(6, scripts_.get(i)); } for (int i = 0; i < deletedAliases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deletedAliases_.getRaw(i)); } getUnknownFields().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)); } for (int i = 0; i < scripts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, scripts_.get(i)); } { int dataSize = 0; for (int i = 0; i < deletedAliases_.size(); i++) { dataSize += computeStringSizeNoTag(deletedAliases_.getRaw(i)); } size += dataSize; size += 1 * getDeletedAliasesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getScriptsList() .equals(other.getScriptsList())) return false; if (!getDeletedAliasesList() .equals(other.getDeletedAliasesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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(); } if (getScriptsCount() > 0) { hash = (37 * hash) + SCRIPTS_FIELD_NUMBER; hash = (53 * hash) + getScriptsList().hashCode(); } if (getDeletedAliasesCount() > 0) { hash = (37 * hash) + DELETED_ALIASES_FIELD_NUMBER; hash = (53 * hash) + getDeletedAliasesList().hashCode(); } hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (balancesBuilder_ == null) { balances_ = java.util.Collections.emptyList(); } else { balances_ = null; balancesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (leasingForAddressBuilder_ == null) { leasingForAddress_ = java.util.Collections.emptyList(); } else { leasingForAddress_ = null; leasingForAddressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (dataEntriesBuilder_ == null) { dataEntries_ = java.util.Collections.emptyList(); } else { dataEntries_ = null; dataEntriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); } else { assets_ = null; assetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (individualLeasesBuilder_ == null) { individualLeases_ = java.util.Collections.emptyList(); } else { individualLeases_ = null; individualLeasesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (scriptsBuilder_ == null) { scripts_ = java.util.Collections.emptyList(); } else { scripts_ = null; scriptsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); deletedAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.StateUpdate result) { 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(); } if (scriptsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { scripts_ = java.util.Collections.unmodifiableList(scripts_); bitField0_ = (bitField0_ & ~0x00000020); } result.scripts_ = scripts_; } else { result.scripts_ = scriptsBuilder_.build(); } } private void buildPartial0(com.wavesplatform.events.protobuf.Events.StateUpdate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000040) != 0)) { deletedAliases_.makeImmutable(); result.deletedAliases_ = deletedAliases_; } } @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_); } } } if (scriptsBuilder_ == null) { if (!other.scripts_.isEmpty()) { if (scripts_.isEmpty()) { scripts_ = other.scripts_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureScriptsIsMutable(); scripts_.addAll(other.scripts_); } onChanged(); } } else { if (!other.scripts_.isEmpty()) { if (scriptsBuilder_.isEmpty()) { scriptsBuilder_.dispose(); scriptsBuilder_ = null; scripts_ = other.scripts_; bitField0_ = (bitField0_ & ~0x00000020); scriptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScriptsFieldBuilder() : null; } else { scriptsBuilder_.addAllMessages(other.scripts_); } } } if (!other.deletedAliases_.isEmpty()) { if (deletedAliases_.isEmpty()) { deletedAliases_ = other.deletedAliases_; bitField0_ |= 0x00000040; } else { ensureDeletedAliasesIsMutable(); deletedAliases_.addAll(other.deletedAliases_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.BalanceUpdate.parser(), extensionRegistry); if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.add(m); } else { balancesBuilder_.addMessage(m); } break; } // case 10 case 18: { com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.LeasingUpdate.parser(), extensionRegistry); if (leasingForAddressBuilder_ == null) { ensureLeasingForAddressIsMutable(); leasingForAddress_.add(m); } else { leasingForAddressBuilder_.addMessage(m); } break; } // case 18 case 26: { com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.DataEntryUpdate.parser(), extensionRegistry); if (dataEntriesBuilder_ == null) { ensureDataEntriesIsMutable(); dataEntries_.add(m); } else { dataEntriesBuilder_.addMessage(m); } break; } // case 26 case 34: { com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.AssetStateUpdate.parser(), extensionRegistry); if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(m); } else { assetsBuilder_.addMessage(m); } break; } // case 34 case 42: { com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.LeaseUpdate.parser(), extensionRegistry); if (individualLeasesBuilder_ == null) { ensureIndividualLeasesIsMutable(); individualLeases_.add(m); } else { individualLeasesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate m = input.readMessage( com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.parser(), extensionRegistry); if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); scripts_.add(m); } else { scriptsBuilder_.addMessage(m); } break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureDeletedAliasesIsMutable(); deletedAliases_.add(s); break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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_; } private java.util.List scripts_ = java.util.Collections.emptyList(); private void ensureScriptsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { scripts_ = new java.util.ArrayList(scripts_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder> scriptsBuilder_; /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public java.util.List getScriptsList() { if (scriptsBuilder_ == null) { return java.util.Collections.unmodifiableList(scripts_); } else { return scriptsBuilder_.getMessageList(); } } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public int getScriptsCount() { if (scriptsBuilder_ == null) { return scripts_.size(); } else { return scriptsBuilder_.getCount(); } } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate getScripts(int index) { if (scriptsBuilder_ == null) { return scripts_.get(index); } else { return scriptsBuilder_.getMessage(index); } } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder setScripts( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate value) { if (scriptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScriptsIsMutable(); scripts_.set(index, value); onChanged(); } else { scriptsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder setScripts( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder builderForValue) { if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); scripts_.set(index, builderForValue.build()); onChanged(); } else { scriptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder addScripts(com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate value) { if (scriptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScriptsIsMutable(); scripts_.add(value); onChanged(); } else { scriptsBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder addScripts( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate value) { if (scriptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScriptsIsMutable(); scripts_.add(index, value); onChanged(); } else { scriptsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder addScripts( com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder builderForValue) { if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); scripts_.add(builderForValue.build()); onChanged(); } else { scriptsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder addScripts( int index, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder builderForValue) { if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); scripts_.add(index, builderForValue.build()); onChanged(); } else { scriptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder addAllScripts( java.lang.Iterable values) { if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scripts_); onChanged(); } else { scriptsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder clearScripts() { if (scriptsBuilder_ == null) { scripts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { scriptsBuilder_.clear(); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public Builder removeScripts(int index) { if (scriptsBuilder_ == null) { ensureScriptsIsMutable(); scripts_.remove(index); onChanged(); } else { scriptsBuilder_.remove(index); } return this; } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder getScriptsBuilder( int index) { return getScriptsFieldBuilder().getBuilder(index); } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder getScriptsOrBuilder( int index) { if (scriptsBuilder_ == null) { return scripts_.get(index); } else { return scriptsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public java.util.List getScriptsOrBuilderList() { if (scriptsBuilder_ != null) { return scriptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scripts_); } } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder addScriptsBuilder() { return getScriptsFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder addScriptsBuilder( int index) { return getScriptsFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.getDefaultInstance()); } /** * repeated .waves.events.StateUpdate.ScriptUpdate scripts = 6; */ public java.util.List getScriptsBuilderList() { return getScriptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder> getScriptsFieldBuilder() { if (scriptsBuilder_ == null) { scriptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdate.Builder, com.wavesplatform.events.protobuf.Events.StateUpdate.ScriptUpdateOrBuilder>( scripts_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); scripts_ = null; } return scriptsBuilder_; } private com.google.protobuf.LazyStringArrayList deletedAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeletedAliasesIsMutable() { if (!deletedAliases_.isModifiable()) { deletedAliases_ = new com.google.protobuf.LazyStringArrayList(deletedAliases_); } bitField0_ |= 0x00000040; } /** * repeated string deleted_aliases = 7; * @return A list containing the deletedAliases. */ public com.google.protobuf.ProtocolStringList getDeletedAliasesList() { deletedAliases_.makeImmutable(); return deletedAliases_; } /** * repeated string deleted_aliases = 7; * @return The count of deletedAliases. */ public int getDeletedAliasesCount() { return deletedAliases_.size(); } /** * repeated string deleted_aliases = 7; * @param index The index of the element to return. * @return The deletedAliases at the given index. */ public java.lang.String getDeletedAliases(int index) { return deletedAliases_.get(index); } /** * repeated string deleted_aliases = 7; * @param index The index of the value to return. * @return The bytes of the deletedAliases at the given index. */ public com.google.protobuf.ByteString getDeletedAliasesBytes(int index) { return deletedAliases_.getByteString(index); } /** * repeated string deleted_aliases = 7; * @param index The index to set the value at. * @param value The deletedAliases to set. * @return This builder for chaining. */ public Builder setDeletedAliases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeletedAliasesIsMutable(); deletedAliases_.set(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string deleted_aliases = 7; * @param value The deletedAliases to add. * @return This builder for chaining. */ public Builder addDeletedAliases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeletedAliasesIsMutable(); deletedAliases_.add(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string deleted_aliases = 7; * @param values The deletedAliases to add. * @return This builder for chaining. */ public Builder addAllDeletedAliases( java.lang.Iterable values) { ensureDeletedAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, deletedAliases_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated string deleted_aliases = 7; * @return This builder for chaining. */ public Builder clearDeletedAliases() { deletedAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** * repeated string deleted_aliases = 7; * @param value The bytes of the deletedAliases to add. * @return This builder for chaining. */ public Builder addDeletedAliasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeletedAliasesIsMutable(); deletedAliases_.add(value); bitField0_ |= 0x00000040; 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) } // @@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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.StateUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes sender_address = 1; * @return The senderAddress. */ com.google.protobuf.ByteString getSenderAddress(); /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ boolean hasTransfer(); /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata getTransfer(); /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadataOrBuilder getTransferOrBuilder(); /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return Whether the exchange field is set. */ boolean hasExchange(); /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return The exchange. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata getExchange(); /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder getExchangeOrBuilder(); /** * .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 = 117; * @return Whether the lease field is set. */ boolean hasLease(); /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; * @return The lease. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLease(); /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseOrBuilder(); /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return Whether the ethereum field is set. */ boolean hasEthereum(); /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return The ethereum. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getEthereum(); /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder getEthereumOrBuilder(); 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() { senderAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionMetadata(); } 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(); } /** * 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(); } 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_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECIPIENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRecipientAddress().hashCode(); hash = (29 * hash) + getUnknownFields().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; } /** * 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recipientAddress_ = recipientAddress_; } } @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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { recipientAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes recipient_address = 1; * @return This builder for chaining. */ public Builder clearRecipientAddress() { bitField0_ = (bitField0_ & ~0x00000001); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.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(); } 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; @SuppressWarnings("serial") private java.util.List recipientsAddresses_; /** * repeated bytes recipients_addresses = 1; * @return A list containing the recipientsAddresses. */ @java.lang.Override 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRecipientsAddressesCount() > 0) { hash = (37 * hash) + RECIPIENTS_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getRecipientsAddressesList().hashCode(); } hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipientsAddresses_ = java.util.Collections.emptyList(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { recipientsAddresses_ = java.util.Collections.unmodifiableList(recipientsAddresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.recipientsAddresses_ = recipientsAddresses_; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString v = input.readBytes(); ensureRecipientsAddressesIsMutable(); recipientsAddresses_.add(v); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.MassTransferMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExchangeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.ExchangeMetadata) com.google.protobuf.MessageOrBuilder { /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @return A list containing the orderIds. */ java.util.List getOrderIdsList(); /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @return The count of orderIds. */ int getOrderIdsCount(); /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @param index The index of the element to return. * @return The orderIds at the given index. */ com.google.protobuf.ByteString getOrderIds(int index); /** * repeated bytes order_sender_addresses = 2; * @return A list containing the orderSenderAddresses. */ java.util.List getOrderSenderAddressesList(); /** * repeated bytes order_sender_addresses = 2; * @return The count of orderSenderAddresses. */ int getOrderSenderAddressesCount(); /** * repeated bytes order_sender_addresses = 2; * @param index The index of the element to return. * @return The orderSenderAddresses at the given index. */ com.google.protobuf.ByteString getOrderSenderAddresses(int index); /** * repeated bytes order_sender_public_keys = 3; * @return A list containing the orderSenderPublicKeys. */ java.util.List getOrderSenderPublicKeysList(); /** * repeated bytes order_sender_public_keys = 3; * @return The count of orderSenderPublicKeys. */ int getOrderSenderPublicKeysCount(); /** * repeated bytes order_sender_public_keys = 3; * @param index The index of the element to return. * @return The orderSenderPublicKeys at the given index. */ com.google.protobuf.ByteString getOrderSenderPublicKeys(int index); } /** * Protobuf type {@code waves.events.TransactionMetadata.ExchangeMetadata} */ public static final class ExchangeMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.ExchangeMetadata) ExchangeMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use ExchangeMetadata.newBuilder() to construct. private ExchangeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExchangeMetadata() { orderIds_ = java.util.Collections.emptyList(); orderSenderAddresses_ = java.util.Collections.emptyList(); orderSenderPublicKeys_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExchangeMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_ExchangeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_ExchangeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder.class); } public static final int ORDER_IDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List orderIds_; /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @return A list containing the orderIds. */ @java.lang.Override public java.util.List getOrderIdsList() { return orderIds_; } /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @return The count of orderIds. */ public int getOrderIdsCount() { return orderIds_.size(); } /** *
       *
       *Fields starting with `order_*` represent order metadata.
       *Each of them is a collection of exactly 2 elements.
       *Element indexes correspond to their parent order indexes in the exchange transaction.
       * 
* * repeated bytes order_ids = 1; * @param index The index of the element to return. * @return The orderIds at the given index. */ public com.google.protobuf.ByteString getOrderIds(int index) { return orderIds_.get(index); } public static final int ORDER_SENDER_ADDRESSES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List orderSenderAddresses_; /** * repeated bytes order_sender_addresses = 2; * @return A list containing the orderSenderAddresses. */ @java.lang.Override public java.util.List getOrderSenderAddressesList() { return orderSenderAddresses_; } /** * repeated bytes order_sender_addresses = 2; * @return The count of orderSenderAddresses. */ public int getOrderSenderAddressesCount() { return orderSenderAddresses_.size(); } /** * repeated bytes order_sender_addresses = 2; * @param index The index of the element to return. * @return The orderSenderAddresses at the given index. */ public com.google.protobuf.ByteString getOrderSenderAddresses(int index) { return orderSenderAddresses_.get(index); } public static final int ORDER_SENDER_PUBLIC_KEYS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List orderSenderPublicKeys_; /** * repeated bytes order_sender_public_keys = 3; * @return A list containing the orderSenderPublicKeys. */ @java.lang.Override public java.util.List getOrderSenderPublicKeysList() { return orderSenderPublicKeys_; } /** * repeated bytes order_sender_public_keys = 3; * @return The count of orderSenderPublicKeys. */ public int getOrderSenderPublicKeysCount() { return orderSenderPublicKeys_.size(); } /** * repeated bytes order_sender_public_keys = 3; * @param index The index of the element to return. * @return The orderSenderPublicKeys at the given index. */ public com.google.protobuf.ByteString getOrderSenderPublicKeys(int index) { return orderSenderPublicKeys_.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 < orderIds_.size(); i++) { output.writeBytes(1, orderIds_.get(i)); } for (int i = 0; i < orderSenderAddresses_.size(); i++) { output.writeBytes(2, orderSenderAddresses_.get(i)); } for (int i = 0; i < orderSenderPublicKeys_.size(); i++) { output.writeBytes(3, orderSenderPublicKeys_.get(i)); } getUnknownFields().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 < orderIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(orderIds_.get(i)); } size += dataSize; size += 1 * getOrderIdsList().size(); } { int dataSize = 0; for (int i = 0; i < orderSenderAddresses_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(orderSenderAddresses_.get(i)); } size += dataSize; size += 1 * getOrderSenderAddressesList().size(); } { int dataSize = 0; for (int i = 0; i < orderSenderPublicKeys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(orderSenderPublicKeys_.get(i)); } size += dataSize; size += 1 * getOrderSenderPublicKeysList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) obj; if (!getOrderIdsList() .equals(other.getOrderIdsList())) return false; if (!getOrderSenderAddressesList() .equals(other.getOrderSenderAddressesList())) return false; if (!getOrderSenderPublicKeysList() .equals(other.getOrderSenderPublicKeysList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOrderIdsCount() > 0) { hash = (37 * hash) + ORDER_IDS_FIELD_NUMBER; hash = (53 * hash) + getOrderIdsList().hashCode(); } if (getOrderSenderAddressesCount() > 0) { hash = (37 * hash) + ORDER_SENDER_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getOrderSenderAddressesList().hashCode(); } if (getOrderSenderPublicKeysCount() > 0) { hash = (37 * hash) + ORDER_SENDER_PUBLIC_KEYS_FIELD_NUMBER; hash = (53 * hash) + getOrderSenderPublicKeysList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata 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.ExchangeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata 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.ExchangeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata 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.ExchangeMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.ExchangeMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_ExchangeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_ExchangeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; orderIds_ = java.util.Collections.emptyList(); orderSenderAddresses_ = java.util.Collections.emptyList(); orderSenderPublicKeys_ = java.util.Collections.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_ExchangeMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { orderIds_ = java.util.Collections.unmodifiableList(orderIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.orderIds_ = orderIds_; if (((bitField0_ & 0x00000002) != 0)) { orderSenderAddresses_ = java.util.Collections.unmodifiableList(orderSenderAddresses_); bitField0_ = (bitField0_ & ~0x00000002); } result.orderSenderAddresses_ = orderSenderAddresses_; if (((bitField0_ & 0x00000004) != 0)) { orderSenderPublicKeys_ = java.util.Collections.unmodifiableList(orderSenderPublicKeys_); bitField0_ = (bitField0_ & ~0x00000004); } result.orderSenderPublicKeys_ = orderSenderPublicKeys_; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance()) return this; if (!other.orderIds_.isEmpty()) { if (orderIds_.isEmpty()) { orderIds_ = other.orderIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOrderIdsIsMutable(); orderIds_.addAll(other.orderIds_); } onChanged(); } if (!other.orderSenderAddresses_.isEmpty()) { if (orderSenderAddresses_.isEmpty()) { orderSenderAddresses_ = other.orderSenderAddresses_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOrderSenderAddressesIsMutable(); orderSenderAddresses_.addAll(other.orderSenderAddresses_); } onChanged(); } if (!other.orderSenderPublicKeys_.isEmpty()) { if (orderSenderPublicKeys_.isEmpty()) { orderSenderPublicKeys_ = other.orderSenderPublicKeys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureOrderSenderPublicKeysIsMutable(); orderSenderPublicKeys_.addAll(other.orderSenderPublicKeys_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString v = input.readBytes(); ensureOrderIdsIsMutable(); orderIds_.add(v); break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureOrderSenderAddressesIsMutable(); orderSenderAddresses_.add(v); break; } // case 18 case 26: { com.google.protobuf.ByteString v = input.readBytes(); ensureOrderSenderPublicKeysIsMutable(); orderSenderPublicKeys_.add(v); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List orderIds_ = java.util.Collections.emptyList(); private void ensureOrderIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { orderIds_ = new java.util.ArrayList(orderIds_); bitField0_ |= 0x00000001; } } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @return A list containing the orderIds. */ public java.util.List getOrderIdsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(orderIds_) : orderIds_; } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @return The count of orderIds. */ public int getOrderIdsCount() { return orderIds_.size(); } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @param index The index of the element to return. * @return The orderIds at the given index. */ public com.google.protobuf.ByteString getOrderIds(int index) { return orderIds_.get(index); } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @param index The index to set the value at. * @param value The orderIds to set. * @return This builder for chaining. */ public Builder setOrderIds( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderIdsIsMutable(); orderIds_.set(index, value); onChanged(); return this; } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @param value The orderIds to add. * @return This builder for chaining. */ public Builder addOrderIds(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderIdsIsMutable(); orderIds_.add(value); onChanged(); return this; } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @param values The orderIds to add. * @return This builder for chaining. */ public Builder addAllOrderIds( java.lang.Iterable values) { ensureOrderIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderIds_); onChanged(); return this; } /** *
         *
         *Fields starting with `order_*` represent order metadata.
         *Each of them is a collection of exactly 2 elements.
         *Element indexes correspond to their parent order indexes in the exchange transaction.
         * 
* * repeated bytes order_ids = 1; * @return This builder for chaining. */ public Builder clearOrderIds() { orderIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List orderSenderAddresses_ = java.util.Collections.emptyList(); private void ensureOrderSenderAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { orderSenderAddresses_ = new java.util.ArrayList(orderSenderAddresses_); bitField0_ |= 0x00000002; } } /** * repeated bytes order_sender_addresses = 2; * @return A list containing the orderSenderAddresses. */ public java.util.List getOrderSenderAddressesList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(orderSenderAddresses_) : orderSenderAddresses_; } /** * repeated bytes order_sender_addresses = 2; * @return The count of orderSenderAddresses. */ public int getOrderSenderAddressesCount() { return orderSenderAddresses_.size(); } /** * repeated bytes order_sender_addresses = 2; * @param index The index of the element to return. * @return The orderSenderAddresses at the given index. */ public com.google.protobuf.ByteString getOrderSenderAddresses(int index) { return orderSenderAddresses_.get(index); } /** * repeated bytes order_sender_addresses = 2; * @param index The index to set the value at. * @param value The orderSenderAddresses to set. * @return This builder for chaining. */ public Builder setOrderSenderAddresses( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderSenderAddressesIsMutable(); orderSenderAddresses_.set(index, value); onChanged(); return this; } /** * repeated bytes order_sender_addresses = 2; * @param value The orderSenderAddresses to add. * @return This builder for chaining. */ public Builder addOrderSenderAddresses(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderSenderAddressesIsMutable(); orderSenderAddresses_.add(value); onChanged(); return this; } /** * repeated bytes order_sender_addresses = 2; * @param values The orderSenderAddresses to add. * @return This builder for chaining. */ public Builder addAllOrderSenderAddresses( java.lang.Iterable values) { ensureOrderSenderAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderSenderAddresses_); onChanged(); return this; } /** * repeated bytes order_sender_addresses = 2; * @return This builder for chaining. */ public Builder clearOrderSenderAddresses() { orderSenderAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List orderSenderPublicKeys_ = java.util.Collections.emptyList(); private void ensureOrderSenderPublicKeysIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { orderSenderPublicKeys_ = new java.util.ArrayList(orderSenderPublicKeys_); bitField0_ |= 0x00000004; } } /** * repeated bytes order_sender_public_keys = 3; * @return A list containing the orderSenderPublicKeys. */ public java.util.List getOrderSenderPublicKeysList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(orderSenderPublicKeys_) : orderSenderPublicKeys_; } /** * repeated bytes order_sender_public_keys = 3; * @return The count of orderSenderPublicKeys. */ public int getOrderSenderPublicKeysCount() { return orderSenderPublicKeys_.size(); } /** * repeated bytes order_sender_public_keys = 3; * @param index The index of the element to return. * @return The orderSenderPublicKeys at the given index. */ public com.google.protobuf.ByteString getOrderSenderPublicKeys(int index) { return orderSenderPublicKeys_.get(index); } /** * repeated bytes order_sender_public_keys = 3; * @param index The index to set the value at. * @param value The orderSenderPublicKeys to set. * @return This builder for chaining. */ public Builder setOrderSenderPublicKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderSenderPublicKeysIsMutable(); orderSenderPublicKeys_.set(index, value); onChanged(); return this; } /** * repeated bytes order_sender_public_keys = 3; * @param value The orderSenderPublicKeys to add. * @return This builder for chaining. */ public Builder addOrderSenderPublicKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOrderSenderPublicKeysIsMutable(); orderSenderPublicKeys_.add(value); onChanged(); return this; } /** * repeated bytes order_sender_public_keys = 3; * @param values The orderSenderPublicKeys to add. * @return This builder for chaining. */ public Builder addAllOrderSenderPublicKeys( java.lang.Iterable values) { ensureOrderSenderPublicKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderSenderPublicKeys_); onChanged(); return this; } /** * repeated bytes order_sender_public_keys = 3; * @return This builder for chaining. */ public Builder clearOrderSenderPublicKeys() { orderSenderPublicKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); 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.ExchangeMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.ExchangeMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExchangeMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata 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(); } 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 interface ArgumentOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument) com.google.protobuf.MessageOrBuilder { /** * int64 integer_value = 1; * @return Whether the integerValue field is set. */ boolean hasIntegerValue(); /** * int64 integer_value = 1; * @return The integerValue. */ long getIntegerValue(); /** * bytes binary_value = 2; * @return Whether the binaryValue field is set. */ boolean hasBinaryValue(); /** * bytes binary_value = 2; * @return The binaryValue. */ com.google.protobuf.ByteString getBinaryValue(); /** * string string_value = 3; * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** * string string_value = 3; * @return The stringValue. */ java.lang.String getStringValue(); /** * string string_value = 3; * @return The bytes for stringValue. */ com.google.protobuf.ByteString getStringValueBytes(); /** * bool boolean_value = 4; * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** * bool boolean_value = 4; * @return The booleanValue. */ boolean getBooleanValue(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return Whether the list field is set. */ boolean hasList(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return The list. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getList(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder getListOrBuilder(); com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ValueCase getValueCase(); } /** * Protobuf type {@code waves.events.TransactionMetadata.InvokeScriptMetadata.Argument} */ public static final class Argument extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument) ArgumentOrBuilder { private static final long serialVersionUID = 0L; // Use Argument.newBuilder() to construct. private Argument(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Argument() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Argument(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder.class); } public interface ListOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List) com.google.protobuf.MessageOrBuilder { /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ java.util.List getItemsList(); /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getItems(int index); /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ int getItemsCount(); /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ java.util.List getItemsOrBuilderList(); /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder getItemsOrBuilder( int index); } /** * Protobuf type {@code waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List} */ public static final class List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List) ListOrBuilder { private static final long serialVersionUID = 0L; // Use List.newBuilder() to construct. private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private List() { items_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new List(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List items_; /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ @java.lang.Override public java.util.List getItemsList() { return items_; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ @java.lang.Override public java.util.List getItemsOrBuilderList() { return items_; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getItems(int index) { return items_.get(index); } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder getItemsOrBuilder( int index) { return items_.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 < items_.size(); i++) { output.writeMessage(1, items_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) obj; if (!getItemsList() .equals(other.getItemsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List 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.Argument.List parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List 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.Argument.List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List 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.Argument.List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List) com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); } else { items_ = null; itemsBuilder_.clear(); } 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_InvokeScriptMetadata_Argument_List_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List result) { if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000001); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance()) return this; if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument m = input.readMessage( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.parser(), extensionRegistry); if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(m); } else { itemsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder> itemsBuilder_; /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder setItems( int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder setItems( int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder addItems(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder addItems( int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder addItems( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder addItems( int index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder addItemsBuilder() { return getItemsFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.getDefaultInstance()); } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder addItemsBuilder( int index) { return getItemsFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.getDefaultInstance()); } /** * repeated .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument items = 1; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder>( items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } @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.Argument.List) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public List parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTEGER_VALUE(1), BINARY_VALUE(2), STRING_VALUE(3), BOOLEAN_VALUE(4), LIST(10), VALUE_NOT_SET(0); private final int value; private ValueCase(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 ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return INTEGER_VALUE; case 2: return BINARY_VALUE; case 3: return STRING_VALUE; case 4: return BOOLEAN_VALUE; case 10: return LIST; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int INTEGER_VALUE_FIELD_NUMBER = 1; /** * int64 integer_value = 1; * @return Whether the integerValue field is set. */ @java.lang.Override public boolean hasIntegerValue() { return valueCase_ == 1; } /** * int64 integer_value = 1; * @return The integerValue. */ @java.lang.Override public long getIntegerValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } public static final int BINARY_VALUE_FIELD_NUMBER = 2; /** * bytes binary_value = 2; * @return Whether the binaryValue field is set. */ @java.lang.Override public boolean hasBinaryValue() { return valueCase_ == 2; } /** * bytes binary_value = 2; * @return The binaryValue. */ @java.lang.Override public com.google.protobuf.ByteString getBinaryValue() { if (valueCase_ == 2) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } public static final int STRING_VALUE_FIELD_NUMBER = 3; /** * string string_value = 3; * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 3; } /** * string string_value = 3; * @return The stringValue. */ public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } 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(); if (valueCase_ == 3) { value_ = s; } return s; } } /** * string string_value = 3; * @return The bytes for stringValue. */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4; /** * bool boolean_value = 4; * @return Whether the booleanValue field is set. */ @java.lang.Override public boolean hasBooleanValue() { return valueCase_ == 4; } /** * bool boolean_value = 4; * @return The booleanValue. */ @java.lang.Override public boolean getBooleanValue() { if (valueCase_ == 4) { return (java.lang.Boolean) value_; } return false; } public static final int LIST_FIELD_NUMBER = 10; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return valueCase_ == 10; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return The list. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getList() { if (valueCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder getListOrBuilder() { if (valueCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.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 (valueCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { output.writeBytes( 2, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } if (valueCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 10) { output.writeMessage(10, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 2, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getIntegerValue() != other.getIntegerValue()) return false; break; case 2: if (!getBinaryValue() .equals(other.getBinaryValue())) return false; break; case 3: if (!getStringValue() .equals(other.getStringValue())) return false; break; case 4: if (getBooleanValue() != other.getBooleanValue()) return false; break; case 10: if (!getList() .equals(other.getList())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIntegerValue()); break; case 2: hash = (37 * hash) + BINARY_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBinaryValue().hashCode(); break; case 3: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); break; case 4: hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBooleanValue()); break; case 10: hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument 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.Argument parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument 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.Argument parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument 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.Argument 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.Argument 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.Argument 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.Argument 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.Argument 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.Argument 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.Argument 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.Argument} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument) com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.ArgumentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (listBuilder_ != null) { listBuilder_.clear(); } valueCase_ = 0; value_ = 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_Argument_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 10 && listBuilder_ != null) { result.value_ = listBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.getDefaultInstance()) return this; switch (other.getValueCase()) { case INTEGER_VALUE: { setIntegerValue(other.getIntegerValue()); break; } case BINARY_VALUE: { setBinaryValue(other.getBinaryValue()); break; } case STRING_VALUE: { valueCase_ = 3; value_ = other.value_; onChanged(); break; } case BOOLEAN_VALUE: { setBooleanValue(other.getBooleanValue()); break; } case LIST: { mergeList(other.getList()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { value_ = input.readInt64(); valueCase_ = 1; break; } // case 8 case 18: { value_ = input.readBytes(); valueCase_ = 2; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 3; value_ = s; break; } // case 26 case 32: { value_ = input.readBool(); valueCase_ = 4; break; } // case 32 case 82: { input.readMessage( getListFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 10; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * int64 integer_value = 1; * @return Whether the integerValue field is set. */ public boolean hasIntegerValue() { return valueCase_ == 1; } /** * int64 integer_value = 1; * @return The integerValue. */ public long getIntegerValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } /** * int64 integer_value = 1; * @param value The integerValue to set. * @return This builder for chaining. */ public Builder setIntegerValue(long value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * int64 integer_value = 1; * @return This builder for chaining. */ public Builder clearIntegerValue() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * bytes binary_value = 2; * @return Whether the binaryValue field is set. */ public boolean hasBinaryValue() { return valueCase_ == 2; } /** * bytes binary_value = 2; * @return The binaryValue. */ public com.google.protobuf.ByteString getBinaryValue() { if (valueCase_ == 2) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes binary_value = 2; * @param value The binaryValue to set. * @return This builder for chaining. */ public Builder setBinaryValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 2; value_ = value; onChanged(); return this; } /** * bytes binary_value = 2; * @return This builder for chaining. */ public Builder clearBinaryValue() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * string string_value = 3; * @return Whether the stringValue field is set. */ @java.lang.Override public boolean hasStringValue() { return valueCase_ == 3; } /** * string string_value = 3; * @return The stringValue. */ @java.lang.Override public java.lang.String getStringValue() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string string_value = 3; * @return The bytes for stringValue. */ @java.lang.Override public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string string_value = 3; * @param value The stringValue to set. * @return This builder for chaining. */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 3; value_ = value; onChanged(); return this; } /** * string string_value = 3; * @return This builder for chaining. */ public Builder clearStringValue() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * string string_value = 3; * @param value The bytes for stringValue to set. * @return This builder for chaining. */ public Builder setStringValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 3; value_ = value; onChanged(); return this; } /** * bool boolean_value = 4; * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return valueCase_ == 4; } /** * bool boolean_value = 4; * @return The booleanValue. */ public boolean getBooleanValue() { if (valueCase_ == 4) { return (java.lang.Boolean) value_; } return false; } /** * bool boolean_value = 4; * @param value The booleanValue to set. * @return This builder for chaining. */ public Builder setBooleanValue(boolean value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** * bool boolean_value = 4; * @return This builder for chaining. */ public Builder clearBooleanValue() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder> listBuilder_; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return valueCase_ == 10; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; * @return The list. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List getList() { if (listBuilder_ == null) { if (valueCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } else { if (valueCase_ == 10) { return listBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ public Builder setList(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { listBuilder_.setMessage(value); } valueCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ public Builder setList( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder builderForValue) { if (listBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } valueCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ public Builder mergeList(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List value) { if (listBuilder_ == null) { if (valueCase_ == 10 && value_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance()) { value_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 10) { listBuilder_.mergeFrom(value); } else { listBuilder_.setMessage(value); } } valueCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ public Builder clearList() { if (listBuilder_ == null) { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; } listBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder getListBuilder() { return getListFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder getListOrBuilder() { if ((valueCase_ == 10) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.List list = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(valueCase_ == 10)) { value_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.ListOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument.List) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 10; onChanged(); return listBuilder_; } @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.Argument) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.InvokeScriptMetadata.Argument) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Argument parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Argument getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int D_APP_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString dAppAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d_app_address = 1; * @return The dAppAddress. */ @java.lang.Override public com.google.protobuf.ByteString getDAppAddress() { return dAppAddress_; } public static final int FUNCTION_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object functionName_ = ""; /** * string function_name = 2; * @return The functionName. */ @java.lang.Override 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. */ @java.lang.Override 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; @SuppressWarnings("serial") private java.util.List arguments_; /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ @java.lang.Override public java.util.List getArgumentsList() { return arguments_; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ @java.lang.Override public java.util.List getArgumentsOrBuilderList() { return arguments_; } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ @java.lang.Override public int getArgumentsCount() { return arguments_.size(); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument getArguments(int index) { return arguments_.get(index); } /** * repeated .waves.InvokeScriptResult.Call.Argument arguments = 3; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.ArgumentOrBuilder getArgumentsOrBuilder( int index) { return arguments_.get(index); } public static final int PAYMENTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List payments_; /** * repeated .waves.Amount payments = 4; */ @java.lang.Override public java.util.List getPaymentsList() { return payments_; } /** * repeated .waves.Amount payments = 4; */ @java.lang.Override public java.util.List getPaymentsOrBuilderList() { return payments_; } /** * repeated .waves.Amount payments = 4; */ @java.lang.Override public int getPaymentsCount() { return payments_.size(); } /** * repeated .waves.Amount payments = 4; */ @java.lang.Override public com.wavesplatform.protobuf.AmountOuterClass.Amount getPayments(int index) { return payments_.get(index); } /** * repeated .waves.Amount payments = 4; */ @java.lang.Override 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. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .waves.InvokeScriptResult result = 5; * @return The result. */ @java.lang.Override public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult getResult() { return result_ == null ? com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance() : result_; } /** * .waves.InvokeScriptResult result = 5; */ @java.lang.Override public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResultOrBuilder getResultOrBuilder() { return result_ == null ? com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance() : result_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { 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()); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dAppAddress_ = com.google.protobuf.ByteString.EMPTY; functionName_ = ""; if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); } else { arguments_ = null; argumentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (paymentsBuilder_ == null) { payments_ = java.util.Collections.emptyList(); } else { payments_ = null; paymentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata result) { if (argumentsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); bitField0_ = (bitField0_ & ~0x00000004); } result.arguments_ = arguments_; } else { result.arguments_ = argumentsBuilder_.build(); } if (paymentsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { payments_ = java.util.Collections.unmodifiableList(payments_); bitField0_ = (bitField0_ & ~0x00000008); } result.payments_ = payments_; } else { result.payments_ = paymentsBuilder_.build(); } } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dAppAddress_ = dAppAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.functionName_ = functionName_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); } } @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_; bitField0_ |= 0x00000002; onChanged(); } if (argumentsBuilder_ == null) { if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } } else { if (!other.arguments_.isEmpty()) { if (argumentsBuilder_.isEmpty()) { argumentsBuilder_.dispose(); argumentsBuilder_ = null; arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000004); 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_ & ~0x00000008); } else { ensurePaymentsIsMutable(); payments_.addAll(other.payments_); } onChanged(); } } else { if (!other.payments_.isEmpty()) { if (paymentsBuilder_.isEmpty()) { paymentsBuilder_.dispose(); paymentsBuilder_ = null; payments_ = other.payments_; bitField0_ = (bitField0_ & ~0x00000008); paymentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPaymentsFieldBuilder() : null; } else { paymentsBuilder_.addAllMessages(other.payments_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { dAppAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { functionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument m = input.readMessage( com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Call.Argument.parser(), extensionRegistry); if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(m); } else { argumentsBuilder_.addMessage(m); } break; } // case 26 case 34: { com.wavesplatform.protobuf.AmountOuterClass.Amount m = input.readMessage( com.wavesplatform.protobuf.AmountOuterClass.Amount.parser(), extensionRegistry); if (paymentsBuilder_ == null) { ensurePaymentsIsMutable(); payments_.add(m); } else { paymentsBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString dAppAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes d_app_address = 1; * @return The dAppAddress. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes d_app_address = 1; * @return This builder for chaining. */ public Builder clearDAppAddress() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string function_name = 2; * @return This builder for chaining. */ public Builder clearFunctionName() { functionName_ = getDefaultInstance().getFunctionName(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List arguments_ = java.util.Collections.emptyList(); private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { arguments_ = new java.util.ArrayList(arguments_); bitField0_ |= 0x00000004; } } 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_ & ~0x00000004); 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); arguments_ = null; } return argumentsBuilder_; } private java.util.List payments_ = java.util.Collections.emptyList(); private void ensurePaymentsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { payments_ = new java.util.ArrayList(payments_); bitField0_ |= 0x00000008; } } 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_ & ~0x00000008); 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_ & 0x00000008) != 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 ((bitField0_ & 0x00000010) != 0); } /** * .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; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder setResult( com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder mergeResult(com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && result_ != null && result_ != com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .waves.InvokeScriptResult result = 5; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000010); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .waves.InvokeScriptResult result = 5; */ public com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.InvokeScriptResult.Builder getResultBuilder() { bitField0_ |= 0x00000010; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.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(); } 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_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECIPIENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRecipientAddress().hashCode(); hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recipientAddress_ = recipientAddress_; } } @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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { recipientAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes recipient_address = 1; * @return This builder for chaining. */ public Builder clearRecipientAddress() { bitField0_ = (bitField0_ & ~0x00000001); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EthereumTransferMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.EthereumTransferMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes recipient_address = 1; * @return The recipientAddress. */ com.google.protobuf.ByteString getRecipientAddress(); /** * .waves.Amount amount = 2; * @return Whether the amount field is set. */ boolean hasAmount(); /** * .waves.Amount amount = 2; * @return The amount. */ com.wavesplatform.protobuf.AmountOuterClass.Amount getAmount(); /** * .waves.Amount amount = 2; */ com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountOrBuilder(); } /** * Protobuf type {@code waves.events.TransactionMetadata.EthereumTransferMetadata} */ public static final class EthereumTransferMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.EthereumTransferMetadata) EthereumTransferMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use EthereumTransferMetadata.newBuilder() to construct. private EthereumTransferMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EthereumTransferMetadata() { recipientAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EthereumTransferMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder.class); } public static final int RECIPIENT_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override public com.google.protobuf.ByteString getRecipientAddress() { return recipientAddress_; } public static final int AMOUNT_FIELD_NUMBER = 2; private com.wavesplatform.protobuf.AmountOuterClass.Amount amount_; /** * .waves.Amount amount = 2; * @return Whether the amount field is set. */ @java.lang.Override public boolean hasAmount() { return amount_ != null; } /** * .waves.Amount amount = 2; * @return The amount. */ @java.lang.Override public com.wavesplatform.protobuf.AmountOuterClass.Amount getAmount() { return amount_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amount_; } /** * .waves.Amount amount = 2; */ @java.lang.Override public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountOrBuilder() { return amount_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amount_; } 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_); } if (amount_ != null) { output.writeMessage(2, getAmount()); } getUnknownFields().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_); } if (amount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAmount()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) obj; if (!getRecipientAddress() .equals(other.getRecipientAddress())) return false; if (hasAmount() != other.hasAmount()) return false; if (hasAmount()) { if (!getAmount() .equals(other.getAmount())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECIPIENT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRecipientAddress().hashCode(); if (hasAmount()) { hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata 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.EthereumTransferMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata 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.EthereumTransferMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata 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.EthereumTransferMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.EthereumTransferMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipientAddress_ = com.google.protobuf.ByteString.EMPTY; amount_ = null; if (amountBuilder_ != null) { amountBuilder_.dispose(); amountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recipientAddress_ = recipientAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.amount_ = amountBuilder_ == null ? amount_ : amountBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance()) return this; if (other.getRecipientAddress() != com.google.protobuf.ByteString.EMPTY) { setRecipientAddress(other.getRecipientAddress()); } if (other.hasAmount()) { mergeAmount(other.getAmount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { recipientAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAmountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString recipientAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes recipient_address = 1; * @return The recipientAddress. */ @java.lang.Override 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes recipient_address = 1; * @return This builder for chaining. */ public Builder clearRecipientAddress() { bitField0_ = (bitField0_ & ~0x00000001); recipientAddress_ = getDefaultInstance().getRecipientAddress(); onChanged(); return this; } private com.wavesplatform.protobuf.AmountOuterClass.Amount amount_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> amountBuilder_; /** * .waves.Amount amount = 2; * @return Whether the amount field is set. */ public boolean hasAmount() { return ((bitField0_ & 0x00000002) != 0); } /** * .waves.Amount amount = 2; * @return The amount. */ public com.wavesplatform.protobuf.AmountOuterClass.Amount getAmount() { if (amountBuilder_ == null) { return amount_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amount_; } else { return amountBuilder_.getMessage(); } } /** * .waves.Amount amount = 2; */ public Builder setAmount(com.wavesplatform.protobuf.AmountOuterClass.Amount value) { if (amountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } amount_ = value; } else { amountBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .waves.Amount amount = 2; */ public Builder setAmount( com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) { if (amountBuilder_ == null) { amount_ = builderForValue.build(); } else { amountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .waves.Amount amount = 2; */ public Builder mergeAmount(com.wavesplatform.protobuf.AmountOuterClass.Amount value) { if (amountBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && amount_ != null && amount_ != com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()) { getAmountBuilder().mergeFrom(value); } else { amount_ = value; } } else { amountBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .waves.Amount amount = 2; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000002); amount_ = null; if (amountBuilder_ != null) { amountBuilder_.dispose(); amountBuilder_ = null; } onChanged(); return this; } /** * .waves.Amount amount = 2; */ public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getAmountBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAmountFieldBuilder().getBuilder(); } /** * .waves.Amount amount = 2; */ public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAmountOrBuilder() { if (amountBuilder_ != null) { return amountBuilder_.getMessageOrBuilder(); } else { return amount_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : amount_; } } /** * .waves.Amount amount = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> getAmountFieldBuilder() { if (amountBuilder_ == null) { amountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>( getAmount(), getParentForChildren(), isClean()); amount_ = null; } return amountBuilder_; } @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.EthereumTransferMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.EthereumTransferMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EthereumTransferMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EthereumMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.TransactionMetadata.EthereumMetadata) com.google.protobuf.MessageOrBuilder { /** *
       * bytes sender_address = 1;
       * 
* * int64 timestamp = 2; * @return The timestamp. */ long getTimestamp(); /** * int64 fee = 3; * @return The fee. */ long getFee(); /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ com.google.protobuf.ByteString getSenderPublicKey(); /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return Whether the transfer field is set. */ boolean hasTransfer(); /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return The transfer. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getTransfer(); /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder getTransferOrBuilder(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return Whether the invoke field is set. */ boolean hasInvoke(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return The invoke. */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvoke(); /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeOrBuilder(); com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.ActionCase getActionCase(); } /** * Protobuf type {@code waves.events.TransactionMetadata.EthereumMetadata} */ public static final class EthereumMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.TransactionMetadata.EthereumMetadata) EthereumMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use EthereumMetadata.newBuilder() to construct. private EthereumMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EthereumMetadata() { senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EthereumMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder.class); } private int actionCase_ = 0; @SuppressWarnings("serial") private java.lang.Object action_; public enum ActionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSFER(10), INVOKE(11), ACTION_NOT_SET(0); private final int value; private ActionCase(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 ActionCase valueOf(int value) { return forNumber(value); } public static ActionCase forNumber(int value) { switch (value) { case 10: return TRANSFER; case 11: return INVOKE; case 0: return ACTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_ = 0L; /** *
       * bytes sender_address = 1;
       * 
* * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int FEE_FIELD_NUMBER = 3; private long fee_ = 0L; /** * int64 fee = 3; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } public static final int SENDER_PUBLIC_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ @java.lang.Override public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; } public static final int TRANSFER_FIELD_NUMBER = 10; /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return Whether the transfer field is set. */ @java.lang.Override public boolean hasTransfer() { return actionCase_ == 10; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return The transfer. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getTransfer() { if (actionCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder getTransferOrBuilder() { if (actionCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } public static final int INVOKE_FIELD_NUMBER = 11; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return Whether the invoke field is set. */ @java.lang.Override public boolean hasInvoke() { return actionCase_ == 11; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return The invoke. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvoke() { if (actionCase_ == 11) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeOrBuilder() { if (actionCase_ == 11) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.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 (timestamp_ != 0L) { output.writeInt64(2, timestamp_); } if (fee_ != 0L) { output.writeInt64(3, fee_); } if (!senderPublicKey_.isEmpty()) { output.writeBytes(4, senderPublicKey_); } if (actionCase_ == 10) { output.writeMessage(10, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_); } if (actionCase_ == 11) { output.writeMessage(11, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, timestamp_); } if (fee_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, fee_); } if (!senderPublicKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, senderPublicKey_); } if (actionCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_); } if (actionCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) obj; if (getTimestamp() != other.getTimestamp()) return false; if (getFee() != other.getFee()) return false; if (!getSenderPublicKey() .equals(other.getSenderPublicKey())) return false; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 10: if (!getTransfer() .equals(other.getTransfer())) return false; break; case 11: if (!getInvoke() .equals(other.getInvoke())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + FEE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFee()); hash = (37 * hash) + SENDER_PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getSenderPublicKey().hashCode(); switch (actionCase_) { case 10: hash = (37 * hash) + TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getTransfer().hashCode(); break; case 11: hash = (37 * hash) + INVOKE_FIELD_NUMBER; hash = (53 * hash) + getInvoke().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata 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.EthereumMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata 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.EthereumMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata 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.EthereumMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.TransactionMetadata.EthereumMetadata) com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.class, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder.class); } // Construct using com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestamp_ = 0L; fee_ = 0L; senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; if (transferBuilder_ != null) { transferBuilder_.clear(); } if (invokeBuilder_ != null) { invokeBuilder_.clear(); } actionCase_ = 0; action_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.protobuf.Events.internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getDefaultInstanceForType() { return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata build() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata buildPartial() { com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata result = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestamp_ = timestamp_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fee_ = fee_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.senderPublicKey_ = senderPublicKey_; } } private void buildPartialOneofs(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata result) { result.actionCase_ = actionCase_; result.action_ = this.action_; if (actionCase_ == 10 && transferBuilder_ != null) { result.action_ = transferBuilder_.build(); } if (actionCase_ == 11 && invokeBuilder_ != null) { result.action_ = invokeBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) { return mergeFrom((com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata other) { if (other == com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getFee() != 0L) { setFee(other.getFee()); } if (other.getSenderPublicKey() != com.google.protobuf.ByteString.EMPTY) { setSenderPublicKey(other.getSenderPublicKey()); } switch (other.getActionCase()) { case TRANSFER: { mergeTransfer(other.getTransfer()); break; } case INVOKE: { mergeInvoke(other.getInvoke()); break; } case ACTION_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 16 case 24: { fee_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 24 case 34: { senderPublicKey_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 34 case 82: { input.readMessage( getTransferFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 10; break; } // case 82 case 90: { input.readMessage( getInvokeFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 11; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int actionCase_ = 0; private java.lang.Object action_; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public Builder clearAction() { actionCase_ = 0; action_ = null; onChanged(); return this; } private int bitField0_; private long timestamp_ ; /** *
         * bytes sender_address = 1;
         * 
* * int64 timestamp = 2; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** *
         * bytes sender_address = 1;
         * 
* * int64 timestamp = 2; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * bytes sender_address = 1;
         * 
* * int64 timestamp = 2; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0L; onChanged(); return this; } private long fee_ ; /** * int64 fee = 3; * @return The fee. */ @java.lang.Override public long getFee() { return fee_; } /** * int64 fee = 3; * @param value The fee to set. * @return This builder for chaining. */ public Builder setFee(long value) { fee_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 fee = 3; * @return This builder for chaining. */ public Builder clearFee() { bitField0_ = (bitField0_ & ~0x00000002); fee_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_public_key = 4; * @return The senderPublicKey. */ @java.lang.Override public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; } /** * bytes sender_public_key = 4; * @param value The senderPublicKey to set. * @return This builder for chaining. */ public Builder setSenderPublicKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } senderPublicKey_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes sender_public_key = 4; * @return This builder for chaining. */ public Builder clearSenderPublicKey() { bitField0_ = (bitField0_ & ~0x00000004); senderPublicKey_ = getDefaultInstance().getSenderPublicKey(); onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder> transferBuilder_; /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return Whether the transfer field is set. */ @java.lang.Override public boolean hasTransfer() { return actionCase_ == 10; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; * @return The transfer. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata getTransfer() { if (transferBuilder_ == null) { if (actionCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } else { if (actionCase_ == 10) { return transferBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ public Builder setTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata value) { if (transferBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { transferBuilder_.setMessage(value); } actionCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ public Builder setTransfer( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder builderForValue) { if (transferBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { transferBuilder_.setMessage(builderForValue.build()); } actionCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ public Builder mergeTransfer(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata value) { if (transferBuilder_ == null) { if (actionCase_ == 10 && action_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance()) { action_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 10) { transferBuilder_.mergeFrom(value); } else { transferBuilder_.setMessage(value); } } actionCase_ = 10; return this; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ public Builder clearTransfer() { if (transferBuilder_ == null) { if (actionCase_ == 10) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 10) { actionCase_ = 0; action_ = null; } transferBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder getTransferBuilder() { return getTransferFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder getTransferOrBuilder() { if ((actionCase_ == 10) && (transferBuilder_ != null)) { return transferBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 10) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.EthereumTransferMetadata transfer = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder> getTransferFieldBuilder() { if (transferBuilder_ == null) { if (!(actionCase_ == 10)) { action_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.getDefaultInstance(); } transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumTransferMetadata) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 10; onChanged(); return transferBuilder_; } 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> invokeBuilder_; /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return Whether the invoke field is set. */ @java.lang.Override public boolean hasInvoke() { return actionCase_ == 11; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; * @return The invoke. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata getInvoke() { if (invokeBuilder_ == null) { if (actionCase_ == 11) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } else { if (actionCase_ == 11) { return invokeBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ public Builder setInvoke(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata value) { if (invokeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { invokeBuilder_.setMessage(value); } actionCase_ = 11; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ public Builder setInvoke( com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder builderForValue) { if (invokeBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { invokeBuilder_.setMessage(builderForValue.build()); } actionCase_ = 11; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ public Builder mergeInvoke(com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata value) { if (invokeBuilder_ == null) { if (actionCase_ == 11 && action_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance()) { action_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 11) { invokeBuilder_.mergeFrom(value); } else { invokeBuilder_.setMessage(value); } } actionCase_ = 11; return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ public Builder clearInvoke() { if (invokeBuilder_ == null) { if (actionCase_ == 11) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 11) { actionCase_ = 0; action_ = null; } invokeBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.Builder getInvokeBuilder() { return getInvokeFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadataOrBuilder getInvokeOrBuilder() { if ((actionCase_ == 11) && (invokeBuilder_ != null)) { return invokeBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 11) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata) action_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke = 11; */ 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> getInvokeFieldBuilder() { if (invokeBuilder_ == null) { if (!(actionCase_ == 11)) { action_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.InvokeScriptMetadata.getDefaultInstance(); } invokeBuilder_ = 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) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 11; onChanged(); return invokeBuilder_; } @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.EthereumMetadata) } // @@protoc_insertion_point(class_scope:waves.events.TransactionMetadata.EthereumMetadata) private static final com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata(); } public static com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EthereumMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int metadataCase_ = 0; @SuppressWarnings("serial") private java.lang.Object metadata_; public enum MetadataCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSFER(104), EXCHANGE(107), MASS_TRANSFER(111), INVOKE_SCRIPT(116), LEASE(117), ETHEREUM(301), 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 107: return EXCHANGE; case 111: return MASS_TRANSFER; case 116: return INVOKE_SCRIPT; case 117: return LEASE; case 301: return ETHEREUM; 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 SENDER_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString senderAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_address = 1; * @return The senderAddress. */ @java.lang.Override public com.google.protobuf.ByteString getSenderAddress() { return senderAddress_; } public static final int TRANSFER_FIELD_NUMBER = 104; /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ @java.lang.Override public boolean hasTransfer() { return metadataCase_ == 104; } /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ @java.lang.Override 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(); } /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ @java.lang.Override 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 EXCHANGE_FIELD_NUMBER = 107; /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return Whether the exchange field is set. */ @java.lang.Override public boolean hasExchange() { return metadataCase_ == 107; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return The exchange. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata getExchange() { if (metadataCase_ == 107) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder getExchangeOrBuilder() { if (metadataCase_ == 107) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } public static final int MASS_TRANSFER_FIELD_NUMBER = 111; /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return Whether the massTransfer field is set. */ @java.lang.Override public boolean hasMassTransfer() { return metadataCase_ == 111; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return The massTransfer. */ @java.lang.Override 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; */ @java.lang.Override 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. */ @java.lang.Override public boolean hasInvokeScript() { return metadataCase_ == 116; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return The invokeScript. */ @java.lang.Override 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; */ @java.lang.Override 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_FIELD_NUMBER = 117; /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; * @return Whether the lease field is set. */ @java.lang.Override public boolean hasLease() { return metadataCase_ == 117; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; * @return The lease. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLease() { 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 = 117; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseOrBuilder() { if (metadataCase_ == 117) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } public static final int ETHEREUM_FIELD_NUMBER = 301; /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return Whether the ethereum field is set. */ @java.lang.Override public boolean hasEthereum() { return metadataCase_ == 301; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return The ethereum. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getEthereum() { if (metadataCase_ == 301) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder getEthereumOrBuilder() { if (metadataCase_ == 301) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.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 (!senderAddress_.isEmpty()) { output.writeBytes(1, senderAddress_); } if (metadataCase_ == 104) { output.writeMessage(104, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_); } if (metadataCase_ == 107) { output.writeMessage(107, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) 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_); } if (metadataCase_ == 301) { output.writeMessage(301, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!senderAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, senderAddress_); } if (metadataCase_ == 104) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(104, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata) metadata_); } if (metadataCase_ == 107) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(107, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) 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_); } if (metadataCase_ == 301) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(301, (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.protobuf.Events.TransactionMetadata)) { return super.equals(obj); } com.wavesplatform.events.protobuf.Events.TransactionMetadata other = (com.wavesplatform.events.protobuf.Events.TransactionMetadata) obj; if (!getSenderAddress() .equals(other.getSenderAddress())) return false; if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 104: if (!getTransfer() .equals(other.getTransfer())) return false; break; case 107: if (!getExchange() .equals(other.getExchange())) 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 (!getLease() .equals(other.getLease())) return false; break; case 301: if (!getEthereum() .equals(other.getEthereum())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SENDER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getSenderAddress().hashCode(); switch (metadataCase_) { case 104: hash = (37 * hash) + TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getTransfer().hashCode(); break; case 107: hash = (37 * hash) + EXCHANGE_FIELD_NUMBER; hash = (53 * hash) + getExchange().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_FIELD_NUMBER; hash = (53 * hash) + getLease().hashCode(); break; case 301: hash = (37 * hash) + ETHEREUM_FIELD_NUMBER; hash = (53 * hash) + getEthereum().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; senderAddress_ = com.google.protobuf.ByteString.EMPTY; if (transferBuilder_ != null) { transferBuilder_.clear(); } if (exchangeBuilder_ != null) { exchangeBuilder_.clear(); } if (massTransferBuilder_ != null) { massTransferBuilder_.clear(); } if (invokeScriptBuilder_ != null) { invokeScriptBuilder_.clear(); } if (leaseBuilder_ != null) { leaseBuilder_.clear(); } if (ethereumBuilder_ != null) { ethereumBuilder_.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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.wavesplatform.events.protobuf.Events.TransactionMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.senderAddress_ = senderAddress_; } } private void buildPartialOneofs(com.wavesplatform.events.protobuf.Events.TransactionMetadata result) { result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; if (metadataCase_ == 104 && transferBuilder_ != null) { result.metadata_ = transferBuilder_.build(); } if (metadataCase_ == 107 && exchangeBuilder_ != null) { result.metadata_ = exchangeBuilder_.build(); } if (metadataCase_ == 111 && massTransferBuilder_ != null) { result.metadata_ = massTransferBuilder_.build(); } if (metadataCase_ == 116 && invokeScriptBuilder_ != null) { result.metadata_ = invokeScriptBuilder_.build(); } if (metadataCase_ == 117 && leaseBuilder_ != null) { result.metadata_ = leaseBuilder_.build(); } if (metadataCase_ == 301 && ethereumBuilder_ != null) { result.metadata_ = ethereumBuilder_.build(); } } @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; if (other.getSenderAddress() != com.google.protobuf.ByteString.EMPTY) { setSenderAddress(other.getSenderAddress()); } switch (other.getMetadataCase()) { case TRANSFER: { mergeTransfer(other.getTransfer()); break; } case EXCHANGE: { mergeExchange(other.getExchange()); break; } case MASS_TRANSFER: { mergeMassTransfer(other.getMassTransfer()); break; } case INVOKE_SCRIPT: { mergeInvokeScript(other.getInvokeScript()); break; } case LEASE: { mergeLease(other.getLease()); break; } case ETHEREUM: { mergeEthereum(other.getEthereum()); break; } case METADATA_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { senderAddress_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 834: { input.readMessage( getTransferFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 104; break; } // case 834 case 858: { input.readMessage( getExchangeFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 107; break; } // case 858 case 890: { input.readMessage( getMassTransferFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 111; break; } // case 890 case 930: { input.readMessage( getInvokeScriptFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 116; break; } // case 930 case 938: { input.readMessage( getLeaseFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 117; break; } // case 938 case 2410: { input.readMessage( getEthereumFieldBuilder().getBuilder(), extensionRegistry); metadataCase_ = 301; break; } // case 2410 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int 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 int bitField0_; private com.google.protobuf.ByteString senderAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes sender_address = 1; * @return The senderAddress. */ @java.lang.Override public com.google.protobuf.ByteString getSenderAddress() { return senderAddress_; } /** * bytes sender_address = 1; * @param value The senderAddress to set. * @return This builder for chaining. */ public Builder setSenderAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } senderAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bytes sender_address = 1; * @return This builder for chaining. */ public Builder clearSenderAddress() { bitField0_ = (bitField0_ & ~0x00000001); senderAddress_ = getDefaultInstance().getSenderAddress(); 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_; /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return Whether the transfer field is set. */ @java.lang.Override public boolean hasTransfer() { return metadataCase_ == 104; } /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; * @return The transfer. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { transferBuilder_.setMessage(value); } } metadataCase_ = 104; return this; } /** * .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; } /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.TransferMetadata.Builder getTransferBuilder() { return getTransferFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.TransferMetadata transfer = 104; */ @java.lang.Override 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(); } } /** * .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.ExchangeMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder> exchangeBuilder_; /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return Whether the exchange field is set. */ @java.lang.Override public boolean hasExchange() { return metadataCase_ == 107; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; * @return The exchange. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata getExchange() { if (exchangeBuilder_ == null) { if (metadataCase_ == 107) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } else { if (metadataCase_ == 107) { return exchangeBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ public Builder setExchange(com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata value) { if (exchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { exchangeBuilder_.setMessage(value); } metadataCase_ = 107; return this; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ public Builder setExchange( com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder builderForValue) { if (exchangeBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { exchangeBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 107; return this; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ public Builder mergeExchange(com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata value) { if (exchangeBuilder_ == null) { if (metadataCase_ == 107 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 107) { exchangeBuilder_.mergeFrom(value); } else { exchangeBuilder_.setMessage(value); } } metadataCase_ = 107; return this; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ public Builder clearExchange() { if (exchangeBuilder_ == null) { if (metadataCase_ == 107) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 107) { metadataCase_ = 0; metadata_ = null; } exchangeBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder getExchangeBuilder() { return getExchangeFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder getExchangeOrBuilder() { if ((metadataCase_ == 107) && (exchangeBuilder_ != null)) { return exchangeBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 107) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.ExchangeMetadata exchange = 107; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder> getExchangeFieldBuilder() { if (exchangeBuilder_ == null) { if (!(metadataCase_ == 107)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.getDefaultInstance(); } exchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.ExchangeMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 107; onChanged(); return exchangeBuilder_; } 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. */ @java.lang.Override public boolean hasMassTransfer() { return metadataCase_ == 111; } /** * .waves.events.TransactionMetadata.MassTransferMetadata mass_transfer = 111; * @return The massTransfer. */ @java.lang.Override 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); } else { 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; */ @java.lang.Override 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. */ @java.lang.Override public boolean hasInvokeScript() { return metadataCase_ == 116; } /** * .waves.events.TransactionMetadata.InvokeScriptMetadata invoke_script = 116; * @return The invokeScript. */ @java.lang.Override 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); } else { 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; */ @java.lang.Override 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> leaseBuilder_; /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; * @return Whether the lease field is set. */ @java.lang.Override public boolean hasLease() { return metadataCase_ == 117; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; * @return The lease. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata getLease() { if (leaseBuilder_ == 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 leaseBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ public Builder setLease(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata value) { if (leaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { leaseBuilder_.setMessage(value); } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ public Builder setLease( com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder builderForValue) { if (leaseBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { leaseBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ public Builder mergeLease(com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata value) { if (leaseBuilder_ == 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) { leaseBuilder_.mergeFrom(value); } else { leaseBuilder_.setMessage(value); } } metadataCase_ = 117; return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ public Builder clearLease() { if (leaseBuilder_ == null) { if (metadataCase_ == 117) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 117) { metadataCase_ = 0; metadata_ = null; } leaseBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.Builder getLeaseBuilder() { return getLeaseFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.LeaseMetadata lease = 117; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadataOrBuilder getLeaseOrBuilder() { if ((metadataCase_ == 117) && (leaseBuilder_ != null)) { return leaseBuilder_.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 = 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> getLeaseFieldBuilder() { if (leaseBuilder_ == null) { if (!(metadataCase_ == 117)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.LeaseMetadata.getDefaultInstance(); } leaseBuilder_ = 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 leaseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder> ethereumBuilder_; /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return Whether the ethereum field is set. */ @java.lang.Override public boolean hasEthereum() { return metadataCase_ == 301; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; * @return The ethereum. */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata getEthereum() { if (ethereumBuilder_ == null) { if (metadataCase_ == 301) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } else { if (metadataCase_ == 301) { return ethereumBuilder_.getMessage(); } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ public Builder setEthereum(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata value) { if (ethereumBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { ethereumBuilder_.setMessage(value); } metadataCase_ = 301; return this; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ public Builder setEthereum( com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder builderForValue) { if (ethereumBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { ethereumBuilder_.setMessage(builderForValue.build()); } metadataCase_ = 301; return this; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ public Builder mergeEthereum(com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata value) { if (ethereumBuilder_ == null) { if (metadataCase_ == 301 && metadata_ != com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance()) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.newBuilder((com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_) .mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { if (metadataCase_ == 301) { ethereumBuilder_.mergeFrom(value); } else { ethereumBuilder_.setMessage(value); } } metadataCase_ = 301; return this; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ public Builder clearEthereum() { if (ethereumBuilder_ == null) { if (metadataCase_ == 301) { metadataCase_ = 0; metadata_ = null; onChanged(); } } else { if (metadataCase_ == 301) { metadataCase_ = 0; metadata_ = null; } ethereumBuilder_.clear(); } return this; } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder getEthereumBuilder() { return getEthereumFieldBuilder().getBuilder(); } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ @java.lang.Override public com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder getEthereumOrBuilder() { if ((metadataCase_ == 301) && (ethereumBuilder_ != null)) { return ethereumBuilder_.getMessageOrBuilder(); } else { if (metadataCase_ == 301) { return (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_; } return com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } } /** * .waves.events.TransactionMetadata.EthereumMetadata ethereum = 301; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder> getEthereumFieldBuilder() { if (ethereumBuilder_ == null) { if (!(metadataCase_ == 301)) { metadata_ = com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.getDefaultInstance(); } ethereumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata.Builder, com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadataOrBuilder>( (com.wavesplatform.events.protobuf.Events.TransactionMetadata.EthereumMetadata) metadata_, getParentForChildren(), isClean()); metadata_ = null; } metadataCase_ = 301; onChanged(); return ethereumBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.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_StateUpdate_ScriptUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_StateUpdate_ScriptUpdate_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_ExchangeMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_ExchangeMetadata_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_InvokeScriptMetadata_Argument_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_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; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_TransactionMetadata_EthereumMetadata_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\032\030waves/reward_share." + "proto\"\203\t\n\021BlockchainUpdated\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.AppendH\000\022<\n\010rol" + "lback\030\014 \001(\0132(.waves.events.BlockchainUpd" + "ated.RollbackH\000\022>\n\021referenced_assets\030\025 \003" + "(\0132#.waves.events.StateUpdate.AssetInfo\032" + "\363\004\n\006Append\022C\n\005block\030\001 \001(\01322.waves.events" + ".BlockchainUpdated.Append.BlockAppendH\000\022" + "N\n\013micro_block\030\002 \001(\01327.waves.events.Bloc" + "kchainUpdated.Append.MicroBlockAppendH\000\022" + "\027\n\017transaction_ids\030\003 \003(\014\022@\n\025transactions" + "_metadata\030\004 \003(\0132!.waves.events.Transacti" + "onMetadata\022/\n\014state_update\030\013 \001(\0132\031.waves" + ".events.StateUpdate\022<\n\031transaction_state" + "_updates\030\014 \003(\0132\031.waves.events.StateUpdat" + "e\032\234\001\n\013BlockAppend\022\033\n\005block\030\001 \001(\0132\014.waves" + ".Block\022\034\n\024updated_waves_amount\030\002 \001(\003\022\032\n\022" + "activated_features\030\003 \003(\005\022\013\n\003vrf\030\004 \001(\014\022)\n" + "\rreward_shares\030\005 \003(\0132\022.waves.RewardShare" + "\032c\n\020MicroBlockAppend\022,\n\013micro_block\030\001 \001(" + "\0132\027.waves.SignedMicroBlock\022!\n\031updated_tr" + "ansactions_root\030\002 \001(\014B\006\n\004body\032\231\002\n\010Rollba" + "ck\022C\n\004type\030\001 \001(\01625.waves.events.Blockcha" + "inUpdated.Rollback.RollbackType\022\037\n\027remov" + "ed_transaction_ids\030\002 \003(\014\022$\n\016removed_bloc" + "ks\030\003 \003(\0132\014.waves.Block\0228\n\025rollback_state" + "_update\030\004 \001(\0132\031.waves.events.StateUpdate" + "\022\034\n\024deactivated_features\030\005 \003(\005\")\n\014Rollba" + "ckType\022\t\n\005BLOCK\020\000\022\016\n\nMICROBLOCK\020\001B\010\n\006upd" + "ate\"\374\014\n\013StateUpdate\0229\n\010balances\030\001 \003(\0132\'." + "waves.events.StateUpdate.BalanceUpdate\022D" + "\n\023leasing_for_address\030\002 \003(\0132\'.waves.even" + "ts.StateUpdate.LeasingUpdate\022?\n\014data_ent" + "ries\030\003 \003(\0132).waves.events.StateUpdate.Da" + "taEntryUpdate\022:\n\006assets\030\004 \003(\0132*.waves.ev" + "ents.StateUpdate.AssetStateUpdate\022@\n\021ind" + "ividual_leases\030\005 \003(\0132%.waves.events.Stat" + "eUpdate.LeaseUpdate\0227\n\007scripts\030\006 \003(\0132&.w" + "aves.events.StateUpdate.ScriptUpdate\022\027\n\017" + "deleted_aliases\030\007 \003(\t\032\\\n\rBalanceUpdate\022\017" + "\n\007address\030\001 \001(\014\022#\n\014amount_after\030\002 \001(\0132\r." + "waves.Amount\022\025\n\ramount_before\030\003 \001(\003\032l\n\rL" + "easingUpdate\022\017\n\007address\030\001 \001(\014\022\020\n\010in_afte" + "r\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\013LeaseUpdat" + "e\022\020\n\010lease_id\030\001 \001(\014\022G\n\014status_after\030\002 \001(" + "\01621.waves.events.StateUpdate.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_transa" + "ction_id\030\r \001(\014\"\'\n\013LeaseStatus\022\014\n\010INACTIV" + "E\020\000\022\n\n\006ACTIVE\020\001\032\235\001\n\017DataEntryUpdate\022\017\n\007a" + "ddress\030\001 \001(\014\0228\n\ndata_entry\030\002 \001(\0132$.waves" + ".DataTransactionData.DataEntry\022?\n\021data_e" + "ntry_before\030\n \001(\0132$.waves.DataTransactio" + "nData.DataEntry\032\201\001\n\020AssetStateUpdate\0226\n\006" + "before\030\001 \001(\0132&.waves.events.StateUpdate." + "AssetDetails\0225\n\005after\030\002 \001(\0132&.waves.even" + "ts.StateUpdate.AssetDetails\032\213\003\n\014AssetDet" + "ails\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\004name\030\004 \001(\t\022\023\n\013descri" + "ption\030\005 \001(\t\022\022\n\nreissuable\030\006 \001(\010\022\016\n\006volum" + "e\030\007 \001(\003\022K\n\013script_info\030\010 \001(\01326.waves.eve" + "nts.StateUpdate.AssetDetails.AssetScript" + "Info\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\031\n\021sequence_in_bloc" + "k\030\014 \001(\005\022\024\n\014issue_height\030\r \001(\005\022\023\n\013safe_vo" + "lume\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\tAssetInfo\022\n" + "\n\002id\030\001 \001(\014\022\020\n\010decimals\030\002 \001(\005\022\014\n\004name\030\003 \001" + "(\t\032>\n\014ScriptUpdate\022\017\n\007address\030\001 \001(\014\022\016\n\006b" + "efore\030\002 \001(\014\022\r\n\005after\030\003 \001(\014\"\257\014\n\023Transacti" + "onMetadata\022\026\n\016sender_address\030\001 \001(\014\022F\n\010tr" + "ansfer\030h \001(\01322.waves.events.TransactionM" + "etadata.TransferMetadataH\000\022F\n\010exchange\030k" + " \001(\01322.waves.events.TransactionMetadata." + "ExchangeMetadataH\000\022O\n\rmass_transfer\030o \001(" + "\01326.waves.events.TransactionMetadata.Mas" + "sTransferMetadataH\000\022O\n\rinvoke_script\030t \001" + "(\01326.waves.events.TransactionMetadata.In" + "vokeScriptMetadataH\000\022@\n\005lease\030u \001(\0132/.wa" + "ves.events.TransactionMetadata.LeaseMeta" + "dataH\000\022G\n\010ethereum\030\255\002 \001(\01322.waves.events" + ".TransactionMetadata.EthereumMetadataH\000\032" + "-\n\020TransferMetadata\022\031\n\021recipient_address" + "\030\001 \001(\014\0324\n\024MassTransferMetadata\022\034\n\024recipi" + "ents_addresses\030\001 \003(\014\032g\n\020ExchangeMetadata" + "\022\021\n\torder_ids\030\001 \003(\014\022\036\n\026order_sender_addr" + "esses\030\002 \003(\014\022 \n\030order_sender_public_keys\030" + "\003 \003(\014\032\362\003\n\024InvokeScriptMetadata\022\025\n\rd_app_" + "address\030\001 \001(\014\022\025\n\rfunction_name\030\002 \001(\t\022:\n\t" + "arguments\030\003 \003(\0132\'.waves.InvokeScriptResu" + "lt.Call.Argument\022\037\n\010payments\030\004 \003(\0132\r.wav" + "es.Amount\022)\n\006result\030\005 \001(\0132\031.waves.Invoke" + "ScriptResult\032\243\002\n\010Argument\022\027\n\rinteger_val" + "ue\030\001 \001(\003H\000\022\026\n\014binary_value\030\002 \001(\014H\000\022\026\n\014st" + "ring_value\030\003 \001(\tH\000\022\027\n\rboolean_value\030\004 \001(" + "\010H\000\022T\n\004list\030\n \001(\0132D.waves.events.Transac" + "tionMetadata.InvokeScriptMetadata.Argume" + "nt.ListH\000\032V\n\004List\022N\n\005items\030\001 \003(\0132?.waves" + ".events.TransactionMetadata.InvokeScript" + "Metadata.ArgumentB\007\n\005value\032*\n\rLeaseMetad" + "ata\022\031\n\021recipient_address\030\001 \001(\014\032T\n\030Ethere" + "umTransferMetadata\022\031\n\021recipient_address\030" + "\001 \001(\014\022\035\n\006amount\030\002 \001(\0132\r.waves.Amount\032\361\001\n" + "\020EthereumMetadata\022\021\n\ttimestamp\030\002 \001(\003\022\013\n\003" + "fee\030\003 \001(\003\022\031\n\021sender_public_key\030\004 \001(\014\022N\n\010" + "transfer\030\n \001(\0132:.waves.events.Transactio" + "nMetadata.EthereumTransferMetadataH\000\022H\n\006" + "invoke\030\013 \001(\01326.waves.events.TransactionM" + "etadata.InvokeScriptMetadataH\000B\010\n\006Action" + "B\n\n\010metadataBe\n!com.wavesplatform.events" + "[email protected]/wavesplatform/gowa" + "ves/pkg/grpc/generated/waves/eventsb\006pro" + "to3" }; 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(), com.wavesplatform.protobuf.RewardShareOuterClass.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", "ActivatedFeatures", "Vrf", "RewardShares", }); 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", "DeactivatedFeatures", }); 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", "Scripts", "DeletedAliases", }); 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", "SequenceInBlock", "IssueHeight", "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_StateUpdate_ScriptUpdate_descriptor = internal_static_waves_events_StateUpdate_descriptor.getNestedTypes().get(7); internal_static_waves_events_StateUpdate_ScriptUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_StateUpdate_ScriptUpdate_descriptor, new java.lang.String[] { "Address", "Before", "After", }); 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[] { "SenderAddress", "Transfer", "Exchange", "MassTransfer", "InvokeScript", "Lease", "Ethereum", "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_ExchangeMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(2); internal_static_waves_events_TransactionMetadata_ExchangeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_ExchangeMetadata_descriptor, new java.lang.String[] { "OrderIds", "OrderSenderAddresses", "OrderSenderPublicKeys", }); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(3); 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_InvokeScriptMetadata_Argument_descriptor = internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_descriptor.getNestedTypes().get(0); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_descriptor, new java.lang.String[] { "IntegerValue", "BinaryValue", "StringValue", "BooleanValue", "List", "Value", }); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_descriptor = internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_descriptor.getNestedTypes().get(0); internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_InvokeScriptMetadata_Argument_List_descriptor, new java.lang.String[] { "Items", }); internal_static_waves_events_TransactionMetadata_LeaseMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(4); 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", }); internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(5); internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_EthereumTransferMetadata_descriptor, new java.lang.String[] { "RecipientAddress", "Amount", }); internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor = internal_static_waves_events_TransactionMetadata_descriptor.getNestedTypes().get(6); internal_static_waves_events_TransactionMetadata_EthereumMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_TransactionMetadata_EthereumMetadata_descriptor, new java.lang.String[] { "Timestamp", "Fee", "SenderPublicKey", "Transfer", "Invoke", "Action", }); com.wavesplatform.protobuf.block.BlockOuterClass.getDescriptor(); com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(); com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(); com.wavesplatform.protobuf.transaction.InvokeScriptResultOuterClass.getDescriptor(); com.wavesplatform.protobuf.RewardShareOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy