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

main.org.onflow.protobuf.legacy.entities.AccountOuterClass Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: flow/legacy/entities/account.proto

package org.onflow.protobuf.legacy.entities;

public final class AccountOuterClass {
  private AccountOuterClass() {}
  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 AccountOrBuilder extends
      // @@protoc_insertion_point(interface_extends:entities.Account)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * uint64 balance = 2;
     * @return The balance.
     */
    long getBalance();

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

    /**
     * repeated .entities.AccountKey keys = 4;
     */
    java.util.List 
        getKeysList();
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getKeys(int index);
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    int getKeysCount();
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    java.util.List 
        getKeysOrBuilderList();
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder getKeysOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code entities.Account}
   */
  public static final class Account extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:entities.Account)
      AccountOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Account.newBuilder() to construct.
    private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Account() {
      address_ = com.google.protobuf.ByteString.EMPTY;
      code_ = com.google.protobuf.ByteString.EMPTY;
      keys_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Account(
        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 16: {

              balance_ = input.readUInt64();
              break;
            }
            case 26: {

              code_ = input.readBytes();
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                keys_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              keys_.add(
                  input.readMessage(org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          keys_ = java.util.Collections.unmodifiableList(keys_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_Account_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_Account_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.class, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder.class);
    }

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

    public static final int BALANCE_FIELD_NUMBER = 2;
    private long balance_;
    /**
     * uint64 balance = 2;
     * @return The balance.
     */
    @java.lang.Override
    public long getBalance() {
      return balance_;
    }

    public static final int CODE_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString code_;
    /**
     * bytes code = 3;
     * @return The code.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getCode() {
      return code_;
    }

    public static final int KEYS_FIELD_NUMBER = 4;
    private java.util.List keys_;
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    @java.lang.Override
    public java.util.List getKeysList() {
      return keys_;
    }
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    @java.lang.Override
    public java.util.List 
        getKeysOrBuilderList() {
      return keys_;
    }
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    @java.lang.Override
    public int getKeysCount() {
      return keys_.size();
    }
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    @java.lang.Override
    public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getKeys(int index) {
      return keys_.get(index);
    }
    /**
     * repeated .entities.AccountKey keys = 4;
     */
    @java.lang.Override
    public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder getKeysOrBuilder(
        int index) {
      return keys_.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_);
      }
      if (balance_ != 0L) {
        output.writeUInt64(2, balance_);
      }
      if (!code_.isEmpty()) {
        output.writeBytes(3, code_);
      }
      for (int i = 0; i < keys_.size(); i++) {
        output.writeMessage(4, keys_.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_);
      }
      if (balance_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, balance_);
      }
      if (!code_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, code_);
      }
      for (int i = 0; i < keys_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, keys_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.onflow.protobuf.legacy.entities.AccountOuterClass.Account)) {
        return super.equals(obj);
      }
      org.onflow.protobuf.legacy.entities.AccountOuterClass.Account other = (org.onflow.protobuf.legacy.entities.AccountOuterClass.Account) obj;

      if (!getAddress()
          .equals(other.getAddress())) return false;
      if (getBalance()
          != other.getBalance()) return false;
      if (!getCode()
          .equals(other.getCode())) return false;
      if (!getKeysList()
          .equals(other.getKeysList())) 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) + BALANCE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBalance());
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + getCode().hashCode();
      if (getKeysCount() > 0) {
        hash = (37 * hash) + KEYS_FIELD_NUMBER;
        hash = (53 * hash) + getKeysList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account 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 org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account 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 org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account 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(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account 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 entities.Account}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:entities.Account)
        org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_Account_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_Account_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.class, org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.Builder.class);
      }

      // Construct using org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        balance_ = 0L;

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

        if (keysBuilder_ == null) {
          keys_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          keysBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_Account_descriptor;
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getDefaultInstanceForType() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance();
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account build() {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.Account result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.Account buildPartial() {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.Account result = new org.onflow.protobuf.legacy.entities.AccountOuterClass.Account(this);
        int from_bitField0_ = bitField0_;
        result.address_ = address_;
        result.balance_ = balance_;
        result.code_ = code_;
        if (keysBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            keys_ = java.util.Collections.unmodifiableList(keys_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.keys_ = keys_;
        } else {
          result.keys_ = keysBuilder_.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 org.onflow.protobuf.legacy.entities.AccountOuterClass.Account) {
          return mergeFrom((org.onflow.protobuf.legacy.entities.AccountOuterClass.Account)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.onflow.protobuf.legacy.entities.AccountOuterClass.Account other) {
        if (other == org.onflow.protobuf.legacy.entities.AccountOuterClass.Account.getDefaultInstance()) return this;
        if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
          setAddress(other.getAddress());
        }
        if (other.getBalance() != 0L) {
          setBalance(other.getBalance());
        }
        if (other.getCode() != com.google.protobuf.ByteString.EMPTY) {
          setCode(other.getCode());
        }
        if (keysBuilder_ == null) {
          if (!other.keys_.isEmpty()) {
            if (keys_.isEmpty()) {
              keys_ = other.keys_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureKeysIsMutable();
              keys_.addAll(other.keys_);
            }
            onChanged();
          }
        } else {
          if (!other.keys_.isEmpty()) {
            if (keysBuilder_.isEmpty()) {
              keysBuilder_.dispose();
              keysBuilder_ = null;
              keys_ = other.keys_;
              bitField0_ = (bitField0_ & ~0x00000001);
              keysBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getKeysFieldBuilder() : null;
            } else {
              keysBuilder_.addAllMessages(other.keys_);
            }
          }
        }
        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 {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.Account parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.onflow.protobuf.legacy.entities.AccountOuterClass.Account) 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.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }
      /**
       * bytes address = 1;
       * @param value The address to set.
       * @return This builder for chaining.
       */
      public Builder setAddress(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        address_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes address = 1;
       * @return This builder for chaining.
       */
      public Builder clearAddress() {
        
        address_ = getDefaultInstance().getAddress();
        onChanged();
        return this;
      }

      private long balance_ ;
      /**
       * uint64 balance = 2;
       * @return The balance.
       */
      @java.lang.Override
      public long getBalance() {
        return balance_;
      }
      /**
       * uint64 balance = 2;
       * @param value The balance to set.
       * @return This builder for chaining.
       */
      public Builder setBalance(long value) {
        
        balance_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 balance = 2;
       * @return This builder for chaining.
       */
      public Builder clearBalance() {
        
        balance_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes code = 3;
       * @return The code.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getCode() {
        return code_;
      }
      /**
       * bytes code = 3;
       * @param value The code to set.
       * @return This builder for chaining.
       */
      public Builder setCode(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes code = 3;
       * @return This builder for chaining.
       */
      public Builder clearCode() {
        
        code_ = getDefaultInstance().getCode();
        onChanged();
        return this;
      }

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder> keysBuilder_;

      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public java.util.List getKeysList() {
        if (keysBuilder_ == null) {
          return java.util.Collections.unmodifiableList(keys_);
        } else {
          return keysBuilder_.getMessageList();
        }
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public int getKeysCount() {
        if (keysBuilder_ == null) {
          return keys_.size();
        } else {
          return keysBuilder_.getCount();
        }
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getKeys(int index) {
        if (keysBuilder_ == null) {
          return keys_.get(index);
        } else {
          return keysBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder setKeys(
          int index, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey value) {
        if (keysBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureKeysIsMutable();
          keys_.set(index, value);
          onChanged();
        } else {
          keysBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder setKeys(
          int index, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder builderForValue) {
        if (keysBuilder_ == null) {
          ensureKeysIsMutable();
          keys_.set(index, builderForValue.build());
          onChanged();
        } else {
          keysBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder addKeys(org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey value) {
        if (keysBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureKeysIsMutable();
          keys_.add(value);
          onChanged();
        } else {
          keysBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder addKeys(
          int index, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey value) {
        if (keysBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureKeysIsMutable();
          keys_.add(index, value);
          onChanged();
        } else {
          keysBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder addKeys(
          org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder builderForValue) {
        if (keysBuilder_ == null) {
          ensureKeysIsMutable();
          keys_.add(builderForValue.build());
          onChanged();
        } else {
          keysBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder addKeys(
          int index, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder builderForValue) {
        if (keysBuilder_ == null) {
          ensureKeysIsMutable();
          keys_.add(index, builderForValue.build());
          onChanged();
        } else {
          keysBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder addAllKeys(
          java.lang.Iterable values) {
        if (keysBuilder_ == null) {
          ensureKeysIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, keys_);
          onChanged();
        } else {
          keysBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder clearKeys() {
        if (keysBuilder_ == null) {
          keys_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          keysBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public Builder removeKeys(int index) {
        if (keysBuilder_ == null) {
          ensureKeysIsMutable();
          keys_.remove(index);
          onChanged();
        } else {
          keysBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder getKeysBuilder(
          int index) {
        return getKeysFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder getKeysOrBuilder(
          int index) {
        if (keysBuilder_ == null) {
          return keys_.get(index);  } else {
          return keysBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public java.util.List 
           getKeysOrBuilderList() {
        if (keysBuilder_ != null) {
          return keysBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(keys_);
        }
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder addKeysBuilder() {
        return getKeysFieldBuilder().addBuilder(
            org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.getDefaultInstance());
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder addKeysBuilder(
          int index) {
        return getKeysFieldBuilder().addBuilder(
            index, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.getDefaultInstance());
      }
      /**
       * repeated .entities.AccountKey keys = 4;
       */
      public java.util.List 
           getKeysBuilderList() {
        return getKeysFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder> 
          getKeysFieldBuilder() {
        if (keysBuilder_ == null) {
          keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder>(
                  keys_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          keys_ = null;
        }
        return keysBuilder_;
      }
      @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:entities.Account)
    }

    // @@protoc_insertion_point(class_scope:entities.Account)
    private static final org.onflow.protobuf.legacy.entities.AccountOuterClass.Account DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.AccountOuterClass.Account();
    }

    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Account parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Account(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 org.onflow.protobuf.legacy.entities.AccountOuterClass.Account getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface AccountKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:entities.AccountKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint32 index = 1;
     * @return The index.
     */
    int getIndex();

    /**
     * bytes public_key = 2;
     * @return The publicKey.
     */
    com.google.protobuf.ByteString getPublicKey();

    /**
     * uint32 sign_algo = 3;
     * @return The signAlgo.
     */
    int getSignAlgo();

    /**
     * uint32 hash_algo = 4;
     * @return The hashAlgo.
     */
    int getHashAlgo();

    /**
     * uint32 weight = 5;
     * @return The weight.
     */
    int getWeight();

    /**
     * uint32 sequence_number = 6;
     * @return The sequenceNumber.
     */
    int getSequenceNumber();
  }
  /**
   * Protobuf type {@code entities.AccountKey}
   */
  public static final class AccountKey extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:entities.AccountKey)
      AccountKeyOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AccountKey.newBuilder() to construct.
    private AccountKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private AccountKey() {
      publicKey_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private AccountKey(
        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: {

              index_ = input.readUInt32();
              break;
            }
            case 18: {

              publicKey_ = input.readBytes();
              break;
            }
            case 24: {

              signAlgo_ = input.readUInt32();
              break;
            }
            case 32: {

              hashAlgo_ = input.readUInt32();
              break;
            }
            case 40: {

              weight_ = input.readUInt32();
              break;
            }
            case 48: {

              sequenceNumber_ = input.readUInt32();
              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 org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_AccountKey_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_AccountKey_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.class, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder.class);
    }

    public static final int INDEX_FIELD_NUMBER = 1;
    private int index_;
    /**
     * uint32 index = 1;
     * @return The index.
     */
    @java.lang.Override
    public int getIndex() {
      return index_;
    }

    public static final int PUBLIC_KEY_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString publicKey_;
    /**
     * bytes public_key = 2;
     * @return The publicKey.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getPublicKey() {
      return publicKey_;
    }

    public static final int SIGN_ALGO_FIELD_NUMBER = 3;
    private int signAlgo_;
    /**
     * uint32 sign_algo = 3;
     * @return The signAlgo.
     */
    @java.lang.Override
    public int getSignAlgo() {
      return signAlgo_;
    }

    public static final int HASH_ALGO_FIELD_NUMBER = 4;
    private int hashAlgo_;
    /**
     * uint32 hash_algo = 4;
     * @return The hashAlgo.
     */
    @java.lang.Override
    public int getHashAlgo() {
      return hashAlgo_;
    }

    public static final int WEIGHT_FIELD_NUMBER = 5;
    private int weight_;
    /**
     * uint32 weight = 5;
     * @return The weight.
     */
    @java.lang.Override
    public int getWeight() {
      return weight_;
    }

    public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 6;
    private int sequenceNumber_;
    /**
     * uint32 sequence_number = 6;
     * @return The sequenceNumber.
     */
    @java.lang.Override
    public int getSequenceNumber() {
      return sequenceNumber_;
    }

    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 (index_ != 0) {
        output.writeUInt32(1, index_);
      }
      if (!publicKey_.isEmpty()) {
        output.writeBytes(2, publicKey_);
      }
      if (signAlgo_ != 0) {
        output.writeUInt32(3, signAlgo_);
      }
      if (hashAlgo_ != 0) {
        output.writeUInt32(4, hashAlgo_);
      }
      if (weight_ != 0) {
        output.writeUInt32(5, weight_);
      }
      if (sequenceNumber_ != 0) {
        output.writeUInt32(6, sequenceNumber_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (index_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, index_);
      }
      if (!publicKey_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, publicKey_);
      }
      if (signAlgo_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, signAlgo_);
      }
      if (hashAlgo_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, hashAlgo_);
      }
      if (weight_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, weight_);
      }
      if (sequenceNumber_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, sequenceNumber_);
      }
      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 org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey)) {
        return super.equals(obj);
      }
      org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey other = (org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey) obj;

      if (getIndex()
          != other.getIndex()) return false;
      if (!getPublicKey()
          .equals(other.getPublicKey())) return false;
      if (getSignAlgo()
          != other.getSignAlgo()) return false;
      if (getHashAlgo()
          != other.getHashAlgo()) return false;
      if (getWeight()
          != other.getWeight()) return false;
      if (getSequenceNumber()
          != other.getSequenceNumber()) 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) + INDEX_FIELD_NUMBER;
      hash = (53 * hash) + getIndex();
      hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER;
      hash = (53 * hash) + getPublicKey().hashCode();
      hash = (37 * hash) + SIGN_ALGO_FIELD_NUMBER;
      hash = (53 * hash) + getSignAlgo();
      hash = (37 * hash) + HASH_ALGO_FIELD_NUMBER;
      hash = (53 * hash) + getHashAlgo();
      hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
      hash = (53 * hash) + getWeight();
      hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + getSequenceNumber();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey 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 org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey 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 org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey 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(org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey 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 entities.AccountKey}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:entities.AccountKey)
        org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKeyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_AccountKey_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_AccountKey_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.class, org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.Builder.class);
      }

      // Construct using org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.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();
        index_ = 0;

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

        signAlgo_ = 0;

        hashAlgo_ = 0;

        weight_ = 0;

        sequenceNumber_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.internal_static_entities_AccountKey_descriptor;
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getDefaultInstanceForType() {
        return org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.getDefaultInstance();
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey build() {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey buildPartial() {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey result = new org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey(this);
        result.index_ = index_;
        result.publicKey_ = publicKey_;
        result.signAlgo_ = signAlgo_;
        result.hashAlgo_ = hashAlgo_;
        result.weight_ = weight_;
        result.sequenceNumber_ = sequenceNumber_;
        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 org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey) {
          return mergeFrom((org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey other) {
        if (other == org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey.getDefaultInstance()) return this;
        if (other.getIndex() != 0) {
          setIndex(other.getIndex());
        }
        if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) {
          setPublicKey(other.getPublicKey());
        }
        if (other.getSignAlgo() != 0) {
          setSignAlgo(other.getSignAlgo());
        }
        if (other.getHashAlgo() != 0) {
          setHashAlgo(other.getHashAlgo());
        }
        if (other.getWeight() != 0) {
          setWeight(other.getWeight());
        }
        if (other.getSequenceNumber() != 0) {
          setSequenceNumber(other.getSequenceNumber());
        }
        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 {
        org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int index_ ;
      /**
       * uint32 index = 1;
       * @return The index.
       */
      @java.lang.Override
      public int getIndex() {
        return index_;
      }
      /**
       * uint32 index = 1;
       * @param value The index to set.
       * @return This builder for chaining.
       */
      public Builder setIndex(int value) {
        
        index_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 index = 1;
       * @return This builder for chaining.
       */
      public Builder clearIndex() {
        
        index_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes public_key = 2;
       * @return The publicKey.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getPublicKey() {
        return publicKey_;
      }
      /**
       * bytes public_key = 2;
       * @param value The publicKey to set.
       * @return This builder for chaining.
       */
      public Builder setPublicKey(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        publicKey_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes public_key = 2;
       * @return This builder for chaining.
       */
      public Builder clearPublicKey() {
        
        publicKey_ = getDefaultInstance().getPublicKey();
        onChanged();
        return this;
      }

      private int signAlgo_ ;
      /**
       * uint32 sign_algo = 3;
       * @return The signAlgo.
       */
      @java.lang.Override
      public int getSignAlgo() {
        return signAlgo_;
      }
      /**
       * uint32 sign_algo = 3;
       * @param value The signAlgo to set.
       * @return This builder for chaining.
       */
      public Builder setSignAlgo(int value) {
        
        signAlgo_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 sign_algo = 3;
       * @return This builder for chaining.
       */
      public Builder clearSignAlgo() {
        
        signAlgo_ = 0;
        onChanged();
        return this;
      }

      private int hashAlgo_ ;
      /**
       * uint32 hash_algo = 4;
       * @return The hashAlgo.
       */
      @java.lang.Override
      public int getHashAlgo() {
        return hashAlgo_;
      }
      /**
       * uint32 hash_algo = 4;
       * @param value The hashAlgo to set.
       * @return This builder for chaining.
       */
      public Builder setHashAlgo(int value) {
        
        hashAlgo_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 hash_algo = 4;
       * @return This builder for chaining.
       */
      public Builder clearHashAlgo() {
        
        hashAlgo_ = 0;
        onChanged();
        return this;
      }

      private int weight_ ;
      /**
       * uint32 weight = 5;
       * @return The weight.
       */
      @java.lang.Override
      public int getWeight() {
        return weight_;
      }
      /**
       * uint32 weight = 5;
       * @param value The weight to set.
       * @return This builder for chaining.
       */
      public Builder setWeight(int value) {
        
        weight_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 weight = 5;
       * @return This builder for chaining.
       */
      public Builder clearWeight() {
        
        weight_ = 0;
        onChanged();
        return this;
      }

      private int sequenceNumber_ ;
      /**
       * uint32 sequence_number = 6;
       * @return The sequenceNumber.
       */
      @java.lang.Override
      public int getSequenceNumber() {
        return sequenceNumber_;
      }
      /**
       * uint32 sequence_number = 6;
       * @param value The sequenceNumber to set.
       * @return This builder for chaining.
       */
      public Builder setSequenceNumber(int value) {
        
        sequenceNumber_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 sequence_number = 6;
       * @return This builder for chaining.
       */
      public Builder clearSequenceNumber() {
        
        sequenceNumber_ = 0;
        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:entities.AccountKey)
    }

    // @@protoc_insertion_point(class_scope:entities.AccountKey)
    private static final org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey();
    }

    public static org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public AccountKey parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new AccountKey(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 org.onflow.protobuf.legacy.entities.AccountOuterClass.AccountKey getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_entities_Account_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_entities_Account_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_entities_AccountKey_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_entities_AccountKey_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\"flow/legacy/entities/account.proto\022\010en" +
      "tities\"]\n\007Account\022\017\n\007address\030\001 \001(\014\022\017\n\007ba" +
      "lance\030\002 \001(\004\022\014\n\004code\030\003 \001(\014\022\"\n\004keys\030\004 \003(\0132" +
      "\024.entities.AccountKey\"~\n\nAccountKey\022\r\n\005i" +
      "ndex\030\001 \001(\r\022\022\n\npublic_key\030\002 \001(\014\022\021\n\tsign_a" +
      "lgo\030\003 \001(\r\022\021\n\thash_algo\030\004 \001(\r\022\016\n\006weight\030\005" +
      " \001(\r\022\027\n\017sequence_number\030\006 \001(\rB^\n#org.onf" +
      "low.protobuf.legacy.entitiesZ7github.com" +
      "/onflow/flow/protobuf/go/flow/legacy/ent" +
      "itiesb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_entities_Account_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_entities_Account_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_entities_Account_descriptor,
        new java.lang.String[] { "Address", "Balance", "Code", "Keys", });
    internal_static_entities_AccountKey_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_entities_AccountKey_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_entities_AccountKey_descriptor,
        new java.lang.String[] { "Index", "PublicKey", "SignAlgo", "HashAlgo", "Weight", "SequenceNumber", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy