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

com.wavesplatform.api.grpc.AccountsApiOuterClass Maven / Gradle / Ivy

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

package com.wavesplatform.api.grpc;

public final class AccountsApiOuterClass {
  private AccountsApiOuterClass() {}
  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 AccountRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.AccountRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes address = 1;
     * @return The address.
     */
    com.google.protobuf.ByteString getAddress();
  }
  /**
   * Protobuf type {@code waves.node.grpc.AccountRequest}
   */
  public  static final class AccountRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.AccountRequest)
      AccountRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AccountRequest.newBuilder() to construct.
    private AccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private AccountRequest() {
      address_ = com.google.protobuf.ByteString.EMPTY;
    }

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

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.Builder.class);
    }

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

    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_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!address_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, address_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest) obj;

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

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest(this);
        result.address_ = address_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.getDefaultInstance()) return this;
        if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAddress(other.getAddress());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

      private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes address = 1;
       * @return The address.
       */
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }
      /**
       * bytes address = 1;
       * @param value The address to set.
       * @return This builder for chaining.
       */
      public Builder setAddress(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        address_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes address = 1;
       * @return This builder for chaining.
       */
      public Builder clearAddress() {
        
        address_ = getDefaultInstance().getAddress();
        onChanged();
        return this;
      }
      @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.node.grpc.AccountRequest)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.AccountRequest)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DataRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.DataRequest)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * string key = 2;
     * @return The key.
     */
    java.lang.String getKey();
    /**
     * string key = 2;
     * @return The bytes for key.
     */
    com.google.protobuf.ByteString
        getKeyBytes();
  }
  /**
   * Protobuf type {@code waves.node.grpc.DataRequest}
   */
  public  static final class DataRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.DataRequest)
      DataRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DataRequest.newBuilder() to construct.
    private DataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DataRequest() {
      address_ = com.google.protobuf.ByteString.EMPTY;
      key_ = "";
    }

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

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

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.Builder.class);
    }

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

    public static final int KEY_FIELD_NUMBER = 2;
    private volatile java.lang.Object key_;
    /**
     * string key = 2;
     * @return The key.
     */
    public java.lang.String getKey() {
      java.lang.Object ref = key_;
      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();
        key_ = s;
        return s;
      }
    }
    /**
     * string key = 2;
     * @return The bytes for key.
     */
    public com.google.protobuf.ByteString
        getKeyBytes() {
      java.lang.Object ref = key_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        key_ = 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 (!address_.isEmpty()) {
        output.writeBytes(1, address_);
      }
      if (!getKeyBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!address_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, address_);
      }
      if (!getKeyBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest) obj;

      if (!getAddress()
          .equals(other.getAddress())) return false;
      if (!getKey()
          .equals(other.getKey())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAddress().hashCode();
      hash = (37 * hash) + KEY_FIELD_NUMBER;
      hash = (53 * hash) + getKey().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        key_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest(this);
        result.address_ = address_;
        result.key_ = key_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.getDefaultInstance()) return this;
        if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAddress(other.getAddress());
        }
        if (!other.getKey().isEmpty()) {
          key_ = other.key_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

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

      private java.lang.Object key_ = "";
      /**
       * string key = 2;
       * @return The key.
       */
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          key_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string key = 2;
       * @return The bytes for key.
       */
      public com.google.protobuf.ByteString
          getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string key = 2;
       * @param value The key to set.
       * @return This builder for chaining.
       */
      public Builder setKey(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        key_ = value;
        onChanged();
        return this;
      }
      /**
       * string key = 2;
       * @return This builder for chaining.
       */
      public Builder clearKey() {
        
        key_ = getDefaultInstance().getKey();
        onChanged();
        return this;
      }
      /**
       * string key = 2;
       * @param value The bytes for key to set.
       * @return This builder for chaining.
       */
      public Builder setKeyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        key_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:waves.node.grpc.DataRequest)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.DataRequest)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BalancesRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.BalancesRequest)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * repeated bytes assets = 4;
     * @return A list containing the assets.
     */
    java.util.List getAssetsList();
    /**
     * repeated bytes assets = 4;
     * @return The count of assets.
     */
    int getAssetsCount();
    /**
     * repeated bytes assets = 4;
     * @param index The index of the element to return.
     * @return The assets at the given index.
     */
    com.google.protobuf.ByteString getAssets(int index);
  }
  /**
   * Protobuf type {@code waves.node.grpc.BalancesRequest}
   */
  public  static final class BalancesRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.BalancesRequest)
      BalancesRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BalancesRequest.newBuilder() to construct.
    private BalancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BalancesRequest() {
      address_ = com.google.protobuf.ByteString.EMPTY;
      assets_ = java.util.Collections.emptyList();
    }

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

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

              address_ = input.readBytes();
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                assets_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              assets_.add(input.readBytes());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          assets_ = java.util.Collections.unmodifiableList(assets_); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.Builder.class);
    }

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

    public static final int ASSETS_FIELD_NUMBER = 4;
    private java.util.List assets_;
    /**
     * repeated bytes assets = 4;
     * @return A list containing the assets.
     */
    public java.util.List
        getAssetsList() {
      return assets_;
    }
    /**
     * repeated bytes assets = 4;
     * @return The count of assets.
     */
    public int getAssetsCount() {
      return assets_.size();
    }
    /**
     * repeated bytes assets = 4;
     * @param index The index of the element to return.
     * @return The assets at the given index.
     */
    public com.google.protobuf.ByteString getAssets(int index) {
      return assets_.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 (!address_.isEmpty()) {
        output.writeBytes(1, address_);
      }
      for (int i = 0; i < assets_.size(); i++) {
        output.writeBytes(4, assets_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!address_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, address_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < assets_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(assets_.get(i));
        }
        size += dataSize;
        size += 1 * getAssetsList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest) obj;

      if (!getAddress()
          .equals(other.getAddress())) return false;
      if (!getAssetsList()
          .equals(other.getAssetsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAddress().hashCode();
      if (getAssetsCount() > 0) {
        hash = (37 * hash) + ASSETS_FIELD_NUMBER;
        hash = (53 * hash) + getAssetsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        assets_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest(this);
        int from_bitField0_ = bitField0_;
        result.address_ = address_;
        if (((bitField0_ & 0x00000001) != 0)) {
          assets_ = java.util.Collections.unmodifiableList(assets_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.assets_ = assets_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.getDefaultInstance()) return this;
        if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAddress(other.getAddress());
        }
        if (!other.assets_.isEmpty()) {
          if (assets_.isEmpty()) {
            assets_ = other.assets_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAssetsIsMutable();
            assets_.addAll(other.assets_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

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

      private java.util.List assets_ = java.util.Collections.emptyList();
      private void ensureAssetsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          assets_ = new java.util.ArrayList(assets_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * repeated bytes assets = 4;
       * @return A list containing the assets.
       */
      public java.util.List
          getAssetsList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(assets_) : assets_;
      }
      /**
       * repeated bytes assets = 4;
       * @return The count of assets.
       */
      public int getAssetsCount() {
        return assets_.size();
      }
      /**
       * repeated bytes assets = 4;
       * @param index The index of the element to return.
       * @return The assets at the given index.
       */
      public com.google.protobuf.ByteString getAssets(int index) {
        return assets_.get(index);
      }
      /**
       * repeated bytes assets = 4;
       * @param index The index to set the value at.
       * @param value The assets to set.
       * @return This builder for chaining.
       */
      public Builder setAssets(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAssetsIsMutable();
        assets_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated bytes assets = 4;
       * @param value The assets to add.
       * @return This builder for chaining.
       */
      public Builder addAssets(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAssetsIsMutable();
        assets_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated bytes assets = 4;
       * @param values The assets to add.
       * @return This builder for chaining.
       */
      public Builder addAllAssets(
          java.lang.Iterable values) {
        ensureAssetsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, assets_);
        onChanged();
        return this;
      }
      /**
       * repeated bytes assets = 4;
       * @return This builder for chaining.
       */
      public Builder clearAssets() {
        assets_ = 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.node.grpc.BalancesRequest)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.BalancesRequest)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BalanceResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.BalanceResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     * @return Whether the waves field is set.
     */
    boolean hasWaves();
    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     * @return The waves.
     */
    com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves();
    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     */
    com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder();

    /**
     * .waves.Amount asset = 2;
     * @return Whether the asset field is set.
     */
    boolean hasAsset();
    /**
     * .waves.Amount asset = 2;
     * @return The asset.
     */
    com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset();
    /**
     * .waves.Amount asset = 2;
     */
    com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder();

    public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.BalanceCase getBalanceCase();
  }
  /**
   * Protobuf type {@code waves.node.grpc.BalanceResponse}
   */
  public  static final class BalanceResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.BalanceResponse)
      BalanceResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BalanceResponse.newBuilder() to construct.
    private BalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BalanceResponse() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BalanceResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder subBuilder = null;
              if (balanceCase_ == 1) {
                subBuilder = ((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_).toBuilder();
              }
              balance_ =
                  input.readMessage(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_);
                balance_ = subBuilder.buildPartial();
              }
              balanceCase_ = 1;
              break;
            }
            case 18: {
              com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder subBuilder = null;
              if (balanceCase_ == 2) {
                subBuilder = ((com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_).toBuilder();
              }
              balance_ =
                  input.readMessage(com.wavesplatform.protobuf.AmountOuterClass.Amount.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_);
                balance_ = subBuilder.buildPartial();
              }
              balanceCase_ = 2;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.Builder.class);
    }

    public interface WavesBalancesOrBuilder extends
        // @@protoc_insertion_point(interface_extends:waves.node.grpc.BalanceResponse.WavesBalances)
        com.google.protobuf.MessageOrBuilder {

      /**
       * int64 regular = 1;
       * @return The regular.
       */
      long getRegular();

      /**
       * int64 generating = 2;
       * @return The generating.
       */
      long getGenerating();

      /**
       * int64 available = 3;
       * @return The available.
       */
      long getAvailable();

      /**
       * int64 effective = 4;
       * @return The effective.
       */
      long getEffective();

      /**
       * int64 lease_in = 5;
       * @return The leaseIn.
       */
      long getLeaseIn();

      /**
       * int64 lease_out = 6;
       * @return The leaseOut.
       */
      long getLeaseOut();
    }
    /**
     * Protobuf type {@code waves.node.grpc.BalanceResponse.WavesBalances}
     */
    public  static final class WavesBalances extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:waves.node.grpc.BalanceResponse.WavesBalances)
        WavesBalancesOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use WavesBalances.newBuilder() to construct.
      private WavesBalances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private WavesBalances() {
      }

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

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

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

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

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

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

                leaseIn_ = input.readInt64();
                break;
              }
              case 48: {

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder.class);
      }

      public static final int REGULAR_FIELD_NUMBER = 1;
      private long regular_;
      /**
       * int64 regular = 1;
       * @return The regular.
       */
      public long getRegular() {
        return regular_;
      }

      public static final int GENERATING_FIELD_NUMBER = 2;
      private long generating_;
      /**
       * int64 generating = 2;
       * @return The generating.
       */
      public long getGenerating() {
        return generating_;
      }

      public static final int AVAILABLE_FIELD_NUMBER = 3;
      private long available_;
      /**
       * int64 available = 3;
       * @return The available.
       */
      public long getAvailable() {
        return available_;
      }

      public static final int EFFECTIVE_FIELD_NUMBER = 4;
      private long effective_;
      /**
       * int64 effective = 4;
       * @return The effective.
       */
      public long getEffective() {
        return effective_;
      }

      public static final int LEASE_IN_FIELD_NUMBER = 5;
      private long leaseIn_;
      /**
       * int64 lease_in = 5;
       * @return The leaseIn.
       */
      public long getLeaseIn() {
        return leaseIn_;
      }

      public static final int LEASE_OUT_FIELD_NUMBER = 6;
      private long leaseOut_;
      /**
       * int64 lease_out = 6;
       * @return The leaseOut.
       */
      public long getLeaseOut() {
        return leaseOut_;
      }

      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 (regular_ != 0L) {
          output.writeInt64(1, regular_);
        }
        if (generating_ != 0L) {
          output.writeInt64(2, generating_);
        }
        if (available_ != 0L) {
          output.writeInt64(3, available_);
        }
        if (effective_ != 0L) {
          output.writeInt64(4, effective_);
        }
        if (leaseIn_ != 0L) {
          output.writeInt64(5, leaseIn_);
        }
        if (leaseOut_ != 0L) {
          output.writeInt64(6, leaseOut_);
        }
        unknownFields.writeTo(output);
      }

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

        size = 0;
        if (regular_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(1, regular_);
        }
        if (generating_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(2, generating_);
        }
        if (available_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(3, available_);
        }
        if (effective_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(4, effective_);
        }
        if (leaseIn_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(5, leaseIn_);
        }
        if (leaseOut_ != 0L) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt64Size(6, leaseOut_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances)) {
          return super.equals(obj);
        }
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) obj;

        if (getRegular()
            != other.getRegular()) return false;
        if (getGenerating()
            != other.getGenerating()) return false;
        if (getAvailable()
            != other.getAvailable()) return false;
        if (getEffective()
            != other.getEffective()) return false;
        if (getLeaseIn()
            != other.getLeaseIn()) return false;
        if (getLeaseOut()
            != other.getLeaseOut()) return false;
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + REGULAR_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getRegular());
        hash = (37 * hash) + GENERATING_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getGenerating());
        hash = (37 * hash) + AVAILABLE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getAvailable());
        hash = (37 * hash) + EFFECTIVE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getEffective());
        hash = (37 * hash) + LEASE_IN_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getLeaseIn());
        hash = (37 * hash) + LEASE_OUT_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getLeaseOut());
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

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

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder.class);
        }

        // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

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

          generating_ = 0L;

          available_ = 0L;

          effective_ = 0L;

          leaseIn_ = 0L;

          leaseOut_ = 0L;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
        }

        @java.lang.Override
        public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstanceForType() {
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
        }

        @java.lang.Override
        public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances build() {
          com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances buildPartial() {
          com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances(this);
          result.regular_ = regular_;
          result.generating_ = generating_;
          result.available_ = available_;
          result.effective_ = effective_;
          result.leaseIn_ = leaseIn_;
          result.leaseOut_ = leaseOut_;
          onBuilt();
          return result;
        }

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

        public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances other) {
          if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance()) return this;
          if (other.getRegular() != 0L) {
            setRegular(other.getRegular());
          }
          if (other.getGenerating() != 0L) {
            setGenerating(other.getGenerating());
          }
          if (other.getAvailable() != 0L) {
            setAvailable(other.getAvailable());
          }
          if (other.getEffective() != 0L) {
            setEffective(other.getEffective());
          }
          if (other.getLeaseIn() != 0L) {
            setLeaseIn(other.getLeaseIn());
          }
          if (other.getLeaseOut() != 0L) {
            setLeaseOut(other.getLeaseOut());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

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

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

        private long regular_ ;
        /**
         * int64 regular = 1;
         * @return The regular.
         */
        public long getRegular() {
          return regular_;
        }
        /**
         * int64 regular = 1;
         * @param value The regular to set.
         * @return This builder for chaining.
         */
        public Builder setRegular(long value) {
          
          regular_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 regular = 1;
         * @return This builder for chaining.
         */
        public Builder clearRegular() {
          
          regular_ = 0L;
          onChanged();
          return this;
        }

        private long generating_ ;
        /**
         * int64 generating = 2;
         * @return The generating.
         */
        public long getGenerating() {
          return generating_;
        }
        /**
         * int64 generating = 2;
         * @param value The generating to set.
         * @return This builder for chaining.
         */
        public Builder setGenerating(long value) {
          
          generating_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 generating = 2;
         * @return This builder for chaining.
         */
        public Builder clearGenerating() {
          
          generating_ = 0L;
          onChanged();
          return this;
        }

        private long available_ ;
        /**
         * int64 available = 3;
         * @return The available.
         */
        public long getAvailable() {
          return available_;
        }
        /**
         * int64 available = 3;
         * @param value The available to set.
         * @return This builder for chaining.
         */
        public Builder setAvailable(long value) {
          
          available_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 available = 3;
         * @return This builder for chaining.
         */
        public Builder clearAvailable() {
          
          available_ = 0L;
          onChanged();
          return this;
        }

        private long effective_ ;
        /**
         * int64 effective = 4;
         * @return The effective.
         */
        public long getEffective() {
          return effective_;
        }
        /**
         * int64 effective = 4;
         * @param value The effective to set.
         * @return This builder for chaining.
         */
        public Builder setEffective(long value) {
          
          effective_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 effective = 4;
         * @return This builder for chaining.
         */
        public Builder clearEffective() {
          
          effective_ = 0L;
          onChanged();
          return this;
        }

        private long leaseIn_ ;
        /**
         * int64 lease_in = 5;
         * @return The leaseIn.
         */
        public long getLeaseIn() {
          return leaseIn_;
        }
        /**
         * int64 lease_in = 5;
         * @param value The leaseIn to set.
         * @return This builder for chaining.
         */
        public Builder setLeaseIn(long value) {
          
          leaseIn_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 lease_in = 5;
         * @return This builder for chaining.
         */
        public Builder clearLeaseIn() {
          
          leaseIn_ = 0L;
          onChanged();
          return this;
        }

        private long leaseOut_ ;
        /**
         * int64 lease_out = 6;
         * @return The leaseOut.
         */
        public long getLeaseOut() {
          return leaseOut_;
        }
        /**
         * int64 lease_out = 6;
         * @param value The leaseOut to set.
         * @return This builder for chaining.
         */
        public Builder setLeaseOut(long value) {
          
          leaseOut_ = value;
          onChanged();
          return this;
        }
        /**
         * int64 lease_out = 6;
         * @return This builder for chaining.
         */
        public Builder clearLeaseOut() {
          
          leaseOut_ = 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.node.grpc.BalanceResponse.WavesBalances)
      }

      // @@protoc_insertion_point(class_scope:waves.node.grpc.BalanceResponse.WavesBalances)
      private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances();
      }

      public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

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

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

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

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int balanceCase_ = 0;
    private java.lang.Object balance_;
    public enum BalanceCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      WAVES(1),
      ASSET(2),
      BALANCE_NOT_SET(0);
      private final int value;
      private BalanceCase(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 BalanceCase valueOf(int value) {
        return forNumber(value);
      }

      public static BalanceCase forNumber(int value) {
        switch (value) {
          case 1: return WAVES;
          case 2: return ASSET;
          case 0: return BALANCE_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public BalanceCase
    getBalanceCase() {
      return BalanceCase.forNumber(
          balanceCase_);
    }

    public static final int WAVES_FIELD_NUMBER = 1;
    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     * @return Whether the waves field is set.
     */
    public boolean hasWaves() {
      return balanceCase_ == 1;
    }
    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     * @return The waves.
     */
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves() {
      if (balanceCase_ == 1) {
         return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
      }
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
    }
    /**
     * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
     */
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder() {
      if (balanceCase_ == 1) {
         return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
      }
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
    }

    public static final int ASSET_FIELD_NUMBER = 2;
    /**
     * .waves.Amount asset = 2;
     * @return Whether the asset field is set.
     */
    public boolean hasAsset() {
      return balanceCase_ == 2;
    }
    /**
     * .waves.Amount asset = 2;
     * @return The asset.
     */
    public com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset() {
      if (balanceCase_ == 2) {
         return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
      }
      return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
    }
    /**
     * .waves.Amount asset = 2;
     */
    public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder() {
      if (balanceCase_ == 2) {
         return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
      }
      return com.wavesplatform.protobuf.AmountOuterClass.Amount.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 (balanceCase_ == 1) {
        output.writeMessage(1, (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_);
      }
      if (balanceCase_ == 2) {
        output.writeMessage(2, (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (balanceCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_);
      }
      if (balanceCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse) obj;

      if (!getBalanceCase().equals(other.getBalanceCase())) return false;
      switch (balanceCase_) {
        case 1:
          if (!getWaves()
              .equals(other.getWaves())) return false;
          break;
        case 2:
          if (!getAsset()
              .equals(other.getAsset())) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (balanceCase_) {
        case 1:
          hash = (37 * hash) + WAVES_FIELD_NUMBER;
          hash = (53 * hash) + getWaves().hashCode();
          break;
        case 2:
          hash = (37 * hash) + ASSET_FIELD_NUMBER;
          hash = (53 * hash) + getAsset().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse(this);
        if (balanceCase_ == 1) {
          if (wavesBuilder_ == null) {
            result.balance_ = balance_;
          } else {
            result.balance_ = wavesBuilder_.build();
          }
        }
        if (balanceCase_ == 2) {
          if (assetBuilder_ == null) {
            result.balance_ = balance_;
          } else {
            result.balance_ = assetBuilder_.build();
          }
        }
        result.balanceCase_ = balanceCase_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.getDefaultInstance()) return this;
        switch (other.getBalanceCase()) {
          case WAVES: {
            mergeWaves(other.getWaves());
            break;
          }
          case ASSET: {
            mergeAsset(other.getAsset());
            break;
          }
          case BALANCE_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int balanceCase_ = 0;
      private java.lang.Object balance_;
      public BalanceCase
          getBalanceCase() {
        return BalanceCase.forNumber(
            balanceCase_);
      }

      public Builder clearBalance() {
        balanceCase_ = 0;
        balance_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder> wavesBuilder_;
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       * @return Whether the waves field is set.
       */
      public boolean hasWaves() {
        return balanceCase_ == 1;
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       * @return The waves.
       */
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves() {
        if (wavesBuilder_ == null) {
          if (balanceCase_ == 1) {
            return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
          }
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
        } else {
          if (balanceCase_ == 1) {
            return wavesBuilder_.getMessage();
          }
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
        }
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public Builder setWaves(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances value) {
        if (wavesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          balance_ = value;
          onChanged();
        } else {
          wavesBuilder_.setMessage(value);
        }
        balanceCase_ = 1;
        return this;
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public Builder setWaves(
          com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder builderForValue) {
        if (wavesBuilder_ == null) {
          balance_ = builderForValue.build();
          onChanged();
        } else {
          wavesBuilder_.setMessage(builderForValue.build());
        }
        balanceCase_ = 1;
        return this;
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public Builder mergeWaves(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances value) {
        if (wavesBuilder_ == null) {
          if (balanceCase_ == 1 &&
              balance_ != com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance()) {
            balance_ = com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.newBuilder((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_)
                .mergeFrom(value).buildPartial();
          } else {
            balance_ = value;
          }
          onChanged();
        } else {
          if (balanceCase_ == 1) {
            wavesBuilder_.mergeFrom(value);
          }
          wavesBuilder_.setMessage(value);
        }
        balanceCase_ = 1;
        return this;
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public Builder clearWaves() {
        if (wavesBuilder_ == null) {
          if (balanceCase_ == 1) {
            balanceCase_ = 0;
            balance_ = null;
            onChanged();
          }
        } else {
          if (balanceCase_ == 1) {
            balanceCase_ = 0;
            balance_ = null;
          }
          wavesBuilder_.clear();
        }
        return this;
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder getWavesBuilder() {
        return getWavesFieldBuilder().getBuilder();
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder() {
        if ((balanceCase_ == 1) && (wavesBuilder_ != null)) {
          return wavesBuilder_.getMessageOrBuilder();
        } else {
          if (balanceCase_ == 1) {
            return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
          }
          return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
        }
      }
      /**
       * .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder> 
          getWavesFieldBuilder() {
        if (wavesBuilder_ == null) {
          if (!(balanceCase_ == 1)) {
            balance_ = com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
          }
          wavesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder>(
                  (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_,
                  getParentForChildren(),
                  isClean());
          balance_ = null;
        }
        balanceCase_ = 1;
        onChanged();;
        return wavesBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> assetBuilder_;
      /**
       * .waves.Amount asset = 2;
       * @return Whether the asset field is set.
       */
      public boolean hasAsset() {
        return balanceCase_ == 2;
      }
      /**
       * .waves.Amount asset = 2;
       * @return The asset.
       */
      public com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset() {
        if (assetBuilder_ == null) {
          if (balanceCase_ == 2) {
            return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
          }
          return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
        } else {
          if (balanceCase_ == 2) {
            return assetBuilder_.getMessage();
          }
          return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
        }
      }
      /**
       * .waves.Amount asset = 2;
       */
      public Builder setAsset(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
        if (assetBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          balance_ = value;
          onChanged();
        } else {
          assetBuilder_.setMessage(value);
        }
        balanceCase_ = 2;
        return this;
      }
      /**
       * .waves.Amount asset = 2;
       */
      public Builder setAsset(
          com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
        if (assetBuilder_ == null) {
          balance_ = builderForValue.build();
          onChanged();
        } else {
          assetBuilder_.setMessage(builderForValue.build());
        }
        balanceCase_ = 2;
        return this;
      }
      /**
       * .waves.Amount asset = 2;
       */
      public Builder mergeAsset(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
        if (assetBuilder_ == null) {
          if (balanceCase_ == 2 &&
              balance_ != com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()) {
            balance_ = com.wavesplatform.protobuf.AmountOuterClass.Amount.newBuilder((com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_)
                .mergeFrom(value).buildPartial();
          } else {
            balance_ = value;
          }
          onChanged();
        } else {
          if (balanceCase_ == 2) {
            assetBuilder_.mergeFrom(value);
          }
          assetBuilder_.setMessage(value);
        }
        balanceCase_ = 2;
        return this;
      }
      /**
       * .waves.Amount asset = 2;
       */
      public Builder clearAsset() {
        if (assetBuilder_ == null) {
          if (balanceCase_ == 2) {
            balanceCase_ = 0;
            balance_ = null;
            onChanged();
          }
        } else {
          if (balanceCase_ == 2) {
            balanceCase_ = 0;
            balance_ = null;
          }
          assetBuilder_.clear();
        }
        return this;
      }
      /**
       * .waves.Amount asset = 2;
       */
      public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getAssetBuilder() {
        return getAssetFieldBuilder().getBuilder();
      }
      /**
       * .waves.Amount asset = 2;
       */
      public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder() {
        if ((balanceCase_ == 2) && (assetBuilder_ != null)) {
          return assetBuilder_.getMessageOrBuilder();
        } else {
          if (balanceCase_ == 2) {
            return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
          }
          return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
        }
      }
      /**
       * .waves.Amount asset = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> 
          getAssetFieldBuilder() {
        if (assetBuilder_ == null) {
          if (!(balanceCase_ == 2)) {
            balance_ = com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
          }
          assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>(
                  (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_,
                  getParentForChildren(),
                  isClean());
          balance_ = null;
        }
        balanceCase_ = 2;
        onChanged();;
        return assetBuilder_;
      }
      @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.node.grpc.BalanceResponse)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.BalanceResponse)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DataEntryResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.DataEntryResponse)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     * @return Whether the entry field is set.
     */
    boolean hasEntry();
    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     * @return The entry.
     */
    com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry();
    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     */
    com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder();
  }
  /**
   * Protobuf type {@code waves.node.grpc.DataEntryResponse}
   */
  public  static final class DataEntryResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.DataEntryResponse)
      DataEntryResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DataEntryResponse.newBuilder() to construct.
    private DataEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DataEntryResponse() {
      address_ = com.google.protobuf.ByteString.EMPTY;
    }

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

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

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.Builder.class);
    }

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

    public static final int ENTRY_FIELD_NUMBER = 2;
    private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry entry_;
    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     * @return Whether the entry field is set.
     */
    public boolean hasEntry() {
      return entry_ != null;
    }
    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     * @return The entry.
     */
    public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry() {
      return entry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
    }
    /**
     * .waves.DataTransactionData.DataEntry entry = 2;
     */
    public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder() {
      return getEntry();
    }

    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 (entry_ != null) {
        output.writeMessage(2, getEntry());
      }
      unknownFields.writeTo(output);
    }

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

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

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse) obj;

      if (!getAddress()
          .equals(other.getAddress())) return false;
      if (hasEntry() != other.hasEntry()) return false;
      if (hasEntry()) {
        if (!getEntry()
            .equals(other.getEntry())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAddress().hashCode();
      if (hasEntry()) {
        hash = (37 * hash) + ENTRY_FIELD_NUMBER;
        hash = (53 * hash) + getEntry().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        if (entryBuilder_ == null) {
          entry_ = null;
        } else {
          entry_ = null;
          entryBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse(this);
        result.address_ = address_;
        if (entryBuilder_ == null) {
          result.entry_ = entry_;
        } else {
          result.entry_ = entryBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.getDefaultInstance()) return this;
        if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAddress(other.getAddress());
        }
        if (other.hasEntry()) {
          mergeEntry(other.getEntry());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

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

      private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry entry_;
      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> entryBuilder_;
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       * @return Whether the entry field is set.
       */
      public boolean hasEntry() {
        return entryBuilder_ != null || entry_ != null;
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       * @return The entry.
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry() {
        if (entryBuilder_ == null) {
          return entry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
        } else {
          return entryBuilder_.getMessage();
        }
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public Builder setEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
        if (entryBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          entry_ = value;
          onChanged();
        } else {
          entryBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public Builder setEntry(
          com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder builderForValue) {
        if (entryBuilder_ == null) {
          entry_ = builderForValue.build();
          onChanged();
        } else {
          entryBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public Builder mergeEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
        if (entryBuilder_ == null) {
          if (entry_ != null) {
            entry_ =
              com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.newBuilder(entry_).mergeFrom(value).buildPartial();
          } else {
            entry_ = value;
          }
          onChanged();
        } else {
          entryBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public Builder clearEntry() {
        if (entryBuilder_ == null) {
          entry_ = null;
          onChanged();
        } else {
          entry_ = null;
          entryBuilder_ = null;
        }

        return this;
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getEntryBuilder() {
        
        onChanged();
        return getEntryFieldBuilder().getBuilder();
      }
      /**
       * .waves.DataTransactionData.DataEntry entry = 2;
       */
      public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder() {
        if (entryBuilder_ != null) {
          return entryBuilder_.getMessageOrBuilder();
        } else {
          return entry_ == null ?
              com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
        }
      }
      /**
       * .waves.DataTransactionData.DataEntry 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> 
          getEntryFieldBuilder() {
        if (entryBuilder_ == null) {
          entryBuilder_ = 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>(
                  getEntry(),
                  getParentForChildren(),
                  isClean());
          entry_ = null;
        }
        return entryBuilder_;
      }
      @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.node.grpc.DataEntryResponse)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.DataEntryResponse)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ScriptDataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.ScriptData)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes script_bytes = 1;
     * @return The scriptBytes.
     */
    com.google.protobuf.ByteString getScriptBytes();

    /**
     * string script_text = 2;
     * @return The scriptText.
     */
    java.lang.String getScriptText();
    /**
     * string script_text = 2;
     * @return The bytes for scriptText.
     */
    com.google.protobuf.ByteString
        getScriptTextBytes();

    /**
     * int64 complexity = 3;
     * @return The complexity.
     */
    long getComplexity();
  }
  /**
   * Protobuf type {@code waves.node.grpc.ScriptData}
   */
  public  static final class ScriptData extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.ScriptData)
      ScriptDataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ScriptData.newBuilder() to construct.
    private ScriptData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ScriptData() {
      scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
      scriptText_ = "";
    }

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

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

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

              scriptText_ = s;
              break;
            }
            case 24: {

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder.class);
    }

    public static final int SCRIPT_BYTES_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString scriptBytes_;
    /**
     * bytes script_bytes = 1;
     * @return The scriptBytes.
     */
    public com.google.protobuf.ByteString getScriptBytes() {
      return scriptBytes_;
    }

    public static final int SCRIPT_TEXT_FIELD_NUMBER = 2;
    private volatile java.lang.Object scriptText_;
    /**
     * string script_text = 2;
     * @return The scriptText.
     */
    public java.lang.String getScriptText() {
      java.lang.Object ref = scriptText_;
      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();
        scriptText_ = s;
        return s;
      }
    }
    /**
     * string script_text = 2;
     * @return The bytes for scriptText.
     */
    public com.google.protobuf.ByteString
        getScriptTextBytes() {
      java.lang.Object ref = scriptText_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        scriptText_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int COMPLEXITY_FIELD_NUMBER = 3;
    private long complexity_;
    /**
     * int64 complexity = 3;
     * @return The complexity.
     */
    public long getComplexity() {
      return complexity_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!scriptBytes_.isEmpty()) {
        output.writeBytes(1, scriptBytes_);
      }
      if (!getScriptTextBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scriptText_);
      }
      if (complexity_ != 0L) {
        output.writeInt64(3, complexity_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!scriptBytes_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, scriptBytes_);
      }
      if (!getScriptTextBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scriptText_);
      }
      if (complexity_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, complexity_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData) obj;

      if (!getScriptBytes()
          .equals(other.getScriptBytes())) return false;
      if (!getScriptText()
          .equals(other.getScriptText())) return false;
      if (getComplexity()
          != other.getComplexity()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        scriptText_ = "";

        complexity_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData(this);
        result.scriptBytes_ = scriptBytes_;
        result.scriptText_ = scriptText_;
        result.complexity_ = complexity_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance()) return this;
        if (other.getScriptBytes() != com.google.protobuf.ByteString.EMPTY) {
          setScriptBytes(other.getScriptBytes());
        }
        if (!other.getScriptText().isEmpty()) {
          scriptText_ = other.scriptText_;
          onChanged();
        }
        if (other.getComplexity() != 0L) {
          setComplexity(other.getComplexity());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

      private com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes script_bytes = 1;
       * @return The scriptBytes.
       */
      public com.google.protobuf.ByteString getScriptBytes() {
        return scriptBytes_;
      }
      /**
       * bytes script_bytes = 1;
       * @param value The scriptBytes to set.
       * @return This builder for chaining.
       */
      public Builder setScriptBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        scriptBytes_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes script_bytes = 1;
       * @return This builder for chaining.
       */
      public Builder clearScriptBytes() {
        
        scriptBytes_ = getDefaultInstance().getScriptBytes();
        onChanged();
        return this;
      }

      private java.lang.Object scriptText_ = "";
      /**
       * string script_text = 2;
       * @return The scriptText.
       */
      public java.lang.String getScriptText() {
        java.lang.Object ref = scriptText_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          scriptText_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string script_text = 2;
       * @return The bytes for scriptText.
       */
      public com.google.protobuf.ByteString
          getScriptTextBytes() {
        java.lang.Object ref = scriptText_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          scriptText_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string script_text = 2;
       * @param value The scriptText to set.
       * @return This builder for chaining.
       */
      public Builder setScriptText(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        scriptText_ = value;
        onChanged();
        return this;
      }
      /**
       * string script_text = 2;
       * @return This builder for chaining.
       */
      public Builder clearScriptText() {
        
        scriptText_ = getDefaultInstance().getScriptText();
        onChanged();
        return this;
      }
      /**
       * string script_text = 2;
       * @param value The bytes for scriptText to set.
       * @return This builder for chaining.
       */
      public Builder setScriptTextBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        scriptText_ = value;
        onChanged();
        return this;
      }

      private long complexity_ ;
      /**
       * int64 complexity = 3;
       * @return The complexity.
       */
      public long getComplexity() {
        return complexity_;
      }
      /**
       * int64 complexity = 3;
       * @param value The complexity to set.
       * @return This builder for chaining.
       */
      public Builder setComplexity(long value) {
        
        complexity_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 complexity = 3;
       * @return This builder for chaining.
       */
      public Builder clearComplexity() {
        
        complexity_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:waves.node.grpc.ScriptData)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.ScriptData)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface LeaseResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.LeaseResponse)
      com.google.protobuf.MessageOrBuilder {

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

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

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

    /**
     * .waves.Recipient recipient = 4;
     * @return Whether the recipient field is set.
     */
    boolean hasRecipient();
    /**
     * .waves.Recipient recipient = 4;
     * @return The recipient.
     */
    com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient();
    /**
     * .waves.Recipient recipient = 4;
     */
    com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder();

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

    /**
     * int64 height = 6;
     * @return The height.
     */
    long getHeight();
  }
  /**
   * Protobuf type {@code waves.node.grpc.LeaseResponse}
   */
  public  static final class LeaseResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.node.grpc.LeaseResponse)
      LeaseResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use LeaseResponse.newBuilder() to construct.
    private LeaseResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private LeaseResponse() {
      leaseId_ = com.google.protobuf.ByteString.EMPTY;
      originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
      sender_ = com.google.protobuf.ByteString.EMPTY;
    }

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

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

              leaseId_ = input.readBytes();
              break;
            }
            case 18: {

              originTransactionId_ = input.readBytes();
              break;
            }
            case 26: {

              sender_ = input.readBytes();
              break;
            }
            case 34: {
              com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder subBuilder = null;
              if (recipient_ != null) {
                subBuilder = recipient_.toBuilder();
              }
              recipient_ = input.readMessage(com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(recipient_);
                recipient_ = subBuilder.buildPartial();
              }

              break;
            }
            case 40: {

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.Builder.class);
    }

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

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

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

    public static final int RECIPIENT_FIELD_NUMBER = 4;
    private com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient recipient_;
    /**
     * .waves.Recipient recipient = 4;
     * @return Whether the recipient field is set.
     */
    public boolean hasRecipient() {
      return recipient_ != null;
    }
    /**
     * .waves.Recipient recipient = 4;
     * @return The recipient.
     */
    public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient() {
      return recipient_ == null ? com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
    }
    /**
     * .waves.Recipient recipient = 4;
     */
    public com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder() {
      return getRecipient();
    }

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

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

    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 (!originTransactionId_.isEmpty()) {
        output.writeBytes(2, originTransactionId_);
      }
      if (!sender_.isEmpty()) {
        output.writeBytes(3, sender_);
      }
      if (recipient_ != null) {
        output.writeMessage(4, getRecipient());
      }
      if (amount_ != 0L) {
        output.writeInt64(5, amount_);
      }
      if (height_ != 0L) {
        output.writeInt64(6, height_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!leaseId_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, leaseId_);
      }
      if (!originTransactionId_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, originTransactionId_);
      }
      if (!sender_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, sender_);
      }
      if (recipient_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getRecipient());
      }
      if (amount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, amount_);
      }
      if (height_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, height_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse)) {
        return super.equals(obj);
      }
      com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse) obj;

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

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

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.Builder.class);
      }

      // Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

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

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

        if (recipientBuilder_ == null) {
          recipient_ = null;
        } else {
          recipient_ = null;
          recipientBuilder_ = null;
        }
        amount_ = 0L;

        height_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstanceForType() {
        return com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse build() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse buildPartial() {
        com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse(this);
        result.leaseId_ = leaseId_;
        result.originTransactionId_ = originTransactionId_;
        result.sender_ = sender_;
        if (recipientBuilder_ == null) {
          result.recipient_ = recipient_;
        } else {
          result.recipient_ = recipientBuilder_.build();
        }
        result.amount_ = amount_;
        result.height_ = height_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse other) {
        if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.getDefaultInstance()) return this;
        if (other.getLeaseId() != com.google.protobuf.ByteString.EMPTY) {
          setLeaseId(other.getLeaseId());
        }
        if (other.getOriginTransactionId() != com.google.protobuf.ByteString.EMPTY) {
          setOriginTransactionId(other.getOriginTransactionId());
        }
        if (other.getSender() != com.google.protobuf.ByteString.EMPTY) {
          setSender(other.getSender());
        }
        if (other.hasRecipient()) {
          mergeRecipient(other.getRecipient());
        }
        if (other.getAmount() != 0L) {
          setAmount(other.getAmount());
        }
        if (other.getHeight() != 0L) {
          setHeight(other.getHeight());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

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

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

      private com.google.protobuf.ByteString originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes originTransactionId = 2;
       * @return The originTransactionId.
       */
      public com.google.protobuf.ByteString getOriginTransactionId() {
        return originTransactionId_;
      }
      /**
       * bytes originTransactionId = 2;
       * @param value The originTransactionId to set.
       * @return This builder for chaining.
       */
      public Builder setOriginTransactionId(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        originTransactionId_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes originTransactionId = 2;
       * @return This builder for chaining.
       */
      public Builder clearOriginTransactionId() {
        
        originTransactionId_ = getDefaultInstance().getOriginTransactionId();
        onChanged();
        return this;
      }

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

      private com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient recipient_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder> recipientBuilder_;
      /**
       * .waves.Recipient recipient = 4;
       * @return Whether the recipient field is set.
       */
      public boolean hasRecipient() {
        return recipientBuilder_ != null || recipient_ != null;
      }
      /**
       * .waves.Recipient recipient = 4;
       * @return The recipient.
       */
      public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient() {
        if (recipientBuilder_ == null) {
          return recipient_ == null ? com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
        } else {
          return recipientBuilder_.getMessage();
        }
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public Builder setRecipient(com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient value) {
        if (recipientBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          recipient_ = value;
          onChanged();
        } else {
          recipientBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public Builder setRecipient(
          com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder builderForValue) {
        if (recipientBuilder_ == null) {
          recipient_ = builderForValue.build();
          onChanged();
        } else {
          recipientBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public Builder mergeRecipient(com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient value) {
        if (recipientBuilder_ == null) {
          if (recipient_ != null) {
            recipient_ =
              com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.newBuilder(recipient_).mergeFrom(value).buildPartial();
          } else {
            recipient_ = value;
          }
          onChanged();
        } else {
          recipientBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public Builder clearRecipient() {
        if (recipientBuilder_ == null) {
          recipient_ = null;
          onChanged();
        } else {
          recipient_ = null;
          recipientBuilder_ = null;
        }

        return this;
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder getRecipientBuilder() {
        
        onChanged();
        return getRecipientFieldBuilder().getBuilder();
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      public com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder() {
        if (recipientBuilder_ != null) {
          return recipientBuilder_.getMessageOrBuilder();
        } else {
          return recipient_ == null ?
              com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
        }
      }
      /**
       * .waves.Recipient recipient = 4;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder> 
          getRecipientFieldBuilder() {
        if (recipientBuilder_ == null) {
          recipientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder>(
                  getRecipient(),
                  getParentForChildren(),
                  isClean());
          recipient_ = null;
        }
        return recipientBuilder_;
      }

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

      private long height_ ;
      /**
       * int64 height = 6;
       * @return The height.
       */
      public long getHeight() {
        return height_;
      }
      /**
       * int64 height = 6;
       * @param value The height to set.
       * @return This builder for chaining.
       */
      public Builder setHeight(long value) {
        
        height_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 height = 6;
       * @return This builder for chaining.
       */
      public Builder clearHeight() {
        
        height_ = 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.node.grpc.LeaseResponse)
    }

    // @@protoc_insertion_point(class_scope:waves.node.grpc.LeaseResponse)
    private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse();
    }

    public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_AccountRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_DataRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_DataRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_BalancesRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_BalanceResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_DataEntryResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_ScriptData_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_ScriptData_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_waves_node_grpc_LeaseResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_waves_node_grpc_LeaseResponse_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\"waves/node/grpc/accounts_api.proto\022\017wa" +
      "ves.node.grpc\032\022waves/amount.proto\032\027waves" +
      "/transaction.proto\032\025waves/recipient.prot" +
      "o\032\036google/protobuf/wrappers.proto\"!\n\016Acc" +
      "ountRequest\022\017\n\007address\030\001 \001(\014\"+\n\013DataRequ" +
      "est\022\017\n\007address\030\001 \001(\014\022\013\n\003key\030\002 \001(\t\"2\n\017Bal" +
      "ancesRequest\022\017\n\007address\030\001 \001(\014\022\016\n\006assets\030" +
      "\004 \003(\014\"\376\001\n\017BalanceResponse\022?\n\005waves\030\001 \001(\013" +
      "2..waves.node.grpc.BalanceResponse.Waves" +
      "BalancesH\000\022\036\n\005asset\030\002 \001(\0132\r.waves.Amount" +
      "H\000\032\177\n\rWavesBalances\022\017\n\007regular\030\001 \001(\003\022\022\n\n" +
      "generating\030\002 \001(\003\022\021\n\tavailable\030\003 \001(\003\022\021\n\te" +
      "ffective\030\004 \001(\003\022\020\n\010lease_in\030\005 \001(\003\022\021\n\tleas" +
      "e_out\030\006 \001(\003B\t\n\007balance\"Y\n\021DataEntryRespo" +
      "nse\022\017\n\007address\030\001 \001(\014\0223\n\005entry\030\002 \001(\0132$.wa" +
      "ves.DataTransactionData.DataEntry\"K\n\nScr" +
      "iptData\022\024\n\014script_bytes\030\001 \001(\014\022\023\n\013script_" +
      "text\030\002 \001(\t\022\022\n\ncomplexity\030\003 \001(\003\"\222\001\n\rLease" +
      "Response\022\017\n\007leaseId\030\001 \001(\014\022\033\n\023originTrans" +
      "actionId\030\002 \001(\014\022\016\n\006sender\030\003 \001(\014\022#\n\trecipi" +
      "ent\030\004 \001(\0132\020.waves.Recipient\022\016\n\006amount\030\005 " +
      "\001(\003\022\016\n\006height\030\006 \001(\0032\244\003\n\013AccountsApi\022S\n\013G" +
      "etBalances\022 .waves.node.grpc.BalancesReq" +
      "uest\032 .waves.node.grpc.BalanceResponse0\001" +
      "\022I\n\tGetScript\022\037.waves.node.grpc.AccountR" +
      "equest\032\033.waves.node.grpc.ScriptData\022T\n\017G" +
      "etActiveLeases\022\037.waves.node.grpc.Account" +
      "Request\032\036.waves.node.grpc.LeaseResponse0" +
      "\001\022T\n\016GetDataEntries\022\034.waves.node.grpc.Da" +
      "taRequest\032\".waves.node.grpc.DataEntryRes" +
      "ponse0\001\022I\n\014ResolveAlias\022\034.google.protobu" +
      "f.StringValue\032\033.google.protobuf.BytesVal" +
      "ueBs\n\032com.wavesplatform.api.grpcZCgithub" +
      ".com/wavesplatform/gowaves/pkg/grpc/gene" +
      "rated/waves/node/grpc\252\002\017Waves.Node.Grpcb" +
      "\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(),
          com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(),
          com.wavesplatform.protobuf.transaction.RecipientOuterClass.getDescriptor(),
          com.google.protobuf.WrappersProto.getDescriptor(),
        });
    internal_static_waves_node_grpc_AccountRequest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_AccountRequest_descriptor,
        new java.lang.String[] { "Address", });
    internal_static_waves_node_grpc_DataRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_waves_node_grpc_DataRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_DataRequest_descriptor,
        new java.lang.String[] { "Address", "Key", });
    internal_static_waves_node_grpc_BalancesRequest_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_BalancesRequest_descriptor,
        new java.lang.String[] { "Address", "Assets", });
    internal_static_waves_node_grpc_BalanceResponse_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_BalanceResponse_descriptor,
        new java.lang.String[] { "Waves", "Asset", "Balance", });
    internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor =
      internal_static_waves_node_grpc_BalanceResponse_descriptor.getNestedTypes().get(0);
    internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor,
        new java.lang.String[] { "Regular", "Generating", "Available", "Effective", "LeaseIn", "LeaseOut", });
    internal_static_waves_node_grpc_DataEntryResponse_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_DataEntryResponse_descriptor,
        new java.lang.String[] { "Address", "Entry", });
    internal_static_waves_node_grpc_ScriptData_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_waves_node_grpc_ScriptData_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_ScriptData_descriptor,
        new java.lang.String[] { "ScriptBytes", "ScriptText", "Complexity", });
    internal_static_waves_node_grpc_LeaseResponse_descriptor =
      getDescriptor().getMessageTypes().get(6);
    internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_waves_node_grpc_LeaseResponse_descriptor,
        new java.lang.String[] { "LeaseId", "OriginTransactionId", "Sender", "Recipient", "Amount", "Height", });
    com.wavesplatform.protobuf.AmountOuterClass.getDescriptor();
    com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor();
    com.wavesplatform.protobuf.transaction.RecipientOuterClass.getDescriptor();
    com.google.protobuf.WrappersProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy